/* Home Redesign CSS — reference-inspired premium boutique layout for Ziyorate */

/* ============================================================
   HEADER FLOW — topbar + header sit in normal flow on the home
   page so nothing is hidden behind the shared fixed navbar.
   Higher-specificity selectors (`body .navbar`) guarantee these
   win over header.css regardless of stylesheet source order.
   Scoped to the homepage since this file only loads here.
   ============================================================ */
body { margin-top: 0; }

/* Sticky (not fixed): stays in flow — the announcement bar shows
   above it, and the header still pins to the top when scrolling. */
body .navbar {
    position: sticky;
    top: 0;
    background-color: rgba(251, 245, 241, 0.96);
}

/* Neutralise header.js's mobile hide/show transform so the sticky
   header never jumps or disappears unexpectedly. */
body .navbar.hide,
body .navbar.show {
    transform: none;
}

/* The announcement bar scrolls away naturally above the sticky nav. */
body .topbar {
    position: relative;
    z-index: 1;
}

/* ============================================================
   TOP ANNOUNCEMENT BAR
   ============================================================ */
.topbar {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    letter-spacing: 0.04em;
}

.topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-2) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.topbar-group {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.8);
}

.topbar-item i {
    color: var(--gold-400);
    font-size: 0.7rem;
}

.topbar-center {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold-400);
    font-weight: var(--font-medium);
}

.topbar-center a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 900px) {
    .topbar-group { display: none; }
    .topbar-inner { justify-content: center; }
}

/* ============================================================
   HERO — full-bleed editorial background image with copy overlaid
   on the left negative space. Premium boutique standard.
   ============================================================ */
.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    height: 88vh;
    min-height: 88vh;
    overflow: hidden;
    background-color: var(--cream-50);
    background-image: url("../images/hero.webp");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

/* Cream scrim on the left so the copy stays legible over the photo */
.home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        var(--cream-50) 0%,
        rgba(251, 245, 241, 0.9) 34%,
        rgba(251, 245, 241, 0.4) 56%,
        transparent 74%
    );
}

/* ---- Copy, overlaid on the left ---- */
.home-hero-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: 820px;
    padding: var(--space-16) clamp(var(--space-8), 5vw, var(--space-20));
    animation: heroReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--gold-700);
    margin-bottom: var(--space-6);
}

.hero-eyebrow .eyebrow-line {
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold-500), transparent);
}

.home-hero-title {
    font-family: var(--font-display);
    font-weight: var(--font-light);
    font-size: clamp(2.6rem, 4.6vw, 4.2rem);
    line-height: 1.06;
    color: var(--green-800);
    letter-spacing: -0.015em;
    margin-bottom: var(--space-6);
    text-wrap: balance;
}

.home-hero-title em {
    font-style: italic;
    font-weight: var(--font-regular);
    color: var(--gold-600);
}

.home-hero-desc {
    font-size: var(--text-lg);
    color: var(--neutral-600);
    line-height: 1.75;
    max-width: 40rem;
    margin: 0 0 var(--space-10);
    text-wrap: pretty;
}

/* CTA cluster: primary button + quiet text link */
.home-hero-actions {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    margin-bottom: var(--space-12);
}

.home-hero-actions .btn {
    padding: var(--space-4) var(--space-10);
    letter-spacing: 0.14em;
}

.hero-link-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-700);
}

.hero-link-cta i {
    font-size: 0.75em;
    transition: transform var(--transition-base);
}

.hero-link-cta:hover {
    color: var(--gold-700);
}

.hero-link-cta:hover i {
    transform: translateX(4px);
}

/* Social-proof rating */
.hero-trust {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding-top: var(--space-6);
    border-top: 1px solid var(--cream-300);
    width: 100%;
    max-width: 40rem;
}

.hero-trust .hero-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--gold-500);
    font-size: var(--text-sm);
}

.hero-trust .hero-rating-text {
    font-size: var(--text-sm);
    color: var(--neutral-500);
    letter-spacing: 0.01em;
}

.hero-trust .hero-rating-text strong {
    color: var(--neutral-700);
    font-weight: var(--font-semibold);
}

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .home-hero {
        height: auto;
        min-height: 88vh;
        /* Keep the model in frame while giving the copy a readable field */
        background-position: 72% center;
    }
    .home-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(251, 245, 241, 0.92) 0%,
            rgba(251, 245, 241, 0.6) 45%,
            rgba(251, 245, 241, 0.8) 100%
        );
    }
    .home-hero-text {
        align-items: center;
        text-align: center;
        max-width: 620px;
        margin: 0 auto;
        padding: var(--space-16) var(--space-6);
    }
    .home-hero-desc { margin-left: auto; margin-right: auto; }
    .home-hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; margin-left: auto; margin-right: auto; }
}

@media (max-width: 480px) {
    .home-hero-actions { flex-direction: column; gap: var(--space-4); width: 100%; }
    .home-hero-actions .btn { width: 100%; max-width: 320px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .home-hero-text {
        animation: none;
    }
}

/* ============================================================
   SCROLL FILM — the clip pins under the hero and scrubs frame by
   frame as you scroll, then releases into the collections mosaic.
   ============================================================ */
.scroll-film {
    position: relative;
    --stage-h: 100vh;
    /* Scroll runway. More stage-heights = the clip plays slower per pixel. */
    height: calc(var(--stage-h) * 3);
    background: var(--green-900);
}

.scroll-film-stage {
    position: sticky;
    top: 0;
    height: var(--stage-h);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-film-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Nudged up so the edges never show while a seek settles */
    transform: scale(1.04);
}

/* Feathers the clip into the cream hero above and the mosaic below,
   with a soft vignette to hold the caption legible over the centre */
.scroll-film-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg,
            var(--cream-50) 0%,
            rgba(251, 245, 241, 0.45) 9%,
            transparent 22%,
            transparent 78%,
            rgba(251, 245, 241, 0.45) 91%,
            var(--cream-50) 100%),
        /* Pool of shade behind the caption — the clip runs bright and the
           copy has to hold against skin tones and lit silk */
        radial-gradient(48% 26% at 50% 45%, rgba(36, 27, 23, 0.62) 0%, transparent 72%),
        radial-gradient(115% 78% at 50% 48%, transparent 38%, rgba(36, 27, 23, 0.5) 100%);
}

.scroll-film-copy {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 760px;
    padding: 0 var(--space-6);
    text-align: center;
}

/* Lines stack in the same cell and cross-fade as the scrub advances */
.film-line {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(18px);
    will-change: opacity, transform;
}

.film-line .eyebrow-text {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: var(--space-5);
}

.film-line h2 {
    font-family: var(--font-display);
    font-weight: var(--font-light);
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    line-height: 1.14;
    color: var(--cream-50);
    margin: 0;
    text-shadow: 0 2px 30px rgba(36, 27, 23, 0.55);
}

.film-line h2 em {
    font-style: italic;
    color: var(--gold-400);
}

/* Hairline scrub indicator along the bottom of the stage */
.scroll-film-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 2px;
    background: rgba(36, 27, 23, 0.12);
}

.scroll-film-progress span {
    display: block;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
}

/* Touch devices seek far too coarsely to scrub — play the clip in place */
@media (max-width: 768px) {
    .scroll-film { height: auto; }
    .scroll-film-stage {
        position: relative;
        height: 68vh;
        min-height: 420px;
    }
    .film-line { opacity: 1; transform: none; }
    .film-line + .film-line { display: none; }
    .scroll-film-progress { display: none; }
}

/* No scrubbing, no autoplay — the poster frame carries the section */
@media (prefers-reduced-motion: reduce) {
    .scroll-film { height: auto; }
    .scroll-film-stage {
        position: relative;
        height: 70vh;
        min-height: 420px;
    }
    .film-line { opacity: 1; transform: none; }
    .film-line + .film-line { display: none; }
    .scroll-film-progress { display: none; }
}

/* ============================================================
   SECTION HEADINGS (shared, elegant centered)
   ============================================================ */
.home-section {
    padding: var(--space-24) 0;
}

/* Match the widened category mosaic: homepage sections breathe wider than
   the site-default 1200px container, with the same side padding as the
   mosaic so edges align exactly. (This file only loads on the homepage.) */
.home-section .container,
.newsletter .container {
    max-width: 1720px;
    padding-left: var(--space-10);
    padding-right: var(--space-10);
}

@media (max-width: 860px) {
    .home-section .container,
    .newsletter .container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

@media (max-width: 520px) {
    .home-section .container,
    .newsletter .container {
        padding-left: var(--space-5);
        padding-right: var(--space-5);
    }
}

.home-section.tight { padding: var(--space-16) 0; }

.home-heading {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-16);
}

.home-heading .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: var(--gold-700);
    margin-bottom: var(--space-4);
}

.home-heading .eyebrow::before,
.home-heading .eyebrow::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--gold-500);
    opacity: 0.7;
}

.home-heading h2 {
    font-family: var(--font-display);
    font-weight: var(--font-light);
    font-size: clamp(2rem, 3.6vw, 3rem);
    color: var(--green-800);
    letter-spacing: -0.01em;
    margin: 0 0 var(--space-4);
}

.home-heading p {
    color: var(--neutral-600);
    font-size: var(--text-lg);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   CATEGORY MOSAIC
   ============================================================ */
/* Editorial mosaic (reference-style): bare images, tight gaps, and a small
   white "Shop …" chip near the bottom of each tile. */
.category-mosaic {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1.1fr;
    grid-template-rows: repeat(2, minmax(290px, 38vh));
    gap: var(--space-3);
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 var(--space-10);
}

/* Tall sides, wide top-centre, two squares below */
.cat-tile:nth-child(1) { grid-column: 1;     grid-row: 1 / 3; }
.cat-tile:nth-child(2) { grid-column: 2 / 4; grid-row: 1;     }
.cat-tile:nth-child(3) { grid-column: 2;     grid-row: 2;     }
.cat-tile:nth-child(4) { grid-column: 3;     grid-row: 2;     }
.cat-tile:nth-child(5) { grid-column: 4;     grid-row: 1 / 3; }

.cat-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--cream-100);
}

.cat-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Product sits low in these portrait shots — bias the crop downward so
       the jewelry (not just the backdrop) stays in frame. */
    object-position: center 62%;
    transition: transform 1.1s var(--transition-luxury);
}

/* The tall feature tile uses a model portrait — keep the face/jewelry up top */
.cat-tile:nth-child(1) img { object-position: center 32%; }

.cat-tile:hover img { transform: scale(1.04); }

/* Small white "Shop …" chip, centred near the bottom */
.cat-shop-label {
    position: absolute;
    left: 50%;
    bottom: var(--space-5);
    transform: translateX(-50%);
    z-index: 2;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--green-800);
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(74, 56, 47, 0.14);
    transition: background var(--transition-base), color var(--transition-base);
}

.cat-tile:hover .cat-shop-label {
    background: var(--green-800);
    color: var(--white);
}

@media (max-width: 860px) {
    .category-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
        grid-auto-rows: minmax(260px, auto);
        gap: var(--space-3);
        padding: 0 var(--space-6);
    }
    /* Feature tile spans the full width on top, the rest form a 2x2 */
    .cat-tile:nth-child(n) { grid-column: auto; grid-row: auto; }
    .cat-tile:nth-child(1) { grid-column: 1 / 3; }
}

@media (max-width: 520px) {
    .category-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(260px, auto);
        gap: var(--space-3);
        padding: 0 var(--space-5);
    }
    .cat-tile:nth-child(1) { grid-column: auto; }
}

/* ============================================================
   REEL VIDEOS — dark strip of rounded vertical clips
   ============================================================ */
.reels-section {
    background: var(--green-900);
    padding: var(--space-20) 0 var(--space-24);
    overflow: hidden;
}

.reels-heading .eyebrow { color: var(--gold-400); }
.reels-heading .eyebrow::before,
.reels-heading .eyebrow::after { background: var(--gold-500); }
.reels-heading h2 { color: var(--cream-50); }
.reels-heading p { color: rgba(251, 245, 241, 0.7); }
.reels-heading { margin-bottom: var(--space-12); }

.reels-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-5);
    padding: 0 var(--space-10);
}

.reel-card {
    flex: 0 0 auto;
    width: clamp(160px, 15vw, 250px);
    aspect-ratio: 9 / 16;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    background: var(--green-800);
    box-shadow: 0 18px 45px rgba(36, 27, 23, 0.5);
    transition: transform var(--transition-luxury);
}

/* Gentle stagger, like the reference: alternate cards sit lower */
.reel-card:nth-child(even) { transform: translateY(var(--space-6)); }

.reel-card:hover { transform: translateY(-4px) scale(1.02); z-index: 2; }
.reel-card:nth-child(even):hover { transform: translateY(calc(var(--space-6) - 4px)) scale(1.02); }

.reel-card video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile: swipeable strip */
@media (max-width: 768px) {
    .reels-strip {
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 var(--space-5) var(--space-8);
    }
    .reel-card {
        width: 62vw;
        scroll-snap-align: center;
    }
    .reel-card:nth-child(even) { transform: none; }
}

/* ============================================================
   PROMO BANNER — full-width image strip after the mosaic
   ============================================================ */
.home-banner {
    width: 100%;
    margin: 0;
    padding: 0;
}

.home-banner a {
    display: block;
    overflow: hidden;
}

.home-banner img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 1.2s var(--transition-luxury);
}

.home-banner a:hover img {
    transform: scale(1.015);
}

/* ============================================================
   TABBED FEATURE SECTION
   ============================================================ */
.feature-section {
    background: var(--cream-100);
    position: relative;
    overflow: hidden;
}

.feature-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-10);
    margin-bottom: var(--space-16);
    flex-wrap: wrap;
}

.feature-tab {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--neutral-500);
    padding: var(--space-2) 0;
    position: relative;
    transition: color var(--transition-base);
}

.feature-tab::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 1px;
    width: 0;
    background: var(--green-700);
    transition: width var(--transition-luxury);
}

.feature-tab.active {
    color: var(--green-800);
}

.feature-tab.active::after { width: 100%; }

.feature-panels {
    max-width: none;
    margin: 0 auto;
}

.feature-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.feature-panel.active {
    display: grid;
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-panel .feature-text h3 {
    font-family: var(--font-display);
    font-weight: var(--font-light);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    color: var(--green-800);
    margin-bottom: var(--space-5);
}

.feature-panel .feature-text p {
    color: var(--neutral-600);
    line-height: 1.8;
    margin-bottom: var(--space-8);
}

.feature-panel .feature-media {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-luxury);
}

.feature-panel .feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 820px) {
    .feature-panel.active { grid-template-columns: 1fr; gap: var(--space-8); }
    .feature-panel .feature-media { max-width: 420px; margin: 0 auto; }
    .feature-tabs { gap: var(--space-6); }
}

/* ============================================================
   PRODUCT ROW — reuse existing .product-card grid, refine spacing
   ============================================================ */
.everyday-elegance .products-grid {
    max-width: none;
    margin: 0 auto;
}

/* ============================================================
   FOOTER — multi-column (brand + link columns), refined
   ============================================================ */
.site-footer {
    background: var(--cream-50);
    border-top: 1px solid var(--neutral-200);
    padding: var(--space-20) var(--space-6) var(--space-8);
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.sf-top {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: var(--space-16);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--neutral-200);
}

.sf-logo img {
    height: 44px;
    width: auto;
    display: block;
    margin-bottom: var(--space-5);
}

.sf-tagline {
    color: var(--neutral-600);
    line-height: 1.8;
    max-width: 26rem;
    margin: 0 0 var(--space-6);
}

.sf-ig {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--neutral-700);
    transition: color var(--transition-base);
}

.sf-ig i { color: var(--gold-600); font-size: var(--text-lg); }
.sf-ig:hover { color: var(--gold-700); }

.sf-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.sf-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.sf-col h4 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    color: var(--green-800);
    margin: 0 0 var(--space-2);
}

.sf-col a,
.sf-contact {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--neutral-600);
    transition: color var(--transition-base);
}

.sf-col a:hover { color: var(--gold-700); }
.sf-col i { color: var(--gold-600); width: 14px; text-align: center; }

.sf-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding-top: var(--space-6);
    font-size: var(--text-sm);
    color: var(--neutral-500);
}

.sf-legal { display: flex; gap: var(--space-5); }
.sf-legal a { color: var(--neutral-500); transition: color var(--transition-base); }
.sf-legal a:hover { color: var(--gold-700); }

@media (max-width: 820px) {
    .sf-top { grid-template-columns: 1fr; gap: var(--space-10); }
}

@media (max-width: 520px) {
    .sf-cols { grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-6); }
    .sf-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   SCROLL REVEAL — sections/cards fade + rise as they enter view.
   The .reveal class is added by JS, so with JS off everything
   stays visible. Disabled under prefers-reduced-motion.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition:
            opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: opacity, transform;
    }
    .reveal.in-view {
        opacity: 1;
        transform: none;
    }
}
