/* ============================================
   EAST SIDE NUTRITION — Custom Styles
   Bold Editorial | Plum + Amber Palette
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Plum Palette */
    --plum-50: #faf5ff;
    --plum-100: #f3e8ff;
    --plum-200: #e9d5ff;
    --plum-300: #d8b4fe;
    --plum-400: #c084fc;
    --plum-500: #a855f7;
    --plum-600: #9333ea;
    --plum-700: #7e22ce;
    --plum-800: #5b2c6f;
    --plum-900: #3b0764;
    --plum-950: #1a052e;

    /* Amber Palette */
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;

    /* Neutrals */
    --neutral-50: #fafaf9;
    --neutral-100: #f5f5f4;
    --neutral-200: #e7e5e4;
    --neutral-300: #d6d3d1;
    --neutral-400: #a8a29e;
    --neutral-500: #78716c;
    --neutral-600: #57534e;
    --neutral-700: #44403c;
    --neutral-800: #292524;
    --neutral-900: #1c1917;
    --neutral-950: #0c0a09;

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

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --header-height: 80px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    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;
}

ul, ol {
    list-style: none;
}

address {
    font-style: normal;
}

/* --- Utility --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

@media (min-width: 768px) {
    .container {
        padding-left: var(--space-2xl);
        padding-right: var(--space-2xl);
    }
}

/* --- Section Eyebrow --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-600);
    margin-bottom: var(--space-md);
}

/* --- Section Headline --- */
.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--plum-900);
    margin-bottom: var(--space-xl);
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--plum-800);
    color: var(--neutral-50);
    border: 2px solid var(--plum-800);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--plum-900);
    border-color: var(--plum-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--plum-800);
    border: 2px solid var(--plum-800);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: var(--plum-800);
    color: var(--neutral-50);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1.0625rem;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neutral-200);
    height: var(--header-height);
    transition: box-shadow var(--transition-base);
}

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

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--plum-900);
}

.nav-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--plum-800);
    color: var(--amber-400);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: none;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--neutral-700);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--amber-500);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--plum-800);
}

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

.nav-cta {
    background-color: var(--plum-800) !important;
    color: var(--neutral-50) !important;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-base) !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background-color: var(--plum-900) !important;
    transform: translateY(-1px);
}

/* Mobile Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--plum-900);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(27, 7, 46, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--plum-950);
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse 80% 50% at 70% 50%, rgba(91, 44, 111, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

@media (min-width: 900px) {
    .hero .container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: var(--space-4xl);
    }
}

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

@media (min-width: 900px) {
    .hero-content {
        text-align: left;
    }
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-400);
    margin-bottom: var(--space-lg);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--neutral-50);
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

.hero-headline em {
    font-style: italic;
    color: var(--amber-400);
}

.hero-subheadline {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    line-height: 1.7;
    color: var(--plum-200);
    max-width: 540px;
    margin: 0 auto var(--space-2xl);
}

@media (min-width: 900px) {
    .hero-subheadline {
        margin: 0 0 var(--space-2xl);
    }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

@media (min-width: 900px) {
    .hero-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
}

.hero-actions .btn-primary {
    background-color: var(--amber-500);
    border-color: var(--amber-500);
    color: var(--plum-950);
    font-weight: 600;
}

.hero-actions .btn-primary:hover {
    background-color: var(--amber-400);
    border-color: var(--amber-400);
    color: var(--plum-950);
}

.hero-actions .btn-secondary {
    border-color: var(--plum-300);
    color: var(--plum-100);
}

.hero-actions .btn-secondary:hover {
    background-color: var(--plum-800);
    border-color: var(--plum-800);
    color: var(--neutral-50);
}

.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--plum-300);
}

.hero-scroll-indicator span {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--plum-300), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   DIVIDER
   ============================================ */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) 0;
}

.divider-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--plum-300), transparent);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--space-5xl) 0;
    background-color: var(--neutral-50);
}

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

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: var(--space-4xl);
    }
}

.about-text .section-headline {
    margin-bottom: var(--space-xl);
}

.about-body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--neutral-600);
    margin-bottom: var(--space-lg);
}

.about-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--neutral-200);
}

.stat {
    flex: 1;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--plum-800);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-xs);
}

.stat-divider {
    width: 1px;
    background-color: var(--neutral-200);
    align-self: stretch;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 6/7;
}

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

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
    padding: var(--space-5xl) 0;
    background-color: var(--plum-900);
}

.products .section-headline {
    color: var(--neutral-50);
}

.products-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-4xl);
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }
}

.product-card {
    background-color: var(--plum-800);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-card-content {
    padding: var(--space-xl);
}

.product-card-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--neutral-50);
    margin-bottom: var(--space-sm);
}

.product-card-desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--plum-200);
}

/* ============================================
   QUOTE SECTION
   ============================================ */
.quote-section {
    padding: var(--space-5xl) 0;
    background-color: var(--amber-50);
    text-align: center;
}

.quote-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.quote-mark {
    color: var(--amber-400);
    margin-bottom: var(--space-lg);
    opacity: 0.6;
}

.quote-content blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--plum-900);
    margin-bottom: var(--space-xl);
}

.cite-name {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    font-style: normal;
    color: var(--amber-700);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   VISIT SECTION
   ============================================ */
.visit {
    padding: var(--space-5xl) 0;
    background-color: var(--neutral-50);
}

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

@media (min-width: 900px) {
    .visit-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4xl);
    }
}

.visit-info .section-headline {
    margin-bottom: var(--space-2xl);
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

.visit-icon {
    flex-shrink: 0;
    color: var(--amber-600);
    margin-top: 2px;
}

.visit-detail-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.visit-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--neutral-400);
}

.visit-detail-value {
    font-size: 1.0625rem;
    color: var(--neutral-800);
    line-height: 1.6;
}

.visit-detail-link {
    font-size: 1.0625rem;
    color: var(--plum-700);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.visit-detail-link:hover {
    color: var(--plum-900);
    text-decoration: underline;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-lg);
}

.map-placeholder {
    width: 100%;
    height: 100%;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: var(--space-5xl) 0;
    background: linear-gradient(135deg, var(--plum-900) 0%, var(--plum-950) 100%);
    text-align: center;
}

.cta-content {
    max-width: 680px;
    margin: 0 auto;
}

.cta-content .section-headline {
    color: var(--neutral-50);
    margin-bottom: var(--space-lg);
}

.cta-body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--plum-200);
    margin-bottom: var(--space-2xl);
}

.cta-actions {
    display: flex;
    justify-content: center;
}

.cta-actions .btn-primary {
    background-color: var(--amber-500);
    border-color: var(--amber-500);
    color: var(--plum-950);
    font-weight: 600;
}

.cta-actions .btn-primary:hover {
    background-color: var(--amber-400);
    border-color: var(--amber-400);
    color: var(--plum-950);
}

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

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: var(--space-2xl);
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-50);
    margin-bottom: var(--space-md);
}

.footer-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--plum-700);
    color: var(--amber-400);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--plum-300);
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--amber-500);
    margin-bottom: var(--space-lg);
}

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

.footer-links a {
    font-size: 0.9375rem;
    color: var(--plum-300);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--neutral-50);
}

.footer-contact address {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--plum-300);
}

.footer-phone a {
    color: var(--amber-400);
    transition: color var(--transition-fast);
}

.footer-phone a:hover {
    color: var(--amber-300);
    text-decoration: underline;
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--plum-800);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
}

@media (min-width: 600px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--plum-400);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   Progressive enhancement — content visible without JS
   ============================================ */
.reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}
