/* ==========================================================================
   ProAmBelts — Homepage module
   Consumes tokens + primitives from pab-base.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero — split layout: content + framed belt showcase
   -------------------------------------------------------------------------- */
.home-hero {
    align-items: center;
    display: flex;
    min-height: 660px;
    overflow: hidden;
    position: relative;
    padding: 96px 0;
    background:
        radial-gradient(80% 120% at 88% 12%, rgba(94, 164, 35, 0.10) 0%, rgba(94, 164, 35, 0) 42%),
        radial-gradient(90% 120% at 8% 0%, rgba(223, 188, 102, 0.16) 0%, rgba(223, 188, 102, 0) 46%),
        linear-gradient(160deg, #23201a 0%, #17140f 46%, #100e0a 100%);
    isolation: isolate;
}

/* faint background photo, heavily darkened, sits behind everything */
.home-hero__media {
    inset: 0;
    position: absolute;
    z-index: -2;
}

.home-hero__media img {
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    width: 100%;
    filter: grayscale(0.2);
}

.home-hero__overlay {
    inset: 0;
    position: absolute;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(16, 14, 10, 0.92) 0%, rgba(16, 14, 10, 0.62) 55%, rgba(16, 14, 10, 0.30) 100%);
}

/* oversized ghost star watermark */
.home-hero::after {
    content: "\f005"; /* fa star */
    font-family: FontAwesome;
    position: absolute;
    right: -3vw;
    bottom: -6vw;
    font-size: 40vw;
    line-height: 1;
    color: rgba(223, 188, 102, 0.04);
    z-index: -1;
    pointer-events: none;
}

.home-hero > .container { position: relative; z-index: 1; }

.home-hero__grid {
    align-items: center;
    display: grid;
    gap: 54px;
    grid-template-columns: 1.05fr 0.95fr;
}

.home-hero__content { color: #fff8e8; max-width: 620px; }

/* gold hairline above the tag */
.home-hero__eyebrow {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
}

.home-hero__eyebrow::after {
    background: linear-gradient(90deg, rgba(217, 178, 89, 0.6), transparent);
    content: "";
    flex: 1;
    height: 1px;
}

.home-hero h2 {
    color: #fff;
    font-size: clamp(2.6rem, 5.4vw, 4.6rem);
    font-weight: 900;
    letter-spacing: -0.015em;
    line-height: 1.02;
    margin: 0 0 22px;
}

.home-hero h2 .home-hero__accent {
    background: linear-gradient(100deg, #f4dc9a 0%, #d9b259 30%, #b7862b 55%, #f4dc9a 80%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #d9b259;
    animation: heroShimmer 6s linear infinite;
}

@keyframes heroShimmer {
    to { background-position: 220% center; }
}

.home-hero p {
    color: rgba(255, 248, 232, 0.84);
    font-size: 1.16rem;
    line-height: 1.62;
    margin: 0 0 32px;
    max-width: 520px;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 38px;
}

.home-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.home-hero__stat {
    border-left: 2px solid rgba(217, 178, 89, 0.5);
    padding-left: 15px;
}

.home-hero__stat strong {
    color: #fff;
    display: block;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
}

.home-hero__stat span {
    color: rgba(255, 248, 232, 0.66);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---- Showcase (right column) ---- */
.home-hero__showcase {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: 440px;
    animation: heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.home-hero__frame {
    position: relative;
    border-radius: 22px;
    padding: 14px;
    background: linear-gradient(150deg, rgba(223, 188, 102, 0.55), rgba(223, 188, 102, 0.06) 45%, rgba(255, 255, 255, 0.05));
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(223, 188, 102, 0.25) inset;
}

.home-hero__frame::before {
    content: "";
    position: absolute;
    inset: -30% -20% auto -20%;
    height: 70%;
    background: radial-gradient(ellipse at 50% 0%, rgba(223, 188, 102, 0.35), transparent 70%);
    filter: blur(20px);
    z-index: -1;
    pointer-events: none;
}

.home-hero__frame img {
    border-radius: 14px;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.home-hero__ribbon {
    position: absolute;
    top: 26px;
    left: -10px;
    background: linear-gradient(180deg, #d2aa4f 0%, #b58a2d 100%);
    color: #17130d;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 9px 16px;
    border-radius: 4px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}

.home-hero__ribbon::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    border-top: 7px solid #7a570f;
    border-left: 10px solid transparent;
}

/* floating rating card */
.home-hero__rating {
    position: absolute;
    right: -14px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 254, 250, 0.98);
    border: 1px solid rgba(223, 188, 102, 0.4);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.home-hero__rating strong { color: #141414; font-size: 1.35rem; font-weight: 900; line-height: 1; }
.home-hero__rating .stars { color: #c29b42; font-size: 0.82rem; letter-spacing: 1px; }
.home-hero__rating small { color: #6a6152; display: block; font-size: 0.72rem; font-weight: 600; }

@media (max-width: 991px) {
    .home-hero__grid { grid-template-columns: 1fr; gap: 44px; }
    .home-hero__content { max-width: none; }
    .home-hero__showcase { max-width: 380px; order: 2; }
}

@media (max-width: 767px) {
    .home-hero { min-height: 0; padding: 60px 0; }
    .home-hero__media img { opacity: 0.12; }
    .home-hero__stats { gap: 20px; }
    .home-hero__stat strong { font-size: 1.3rem; }
    .home-hero__showcase { max-width: 320px; }
    .home-hero__rating { right: 0; padding: 10px 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__showcase,
    .home-hero h2 .home-hero__accent { animation: none; }
}

/* --------------------------------------------------------------------------
   Category tiles retune (front-featurettes.php has base layout; we override accents)
   -------------------------------------------------------------------------- */
.category-tile:hover,
.category-tile:focus {
    box-shadow: 0 12px 30px rgba(122, 87, 15, 0.28) !important;
}

/* --------------------------------------------------------------------------
   Belt of the Month
   -------------------------------------------------------------------------- */
.home-botm {
    background:
        radial-gradient(100% 120% at 100% 0%, rgba(223, 188, 102, 0.14) 0%, rgba(223, 188, 102, 0) 50%),
        linear-gradient(160deg, #201b15 0%, #14110d 100%);
    color: #f6efdf;
    padding: 72px 0;
    position: relative;
}

.home-botm__grid {
    align-items: center;
    display: grid;
    gap: 48px;
    grid-template-columns: 1fr 1fr;
}

.home-botm__media {
    border-radius: var(--pab-radius);
    overflow: hidden;
    position: relative;
}

.home-botm__media::after {
    content: "";
    inset: 0;
    position: absolute;
    box-shadow: inset 0 0 0 1px rgba(223, 188, 102, 0.25);
    border-radius: var(--pab-radius);
    pointer-events: none;
}

.home-botm__media img {
    display: block;
    width: 100%;
}

.home-botm h3 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.05;
    margin: 0 0 18px;
}

.home-botm__price {
    align-items: baseline;
    display: flex;
    gap: 10px;
    margin-bottom: 26px;
}

.home-botm__price .amt {
    color: var(--pab-gold-soft);
    font-size: 2.1rem;
    font-weight: 900;
}

.home-botm__price .was {
    color: rgba(246, 239, 223, 0.55);
    font-size: 1.15rem;
    text-decoration: line-through;
}

@media (max-width: 767px) {
    .home-botm { padding: 48px 0; }
    .home-botm__grid { gap: 28px; grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Recent posts
   -------------------------------------------------------------------------- */
.home-posts { padding: 72px 0; }

.home-posts__grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(4, 1fr);
}

.home-post {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.home-post__media {
    aspect-ratio: 16 / 10;
    display: block;
    overflow: hidden;
}

.home-post__media img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--pab-ease);
    width: 100%;
}

.home-post:hover .home-post__media img { transform: scale(1.06); }

.home-post__body { padding: 18px 20px 22px; }

.home-post__title {
    color: var(--pab-ink);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-post__title:hover { color: var(--pab-gold-dark); text-decoration: none; }

@media (max-width: 991px) { .home-posts__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) {
    .home-posts { padding: 48px 0; }
    .home-posts__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Ad / partner rows + clients marquee framing
   -------------------------------------------------------------------------- */
.home-partners { padding: 24px 0 8px; }

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */
.home-newsletter { padding: 76px 0; }

.home-newsletter__card {
    background:
        radial-gradient(90% 140% at 0% 0%, rgba(223, 188, 102, 0.16) 0%, rgba(223, 188, 102, 0) 55%),
        linear-gradient(160deg, #211c15 0%, #15120d 100%);
    border: 1px solid rgba(223, 188, 102, 0.22);
    border-radius: 20px;
    color: #f6efdf;
    margin: 0 auto;
    max-width: 780px;
    padding: 56px 40px;
    text-align: center;
}

.home-newsletter__card h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    margin: 0 0 12px;
}

.home-newsletter__card p {
    color: rgba(246, 239, 223, 0.78);
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0 auto 28px;
    max-width: 520px;
}

.home-newsletter__form {
    display: flex;
    gap: 10px;
    margin: 0 auto;
    max-width: 480px;
}

.home-newsletter__form input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(223, 188, 102, 0.35);
    border-radius: var(--pab-radius-sm);
    color: #fff;
    flex: 1;
    font-size: 1rem;
    outline: none;
    padding: 14px 16px;
}

.home-newsletter__form input::placeholder { color: rgba(246, 239, 223, 0.5); }
.home-newsletter__form input:focus { border-color: var(--pab-gold-soft); }

.home-newsletter__note { color: rgba(246, 239, 223, 0.6) !important; font-size: 0.85rem; margin-top: 14px; }

@media (max-width: 575px) {
    .home-newsletter { padding: 48px 0; }
    .home-newsletter__card { padding: 40px 22px; }
    .home-newsletter__form { flex-direction: column; }
}
