/* ─────────────────────────────────────────────────────────
   home.css — Boya Linen homepage stylesheet
   Loaded by templates/index.html in {% block extra_head %}.

   All selectors namespaced `.home-*` so they don't conflict
   with style.css used on /services, /pressing, /broderie, etc.

   Brand tokens are declared in style.css :root and inherited
   here (--navy, --accent, --accent-light, --mist, --white).
   ───────────────────────────────────────────────────────── */

/* ── Hero (rich, full-bleed) ── */
/* Image / mask / glow / top-shade parameters mirror the original
   .hero-* rules in style.css verbatim — so the hero photo on the
   homepage renders identically to /services, /pressing, /broderie. */
.home-hero {
    position: relative;
    min-height: calc(100vh - 50px);  /* leave room for the gold marquee below */
    display: flex; align-items: center;
    overflow: hidden;
    background: var(--navy);
    isolation: isolate;
}
.home-hero-bg {
    /* Verbatim mirror of .page-header-image (style.css L2603) — used by
       /services /pressing /broderie. cover + right 22% is the canonical
       image treatment across the site; don't deviate. */
    position: absolute; inset: 0;
    background-image: url('/static/images/hero.png');
    background-image: image-set(
        url('/static/images/hero.webp') type('image/webp'),
        url('/static/images/hero.png') type('image/png')
    );
    background-size: cover;
    background-position: right 22%;
    background-repeat: no-repeat;
    z-index: 0;
}
.home-hero-mask {
    position: absolute; inset: 0; z-index: 1;
    /* A SINGLE navy gradient scrim — verbatim mirror of .page-header-mask
       used on /services (Blanchisserie), /pressing, /broderie etc., so the
       homepage hero has exactly the same darkness as those pages.
       The hero previously looked too dark because a SECOND overlay
       (.home-hero-bg::after, in style.css) was stacked on top of this —
       that extra layer has been removed, leaving just this one. */
    background: linear-gradient(
        90deg,
        rgba(10, 22, 40, 0.96) 0%,
        rgba(10, 22, 40, 0.92) 22%,
        rgba(13, 31, 60, 0.70) 42%,
        rgba(13, 31, 60, 0.30) 60%,
        rgba(13, 31, 60, 0.05) 78%,
        rgba(13, 31, 60, 0.00) 100%
    );
}
.home-hero-top-shade {
    /* Disabled — .page-header--photo (services / pressing / broderie)
       does not use a top-shade, so the homepage doesn't either. Kept
       as a no-op so the existing <div> in index.html is harmless. */
    display: none;
}
.home-hero-glow {
    /* Verbatim mirror of .page-header-glow (style.css L791) —
       top-right circular gold wash. */
    position: absolute;
    top: -120px; right: -120px;
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(200,169,110,0.16) 0%, transparent 65%);
    z-index: 0;
    pointer-events: none;
}
.home-hero-content {
    position: relative; z-index: 3;
    padding: 0 5vw;
    max-width: 920px;
}
.home-hero-eyebrow {
    color: var(--accent);
    font-size: .78rem; font-weight: 600;
    letter-spacing: .30em; text-transform: uppercase;
    margin-bottom: 1.4rem;
}
.home-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: 500; line-height: 1.05;
    margin-bottom: 1.4rem;
    color: var(--white);
}
.home-hero-line { display: block; }
.home-hero h1 em { color: var(--accent-light); font-style: italic; }
.home-hero-divider {
    width: 64px; height: 2px; background: var(--accent);
    margin: 1.2rem 0 1.6rem;
}
.home-hero-sub {
    font-size: 1.05rem; line-height: 1.7;
    color: var(--mist);
    max-width: 600px;
    margin-bottom: 1.9rem;
}
.home-hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.home-hero-microtrust {
    margin-top: 1.7rem;
    display: flex; gap: 1.6rem; flex-wrap: wrap;
    font-size: .84rem; color: var(--mist);
}
.home-hero-microtrust span::before {
    content: "•"; color: var(--accent);
    margin-right: 6px; font-weight: 600;
}
.home-hero-microtrust a { color: var(--mist); text-decoration: none; }
.home-hero-microtrust a:hover { color: var(--accent); }

/* Bottom trust strip — 3 icon+title+sub triplets */
.home-hero-trust {
    position: absolute;
    left: 5vw; right: 5vw; bottom: 1.6rem;
    z-index: 3;
    display: flex;
    justify-content: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(200,169,110,0.22);
}
.home-hero-trust-item {
    display: flex; align-items: center; gap: .9rem;
}
.home-hero-trust-item svg {
    width: 28px; height: 28px;
    color: var(--accent);
    flex-shrink: 0;
}
.home-hero-trust-item .trust-title {
    display: block;
    color: var(--white);
    font-size: .94rem; font-weight: 500;
    margin-bottom: 1px;
}
.home-hero-trust-item .trust-sub {
    display: block;
    color: var(--mist);
    font-size: .78rem;
    letter-spacing: .02em;
}

/* ── Section title ── */
.home-section-eyebrow {
    color: var(--accent);
    font-size: .72rem; font-weight: 600;
    letter-spacing: .28em; text-transform: uppercase;
    margin-bottom: .8rem;
}
.home-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 500; line-height: 1.15;
    color: var(--navy);
    margin-bottom: 2.2rem;
}
.home-section-title em { color: var(--blue); font-style: italic; }

/* ── 4-service quadrant (the centrepiece below the hero) ── */
.home-services-wrap {
    padding: 4.5rem 5vw 3.5rem;
    background: var(--white);
}
.home-svc-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    min-height: 540px;
}
.home-svc-card {
    position: relative;
    background: var(--navy);
    color: var(--white);
    padding: 1.6rem 1.6rem 1.5rem;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    display: flex; flex-direction: column; justify-content: flex-end;
    transition: transform .35s ease, box-shadow .35s ease;
    border: 1px solid rgba(200,169,110,0.12);
}
.home-svc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(10,22,40,0.18);
}
.home-svc-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: .55;
    transition: opacity .35s ease, transform .8s ease;
}
.home-svc-card:hover .home-svc-img { opacity: .7; transform: scale(1.04); }
.home-svc-card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(10,22,40,0.05) 0%,
        rgba(10,22,40,0.85) 75%,
        rgba(10,22,40,0.95) 100%);
}
.home-svc-card > *:not(.home-svc-img) { position: relative; z-index: 2; }
.home-svc-label {
    font-size: .68rem; font-weight: 600;
    letter-spacing: .26em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .6rem;
}
.home-svc-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem; font-weight: 600;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: .5rem;
}
.home-svc-desc {
    font-size: .9rem; line-height: 1.55;
    color: var(--mist);
    margin-bottom: .9rem;
}
.home-svc-cta {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .76rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--accent-light);
}
.home-svc-cta::after { content: "→"; transition: transform .25s; }
.home-svc-card:hover .home-svc-cta::after { transform: translateX(4px); }

.home-svc-card.feature { grid-row: 1 / span 2; }
.home-svc-card.feature .home-svc-title { font-size: 2.2rem; }
.home-svc-card.feature .home-svc-desc { font-size: 1rem; max-width: 380px; }

/* ── Trust bar (slim, below services) ── */
.home-trust-bar {
    background: var(--navy);
    color: var(--mist);
    padding: 1.6rem 5vw;
    display: flex; justify-content: space-around; align-items: center;
    gap: 2rem; flex-wrap: wrap;
}
.home-trust-item {
    display: flex; align-items: baseline; gap: .55rem;
    font-size: .9rem;
}
.home-trust-item strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem; font-weight: 600;
    color: var(--accent);
    letter-spacing: .02em;
}

/* ── B2B band ── */
.home-b2b-band {
    background:
        linear-gradient(135deg, rgba(13,31,60,0.92) 0%, rgba(26,58,107,0.92) 100%),
        var(--deep);
    color: var(--white);
    padding: 4.5rem 5vw;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}
.home-b2b-band h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 500; line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--white);
}
.home-b2b-band h2 em { color: var(--accent-light); font-style: italic; }
.home-b2b-band p {
    color: var(--mist); line-height: 1.7;
    margin-bottom: 1.4rem; max-width: 540px;
}
.home-b2b-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.home-b2b-stat {
    background: rgba(200,169,110,0.08);
    border: 1px solid rgba(200,169,110,0.25);
    padding: 1.2rem;
    border-radius: 4px;
}
.home-b2b-stat strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem; font-weight: 600;
    color: var(--accent);
    margin-bottom: .2rem;
}
.home-b2b-stat span {
    font-size: .82rem; color: var(--mist);
    letter-spacing: .04em;
}

/* ── Broderie showcase ── */
.home-broderie-section {
    padding: 4.5rem 5vw 4rem;
    background: var(--white);
}
.home-broderie-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 2rem;
}
.home-broderie-head .right { text-align: right; }
.home-broderie-head .right p {
    font-size: .95rem; color: #5b5b5b; line-height: 1.7;
    margin-bottom: .9rem;
    max-width: 460px;
    margin-left: auto;
}
.btn-ghost-link {
    display: inline-block;
    color: var(--navy);
    font-size: .78rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 3px;
}
.btn-ghost-link:hover { color: var(--blue); }
.home-broderie-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
}
.home-broderie-hero {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 4px;
    background-size: cover; background-position: center;
    overflow: hidden;
}
.home-broderie-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(10,22,40,0.75) 100%);
}
.home-broderie-hero span {
    position: absolute; left: 1.4rem; bottom: 1.2rem;
    color: var(--white);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem; font-weight: 500;
    letter-spacing: .02em;
    z-index: 2;
}
.home-broderie-list {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
}
.home-broderie-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 0 1.2rem;
    background: #f6f1e9;
    border-left: 3px solid var(--accent);
    border-radius: 0 4px 4px 0;
}
.home-broderie-item .ico {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--accent);
    font-weight: 600;
    line-height: 1;
}
.home-broderie-item .body strong {
    display: block;
    font-size: .96rem; color: var(--navy);
    margin-bottom: 2px;
}
.home-broderie-item .body span {
    font-size: .82rem; color: #6b6b6b;
}

/* ── Boutique strip ── */
.home-boutique-section {
    padding: 4.5rem 5vw 4rem;
    background: #f3efe7;
}
.home-boutique-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 1rem; flex-wrap: wrap;
    margin-bottom: 2rem;
}
.home-boutique-head .home-section-title { margin-bottom: 0; }
.home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.home-product-card {
    background: var(--white);
    border: 1px solid rgba(10,22,40,0.06);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: transform .25s, box-shadow .25s;
    display: flex; flex-direction: column;
}
.home-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(10,22,40,0.08);
}
.home-product-img {
    aspect-ratio: 1/1;
    background: var(--mist);
    background-size: cover; background-position: center;
    position: relative;
}
.home-product-img.placeholder {
    background:
        linear-gradient(135deg, #efe6d3 0%, #ddd0b3 100%);
    display: flex; align-items: center; justify-content: center;
}
.home-product-img.placeholder::after {
    content: "BL";
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem; font-weight: 600;
    color: var(--accent);
    letter-spacing: .08em;
    opacity: .55;
}
.home-product-meta { padding: .9rem 1rem 1.1rem; }
.home-product-name {
    font-size: .92rem; font-weight: 500;
    color: var(--navy); margin-bottom: .25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.home-product-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem; color: var(--accent);
    font-weight: 600;
}
.home-product-price small {
    font-size: .7rem; color: #777;
    margin-left: 4px;
    font-family: 'DM Sans', sans-serif;
}
.home-boutique-empty {
    background: var(--white);
    border: 1px dashed rgba(10,22,40,0.15);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #6b6b6b;
    border-radius: 4px;
    font-size: .92rem;
}

/* ── Testimonials (compact, 2 cards) ── */
.home-testi-section {
    padding: 4rem 5vw;
    background: var(--white);
}
.home-testi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.home-testi-card {
    background: var(--white);
    border: 1px solid rgba(10,22,40,0.08);
    border-left: 3px solid var(--accent);
    padding: 1.6rem;
    border-radius: 0 4px 4px 0;
}
.home-testi-card .stars {
    color: var(--accent);
    letter-spacing: .15em;
    font-size: .82rem;
    margin-bottom: .7rem;
}
.home-testi-card .quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.05rem; line-height: 1.6;
    color: var(--navy);
    margin-bottom: 1rem;
}
.home-testi-author { display: flex; align-items: center; gap: .8rem; }
.home-testi-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--navy); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
}
.home-testi-meta strong {
    display: block;
    font-size: .9rem; color: var(--navy);
}
.home-testi-meta span {
    font-size: .78rem; color: #6b6b6b;
}

/* ── Final CTA band ── */
.home-final-cta {
    background: var(--navy);
    color: var(--white);
    padding: 4rem 5vw;
    text-align: center;
}
.home-final-cta .home-section-eyebrow {
    margin-bottom: .8rem;
}
.home-final-cta h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 500; line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--white);
}
.home-final-cta h2 em { color: var(--accent-light); font-style: italic; }
.home-final-cta p { color: var(--mist); margin-bottom: 1.6rem; }
.home-final-cta-actions {
    display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap;
}

/* ── Responsive image position (mirrors .page-header--photo media queries) ── */
@media (max-width: 1024px) {
    .home-hero-bg { background-position: 70% 22%; }
    /* Tablet scrim — mirrors .page-header-mask at this breakpoint. */
    .home-hero-mask {
        background: linear-gradient(
            90deg,
            rgba(10, 22, 40, 0.95) 0%,
            rgba(10, 22, 40, 0.85) 40%,
            rgba(13, 31, 60, 0.55) 70%,
            rgba(13, 31, 60, 0.25) 100%
        );
    }
}
@media (max-width: 768px) {
    .home-hero-bg { background-position: 75% 22%; }
    /* Mobile: vertical scrim so the photo reads as ambience behind the
       centred text — mirrors .page-header-mask at this breakpoint. */
    .home-hero-mask {
        background: linear-gradient(
            180deg,
            rgba(10, 22, 40, 0.55) 0%,
            rgba(10, 22, 40, 0.85) 45%,
            rgba(10, 22, 40, 0.95) 100%
        );
    }
}

/* ── Responsive ── */
@media (max-width: 920px) {
    /* Narrow screens: relax the hero height so wrapped content doesn't
       crash into the trust strip; marquee is still visible just below. */
    .home-hero { min-height: auto; padding: 5.5rem 5vw 11rem; }
    .home-hero-trust { gap: 1.6rem; bottom: 1.4rem; }
    .home-hero-trust-item { font-size: .85rem; }
    .home-svc-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        min-height: auto;
    }
    .home-svc-card.feature {
        grid-row: auto;
        grid-column: 1 / -1;
        min-height: 280px;
    }
    .home-b2b-band { grid-template-columns: 1fr; }
    .home-broderie-head { grid-template-columns: 1fr; }
    .home-broderie-head .right { text-align: left; }
    .home-broderie-head .right p { margin-left: 0; }
    .home-broderie-grid { grid-template-columns: 1fr; }
    .home-broderie-list { grid-template-rows: auto; }
    .home-broderie-item { padding: 1rem 1.2rem; }
    .home-product-grid { grid-template-columns: repeat(2, 1fr); }
    .home-testi-grid { grid-template-columns: 1fr; }
    .home-trust-bar { gap: 1.2rem; padding: 1.4rem 5vw; }
    .home-trust-item strong { font-size: 1.4rem; }
}

@media (max-width: 560px) {
    .home-hero { padding-bottom: 16rem; }
    .home-hero-trust {
        flex-direction: column;
        gap: 1rem;
        border-top: none;
    }
    .home-svc-grid { grid-template-columns: 1fr; }
    .home-svc-card { min-height: 220px; }
    .home-b2b-stats { grid-template-columns: 1fr; }
}

/* ── Location de linge service card placeholder ── */
.home-svc-img--linen {
    position: absolute; inset: 0;
    background:
        linear-gradient(135deg,
            rgba(200,169,110,0.30) 0%,
            rgba(10,22,40,0.70) 100%),
        repeating-linear-gradient(
            45deg,
            rgba(200,169,110,0.06) 0px,
            rgba(200,169,110,0.06) 1px,
            transparent 1px,
            transparent 12px
        );
    opacity: .9;
    transition: opacity .35s ease;
}
.home-svc-card--linen:hover .home-svc-img--linen { opacity: 1; }
.home-svc-card--linen .home-svc-label { color: #f0c96e; }

/* ── Location de linge homepage band ── */
.home-linen-band {
    background:
        linear-gradient(135deg, rgba(10,22,40,0.97) 0%, rgba(30,50,90,0.97) 100%),
        var(--navy);
    color: var(--white);
    padding: 5rem 5vw;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3.5rem;
    align-items: center;
    border-top: 1px solid rgba(200,169,110,0.15);
    border-bottom: 1px solid rgba(200,169,110,0.15);
}
.home-linen-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 500; line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--white);
}
.home-linen-title em { color: var(--accent-light); font-style: italic; }
.home-linen-desc {
    color: var(--mist);
    line-height: 1.7;
    font-size: .98rem;
    margin-bottom: 1.6rem;
    max-width: 520px;
}
.home-linen-items {
    list-style: none;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem .8rem;
}
.home-linen-items li {
    font-size: .88rem;
    color: var(--mist);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.home-linen-items li span { font-size: 1rem; flex-shrink: 0; }
.home-linen-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.home-linen-stat {
    background: rgba(200,169,110,0.08);
    border: 1px solid rgba(200,169,110,0.22);
    padding: 1.3rem 1.1rem;
    border-radius: 4px;
    text-align: center;
}
.home-linen-stat strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; font-weight: 600;
    color: var(--accent);
    margin-bottom: .2rem;
    line-height: 1;
}
.home-linen-stat span {
    font-size: .78rem;
    color: var(--mist);
    letter-spacing: .04em;
}

/* ── Linen band responsive ── */
@media (max-width: 920px) {
    .home-linen-band {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .home-linen-items { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .home-linen-stats { grid-template-columns: 1fr 1fr; }
}
