/* ============================================
   Cardinal Nutrition — Editorial Style Stylesheet
   Burgundy + Blush Palette
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-burgundy: #7B2D3B;
    --color-burgundy-deep: #5A1F2A;
    --color-burgundy-light: #9E4A5A;
    --color-blush: #F5E6E0;
    --color-blush-light: #FAF3F0;
    --color-blush-mid: #E8D0C8;
    --color-cream: #FDF8F6;
    --color-warm-white: #FFFCFB;
    --color-charcoal: #1A1416;
    --color-text: #2D1F24;
    --color-text-light: #6B555C;
    --color-text-muted: #9A858A;
    --color-border: #E8D0C8;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-cream);
    -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;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

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

address {
    font-style: normal;
}

/* --- Utility --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

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

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-charcoal);
    margin-bottom: var(--space-lg);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--color-burgundy-deep);
    border-color: var(--color-burgundy-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123, 45, 59, 0.3);
}

.btn-outline-light {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(253, 248, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: background-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background-color: rgba(253, 248, 246, 0.97);
    box-shadow: 0 1px 12px rgba(123, 45, 59, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-burgundy);
    letter-spacing: -0.01em;
}

.logo-light .logo-text {
    color: #fff;
}

.logo-light .logo-mark circle {
    fill: #C4707A !important;
}

/* Nav */
.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-list a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
    position: relative;
    padding: 0.25rem 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-burgundy);
    transition: width var(--transition);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
    width: 100%;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    color: var(--color-burgundy);
}

.nav-cta {
    background-color: var(--color-burgundy);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

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

.nav-cta:hover {
    background-color: var(--color-burgundy-deep);
    color: #fff !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition);
}

.nav-toggle:hover {
    background-color: var(--color-blush);
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--color-burgundy);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-burgundy);
    transition: all var(--transition);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-list {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-md);
        background-color: var(--color-cream);
        transform: translateX(100%);
        transition: transform var(--transition-slow);
    }
    
    .nav-list.is-open {
        transform: translateX(0);
    }
    
    .nav-list a {
        font-size: 1.125rem;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-charcoal);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(26, 20, 22, 0.55) 0%,
        rgba(26, 20, 22, 0.7) 50%,
        rgba(26, 20, 22, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    max-width: 800px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-blush-mid);
    margin-bottom: var(--space-md);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: #fff;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

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

.hero-subheadline {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-scroll svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

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

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

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

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

.about-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
}

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

.about-content {
    max-width: 540px;
}

.about-content p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.stat {
    text-align: left;
}

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

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ============================================
   Products Section
   ============================================ */
.products {
    padding: var(--space-3xl) 0;
    background-color: var(--color-blush-light);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header .section-title {
    margin-bottom: var(--space-sm);
}

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

@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-xl);
    }
}

.product-card {
    background-color: var(--color-warm-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(123, 45, 59, 0.05);
    transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(123, 45, 59, 0.1);
}

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

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

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

.product-body {
    padding: var(--space-md);
}

.product-body h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 0.5rem;
}

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

/* ============================================
   Philosophy Section
   ============================================ */
.philosophy {
    padding: var(--space-3xl) 0;
    background-color: var(--color-burgundy);
    color: #fff;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.philosophy .section-eyebrow {
    color: var(--color-blush-mid);
}

.philosophy-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.philosophy-headline em {
    font-style: italic;
    color: var(--color-blush);
}

.philosophy-divider {
    width: 60px;
    height: 2px;
    background-color: var(--color-blush-mid);
    margin: 0 auto var(--space-lg);
    border-radius: 2px;
}

.philosophy-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-2xl);
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.philosophy-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: left;
}

@media (min-width: 600px) {
    .philosophy-values {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
}

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

.value-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-blush);
    flex-shrink: 0;
}

.value-item h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.value-item p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Visit Section
   ============================================ */
.visit {
    padding: var(--space-3xl) 0;
    background-color: var(--color-cream);
}

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

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

.visit-info .section-title {
    margin-bottom: var(--space-lg);
}

.visit-details {
    margin-bottom: var(--space-lg);
}

.visit-details p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text);
}

.visit-details a {
    color: var(--color-burgundy);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.visit-details a:hover {
    color: var(--color-burgundy-deep);
    text-decoration: underline;
}

.visit-hours {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.visit-hours h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: var(--space-sm);
}

.visit-hours p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.visit-map {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 6/5;
}

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

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: linear-gradient(transparent, rgba(26, 20, 22, 0.8));
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #fff;
}

.map-overlay p {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: var(--space-3xl) 0;
    background-color: var(--color-blush-light);
}

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

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

.contact-text .section-title {
    margin-bottom: var(--space-md);
}

.contact-text p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-text-light);
}

.contact-form-wrap {
    background-color: var(--color-warm-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 1px 4px rgba(123, 45, 59, 0.05);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-blush-light);
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-burgundy);
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

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

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

.form-success {
    text-align: center;
    padding: var(--space-md);
    background-color: rgba(123, 45, 59, 0.06);
    border-radius: var(--radius-md);
    color: var(--color-burgundy);
    font-weight: 500;
    font-size: 0.9375rem;
    margin-top: var(--space-sm);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background-color: var(--color-charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-2xl) 0 var(--space-lg);
}

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

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

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-top: var(--space-sm);
    color: rgba(255, 255, 255, 0.5);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: var(--space-sm);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
}

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

.footer-contact p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 0.25rem;
}

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

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

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

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   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.is-visible {
        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; }
}

/* Reduced motion: show everything */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}
