/* ============================================
   The Ville Nutrition — Stylesheet
   Confident corporate · Emerald + Cream palette
   ============================================ */

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

:root {
    /* Palette */
    --emerald-900: #042f23;
    --emerald-800: #064e3b;
    --emerald-700: #065f46;
    --emerald-600: #047857;
    --emerald-500: #059669;
    --emerald-400: #10b981;
    --cream-50:  #fffbe6;
    --cream-100: #fff8d6;
    --cream-200: #fef3c4;
    --cream-300: #fde68a;
    --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;
    --white: #ffffff;
    --black: #0a0a0a;

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

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

    /* Layout */
    --max-width: 1200px;
    --nav-height: 72px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

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

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

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

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

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

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

ul {
    list-style: none;
}

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

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

/* --- Section Labels --- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: var(--space-md);
}

.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--emerald-500);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-900);
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--neutral-600);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

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

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

.btn-primary:hover,
.btn-primary:focus {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 79, 59, 0.3);
}

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

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: var(--white);
    color: var(--emerald-800);
    border-color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--emerald-800);
    border: 2px solid var(--white);
}

.btn-light:hover,
.btn-light:focus {
    background: var(--cream-100);
    border-color: var(--cream-100);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* ============================
   NAVBAR
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(4, 47, 35, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background var(--transition-base);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.nav-logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--emerald-500);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--cream-50);
    letter-spacing: -0.01em;
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 251, 230, 0.75);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--cream-50);
    background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
    background: var(--emerald-500) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    margin-left: var(--space-sm);
}

.nav-cta:hover {
    background: var(--emerald-400) !important;
}

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

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cream-50);
    border-radius: 2px;
    transition: all var(--transition-base);
}

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

.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: rotate(-45deg) translate(5px, -5px);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(4, 47, 35, 0.88) 0%,
        rgba(6, 79, 59, 0.75) 50%,
        rgba(4, 47, 35, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    padding: var(--space-4xl) var(--space-lg);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cream-200);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 50px;
    margin-bottom: var(--space-2xl);
    backdrop-filter: blur(4px);
}

.hero-badge svg {
    color: var(--cream-300);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    color: rgba(255, 251, 230, 0.8);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

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

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

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

.hero-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--cream-100);
}

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

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

.hero-scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 251, 230, 0.5);
    animation: heroScroll 2s ease-in-out infinite;
}

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

/* ============================
   ABOUT
   ============================ */
.about {
    padding: var(--space-4xl) 0;
    background: var(--cream-50);
}

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

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

.about-image-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 5/6;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

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

.about-content {
    padding: var(--space-xl) 0;
}

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

.about-values {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

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

.value-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    border-radius: var(--radius-sm);
    color: var(--emerald-700);
}

.value-item strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 2px;
}

.value-item span {
    font-size: 0.875rem;
    color: var(--neutral-500);
    line-height: 1.5;
}

/* ============================
   OFFERINGS
   ============================ */
.offerings {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

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

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

.offering-card {
    background: var(--cream-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-base);
}

.offering-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--emerald-200);
}

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

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

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

.offering-card-body {
    padding: var(--space-xl);
}

.offering-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-700);
    border-radius: var(--radius-sm);
    color: var(--white);
    margin-bottom: var(--space-md);
}

.offering-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: var(--space-sm);
}

.offering-card-body p {
    font-size: 0.9375rem;
    color: var(--neutral-600);
    line-height: 1.7;
}

/* ============================
   PHILOSOPHY
   ============================ */
.philosophy {
    padding: var(--space-4xl) 0;
    background: var(--emerald-900);
    color: var(--white);
}

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

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

.philosophy-content .section-label::before {
    background: var(--emerald-400);
}

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

.philosophy-text {
    font-size: 1.0625rem;
    color: rgba(255, 251, 230, 0.75);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

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

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

.philosophy-feature-num {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--emerald-500);
    line-height: 1;
    padding-top: 2px;
}

.philosophy-feature strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.philosophy-feature p {
    font-size: 0.9375rem;
    color: rgba(255, 251, 230, 0.6);
    line-height: 1.6;
}

.philosophy-image-stack {
    position: relative;
    padding-bottom: var(--space-xl);
}

.philosophy-img-main img {
    width: 100%;
    height: auto;
    aspect-ratio: 13/16;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.philosophy-img-float {
    position: absolute;
    bottom: 0;
    right: -24px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border: 4px solid var(--emerald-800);
}

.philosophy-img-float img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================
   VISIT / CONTACT
   ============================ */
.visit {
    padding: var(--space-4xl) 0;
    background: var(--cream-50);
}

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

.visit-info {
    padding: var(--space-xl) 0;
}

.visit-text {
    font-size: 1.0625rem;
    color: var(--neutral-600);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

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

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

.visit-detail-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    border-radius: var(--radius-sm);
    color: var(--emerald-700);
}

.visit-detail strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 2px;
}

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

.visit-detail a {
    color: var(--emerald-700);
    font-weight: 600;
    transition: color var(--transition-fast);
}

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

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--neutral-200);
}

/* ============================
   CTA BANNER
   ============================ */
.cta-banner {
    padding: var(--space-4xl) 0;
    background: var(--emerald-700);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.cta-content {
    flex: 1;
    min-width: 280px;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.cta-text {
    font-size: 1.0625rem;
    color: rgba(255, 251, 230, 0.8);
    line-height: 1.7;
    max-width: 520px;
}

.cta-actions {
    flex-shrink: 0;
}

/* ============================
   FOOTER
   ============================ */
.footer {
    background: var(--neutral-900);
    color: rgba(255, 251, 230, 0.6);
    padding: var(--space-3xl) 0 var(--space-xl);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

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

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--cream-50);
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-nav strong,
.footer-contact strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cream-200);
    margin-bottom: var(--space-md);
}

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

.footer-nav a,
.footer-contact a {
    font-size: 0.9375rem;
    color: rgba(255, 251, 230, 0.6);
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--cream-100);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.9375rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--space-xl);
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 251, 230, 0.4);
}

/* ============================
   MOBILE RESPONSIVE
   ============================ */
@media (max-width: 960px) {
    .about-grid,
    .philosophy-grid,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-image-wrap {
        max-width: 480px;
        margin: 0 auto;
    }

    .philosophy-img-float {
        right: -12px;
        width: 50%;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(4, 47, 35, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-2xl) var(--space-lg);
        gap: var(--space-xs);
        transform: translateX(100%);
        transition: transform var(--transition-base);
    }

    .nav-links.is-open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.125rem;
        padding: var(--space-md) var(--space-lg);
        width: 100%;
    }

    .nav-cta {
        margin-left: 0 !important;
        margin-top: var(--space-md);
        text-align: center;
        justify-content: center;
    }

    .hero-headline {
        font-size: clamp(1.5rem, 6vw, 2.25rem);
    }

    .hero-stats {
        gap: var(--space-lg);
    }

    .hero-stat-divider {
        display: none;
    }

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

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

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

    .footer-brand {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .philosophy-img-float {
        position: relative;
        right: 0;
        width: 100%;
        margin-top: var(--space-md);
    }

    .philosophy-image-stack {
        padding-bottom: 0;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-scroll {
        animation: none;
        opacity: 0.5;
    }
}
