/* ── Google Fonts Import ──────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..900;1,9..144,400..900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Design Tokens ──────────────────────────────────── */
:root {
    --color-navy:         #1F3A4D;
    --color-navy-2:       #16293A;
    --color-teal:         #87D5D9;
    --color-cta:          #5EC4CA;
    --color-pink:         #FFB3C6;
    --color-cream:        #F5EFE6;
    --color-paper:        #FBF7F0;
    --color-white:        #FFFFFF;
    --color-muted:        #5C6772;
    --color-muted-light:  rgba(255, 255, 255, 0.62);
    --color-border:       rgba(255, 255, 255, 0.10);
    --color-border-light: rgba(31, 58, 77, 0.06);
    --color-line:         rgba(31, 58, 77, 0.10);
    --color-line-soft:    rgba(31, 58, 77, 0.06);

    --radius-card: 22px;
    --radius-lg:   28px;
    --radius-pill: 999px;
    --shadow-card:       0 1px 0 rgba(31,58,77,0.04), 0 8px 24px rgba(31,58,77,0.08);
    --shadow-card-hover: 0 2px 0 rgba(31,58,77,0.04), 0 18px 44px rgba(31,58,77,0.14);
    --shadow-soft:       0 12px 36px rgba(31,58,77,0.06);

    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans:    'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;

    --ease:            cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-base: 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
    font-family: var(--font-sans);
    color: var(--color-navy);
    background: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-sans); cursor: pointer; }
input, select, textarea { font-family: var(--font-sans); }

/* ── Grain texture for navy/teal sections ─────────── */
.section--navy::after,
.section--teal::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
}
.section--navy,
.section--teal { position: relative; overflow: hidden; }

/* ── Typography ─────────────────────────────────────── */
.eyebrow {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-teal);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
    flex: 0 0 auto;
    opacity: 0.6;
}
.eyebrow--ink {
    color: var(--color-navy);
    opacity: 0.65;
}
.eyebrow--no-rule::before { display: none; }

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.02em;
    color: var(--color-navy);
    margin-bottom: 14px;
    line-height: 0.96;
    font-variation-settings: 'opsz' 144;
}
.section-title--white { color: var(--color-cream); }
.section-title--sm    { font-size: 36px; }

.body-text {
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-muted);
    font-weight: 400;
}
.body-text--dark { color: rgba(245, 239, 230, 0.65); }

/* ── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    padding: 0 24px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease), opacity 0.18s var(--ease), background 0.18s var(--ease);
    white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--color-cta);
    color: var(--color-navy);
    box-shadow: 0 6px 18px rgba(94,196,202,0.45);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(94,196,202,0.55); }

.btn-secondary {
    background: transparent;
    color: var(--color-teal);
    padding: 0;
    height: auto;
    font-size: 14px;
    box-shadow: none !important;
    letter-spacing: 0.04em;
}
.btn-secondary:hover { transform: translateX(3px); }

.btn-ghost {
    background: transparent;
    color: var(--color-navy);
    border: 1.5px solid var(--color-line);
    height: 50px;
}

.btn-ghost-dark {
    background: transparent;
    color: var(--color-cream);
    border: 1.5px solid rgba(255,255,255,0.18);
}
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.42); }

.btn-ink {
    background: var(--color-navy);
    color: var(--color-cream);
}
.btn-ink:hover { background: var(--color-navy-2); }

.btn-sm  { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-lg  { height: 56px; padding: 0 28px; font-size: 15px; }
.btn--disabled { opacity: 0.4; pointer-events: none; }

/* ── Sections ───────────────────────────────────────── */
.section { padding: 88px 64px; }
.section--navy    { background: var(--color-navy); }
.section--teal    { background: var(--color-teal); }
.section--cream   { background: var(--color-cream); }
.section--paper   { background: var(--color-paper); }
.section--white   { background: var(--color-cream); } /* cream replaces flat white */
.section--surface { background: var(--color-paper); }
.section-center   { text-align: center; }
.text-center      { text-align: center; }

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-link {
    color: var(--color-teal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.18s var(--ease);
}
.section-link:hover { gap: 12px; }

/* ── Grid ───────────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ── Cards ──────────────────────────────────────────── */
.card {
    background: var(--color-cream);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

/* ── Allergen badge ─────────────────────────────────── */
.allergen-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: transparent;
    color: var(--color-muted);
    padding: 3px 9px;
    border-radius: 100px;
    border: 1px solid var(--color-line);
}

/* ── Loading ────────────────────────────────────────── */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    color: var(--color-muted);
    font-size: 15px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 64px 32px; }
}
@media (max-width: 640px) {
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .section { padding: 48px 20px; }
    .section-title { font-size: 36px; }
}
