/* ===================================
   Byron Center Nutrition — Styles
   Classic & Elegant Design System
   =================================== */

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

:root {
    /* Color Palette */
    --color-emerald-900: #064e3b;
    --color-emerald-800: #065f46;
    --color-emerald-700: #047857;
    --color-emerald-600: #059669;
    --color-emerald-500: #10b981;
    --color-cream-50: #faf9f6;
    --color-cream-100: #f5f0e8;
    --color-cream-200: #ede6d8;
    --color-cream-300: #e0d5c0;
    --color-amber-500: #d97706;
    --color-amber-600: #b45309;
    --color-charcoal: #1f2937;
    --color-gray-700: #374151;
    --color-gray-600: #4b5563;
    --color-gray-500: #6b7280;
    --color-gray-400: #9ca3af;
    --color-white: #ffffff;
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    
    /* Layout */
    --container-max: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: var(--font-sans);
    color: var(--color-charcoal);
    background-color: var(--color-cream-50);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-emerald-900);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-amber-500);
    margin-bottom: var(--space-sm);
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.lead {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

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

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
}

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

.btn-primary:hover {
    background-color: var(--color-emerald-800);
    border-color: var(--color-emerald-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 78, 59, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

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

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background-color: rgba(250, 249, 246, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: var(--space-sm) 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    transition: color var(--transition-base);
}

.navbar.scrolled .logo {
    color: var(--color-emerald-900);
}

.logo-icon {
    display: flex;
    align-items: center;
    color: var(--color-amber-500);
}

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

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    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(--color-amber-500);
    transition: width var(--transition-base);
}

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

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

.navbar.scrolled .nav-links a {
    color: var(--color-gray-600);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--color-emerald-700);
}

.nav-links .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: all var(--transition-base);
}

.navbar.scrolled .mobile-toggle span {
    background-color: var(--color-emerald-900);
}

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

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

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

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, 
            rgba(6, 78, 59, 0.92) 0%, 
            rgba(4, 120, 87, 0.85) 40%, 
            rgba(5, 150, 105, 0.75) 70%,
            rgba(217, 119, 6, 0.6) 100%
        ),
        url('https://images.pexels.com/photos/34881022/pexels-photo-34881022.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(6, 78, 59, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
    max-width: 800px;
}

.hero-tagline {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-amber-500);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero-title .text-accent {
    color: var(--color-amber-500);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    align-items: center;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    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.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}

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

/* --- Sections --- */
.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    margin-bottom: var(--space-3xl);
}

/* --- About Section --- */
.about {
    background-color: var(--color-cream-50);
}

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

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius-lg);
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-emerald-700);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.about-content .section-tag {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.feature-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    color: var(--color-amber-500);
    margin-top: 0.125rem;
}

.feature-item h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--color-emerald-900);
}

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

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

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

.product-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-base);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

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

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

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

.product-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background-color: var(--color-amber-500);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
}

.product-info {
    padding: var(--space-lg);
}

.product-info h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
    color: var(--color-emerald-900);
}

.product-info p {
    font-size: 0.9375rem;
    color: var(--color-gray-500);
    line-height: 1.7;
}

/* --- Process Section --- */
.process {
    background-color: var(--color-emerald-900);
    color: var(--color-white);
}

.process .section-tag {
    color: var(--color-amber-500);
}

.process .section-title {
    color: var(--color-white);
}

.process .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.process-step {
    position: relative;
    padding: var(--space-xl);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.process-step:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.step-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-amber-500);
    line-height: 1;
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

.step-content h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.step-content p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* --- Visit Section --- */
.visit {
    background-color: var(--color-cream-50);
}

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    color: var(--color-amber-500);
    margin-top: 0.25rem;
}

.contact-item strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    color: var(--color-emerald-900);
    margin-bottom: 0.25rem;
}

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

.contact-item a {
    color: var(--color-emerald-700);
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--color-amber-500);
}

.visit-map {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.visit-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6/5;
}

.map-overlay {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
    right: var(--space-lg);
}

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

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

.contact-text .section-tag {
    text-align: left;
}

.contact-text .section-title {
    text-align: left;
}

.contact-text p {
    color: var(--color-gray-600);
    line-height: 1.8;
}

.contact-form {
    background-color: var(--color-white);
    padding: var(--space-2xl);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-emerald-900);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-charcoal);
    background-color: var(--color-cream-50);
    border: 2px solid var(--color-cream-200);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-emerald-600);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background-color: rgba(5, 150, 105, 0.1);
    border-radius: var(--border-radius);
    color: var(--color-emerald-800);
    margin-top: var(--space-md);
}

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

.form-success svg {
    flex-shrink: 0;
    color: var(--color-emerald-600);
}

/* --- Footer --- */
.footer {
    background-color: var(--color-emerald-900);
    color: var(--color-white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

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

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4 {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

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

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-emerald-900);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-lg);
        padding: var(--space-2xl);
        transition: right var(--transition-base);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        color: rgba(255, 255, 255, 0.85);
        font-size: 1.125rem;
    }
    
    .about-grid,
    .visit-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image-accent {
        top: 12px;
        left: 12px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .section {
        padding: var(--space-3xl) 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: var(--space-lg);
    }
}
