/*
 * Terai Roots Website — Main Stylesheet
 * Version: 1.0.0 | 2026-06-17
 *
 * Architecture:
 *  1. CSS Custom Properties (Design Tokens)
 *  2. Reset & Base
 *  3. Typography
 *  4. Layout (Grid, Container, Section)
 *  5. Header & Navigation
 *  6. Hero Sections
 *  7. Cards & Components
 *  8. Blog Components
 *  9. Forms
 * 10. Footer
 * 11. Utility Classes
 * 12. Animations
 * 13. Responsive Breakpoints
 */

/* =============================================================
   1. CSS CUSTOM PROPERTIES — Design Tokens
   ============================================================= */
:root {
    /* ── Brand Palette — Vivid Nature & Heritage ── */

    /* Green — core brand, agriculture, freshness */
    --color-primary:        #16a34a;  /* Emerald green          */
    --color-primary-light:  #4ade80;  /* Bright leaf green      */
    --color-primary-mid:    #15803d;  /* Forest green           */
    --color-primary-dark:   #14532d;  /* Deep forest            */

    /* Amber / Orange — harvest, warmth, spice */
    --color-secondary:      #d97706;  /* Harvest amber          */
    --color-secondary-light:#fbbf24;  /* Bright golden          */
    --color-accent:         #ea580c;  /* Spice orange           */
    --color-accent-light:   #fb923c;  /* Light orange           */

    /* Yellow — sunshine, golden fields */
    --color-yellow:         #ca8a04;  /* Deep gold              */
    --color-yellow-light:   #fef9c3;  /* Pale yellow            */

    /* Red — Buka Laal Namak, chili, passion */
    --color-red:            #dc2626;  /* Vivid red              */
    --color-red-light:      #fee2e2;  /* Soft red bg            */

    /* Blue — water, sky, trust */
    --color-blue:           #2563eb;  /* Royal blue             */
    --color-blue-light:     #dbeafe;  /* Pale blue bg           */

    /* Legacy aliases (used in older component references) */
    --color-earth:          #d1fae5;
    --color-earth-light:    #ecfdf5;
    --color-earth-dark:     #6ee7b7;

    /* Neutrals */
    --color-white:      #FFFFFF;
    --color-off-white:  #f0fdf4;      /* Faintest mint          */
    --color-light:      #dcfce7;      /* Light green            */
    --color-border:     #d1fae5;      /* Soft green border      */
    --color-text:       #111827;      /* Near-black             */
    --color-text-muted: #4b5563;      /* Dark gray              */
    --color-text-light: #9ca3af;      /* Medium gray            */

    /* Backgrounds */
    --bg-body:          #f8fffe;      /* White with faint green */
    --bg-section:       #FFFFFF;
    --bg-section-alt:   #f0fdf4;      /* Mint white             */
    --bg-warm:          #fffbf0;      /* Warm cream             */
    --bg-dark:          #052e16;      /* Very deep forest       */

    /* Typography */
    --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Courier New', monospace;

    /* Font Sizes — Fluid scale */
    --fs-xs:    0.75rem;   /*  12px */
    --fs-sm:    0.875rem;  /*  14px */
    --fs-base:  1rem;      /*  16px */
    --fs-md:    1.125rem;  /*  18px */
    --fs-lg:    1.25rem;   /*  20px */
    --fs-xl:    1.5rem;    /*  24px */
    --fs-2xl:   1.875rem;  /*  30px */
    --fs-3xl:   2.25rem;   /*  36px */
    --fs-4xl:   3rem;      /*  48px */
    --fs-5xl:   3.75rem;   /*  60px */

    /* Spacing */
    --space-1:   0.25rem;
    --space-2:   0.5rem;
    --space-3:   0.75rem;
    --space-4:   1rem;
    --space-5:   1.25rem;
    --space-6:   1.5rem;
    --space-8:   2rem;
    --space-10:  2.5rem;
    --space-12:  3rem;
    --space-16:  4rem;
    --space-20:  5rem;
    --space-24:  6rem;

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

    /* Shadows */
    --shadow-sm:  0 1px 3px  rgba(22, 163, 74, 0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 16px rgba(22, 163, 74, 0.10), 0 2px 6px rgba(0,0,0,0.06);
    --shadow-lg:  0 10px 30px rgba(22, 163, 74, 0.14), 0 4px 12px rgba(0,0,0,0.08);
    --shadow-xl:  0 20px 60px rgba(22, 163, 74, 0.18), 0 8px 24px rgba(0,0,0,0.10);
    --shadow-glow:0 0 40px rgba(22, 163, 74, 0.28);

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

    /* Layout */
    --container-max:  1280px;
    --header-height:  90px;
    --sidebar-width:  300px;
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

ul, ol { list-style: none; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

button { cursor: pointer; }

/* =============================================================
   3. TYPOGRAPHY
   ============================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary-dark);
    letter-spacing: -0.01em;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
}
h2 { font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl)); line-height: 1.15; }
h3 { font-size: clamp(var(--fs-xl),  3vw, var(--fs-3xl)); }
h4 { font-size: clamp(var(--fs-lg),  2.5vw, var(--fs-2xl)); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); letter-spacing: 0.02em; }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

.lead {
    font-size: var(--fs-md);
    color: var(--color-text-muted);
    line-height: 1.85;
    font-weight: 400;
}

/* Display heading — even larger, Cormorant only */
.display-heading {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 600;
    line-height: 1.0;
    letter-spacing: -0.03em;
}

.text-muted { color: var(--color-text-muted); }
.text-light { color: var(--color-text-light); }

/* Section labels */
.section-label {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: var(--space-3);
}

/* Section heading block */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-12);
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    color: var(--color-text-muted);
    font-size: var(--fs-md);
}

/* Divider ornament */
.divider-ornament {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-4) 0;
}

.divider-ornament::before,
.divider-ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.divider-ornament span {
    color: var(--color-secondary);
    font-size: var(--fs-lg);
}

/* =============================================================
   4. LAYOUT
   ============================================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-sm { max-width: 800px; }
.container-md { max-width: 960px; }

section {
    padding: var(--space-20) 0;
}

.section-light { background-color: var(--bg-section); }
.section-alt   { background-color: var(--bg-section-alt); }
.section-dark  { background-color: var(--bg-dark); color: var(--color-off-white); }

/* Grid utilities */
.grid {
    display: grid;
    gap: var(--space-8);
}

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

/* Flex utilities */
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* Sidebar layout for blog/inner pages */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--space-12);
    align-items: start;
}

/* =============================================================
   5. HEADER & NAVIGATION
   ============================================================= */
/* Animated top accent strip keyframes */
@keyframes headerAccentFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(3, 22, 10, 0.93);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border-bottom: 1px solid rgba(74, 222, 128, 0.10);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.22), 0 1px 0 rgba(74, 222, 128, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Animated green-to-amber gradient strip along the top edge */
.site-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        #16a34a 0%, #22c55e 25%, #fbbf24 50%, #d97706 75%, #16a34a 100%);
    background-size: 200% 100%;
    animation: headerAccentFlow 6s linear infinite;
}

/* Scrolled: slightly more opaque */
.site-header.scrolled {
    background: rgba(3, 22, 10, 0.97);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.30), 0 1px 0 rgba(74, 222, 128, 0.12);
    border-bottom-color: rgba(74, 222, 128, 0.14);
}

/* Container inside the header must fill the full header height
   so that header-inner's height:100% resolves to 90px, not 0. */
.site-header .container {
    height: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-8);
}

/* ── Logo ─────────────────────────────────────────────────── */
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    width: 46px;
    height: 46px;
    object-fit: contain;
    /* Subtle drop shadow so the logo pops on dark bg */
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.logo-tagline {
    font-size: 0.60rem;
    color: rgba(251, 191, 36, 0.72);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Thin vertical separator between logo and nav */
.header-inner::after {
    display: none; /* separator is done via logo flex-shrink + auto margin */
}

/* ── Main navigation ──────────────────────────────────────── */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    /* Center nav in the remaining space */
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 8px 14px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.02em;
    /* Remove old underline pseudo-element base */
}

/* Replace underline with a bottom dot indicator */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fbbf24;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.10);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scale(1);
}

/* ── Dropdown ─────────────────────────────────────────────── */
.nav-item { position: relative; }

.nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 230px;
    background: rgba(3, 22, 10, 0.97);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid rgba(74, 222, 128, 0.14);
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.30), 0 2px 8px rgba(0, 0, 0, 0.20);
    padding: var(--space-2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.70);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.nav-dropdown a:hover {
    background: rgba(74, 222, 128, 0.10);
    color: #ffffff;
    transform: translateX(4px);
}

/* ── Header CTA ───────────────────────────────────────────── */
.header-cta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

/* ── Hamburger (mobile) ───────────────────────────────────── */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: var(--space-2);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.80);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* =============================================================
   6. HERO SECTIONS
   ============================================================= */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-secondary) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.25;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(5, 46, 22, 0.82) 0%,
        rgba(21, 128, 61, 0.52) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    color: var(--color-white);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-earth-light);
    margin-bottom: var(--space-5);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: var(--space-6);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
    font-size: var(--fs-lg);
    color: var(--color-earth-light);
    margin-bottom: var(--space-10);
    line-height: 1.8;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Page hero (smaller, for inner pages) */
.page-hero {
    background:
        radial-gradient(ellipse 50% 80% at 80% 40%, rgba(217,119,6,0.12), transparent),
        radial-gradient(ellipse 40% 60% at 10% 70%, rgba(74,222,128,0.08), transparent),
        linear-gradient(135deg, #052e16 0%, #14532d 55%, #1e4d2b 100%);
    padding: var(--space-20) 0 var(--space-16);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero/pattern.svg') repeat;
    opacity: 0.04;
}

/* Wave at bottom of page-hero */
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 48px;
    background: inherit;
    /* wave shape via clip-path */
    clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero h1 { color: var(--color-white); font-size: clamp(2rem, 5vw, 3.5rem); }
.page-hero > .container > h1 { margin-bottom: var(--space-4); }
.page-hero p { color: rgba(255,255,255,0.65); font-size: var(--fs-md); max-width: 560px; margin-left:auto; margin-right:auto; }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-4);
    justify-content: center;
}

.breadcrumb a { color: rgba(255,255,255,0.9); }
.breadcrumb a:hover { color: var(--color-earth-light); }
.breadcrumb-sep { opacity: 0.5; }

/* =============================================================
   7. BUTTONS
   ============================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.7rem var(--space-6);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Shine sweep overlay */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.22) 50%, transparent 60%);
    pointer-events: none;
    transition: left 0.45s ease;
}

.btn:hover::before { left: 150%; }

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-mid));
    color: var(--color-white);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(22,163,74,0.30);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-mid), var(--color-primary-dark));
    color: var(--color-white);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(22,163,74,0.38);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary), #c56a00);
    color: var(--color-white);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(217,119,6,0.28);
}
.btn-secondary:hover {
    background: linear-gradient(135deg, #c56a00, #a85900);
    color: var(--color-white);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(217,119,6,0.36);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.65);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(8px);
    border-color: var(--color-white);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent), #c44a00);
    color: var(--color-white);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(234,88,12,0.28);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(234,88,12,0.38);
    color: var(--color-white);
}

.btn-lg {
    padding: 0.85rem var(--space-10);
    font-size: var(--fs-sm);
    letter-spacing: 0.06em;
}
.btn-sm { padding: 0.45rem var(--space-5); font-size: var(--fs-xs); }

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.btn:disabled::before { display: none; }

/* =============================================================
   8. CARDS & COMPONENTS
   ============================================================= */

/* Base card */
.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-body { padding: var(--space-6); }
.card-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border);
    background: var(--bg-section-alt);
}

/* Product/Feature card */
.feature-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid rgba(209,250,229,0.8);
    transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 2px 12px rgba(22,163,74,0.06);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.feature-card:hover {
    border-color: rgba(22,163,74,0.25);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px) rotate(-0.2deg);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(22,163,74,0.12), rgba(74,222,128,0.18));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    color: var(--color-primary);
    font-size: var(--fs-2xl);
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(22,163,74,0.14);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-mid));
    color: white;
    box-shadow: 0 6px 20px rgba(22,163,74,0.30);
}

.feature-card h3 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-3);
    color: var(--color-primary-dark);
}

/* Team member card */
.team-card {
    text-align: center;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-6);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.team-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-5);
    border: 4px solid var(--color-earth-light);
}

.team-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-earth-light), var(--color-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
    color: var(--color-primary);
    font-size: var(--fs-3xl);
    font-family: var(--font-heading);
    font-weight: 700;
    border: 4px solid var(--color-border);
}

.team-name {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-1);
}

.team-designation {
    font-size: var(--fs-sm);
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-4);
}

/* Stat/counter block — Neumorphism */
.stat-block {
    text-align: center;
    padding: var(--space-10) var(--space-8);
    background: #eef7f0;
    border-radius: 24px;
    box-shadow: 10px 10px 24px rgba(160,200,170,0.45), -10px -10px 24px rgba(255,255,255,0.95);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    border: 1px solid rgba(255,255,255,0.6);
}

.stat-block:hover {
    box-shadow: 5px 5px 14px rgba(160,200,170,0.5), -5px -5px 14px rgba(255,255,255,0.98),
                inset 2px 2px 6px rgba(160,200,170,0.2);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 600;
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: var(--space-2);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.5;
}

/* Testimonial */
.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid var(--color-border);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--color-earth-light);
    position: absolute;
    top: var(--space-4);
    left: var(--space-6);
    line-height: 1;
}

/* Badge / Tag */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    background: var(--color-earth-light);
    color: var(--color-primary);
}

.badge-green   { background: #D4EDDA; color: #155724; }
.badge-amber   { background: #FFF3CD; color: #856404; }
.badge-red     { background: #F8D7DA; color: #721C24; }
.badge-blue    { background: #D1ECF1; color: #0C5460; }

/* =============================================================
   9. BLOG COMPONENTS
   ============================================================= */

/* Blog post card */
.post-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(209,250,229,0.7);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(22,163,74,0.05);
    position: relative;
}

.post-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.post-card:hover {
    transform: translateY(-8px) rotate(0.2deg);
    box-shadow: var(--shadow-lg);
}

.post-card:hover::after { opacity: 1; }

.post-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-earth-light), var(--color-light));
    position: relative;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.08);
}

.post-card-body {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-category {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: var(--space-3);
}

.post-card h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-3);
    flex: 1;
}

.post-card h3 a {
    color: var(--color-primary-dark);
}

.post-card h3 a:hover {
    color: var(--color-secondary);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--fs-xs);
    color: var(--color-text-light);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.post-meta i { color: var(--color-secondary); }

/* Featured post card (larger) */
.post-card-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-white);
}

.post-card-featured .post-card-thumb {
    aspect-ratio: auto;
    min-height: 320px;
}

.post-card-featured .post-card-body {
    padding: var(--space-8);
}

/* Single blog post */
.post-content {
    font-size: var(--fs-md);
    line-height: 1.9;
    color: var(--color-text);
}

.post-content h2 { margin: var(--space-8) 0 var(--space-4); }
.post-content h3 { margin: var(--space-6) 0 var(--space-3); }
.post-content p  { margin-bottom: var(--space-5); }

.post-content img {
    border-radius: var(--radius-lg);
    margin: var(--space-8) 0;
    box-shadow: var(--shadow-md);
}

.post-content blockquote {
    border-left: 4px solid var(--color-secondary);
    margin: var(--space-8) 0;
    padding: var(--space-4) var(--space-6);
    background: var(--bg-section-alt);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: var(--fs-lg);
    color: var(--color-primary);
}

.post-content ul, .post-content ol {
    list-style: revert;
    padding-left: var(--space-8);
    margin-bottom: var(--space-5);
}

.post-content li { margin-bottom: var(--space-2); }

.post-content code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--color-light);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    color: var(--color-red);
}

/* Tags list */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tag-link {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.tag-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* Comments section */
.comment {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--color-border);
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-earth-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-primary);
    flex-shrink: 0;
}

.comment-content { flex: 1; }
.comment-author {
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-1);
}
.comment-date {
    font-size: var(--fs-xs);
    color: var(--color-text-light);
    margin-bottom: var(--space-3);
}

/* Blog sidebar */
.sidebar-widget {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

.sidebar-widget h4 {
    font-size: var(--fs-base);
    color: var(--color-primary-dark);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-earth-light);
}

/* =============================================================
   10. FORMS
   ============================================================= */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.form-label .required { color: var(--color-red); margin-left: 2px; }

.form-control {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-base);
    color: var(--color-text);
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.form-control::placeholder {
    color: var(--color-text-light);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C3D1E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    padding-right: var(--space-10);
}

.form-hint {
    font-size: var(--fs-xs);
    color: var(--color-text-light);
    margin-top: var(--space-1);
}

.form-error {
    font-size: var(--fs-xs);
    color: var(--color-red);
    margin-top: var(--space-1);
}

.form-control.is-invalid { border-color: var(--color-red); }
.form-control.is-valid   { border-color: var(--color-accent); }

/* Alert / notification */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.alert-success { background: #D4EDDA; color: #155724; border: 1px solid #C3E6CB; }
.alert-error   { background: #F8D7DA; color: #721C24; border: 1px solid #F5C6CB; }
.alert-warning { background: #FFF3CD; color: #856404; border: 1px solid #FFEEBA; }
.alert-info    { background: #D1ECF1; color: #0C5460; border: 1px solid #BEE5EB; }

/* =============================================================
   11. FOOTER
   ============================================================= */
.site-footer {
    background:
        radial-gradient(ellipse 50% 60% at 10% 20%, rgba(22,163,74,0.18), transparent),
        radial-gradient(ellipse 40% 50% at 90% 80%, rgba(217,119,6,0.14), transparent),
        radial-gradient(ellipse 35% 40% at 60% 10%, rgba(20,83,45,0.12), transparent),
        var(--bg-dark);
    color: rgba(255,255,255,0.78);
    padding: var(--space-12) 0 var(--space-8);
    position: relative;
}

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

.footer-brand .logo-name { color: var(--color-earth-light); }
.footer-brand .logo-tagline { color: rgba(255,255,255,0.5); }

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: var(--fs-sm);
    line-height: 1.8;
    margin-top: var(--space-4);
    margin-bottom: var(--space-5);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition-fast);
    font-size: var(--fs-sm);
}

.footer-social a:hover {
    background: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.footer-col h5 {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-earth-light);
    margin-bottom: var(--space-5);
}

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

.footer-links a {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.6);
    transition: color var(--transition-fast);
}

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

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.6);
}

.footer-contact i { color: var(--color-secondary); margin-top: 3px; }

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

.footer-bottom p {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.4);
    margin: 0;
}

/* =============================================================
   12. UTILITY CLASSES
   ============================================================= */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.font-heading { font-family: var(--font-heading); }
.font-bold    { font-weight: 700; }

.mt-4  { margin-top: var(--space-4); }
.mb-4  { margin-bottom: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mb-8  { margin-bottom: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-12 { margin-bottom: var(--space-12); }

.py-4  { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.pt-0  { padding-top: 0; }

.rounded    { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

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

.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* =============================================================
   13. ANIMATIONS
   ============================================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* Scroll-triggered reveal — defined in effects.css; these rules are kept here
   as a fallback so the site works if effects.css fails to load. */

/* Loading spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* =============================================================
   14. RESPONSIVE BREAKPOINTS
   ============================================================= */

/* Tablet — 1024px */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .content-with-sidebar { grid-template-columns: 1fr; }
    .post-card-featured { grid-template-columns: 1fr; }
    .post-card-featured .post-card-thumb { min-height: 240px; }
}

/* Mobile — 768px */
@media (max-width: 768px) {
    :root { --header-height: 70px; }

    .main-nav {
        display: none;
        position: fixed;
        inset: var(--header-height) 0 0 0;
        /* Match dark header theme on mobile slide-out panel */
        background: rgba(3, 22, 10, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-6);
        gap: var(--space-1);
        overflow-y: auto;
        z-index: 999;
        border-top: 1px solid rgba(74, 222, 128, 0.10);
    }

    .main-nav.open { display: flex; }

    .nav-link {
        padding: var(--space-3) var(--space-4);
        width: 100%;
        color: rgba(255, 255, 255, 0.75);
        border-radius: 10px;
    }
    .nav-link:hover, .nav-link.active {
        background: rgba(255, 255, 255, 0.07);
        color: #fbbf24;
    }

    .nav-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        border-left: 2px solid rgba(74, 222, 128, 0.20);
        background: transparent;
        margin: var(--space-1) 0 var(--space-1) var(--space-4);
        border-radius: 0;
        padding: 0;
    }

    .nav-dropdown a { color: rgba(255, 255, 255, 0.55); }
    .nav-dropdown a:hover { color: #ffffff; background: rgba(255,255,255,0.06); }

    .nav-toggle { display: flex; }

    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    section { padding: var(--space-12) 0; }
}

/* Small mobile — 480px */
@media (max-width: 480px) {
    .container { padding: 0 var(--space-4); }
    .btn-lg { padding: var(--space-3) var(--space-6); }
}

/* =============================================================
   15. MISSING COMPONENT CLASSES
   ============================================================= */

/* Eyebrow badge — prominent label above headings */
.eyebrow-badge {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-earth-light);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

/* Feature grid — used in heritage/working pages */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.feature-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-3);
}

.feature-desc {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Prose content (CMS-rendered long-form) */
.prose-content {
    font-size: var(--fs-md);
    line-height: 1.9;
    color: var(--color-text);
    max-width: 72ch;
    margin: 0 auto;
}
.prose-content h2 { margin: var(--space-8) 0 var(--space-4); }
.prose-content h3 { margin: var(--space-6) 0 var(--space-3); }
.prose-content p  { margin-bottom: var(--space-5); }

/* Warm background (used in heritage/working sections) */
.bg-warm {
    background-color: #fffbf0;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================================
   16. RESPONSIVE LAYOUT HELPERS
   ============================================================= */

/* 2-column content section (equal columns) */
.layout-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

/* 2-column content section (left text, right image — top-aligned) */
.layout-2col-start {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

/* Contact page: narrower info col, wider form col */
.layout-contact {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-16);
    align-items: start;
}

/* 5-step process grid (homepage) */
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
}

/* Floating stat badge (absolute-positioned, overflows on mobile) */
.floating-stat-badge {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: var(--color-secondary);
    color: white;
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    z-index: 2;
}

/* Product highlight box (ingredients) */
.layout-2col-sm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

@media (max-width: 1024px) {
    .process-steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 768px) {
    .layout-2col,
    .layout-2col-start,
    .layout-contact {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .process-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    /* Floating badge: flow naturally on mobile */
    .floating-stat-badge {
        position: relative;
        bottom: auto;
        left: auto;
        display: inline-block;
        margin-top: var(--space-5);
    }

    /* Newsletter form: stack on mobile */
    #newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    #newsletter-form input[type="email"] {
        width: 100% !important;
        min-width: 0;
    }

    /* Working page alternating grid */
    .layout-step-row {
        grid-template-columns: 1fr !important;
        direction: ltr !important;
    }
}

@media (max-width: 480px) {
    .process-steps-grid {
        grid-template-columns: 1fr;
    }
    .layout-2col-sm {
        grid-template-columns: 1fr;
    }
}
