/* ============================================================
   Gluten Free For Me — Shared Design System
   A division of Nagoh Creative (nagoh.us)
   Style: Web 2.0 Glassmorphism — glossy, rounded, animated
   ============================================================ */

:root {
  /* Brand palette — Bright & Playful */
  --sun: #FFC93C;
  --sun-dark: #F5A623;
  --coral: #FF6B4A;
  --coral-dark: #E8532F;
  --teal: #17B8A6;
  --teal-dark: #0E9488;
  --teal-light: #E3FAF6;
  --cream: #FFFBF2;
  --sand: #FFF3DD;
  --ink: #2B2620;
  --ink-soft: #5C5548;
  --line: #F0E4CE;
  --white: #FFFFFF;

  /* Roomier, glassier radii */
  --radius-sm: 18px;
  --radius-md: 28px;
  --radius-lg: 44px;
  --radius-xl: 56px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 16px rgba(43, 38, 32, 0.07);
  --shadow-md: 0 14px 40px rgba(43, 38, 32, 0.12);
  --shadow-lg: 0 26px 64px rgba(43, 38, 32, 0.16);

  /* Glass tokens */
  --glass-fill: rgba(255, 255, 255, 0.5);
  --glass-fill-strong: rgba(255, 255, 255, 0.68);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-blur: 22px;

  --ease-glass: cubic-bezier(0.2, 0.8, 0.2, 1);

  --container: 1180px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--cream); /* fallback if backdrop-filter unsupported */
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Ambient blurred color mesh living behind the whole site — this is
   what all the frosted-glass surfaces are "looking through" at. */
body::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: -2;
  background:
    radial-gradient(38% 32% at 12% 18%, rgba(255, 201, 60, 0.42), transparent 60%),
    radial-gradient(42% 36% at 88% 12%, rgba(255, 107, 74, 0.32), transparent 60%),
    radial-gradient(46% 40% at 82% 82%, rgba(23, 184, 166, 0.28), transparent 60%),
    radial-gradient(40% 34% at 15% 88%, rgba(255, 107, 74, 0.20), transparent 60%),
    var(--cream);
  filter: blur(60px) saturate(120%);
  animation: meshDrift 26s ease-in-out infinite;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(255, 251, 242, 0.28);
  pointer-events: none;
}

@keyframes meshDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-1.5%, 1.5%, 0) scale(1.04); }
}

h1, h2, h3, h4 {
  font-family: 'Fredoka', 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { line-height: 1.65; margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--coral); color: #fff; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(43, 38, 32, 0.18);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(43, 38, 32, 0.3); background-clip: padding-box; }

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

.section { padding: 88px 0; position: relative; }
.section--tight { padding: 56px 0; }
.section--sand { background: rgba(255, 243, 221, 0.5); }
.section--teal { background: rgba(227, 250, 246, 0.45); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral-dark);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.section-head p { font-size: 1.08rem; }

/* ---------- Buttons (glossy Web 2.0 style) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  border: none;
  position: relative;
  background-repeat: no-repeat;
  background-size: 250% 250%, 100% 100%;
  background-position: -120% 0, 0 0;
  transition: transform 0.28s var(--ease-glass), box-shadow 0.28s var(--ease-glass),
              background-position 0.6s ease, background-color 0.28s ease;
  white-space: nowrap;
}
.btn:hover { background-position: 220% 0, 0 0; transform: translateY(-3px) scale(1.025); }
.btn:active { transform: translateY(0) scale(0.97); }

.btn--primary {
  background-image: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.55) 45%, transparent 60%),
                     linear-gradient(160deg, #ff8a6b, var(--coral) 55%, var(--coral-dark));
  color: var(--white);
  box-shadow: 0 10px 26px rgba(255, 107, 74, 0.4), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn--primary:hover { box-shadow: 0 16px 34px rgba(255, 107, 74, 0.48), inset 0 1px 0 rgba(255,255,255,0.6); }

.btn--teal {
  background-image: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.55) 45%, transparent 60%),
                     linear-gradient(160deg, #35d6c4, var(--teal) 55%, var(--teal-dark));
  color: var(--white);
  box-shadow: 0 10px 26px rgba(23, 184, 166, 0.4), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn--teal:hover { box-shadow: 0 16px 34px rgba(23, 184, 166, 0.48), inset 0 1px 0 rgba(255,255,255,0.6); }

.btn--outline {
  background-image: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.35) 45%, transparent 60%),
                     linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0.35));
  backdrop-filter: blur(10px);
  color: var(--ink);
  border: 2px solid rgba(43, 38, 32, 0.7);
}
.btn--outline:hover { background-image: none; background-color: var(--ink); color: var(--white); border-color: var(--ink); }

.btn--white {
  background-image: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.7) 45%, transparent 60%),
                     linear-gradient(var(--white), var(--white));
  color: var(--coral-dark);
  box-shadow: 0 10px 26px rgba(43,38,32,0.18), inset 0 1px 0 rgba(255,255,255,0.9);
}
.btn--white:hover { box-shadow: 0 16px 34px rgba(43,38,32,0.24); }

.btn--block { width: 100%; }
.btn--sm { padding: 11px 22px; font-size: 0.9rem; }

/* ---------- Header / Nav (frosted glass bar) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 242, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(43, 38, 32, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--ink);
}
.brand-mark .logo-badge {
  width: 40px; height: 40px;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(255,255,255,0.6), transparent 55%), linear-gradient(135deg, var(--sun), var(--coral));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.6);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-glass);
}
.brand:hover .logo-badge { transform: rotate(-6deg) scale(1.06); }
.brand-sub {
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  margin-left: 50px;
  margin-top: 1px;
  white-space: nowrap;
}
.brand-sub a { color: var(--teal-dark); font-weight: 600; }
.brand-sub a:hover { text-decoration: underline; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-glass);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 42px; height: 42px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.nav-toggle:hover { background: rgba(255,255,255,0.5); }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: '';
  display: block;
  width: 22px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: all 0.2s ease;
}
.nav-toggle span { margin: 5px 0; }

/* ---------- Cards (glass panels) ---------- */
.card {
  background-image:
    radial-gradient(130% 140% at 15% -15%, rgba(255,255,255,0.95), transparent 45%),
    linear-gradient(165deg, var(--glass-fill-strong), var(--glass-fill));
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.4s var(--ease-glass), box-shadow 0.4s var(--ease-glass);
}
.card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Generic glass utility for non-.card surfaces */
.glass {
  background-image:
    radial-gradient(130% 140% at 15% -15%, rgba(255,255,255,0.95), transparent 45%),
    linear-gradient(165deg, var(--glass-fill-strong), var(--glass-fill));
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* ---------- Badges / Tags ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.badge--full { background: rgba(23, 184, 166, 0.16); color: var(--teal-dark); }
.badge--extensive { background: rgba(255, 201, 60, 0.26); color: #9C6B00; }
.badge--dedicated { background: rgba(255, 107, 74, 0.16); color: var(--coral-dark); }
.badge--dessert { background: rgba(232, 121, 249, 0.16); color: #A02FBD; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, rgba(43,38,32,0.94), var(--ink) 40px);
  color: #D9D2C4;
  padding: 64px 0 28px;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand-mark { color: var(--white); }
.footer-grid h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #B8AF9D; font-size: 0.94rem; transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--sun); }
.footer-note { color: #9A917E; font-size: 0.9rem; margin: 18px 0 0; max-width: 320px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: #8A8271;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #B8AF9D; }
.footer-bottom a:hover { color: var(--sun); }

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 7px;
}
.field .req { color: var(--coral); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(240, 228, 206, 0.8);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.98rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(23, 184, 166, 0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--ink-soft); }
.checkbox-row input { width: auto; margin-top: 3px; }

.form-success {
  display: none;
  text-align: center;
  padding: 60px 20px;
}
.form-success.show { display: block; animation: fadeInUp 0.5s var(--ease-glass); }
.form-success .icon-circle { margin: 0 auto 20px; }

/* ---------- Utility ---------- */
.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.6);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: all 0.25s var(--ease-glass);
}
.chip:hover { border-color: var(--teal); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.chip.active { background: var(--ink); color: var(--white); border-color: var(--ink); box-shadow: var(--shadow-sm); }

.blob-decor {
  position: absolute;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
  animation: floatSlow 12s ease-in-out infinite;
}

.stars { color: var(--sun-dark); letter-spacing: 1px; }

.icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), var(--shadow-sm);
  transition: transform 0.3s var(--ease-glass);
}
.card:hover .icon-circle { transform: scale(1.08) rotate(-4deg); }

/* ---------- Page Hero base ---------- */
.page-hero {
  position: relative;
  padding: 64px 0 56px;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 2.9rem); }
.page-hero .lede { font-size: 1.12rem; max-width: 620px; }

/* ---------- Animations ---------- */
@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(16px, -18px) scale(1.06); }
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.85), 0 0 0 0 rgba(255,107,74,0.25); }
  50% { box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.9), 0 0 30px 4px rgba(255,107,74,0.28); }
}

.hero-mini { animation: floatBadge 4.5s ease-in-out infinite; }
.hero-mini--2 { animation-delay: 1.4s; }

/* Scroll-reveal (classes are applied automatically by script.js) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-glass), transform 0.7s var(--ease-glass);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:nth-child(4) { grid-column: span 3; }
}

/* Collapse to the hamburger menu well before the nav items are forced
   to cram together — five links plus two CTA buttons need real room. */
@media (max-width: 1180px) {
  .brand-sub { display: none; }
  .nav-links {
    position: fixed;
    top: 78px; left: 12px; right: 12px;
    background: rgba(255, 251, 242, 0.9);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-glass);
    z-index: 90;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-toggle { display: flex; }
  .nav-cta .btn--outline { display: none; }
}

@media (max-width: 860px) {
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:nth-child(4) { grid-column: span 2; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:nth-child(4) { grid-column: span 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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