/* ==========================================================================
   Design System — CSS Custom Properties, Reset, Base Styles
   ========================================================================== */

:root {
    /* ---- Brand Colors: Primary (Green) ---- */
    --color-primary-900: #1A3A0F;
    --color-primary-800: #224D14;
    --color-primary-700: #2D6119;
    --color-primary-600: #3A7A22;
    --color-primary-500: #4A9A2E;
    --color-primary-300: #8DC977;
    --color-primary-100: #E8F5E2;

    /* ---- Brand Colors: Accent (Gold) ---- */
    --color-accent-700: #A67E2E;
    --color-accent-500: #C8993A;
    --color-accent-300: #D4AA52;
    --color-accent-100: #F5E6C8;

    /* ---- Neutrals ---- */
    --color-surface: #F6F3EE;
    --color-text-primary: #1C1A17;
    --color-text-secondary: #4A4741;
    --color-text-muted: #7A776F;
    --color-white: #FFFFFF;
    --color-border: #DDD9D0;
    --color-border-light: #EDE9E2;

    /* ---- Semantic ---- */
    --color-error: #C0392B;
    --color-error-light: #FDEDEB;
    --color-success: #27AE60;
    --color-success-light: #EAFAF1;
    --color-special-order: #D4AA52;
    --color-special-order-light: #FDF6E8;

    /* ---- Component Aliases ---- */
    --color-cta-bg: var(--color-primary-600);
    --color-cta-hover: var(--color-primary-700);
    --color-cta-text: var(--color-white);

    /* ---- Typography ---- */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lora', 'Times New Roman', serif;
    --font-ui: 'Jost', 'Helvetica Neue', Arial, sans-serif;

    /* Font Sizes (fluid) */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
    --text-sm: clamp(0.875rem, 0.825rem + 0.25vw, 0.9375rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.4rem + 2.375vw, 2.75rem);
    --text-4xl: clamp(2.25rem, 1.6rem + 3.25vw, 3.5rem);
    --text-5xl: 3.75rem;
    --text-hero: clamp(2.5rem, 6vw, 5rem);

    /* Line Heights */
    --leading-tight: 1.2;
    --leading-snug: 1.4;
    --leading-base: 1.65;
    --leading-loose: 1.8;

    /* Font Weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* ---- Spacing (numbered) ---- */
    --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;
    --space-32: 8rem;

    /* Section & Container */
    --section-py: clamp(4rem, 8vw, 7rem);
    --container-px: clamp(1.25rem, 5vw, 3rem);
    --container-max: 1280px;
    --nav-height: 72px;

    /* ---- Border Radius ---- */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* ---- Shadows ---- */
    --shadow-sm: 0 1px 2px rgba(28, 26, 23, 0.08);
    --shadow-md: 0 4px 12px rgba(28, 26, 23, 0.1);
    --shadow-lg: 0 8px 24px rgba(28, 26, 23, 0.12);
    --shadow-green: 0 8px 32px rgba(58, 122, 34, 0.28);

    /* ---- Transitions ---- */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-hero: 600ms cubic-bezier(0.22, 1, 0.36, 1);

    /* ---- Component Tokens ---- */
    /* Buttons */
    --btn-padding-y: 0.625rem;
    --btn-padding-x: 1.75rem;
    --btn-radius: var(--radius-md);
    --btn-font-size: var(--text-base);
    --btn-font-weight: var(--weight-semibold);

    /* Cards */
    --card-radius: var(--radius-lg);
    --card-shadow: var(--shadow-md);
    --card-shadow-hover: var(--shadow-lg);
    --card-padding: var(--space-6);

    /* Nav */
    --nav-bg: var(--color-white);
    --nav-bg-scrolled: var(--color-white);
    --nav-shadow-scrolled: 0 2px 8px rgba(28, 26, 23, 0.08);

    /* Hero */
    --hero-overlay: linear-gradient(rgba(28, 26, 23, 0.5), rgba(28, 26, 23, 0.6));

    /* Callout */
    --callout-order-bg: var(--color-primary-900);
    --callout-order-text: var(--color-white);
    --callout-special-bg: var(--color-special-order-light);
    --callout-special-border: var(--color-accent-500);

}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

::selection {
    background: var(--color-primary-100);
    color: var(--color-primary-900);
}

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

a {
    color: var(--color-primary-600);
    text-decoration-skip-ink: auto;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-700);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

ul[role="list"],
ol[role="list"] {
    list-style: none;
}

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

input,
textarea,
select {
    font: inherit;
}
