/* ============================================
   Brookhaven Nutrition & Wellness
   Confident Corporate — Emerald Green + Cream
   ============================================ */

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

:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    
    --cream-50: #fefdf8;
    --cream-100: #fdf9f0;
    --cream-200: #faf5e8;
    --cream-300: #f5edd8;
    
    --neutral-50: #fafafa;
    --neutral-100: #f4f4f5;
    --neutral-200: #e4e4e7;
    --neutral-300: #d4d4d8;
    --neutral-400: #a1a1aa;
    --neutral-500: #71717a;
    --neutral-600: #52525b;
    --neutral-700: #3f3f46;
    --neutral-800: #27272a;
    --neutral-900: #18181b;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

body {
    font-family: var(--font-body);
    color: var(--neutral-800);
    background: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section Labels & Titles --- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--neutral-900);
    margin-bottom: 20px;
}

.text-emerald {
    color: var(--emerald-600);
}

.text-center { text-align: center; }

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--neutral-600);
    line-height: 1.7;
    max-width: 560px;
}

.section-header {
    margin-bottom: 56px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald-600);
    color: #fff;
    border-color: var(--emerald-600);
}

.btn-primary:hover {
    background: var(--emerald-700);
    border-color: var(--emerald-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--neutral-700);
    border-color: var(--neutral-300);
}

.btn-outline:hover {
    border-color: var(--emerald-600);
    color: var(--emerald-700);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

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

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

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-900);
}

.nav-logo-accent {
    color: var(--emerald-600);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--neutral-600);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--emerald-600);
}

.nav-cta {
    background: var(--emerald-600);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-cta:hover {
    background: var(--emerald-700);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--neutral-700);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, var(--cream-50) 0%, var(--cream-100) 50%, var(--emerald-50) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(5,150,105,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(5,150,105,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--emerald-100);
    color: var(--emerald-800);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--neutral-900);
    margin-bottom: 24px;
}

.hero-title-accent {
    color: var(--emerald-600);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--neutral-600);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    aspect-ratio: 5/6;
}

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

/* Floating Stat Cards */
.stat-card {
    position: absolute;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    border: 1px solid var(--cream-200);
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    background: var(--emerald-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-number {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1;
}

.stat-card-label {
    font-size: 0.75rem;
    color: var(--neutral-500);
    line-height: 1.3;
}

.stat-card--1 {
    top: 10%;
    right: -20px;
    animation: float1 4s ease-in-out infinite;
}

.stat-card--2 {
    bottom: 25%;
    left: -30px;
    animation: float2 5s ease-in-out infinite;
}

.stat-card--3 {
    bottom: 5%;
    right: 10%;
    animation: float3 4.5s ease-in-out infinite;
}

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

@keyframes float2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

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

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--neutral-400);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* --- About --- */
.section {
    padding: 100px 0;
}

.about {
    background: var(--cream-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    border-radius: var(--radius-xl);
    width: 100%;
    height: 420px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.about-image-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    background: var(--emerald-600);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.15;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content p {
    color: var(--neutral-600);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1.0625rem;
}

.about-list {
    list-style: none;
    margin-top: 28px;
    display: grid;
    gap: 14px;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    color: var(--neutral-700);
    line-height: 1.5;
}

/* --- Products --- */
.products {
    background: var(--cream-100);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--cream-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.product-card-img {
    overflow: hidden;
    height: 220px;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-card-body {
    padding: 24px;
}

.product-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 8px;
}

.product-card-body p {
    font-size: 0.9375rem;
    color: var(--neutral-500);
    line-height: 1.65;
}

/* --- Quality --- */
.quality {
    background: var(--cream-50);
}

.quality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.quality-content .section-title {
    margin-bottom: 20px;
}

.quality-content .section-subtitle {
    margin-bottom: 36px;
}

.quality-features {
    display: grid;
    gap: 28px;
}

.quality-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.quality-feature-icon {
    width: 52px;
    height: 52px;
    background: var(--emerald-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.quality-feature-check {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--emerald-600);
    color: #fff;
    border-radius: 50%;
    font-size: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.quality-feature h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 4px;
}

.quality-feature p {
    font-size: 0.9375rem;
    color: var(--neutral-500);
    line-height: 1.6;
}

.quality-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.quality-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.quality-img:first-child {
    grid-column: 1 / -1;
}

.quality-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quality-img:first-child img {
    height: 260px;
}

.quality-img:not(:first-child) img {
    height: 180px;
}

/* --- Community --- */
.community {
    background: var(--emerald-800);
    padding: 80px 0;
}

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

.community-content .section-label {
    color: var(--emerald-400);
}

.community-content .section-title {
    color: #fff;
    margin-bottom: 20px;
}

.community-content .section-subtitle {
    color: rgba(255,255,255,0.75);
    margin-bottom: 36px;
}

.community-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.community-stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.community-stat-label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.community-stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.2);
}

.community-visual {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.community-visual img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* --- Contact --- */
.contact {
    background: var(--cream-100);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

.contact-info .section-title {
    margin-bottom: 16px;
}

.contact-info .section-subtitle {
    margin-bottom: 36px;
}

.contact-details {
    display: grid;
    gap: 24px;
}

.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    background: var(--emerald-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--neutral-900);
    margin-bottom: 4px;
}

.contact-detail p {
    font-size: 0.9375rem;
    color: var(--neutral-600);
    line-height: 1.6;
}

.contact-detail a {
    color: var(--emerald-600);
    transition: color 0.2s ease;
}

.contact-detail a:hover {
    color: var(--emerald-700);
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrap {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--cream-200);
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--neutral-800);
    background: var(--cream-50);
    border: 1.5px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(5,150,105,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--neutral-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 18px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    border-radius: var(--radius-sm);
    color: var(--emerald-800);
    font-size: 0.9375rem;
    font-weight: 500;
}

.form-success.show {
    display: flex;
}

/* Map */
.map-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid #fff;
}

/* --- Footer --- */
.footer {
    background: var(--neutral-900);
    color: var(--neutral-400);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--neutral-800);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--neutral-500);
    max-width: 300px;
}

.footer-nav h4,
.footer-contact h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neutral-300);
    margin-bottom: 16px;
}

.footer-nav ul,
.footer-contact ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-nav a {
    font-size: 0.9375rem;
    color: var(--neutral-500);
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--emerald-400);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--emerald-500);
}

.footer-contact a {
    color: var(--neutral-500);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--emerald-400);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--neutral-600);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 40px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card--1 { right: 0; }
    .stat-card--2 { left: 0; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(254, 253, 248, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--cream-200);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.open {
        transform: translateY(0);
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero {
        padding: 100px 24px 60px;
        min-height: auto;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-right {
        order: -1;
    }
    
    .hero-image {
        max-width: 360px;
        margin: 0 auto;
    }
    
    .stat-card {
        display: none;
    }
    
    .about-grid,
    .quality-grid,
    .contact-grid,
    .community-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .quality-image-grid {
        grid-template-columns: 1fr;
    }
    
    .quality-img:first-child {
        grid-column: auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .section {
        padding: 72px 0;
    }
    
    .community-stats {
        flex-wrap: wrap;
    }
    
    .community-stat-divider {
        display: none;
    }
    
    .contact-form-wrap {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .community-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}
