/* ============================================
   Downtown Nutrition Chapin — Styles
   Clean Minimalist · Burgundy + Blush
   ============================================ */

/* --- Custom Properties --- */
:root {
    --burgundy-900: #3D1018;
    --burgundy-800: #5A1A25;
    --burgundy-700: #7B2D3B;
    --burgundy-600: #9A3A4A;
    --burgundy-500: #B8475A;
    --burgundy-400: #D4607A;
    --burgundy-100: #F5D5DA;
    --burgundy-50:  #FDF0F2;

    --blush-50:  #FDF8F7;
    --blush-100: #F9EEEB;
    --blush-200: #F2DDD8;
    --blush-300: #E8C4BB;

    --cream: #FEFCFB;
    --warm-white: #FAF7F5;
    --off-white: #F5F0ED;

    --text-primary: #1A0A0D;
    --text-secondary: #4A2530;
    --text-muted: #7A5060;
    --text-light: #9A7080;

    --line-light: rgba(123, 45, 59, 0.08);
    --line-medium: rgba(123, 45, 59, 0.15);
    --line-strong: rgba(123, 45, 59, 0.25);

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

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

    --shadow-sm: 0 1px 3px rgba(61, 16, 24, 0.04), 0 1px 2px rgba(61, 16, 24, 0.06);
    --shadow-md: 0 4px 16px rgba(61, 16, 24, 0.06), 0 2px 4px rgba(61, 16, 24, 0.04);
    --shadow-lg: 0 12px 40px rgba(61, 16, 24, 0.1), 0 4px 12px rgba(61, 16, 24, 0.06);
    --shadow-xl: 0 24px 60px rgba(61, 16, 24, 0.12), 0 8px 20px rgba(61, 16, 24, 0.08);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--cream);
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

/* --- Typography --- */
.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy-600);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.7;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 252, 251, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-light);
    transition: var(--transition-base);
}

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

.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-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--burgundy-700);
    letter-spacing: -0.01em;
}

.nav-logo-icon {
    color: var(--burgundy-700);
}

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

.nav-link {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--burgundy-500);
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--burgundy-700);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--burgundy-600);
    font-weight: 400;
}

.nav-phone:hover {
    color: var(--burgundy-700);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-primary);
    transition: var(--transition-base);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

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

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse 80% 50% at 70% 20%, rgba(180, 71, 90, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(123, 45, 59, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--burgundy-500);
    margin-bottom: 28px;
}

.hero-eyebrow-line {
    width: 32px;
    height: 1px;
    background: var(--burgundy-400);
    flex-shrink: 0;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.hero-em {
    font-style: italic;
    color: var(--burgundy-600);
    font-weight: 300;
}

.hero-sub {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 460px;
    margin-bottom: 40px;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background: var(--burgundy-800);
    border-color: var(--burgundy-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--line-strong);
}

.btn-ghost:hover {
    border-color: var(--burgundy-400);
    color: var(--burgundy-700);
}

.btn-large {
    padding: 16px 32px;
    font-size: 13px;
}

/* --- Hero Visual --- */
.hero-visual {
    position: relative;
}

.hero-image-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 520/640;
}

.hero-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(transparent, rgba(26, 10, 13, 0.7));
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
}

/* --- Floating Stat Cards --- */
.hero-stats {
    max-width: 1200px;
    margin: 48px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line-light);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-medium);
}

.stat-card-accent {
    background: var(--burgundy-700);
    border-color: var(--burgundy-700);
}

.stat-card-accent .stat-card-number,
.stat-card-accent .stat-card-label {
    color: #fff;
}

.stat-card-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--burgundy-700);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-card-label {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Section Divider --- */
.section-divider {
    background: var(--cream);
    overflow: hidden;
}

.divider-svg {
    display: block;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: var(--cream);
}

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

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

.about-text {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-values {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
}

.value-item svg {
    color: var(--burgundy-500);
    flex-shrink: 0;
}

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

.about-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 480/600;
}

.about-image-accent {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream);
}

.about-image-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 300/200;
}

/* --- Products --- */
.products {
    padding: 100px 0;
    background: var(--blush-50);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

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

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

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-light);
    transition: var(--transition-base);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--line-medium);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 400/300;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-card-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
}

.product-card-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--burgundy-700);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-light);
}

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

.product-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.product-card-body p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* --- Experience --- */
.experience {
    padding: 100px 0;
    background: var(--cream);
}

.experience-header {
    text-align: center;
    margin-bottom: 64px;
}

.experience-steps {
    max-width: 800px;
    margin: 0 auto 64px;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0;
    position: relative;
}

.step:not(:last-child) {
    margin-bottom: 0;
}

.step-number {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--burgundy-300);
    padding-top: 4px;
    text-align: right;
    padding-right: 20px;
}

.step-line {
    position: absolute;
    left: 79px;
    top: 36px;
    bottom: -24px;
    width: 1px;
    background: var(--line-medium);
}

.step:last-child .step-line {
    display: none;
}

.step-content {
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line-light);
}

.step:last-child .step-content {
    border-bottom: none;
    padding-bottom: 0;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 520px;
}

.experience-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1200/400;
}

/* --- Testimonials --- */
.testimonials {
    padding: 100px 0;
    background: var(--burgundy-700);
    color: #fff;
}

.testimonials .section-label {
    color: var(--burgundy-300);
}

.testimonials .section-title {
    color: #fff;
}

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

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition-base);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-2px);
}

.testimonial-quote {
    color: var(--burgundy-300);
    margin-bottom: 20px;
    opacity: 0.6;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    font-weight: 300;
}

.testimonial-author {
    font-size: 13px;
    font-weight: 400;
    color: var(--burgundy-200);
    letter-spacing: 0.02em;
}

/* --- Visit --- */
.visit {
    padding: 100px 0;
    background: var(--blush-50);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.visit-info .section-title {
    margin-bottom: 36px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 36px;
}

.visit-detail {
    display: flex;
    gap: 16px;
}

.visit-detail svg {
    color: var(--burgundy-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail strong {
    display: block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.visit-detail p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.visit-detail a {
    color: var(--burgundy-600);
    transition: var(--transition-fast);
}

.visit-detail a:hover {
    color: var(--burgundy-800);
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line-light);
}

/* --- Footer --- */
.footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.6);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-logo-icon {
    color: var(--burgundy-400);
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links strong,
.footer-contact strong {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 4px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--burgundy-300);
}

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.55);
    transition: var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--burgundy-300);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.3);
    transition: var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--burgundy-300);
}

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

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        max-width: 520px;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-accent {
        right: 0;
        bottom: -24px;
    }

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

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

    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }

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

    .visit-map {
        min-height: 300px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(254, 252, 251, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid var(--line-light);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-base);
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 24px 60px;
        min-height: auto;
    }

    .hero-headline {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 18px 16px;
    }

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

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

    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .step {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .step-number {
        text-align: left;
        padding-right: 0;
    }

    .step-line {
        left: 0;
        top: 0;
        bottom: 0;
        width: 2px;
        height: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

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