/* ============================================================
   Stone Harbor Homes - Design System
   -----------------------------------------------------------
   Tokens, base styles, and components used across every page.
   Edit this file once, it propagates everywhere.
   ============================================================ */

/* ---- Fonts ------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* ---- Tokens ------------------------------------------------ */
:root {
    /* Backgrounds */
    --color-bg-cream: #F8F4F1;
    --color-bg-white: #FFFFFF;
    --color-bg-dark: #102902;
    --color-bg-dark-accent: #0b1c02;
    --color-bg-gold: #EFCC90;
    --color-bg-muted: #F1ECE6;

    /* Text */
    --color-text-primary: #1A1A1A;
    --color-text-secondary: #4A5B50;
    --color-text-muted: #7A8882;
    --color-text-inverse: #FFFFFF;
    --color-text-on-gold: #1A1A1A;

    /* Brand / accents */
    --color-brand-green: #102902;
    --color-brand-green-soft: #2D4A32;
    --color-brand-gold: #EFCC90;
    --color-brand-gold-soft: #F5DEB3;

    /* Borders + surfaces */
    --color-border-subtle: rgba(16, 41, 2, 0.08);
    --color-border-strong: rgba(16, 41, 2, 0.18);

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(16, 41, 2, 0.06);
    --shadow-card-hover: 0 8px 32px rgba(16, 41, 2, 0.10);
    --shadow-elevated: 0 12px 40px rgba(16, 41, 2, 0.12);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Type scale */
    --fs-hero: 72px;
    --fs-display: 56px;
    --fs-section: 44px;
    --fs-h1: 48px;
    --fs-h2: 40px;
    --fs-h3: 24px;
    --fs-h4: 18px;
    --fs-body-lg: 18px;
    --fs-body: 17px;
    --fs-body-sm: 15px;
    --fs-caption: 13px;

    --lh-display: 1.08;
    --lh-heading: 1.2;
    --lh-body: 1.65;
    --lh-tight: 1.3;

    /* Spacing (8px base) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;
    --space-8: 96px;
    --space-9: 128px;

    /* Section padding */
    --section-py: 128px;
    --section-py-tight: 96px;

    /* Layout */
    --container-wide: 1240px;
    --container: 1140px;
    --container-narrow: 880px;
    --container-text: 680px;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-pill: 999px;
}

/* ---- Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--color-text-primary);
    background: var(--color-bg-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--lh-heading);
    margin: 0 0 var(--space-4);
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

.display {
    font-family: var(--font-heading);
    font-size: var(--fs-display);
    line-height: var(--lh-display);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 var(--space-5);
}

.eyebrow {
    font-family: var(--font-body);
    font-size: var(--fs-caption);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-brand-green-soft);
    margin: 0 0 var(--space-3);
}

.lead {
    font-size: var(--fs-body-lg);
    line-height: var(--lh-body);
    color: var(--color-text-secondary);
}

/* ---- Layout ------------------------------------------------ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--space-5); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-5); }
.container-text { max-width: var(--container-text); margin: 0 auto; padding: 0 var(--space-5); }

.section {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

.section--tight {
    padding-top: var(--section-py-tight);
    padding-bottom: var(--section-py-tight);
}

.section--cream { background: var(--color-bg-cream); }
.section--white { background: var(--color-bg-white); }
.section--dark { background: var(--color-bg-dark); color: var(--color-text-inverse); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--color-text-inverse); }
.section--dark .eyebrow { color: var(--color-brand-gold); }
.section--gold { background: var(--color-bg-gold); }
.section--muted { background: var(--color-bg-muted); }

/* Section divider: short gold rule used to mark a section break when two
   adjacent sections share a background color. Placed at the top of the
   second section, before the eyebrow. Pair with .section--rule-top on
   that section and .section--rule-bottom on the previous section to
   keep the abutting padding tight (the divider IS the visual break, so
   the usual full section padding is too much). */
.section-divider {
    width: 64px;
    height: 1px;
    background: var(--color-brand-gold);
    border: 0;
    margin: 0 auto var(--space-6);
}

.section--rule-top { padding-top: var(--space-6); }
.section--rule-bottom { padding-bottom: var(--space-6); }

.grid {
    display: grid;
    gap: var(--space-5);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    :root {
        --section-py: 80px;
        --section-py-tight: 64px;
        --fs-hero: 44px;
        --fs-display: 40px;
        --fs-section: 32px;
        --fs-h1: 36px;
        --fs-h2: 30px;
        --fs-h3: 22px;
    }
}

/* ---- Buttons ----------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-brand-green);
    color: var(--color-text-inverse);
    border-color: var(--color-brand-green);
}
.btn--primary:hover {
    background: var(--color-brand-green-soft);
    border-color: var(--color-brand-green-soft);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card-hover);
}

.btn--secondary {
    background: transparent;
    color: var(--color-brand-green);
    border-color: var(--color-brand-green);
}
.btn--secondary:hover {
    background: var(--color-brand-green);
    color: var(--color-text-inverse);
}

.btn--on-dark {
    background: var(--color-text-inverse);
    color: var(--color-brand-green);
    border-color: var(--color-text-inverse);
}
.btn--on-dark:hover {
    background: var(--color-brand-gold);
    color: var(--color-brand-green);
    border-color: var(--color-brand-gold);
}

.btn--ghost-on-dark {
    background: transparent;
    color: var(--color-text-inverse);
    border-color: rgba(255,255,255,0.5);
}
.btn--ghost-on-dark:hover {
    border-color: var(--color-text-inverse);
    background: rgba(255,255,255,0.08);
}

.btn--link {
    background: transparent;
    color: var(--color-brand-green);
    border: none;
    padding: var(--space-2) 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: var(--fs-caption);
    font-weight: 600;
    position: relative;
}
.btn--link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transform-origin: left;
    transition: transform 0.25s ease;
}
.btn--link:hover::after { transform: scaleX(1.1); }

.btn--lg { font-size: 16px; padding: 18px 36px; }

/* ---- Cards ------------------------------------------------- */
.card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-bg-muted);
}
.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .card__media img { transform: scale(1.03); }

.card__body {
    padding: var(--space-5);
}
.card__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: 700;
    margin: 0 0 var(--space-2);
}
.card__text {
    color: var(--color-text-secondary);
    font-size: var(--fs-body-sm);
    line-height: var(--lh-body);
}

.card--accent-top { border-top: 3px solid var(--color-brand-gold); }
.card--outline {
    box-shadow: none;
    border: 1px solid var(--color-border-subtle);
}
.card--flat {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

/* ---- Feature row (icon + title + text) --------------------- */
.feature {
    text-align: center;
    padding: var(--space-5);
}
.feature__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    color: var(--color-brand-green);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature__icon svg { width: 100%; height: 100%; }
.feature__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: 700;
    margin: 0 0 var(--space-2);
}
.feature__text {
    color: var(--color-text-secondary);
    font-size: var(--fs-body);
    max-width: 320px;
    margin: 0 auto;
}

/* ---- Stat ------------------------------------------------- */
.stat {
    text-align: center;
    padding: var(--space-5);
}
.stat__number {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    color: var(--color-brand-green);
    margin: 0 0 var(--space-2);
}
.stat__label {
    font-size: var(--fs-body-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* ---- Form primitives -------------------------------------- */
.form-group { margin-bottom: var(--space-4); }
.form-label {
    display: block;
    font-size: var(--fs-caption);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}
.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--color-text-primary);
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-brand-green);
    box-shadow: 0 0 0 3px rgba(16, 41, 2, 0.08);
}
.form-textarea { min-height: 140px; resize: vertical; }

/* ---- Header ------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 244, 241, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-subtle);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    max-width: var(--container-wide);
    margin: 0 auto;
    gap: var(--space-6);
}
.site-header__logo {
    display: inline-flex;
    align-items: center;
}
.site-header__logo img {
    display: block;
    height: 48px;
    width: auto;
}
@media (max-width: 640px) {
    .site-header__logo img { height: 38px; }
}
.site-nav { display: flex; align-items: center; gap: var(--space-5); }
.site-nav a {
    font-size: var(--fs-body-sm);
    font-weight: 500;
    color: var(--color-text-primary);
    letter-spacing: 0.02em;
}
.site-nav a:hover { color: var(--color-brand-green); }
/* Let button variants win over the generic nav-link color rule */
.site-nav a.btn--primary { color: var(--color-text-inverse); }
.site-nav a.btn--primary:hover { color: var(--color-text-inverse); }
.site-nav a.btn--secondary { color: var(--color-brand-green); }
.site-nav a.btn--secondary:hover { color: var(--color-text-inverse); }

/* ---- Dropdown nav (Inspiration) ---------------------------- */
.site-nav__item {
    position: relative;
}
.site-nav__trigger {
    font-size: var(--fs-body-sm);
    font-weight: 500;
    color: var(--color-text-primary);
    letter-spacing: 0.02em;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-body);
}
.site-nav__trigger::after {
    content: '';
    width: 7px; height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 2px;
    transition: transform 0.2s ease;
    display: inline-block;
}
.site-nav__trigger:hover { color: var(--color-brand-green); }
.site-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-subtle);
    padding: var(--space-3) 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 60;
}
.site-nav__item:hover .site-nav__dropdown,
.site-nav__item:focus-within .site-nav__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.site-nav__item:hover .site-nav__trigger::after,
.site-nav__item:focus-within .site-nav__trigger::after {
    transform: rotate(225deg) translateY(0) translateX(2px);
}
.site-nav__dropdown a {
    display: block;
    padding: 8px 22px;
    font-size: var(--fs-body-sm);
    color: var(--color-text-primary);
    white-space: nowrap;
}
.site-nav__dropdown a:hover {
    color: var(--color-brand-green);
    background: var(--color-bg-warm);
}

/* ---- Inspiration pages (category + hub) -------------------- */
.insp-hero {
    position: relative;
    min-height: 442px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: var(--color-text-inverse);
    padding: var(--space-9) var(--space-5) var(--space-7);
}
.insp-hero__bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ---- Hero photo treatment ----------------------------------
   The dark-green overlay on every hero (.insp-hero, .hero, .detail-hero)
   mixed muddy with full-color photos — green-on-green and green-on-blue
   went sludgy. Full grayscale lets the green wash read as an intentional
   tint instead of a color collision.
   ----------------------------------------------------------- */
.insp-hero__bg,
.hero__bg,
.detail-hero__bg {
    filter: grayscale(1);
}
.insp-hero__overlay {
    position: absolute; inset: 0;
    /* 10% opacity from top through 1/3 down (so the top 2/3 of the photo
       reads cleanly), then ramp to 90% opacity at the bottom where the
       heading sits. */
    background: linear-gradient(180deg, rgba(16,41,2,0.25) 0%, rgba(16,41,2,0.25) 33%, rgba(16,41,2,0.95) 100%);
    z-index: 1;
}
.insp-hero__inner {
    position: relative;
    z-index: 2;
    max-width: var(--container-wide);
    margin: 0 auto;
    width: 100%;
}
.insp-hero .eyebrow {
    color: var(--color-brand-gold);
    margin-bottom: var(--space-3);
}
.insp-hero h1 {
    color: var(--color-text-inverse);
    font-size: var(--fs-hero);
    line-height: 1.05;
    margin: 0 0 var(--space-3);
    max-width: 780px;
}
.insp-hero__lead {
    color: rgba(255,255,255,0.9);
    font-size: 19px;
    line-height: 1.55;
    max-width: 620px;
    margin: 0;
}

.insp-gallery {
    padding: var(--space-8) var(--space-5);
    background: var(--color-bg-white);
}
.insp-gallery__inner {
    max-width: var(--container-wide);
    margin: 0 auto;
}
.insp-gallery__head {
    text-align: center;
    margin-bottom: var(--space-6);
}
.insp-gallery__head h2 {
    font-size: var(--fs-section);
    margin: 0 0 var(--space-3);
}
.insp-gallery__head p {
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto;
    font-size: 17px;
}

.insp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    grid-auto-flow: dense;
    grid-auto-rows: 1fr;
}
.insp-grid__tile {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-bg-warm);
    box-shadow: var(--shadow-sm);
    cursor: zoom-in;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.insp-grid__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.insp-grid__tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.insp-grid__tile:hover img { transform: scale(1.04); }
.insp-grid__tile--feature {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

/* Cross-link strip: 8 category thumbs */
.insp-cross {
    padding: var(--space-8) var(--space-5);
    background: var(--color-bg-warm);
}
.insp-cross__inner {
    max-width: var(--container-wide);
    margin: 0 auto;
}
.insp-cross__head {
    text-align: center;
    margin-bottom: var(--space-6);
}
.insp-cross__head .eyebrow {
    color: var(--color-brand-green);
    margin-bottom: var(--space-3);
}
.insp-cross__head h2 {
    font-size: var(--fs-section);
    margin: 0;
}
.insp-cross__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.insp-cross__tile {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    display: block;
    color: var(--color-text-inverse);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.insp-cross__tile img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease;
}
.insp-cross__tile::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(16,41,2,0.08) 0%, rgba(16,41,2,0.72) 92%);
    z-index: 1;
    transition: background 0.3s ease;
}
.insp-cross__tile span {
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-text-inverse);
}
.insp-cross__tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.insp-cross__tile:hover img { transform: scale(1.06); }
.insp-cross__tile:hover::after { background: linear-gradient(180deg, rgba(16,41,2,0.08) 0%, rgba(16,41,2,0.85) 92%); }
.insp-cross__tile--current {
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
}

/* Hub page: bigger tiles, 4x2 */
.insp-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.insp-hub-grid .insp-cross__tile {
    aspect-ratio: 3 / 4;
}
.insp-hub-grid .insp-cross__tile span {
    font-size: 26px;
}

@media (max-width: 960px) {
    .insp-grid { grid-template-columns: repeat(2, 1fr); }
    .insp-grid__tile--feature { grid-column: span 2; grid-row: span 2; }
    .insp-cross__grid,
    .insp-hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .insp-grid { grid-template-columns: 1fr; }
    .insp-grid__tile,
    .insp-grid__tile--feature { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
    .insp-cross__grid,
    .insp-hub-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .insp-hero h1 { font-size: 42px; }
}

/* ---- Footer ------------------------------------------------ */
.site-footer {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
    padding: var(--space-8) 0 var(--space-5);
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-7);
    margin-bottom: var(--space-7);
}
.site-footer h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-brand-gold);
    margin: 0 0 var(--space-4);
}
.site-footer a {
    color: rgba(255,255,255,0.8);
    font-size: var(--fs-body-sm);
    display: block;
    padding: 6px 0;
}
.site-footer a:hover { color: var(--color-brand-gold); }
/* Let button variants keep their own color + layout inside the footer */
.site-footer a.btn {
    display: inline-flex;
    padding: 14px 28px;
    font-size: 15px;
}
.site-footer a.btn--on-dark { color: var(--color-brand-green); }
.site-footer a.btn--on-dark:hover { color: var(--color-brand-green); }
.site-footer a.btn--ghost-on-dark { color: var(--color-text-inverse); }
.site-footer a.btn--ghost-on-dark:hover { color: var(--color-text-inverse); }
.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-4);
    font-size: var(--fs-caption);
    color: rgba(255,255,255,0.5);
    text-align: center;
}
.site-footer__bottom a {
    display: inline;
    padding: 0;
    color: rgba(255,255,255,0.6);
}
.site-footer__bottom a:hover {
    color: var(--color-brand-gold);
}
.site-footer__legal {
    margin-top: 6px;
}

@media (max-width: 720px) {
    .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
    .site-nav { display: none; }
}

/* ========= Mobile nav (auto-injected by js/site.js) ========= */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 10px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-brand-green);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-nav-toggle--open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle--open span:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle--open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-drawer {
    position: fixed;
    inset: 0;
    background: var(--color-bg-cream);
    z-index: 1100;
    padding: 80px var(--space-5) var(--space-5);
    display: none;
    flex-direction: column;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.mobile-nav-drawer--open {
    display: flex;
    opacity: 1;
}
.mobile-nav-drawer__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    color: var(--color-brand-green);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.mobile-nav-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}
.mobile-nav-drawer__nav a {
    display: block;
    padding: 14px 8px;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-brand-green);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border-subtle);
}
.mobile-nav-drawer__nav a:hover,
.mobile-nav-drawer__nav a:focus-visible {
    color: var(--color-brand-green-soft);
    outline: none;
}
.mobile-nav-drawer__nav a.btn--primary {
    margin-top: var(--space-4);
    text-align: center;
    background: var(--color-brand-green);
    color: var(--color-text-inverse);
    border-bottom: 0;
    border-radius: var(--radius-md);
    padding: 14px 24px;
}
.mobile-nav-drawer__nav a.btn--primary:hover {
    background: var(--color-brand-green-soft);
    color: var(--color-text-inverse);
}
.mobile-nav-drawer__group-label {
    display: block;
    padding: 14px 8px 8px;
    margin-top: var(--space-3);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border-subtle);
}
.mobile-nav-drawer__sublink {
    padding-left: 16px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

@media (max-width: 720px) {
    .mobile-nav-toggle { display: flex; }
}
@media (min-width: 721px) {
    .mobile-nav-drawer { display: none !important; }
}

/* ---- Utility ---------------------------------------------- */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }
.row { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.row--center { justify-content: center; align-items: center; }

/* ========= Lightbox =========
   Used on inspiration pages. Click any .insp-grid__tile img to open.
   Backdrop click, X button, or ESC to close.
   Markup + script are added to each inspiration page; logic in js/lightbox.js. */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 6, 0.93);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
    padding: 32px;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.lightbox--open {
    display: flex;
    opacity: 1;
}
.lightbox__img {
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: default;
}
.lightbox__caption {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    margin: 16px 0 0;
    text-align: center;
    max-width: 600px;
    cursor: default;
}
.lightbox__close {
    position: absolute;
    top: 20px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    color: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}
.lightbox__close:hover,
.lightbox__close:focus-visible {
    opacity: 1;
    outline: none;
}
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.35);
    border: 0;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.85;
    transition: opacity 0.2s ease, background 0.2s ease;
}
.lightbox__nav:hover,
.lightbox__nav:focus-visible {
    opacity: 1;
    background: rgba(0, 0, 0, 0.55);
    outline: none;
}
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

@media (max-width: 640px) {
    .lightbox { padding: 16px; }
    .lightbox__img { max-height: 75vh; }
    .lightbox__close { top: 12px; right: 12px; }
    .lightbox__nav { width: 44px; height: 44px; }
    .lightbox__nav--prev { left: 8px; }
    .lightbox__nav--next { right: 8px; }
}
