/* ============================================
   White House Black Market — Branson
   Bold Editorial Style
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-emerald-50:  #ecfdf5;
    --color-emerald-100: #d1fae5;
    --color-emerald-200: #a7f3d0;
    --color-emerald-500: #10b981;
    --color-emerald-600: #059669;
    --color-emerald-700: #047857;
    --color-emerald-800: #065f46;
    --color-emerald-900: #064e3b;
    --color-emerald-950: #022c22;

    --color-cream-50:   #fefdf8;
    --color-cream-100:  #fdf9ee;
    --color-cream-200:  #faf0d4;
    --color-cream-300:  #f5e1b0;
    --color-cream-400:  #e8c77a;

    --color-charcoal:    #1a1a1a;
    --color-dark:        #2d2d2d;
    --color-mid:         #555555;
    --color-light:       #888888;
    --color-pale:        #c4c4c4;
    --color-white:       #ffffff;

    --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --space-xs:    0.25rem;
    --space-sm:    0.5rem;
    --space-md:    1rem;
    --space-lg:    1.5rem;
    --space-xl:    2rem;
    --space-2xl:   3rem;
    --space-3xl:   4rem;
    --space-4xl:   6rem;

    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   16px;
    --radius-xl:   24px;

    --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:   0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg:   0 12px 40px rgba(0,0,0,0.14);
    --shadow-xl:   0 20px 60px rgba(0,0,0,0.18);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-cream-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav__logo-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-charcoal);
    letter-spacing: 0.01em;
}

.nav__logo-text--accent {
    color: var(--color-emerald-800);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-mid);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.25s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-emerald-700);
    transition: width 0.3s ease;
}

.nav__link:hover {
    color: var(--color-emerald-800);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__cta-btn {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-white);
    background: var(--color-emerald-800);
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.25s ease, transform 0.2s ease;
}

.nav__cta-btn:hover {
    background: var(--color-emerald-900);
    transform: translateY(-1px);
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-charcoal);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle.active .nav__toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active .nav__toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-emerald-950) 0%, var(--color-emerald-900) 50%, var(--color-emerald-800) 100%);
    padding: 100px var(--space-lg) var(--space-4xl);
    overflow: hidden;
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: 
        radial-gradient(circle at 20% 30%, var(--color-white) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, var(--color-white) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
    pointer-events: none;
}

.hero__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    background: var(--color-cream-50);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero__card-content {
    padding: var(--space-4xl) var(--space-3xl);
}

.hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-emerald-700);
    margin-bottom: var(--space-lg);
}

.hero__headline {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.hero__subheadline {
    font-size: 1.0625rem;
    color: var(--color-mid);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
    max-width: 480px;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero__card-image {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.hero__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Stat Cards */
.hero__stats {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-md);
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    justify-content: center;
    padding: 0 var(--space-lg);
}

.stat-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    opacity: 0;
    transform: translateY(20px);
    animation: floatIn 0.6s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.4s; }
.stat-card:nth-child(2) { animation-delay: 0.6s; }
.stat-card:nth-child(3) { animation-delay: 0.8s; }

.stat-card--accent {
    background: var(--color-emerald-800);
}

.stat-card--accent .stat-card__number {
    color: var(--color-cream-200);
}

.stat-card--accent .stat-card__label {
    color: var(--color-emerald-200);
}

.stat-card__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-emerald-800);
    margin-bottom: var(--space-xs);
}

.stat-card__label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-light);
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn--primary {
    color: var(--color-white);
    background: var(--color-emerald-800);
    border-color: var(--color-emerald-800);
}

.btn--primary:hover {
    background: var(--color-emerald-900);
    border-color: var(--color-emerald-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    color: var(--color-emerald-800);
    background: transparent;
    border-color: var(--color-emerald-800);
}

.btn--outline:hover {
    background: var(--color-emerald-800);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* ============================================
   Section Shared
   ============================================ */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-3xl);
}

.section-header__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-emerald-700);
    margin-bottom: var(--space-sm);
}

.section-header__title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-charcoal);
    margin-bottom: var(--space-md);
}

.section-header__desc {
    font-size: 1.0625rem;
    color: var(--color-mid);
    line-height: 1.7;
}

/* ============================================
   Collections Section
   ============================================ */
.collections {
    padding: var(--space-4xl) 0;
    background: var(--color-cream-50);
}

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

.collection-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    text-decoration: none;
    group: true;
}

.collection-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 5/6.2;
}

.collection-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.collection-card:hover .collection-card__image img {
    transform: scale(1.05);
}

.collection-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 78, 59, 0.6);
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.collection-card:hover .collection-card__overlay {
    opacity: 1;
}

.collection-card__info {
    padding: var(--space-lg) var(--space-md);
    background: var(--color-white);
}

.collection-card__title {
    font-size: 1.375rem;
    color: var(--color-charcoal);
    margin-bottom: var(--space-xs);
}

.collection-card__desc {
    font-size: 0.875rem;
    color: var(--color-mid);
    line-height: 1.6;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: var(--space-4xl) 0;
    background: var(--color-emerald-900);
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about__content .section-header__title {
    color: var(--color-white);
    text-align: left;
}

.about__content .section-header__eyebrow {
    text-align: left;
}

.about__text {
    font-size: 1rem;
    color: var(--color-emerald-200);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about__values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.value-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-cream-200);
}

.value-item__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-emerald-400);
}

.about__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 29/36;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Store Section
   ============================================ */
.store {
    padding: var(--space-4xl) 0;
    background: var(--color-cream-100);
}

.store__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.store__text .section-header__title,
.store__text .section-header__eyebrow {
    text-align: left;
}

.store__desc {
    font-size: 1rem;
    color: var(--color-mid);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

.store__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.store__detail dt {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-emerald-700);
    margin-bottom: var(--space-xs);
}

.store__detail dd {
    font-size: 1rem;
    color: var(--color-dark);
    line-height: 1.6;
}

.store__detail a {
    color: var(--color-emerald-800);
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.store__detail a:hover {
    border-bottom-color: var(--color-emerald-800);
}

.store__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 5/3.4;
}

.store__map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--color-cream-50);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.contact__text .section-header__title,
.contact__text .section-header__eyebrow {
    text-align: left;
}

.contact__desc {
    font-size: 1rem;
    color: var(--color-mid);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact__info li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.9375rem;
    color: var(--color-dark);
}

.contact__info svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-emerald-700);
}

.contact__info a {
    color: var(--color-emerald-800);
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.contact__info a:hover {
    border-bottom-color: var(--color-emerald-800);
}

/* Form */
.contact__form-wrapper {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form__label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-dark);
}

.form__input {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--color-dark);
    background: var(--color-cream-50);
    border: 1.5px solid var(--color-pale);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.form__input:focus {
    border-color: var(--color-emerald-600);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.form__input::placeholder {
    color: var(--color-light);
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* Success Message */
.form__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    padding: var(--space-3xl) var(--space-lg);
}

.form__success svg {
    width: 48px;
    height: 48px;
    color: var(--color-emerald-600);
}

.form__success h3 {
    font-size: 1.5rem;
    color: var(--color-charcoal);
}

.form__success p {
    font-size: 0.9375rem;
    color: var(--color-mid);
    line-height: 1.6;
    max-width: 320px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-emerald-950);
    color: var(--color-emerald-200);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer__logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.footer__tagline {
    font-size: 0.875rem;
    color: var(--color-emerald-400);
    line-height: 1.6;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__links a {
    font-size: 0.875rem;
    color: var(--color-emerald-300);
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: var(--color-white);
}

.footer__contact p {
    font-size: 0.875rem;
    color: var(--color-emerald-400);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.footer__contact a {
    color: var(--color-emerald-300);
    transition: color 0.2s ease;
}

.footer__contact a:hover {
    color: var(--color-white);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: var(--space-xl);
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: var(--color-emerald-600);
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero__card {
        grid-template-columns: 1fr;
    }

    .hero__card-image {
        min-height: 400px;
        order: -1;
    }

    .hero__card-content {
        padding: var(--space-3xl) var(--space-2xl);
    }

    .collections__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__inner,
    .store__inner,
    .contact__inner {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .about__content .section-header__title,
    .about__content .section-header__eyebrow,
    .store__text .section-header__title,
    .store__text .section-header__eyebrow,
    .contact__text .section-header__title,
    .contact__text .section-header__eyebrow {
        text-align: center;
    }

    .about__content,
    .store__text,
    .contact__text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about__values {
        max-width: 480px;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(254, 253, 248, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-xl);
        gap: var(--space-md);
        border-bottom: 1px solid rgba(6, 78, 59, 0.08);
        transform: translateY(-110%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        pointer-events: none;
    }

    .nav__menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav__toggle {
        display: flex;
    }

    .hero {
        padding-top: 88px;
        padding-bottom: 140px;
    }

    .hero__card-image {
        min-height: 300px;
    }

    .hero__card-content {
        padding: var(--space-2xl) var(--space-lg);
    }

    .hero__stats {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        flex-direction: column;
        align-items: center;
        margin-top: var(--space-2xl);
    }

    .stat-card {
        width: 100%;
        max-width: 280px;
    }

    .collections__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .about__values {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .hero__headline {
        font-size: 1.875rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .contact__form-wrapper {
        padding: var(--space-lg);
    }
}
