/* ==========================================================================
   International Food Festival - gofoodfest.org
   Light warm editorial system. Two type families, one accent, one dark moment.
   ========================================================================== */

:root {
  /* Surfaces, warm neutrals */
  --paper: #fffdf9;
  --paper-2: #fff8ef;
  --cream: #fdf1e0;
  --line: #ece0cf;
  --line-soft: #f3e9db;

  /* Ink */
  --ink: #16224a;
  --ink-2: #3f4a6b;
  --ink-3: #6b7390;

  /* Accent */
  --orange: #d9541a;
  --orange-ink: #b8430f;
  --orange-wash: #fdeee4;
  --gold: #f0a91c;
  --night: #101b3d;

  /* Scale */
  --shell: 1140px;
  --shell-narrow: 720px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section: clamp(3.5rem, 7.5vw, 6.5rem);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --ring: 0 0 0 3px rgba(217, 84, 26, .28);
  --lift: 0 1px 2px rgba(22, 34, 74, .04), 0 12px 28px -14px rgba(22, 34, 74, .18);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: Barlow, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(217, 84, 26, .15);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .stat-figure, .tier-price {
  font-family: 'Barlow Condensed', Barlow, system-ui, sans-serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.375rem; letter-spacing: 0; }

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: .9rem; }

a { color: var(--orange-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }

img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }

.lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 58ch; }

.shell {
  width: 100%; max-width: var(--shell);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

section { padding-block: var(--section); }

.head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head h2 { margin-bottom: .75rem; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--night); color: #fff;
  padding: .75rem 1.1rem; border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px;
  padding: .7rem 1.5rem;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-primary { background: var(--orange); color: #fff; border: 1px solid var(--orange); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: #fff; color: var(--night); border-color: #fff; transform: translateY(-1px); }

/* ---------- Masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 253, 249, .88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--shell); margin-inline: auto;
  padding: .75rem max(var(--gutter), env(safe-area-inset-left)) .75rem max(var(--gutter), env(safe-area-inset-right));
}
.logo { display: block; line-height: 0; }
.logo img { width: 176px; }
.masthead-nav { display: flex; align-items: center; gap: .35rem; }
.masthead-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: .5rem .85rem;
  border-radius: 999px;
  color: var(--ink); font-weight: 500; font-size: 1rem;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}
.masthead-nav a:hover { background: var(--orange-wash); color: var(--orange-ink); }
.masthead-nav .nav-cta {
  background: var(--ink); color: #fff; font-weight: 600; margin-left: .35rem;
}
.masthead-nav .nav-cta:hover { background: var(--orange); color: #fff; }

/* ---------- Hero: the one dark moment ---------- */

.hero {
  position: relative; isolation: isolate;
  padding-block: clamp(4rem, 10vw, 7.5rem);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  color: #fff;
  background: var(--night);
  text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('img/IFF-2025-Banner.jpg') center 40% / cover no-repeat;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(75% 70% at 50% 42%, rgba(16, 27, 61, .3), rgba(16, 27, 61, .88) 82%),
    linear-gradient(180deg, rgba(16, 27, 61, .5) 0%, rgba(16, 27, 61, .35) 45%, rgba(16, 27, 61, .92) 100%);
}
.hero-shell { max-width: 52rem; margin-inline: auto; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6.2vw, 4.5rem); }
.hero-eyebrow {
  font-weight: 600; font-size: .9rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero-copy {
  margin-top: 1.25rem; margin-inline: auto;
  max-width: 46ch;
  font-size: 1.1875rem; color: #dfe5f4;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
  margin-top: 2rem;
}
.hero-note {
  margin-top: 1.75rem; margin-inline: auto;
  max-width: 52ch;
  font-size: .95rem; color: #a9b3d0;
}

/* ---------- Stats band ---------- */

.stats {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
}
.stats-row {
  display: grid; gap: 1.25rem 2rem;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.stat-figure {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: .2rem;
  font-size: .9rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- About ---------- */

.about-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
.about-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.1fr .9fr; }
}
.about-copy h2 { margin-bottom: 1rem; }
.about-copy .lead { margin-bottom: .9rem; }
.tags {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 1.5rem;
}
.tags li {
  padding: .4rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  font-size: .95rem; font-weight: 500;
  color: var(--ink);
}
.about-figure { margin: 0; }
.about-figure img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--lift);
}

/* ---------- Sign up ---------- */

.signup { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.form-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.form-grid a {
  display: flex; flex-direction: column; gap: .3rem;
  height: 100%;
  padding: 1.25rem 3rem 1.35rem 1.35rem;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.form-grid a::after {
  content: '';
  position: absolute; right: 1.3rem; top: 1.65rem;
  width: .55rem; height: .55rem;
  border-top: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.form-grid a:hover, .form-grid a:focus-visible {
  border-color: var(--orange);
  box-shadow: var(--lift);
  transform: translateY(-2px);
}
.form-grid a:hover::after { transform: rotate(45deg) translate(2px, -2px); }
.form-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem; font-weight: 700; color: var(--ink);
}
.form-hint { font-size: .98rem; color: var(--ink-3); }

/* ---------- Sponsor tiers ---------- */

.tier-grid {
  display: grid; gap: 1rem;
  grid-auto-flow: dense;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 640px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }

.tier {
  display: flex; flex-direction: column;
  padding: 1.5rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.tier-lead { border-color: var(--gold); box-shadow: var(--lift); }
.tier-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.tier-top img { width: 46px; flex: none; }
.tier-price {
  font-size: 1.6rem; color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.tier-list {
  display: grid; gap: .45rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 1rem;
}
.tier-list li { position: relative; padding-left: 1.15rem; }
.tier-list li::before {
  content: '';
  position: absolute; left: 0; top: .58em;
  width: .4rem; height: .4rem; border-radius: 50%;
  background: var(--gold);
}
.tier-cta {
  justify-content: center; gap: .85rem;
  background: var(--night);
  border-color: var(--night);
}
.tier-cta h3 { color: #fff; }
.tier-cta p { color: #c3cbe4; font-size: 1rem; }
.tier-cta .btn { align-self: flex-start; }

.thanks {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  text-align: center;
}
.thanks h3 {
  font-size: 1rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
}
.thanks-logos { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.thanks-logos li {
  display: flex; align-items: center; justify-content: center;
  padding: 1.1rem 1.6rem;
  background: var(--night);
  border-radius: var(--r);
}
.thanks-logos img { width: auto; max-width: 128px; max-height: 108px; }

/* ---------- FAQ ---------- */

.faq { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.faq-shell { max-width: var(--shell-narrow); }
.faq h2 { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.faq-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.faq-list details + details { border-top: 1px solid var(--line-soft); }
.faq-list summary {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem; font-weight: 700; color: var(--ink);
  transition: background-color .16s ease, color .16s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '';
  flex: none; margin-left: auto;
  width: .6rem; height: .6rem;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.faq-list summary:hover { background: var(--orange-wash); color: var(--orange-ink); }
.faq-list details[open] summary { color: var(--orange-ink); }
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-body { padding: 0 1.25rem 1.2rem; max-width: 62ch; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: center;
}
.contact-grid > * { min-width: 0; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr .9fr; } }
.contact h2 { margin-bottom: .9rem; }
.contact .lead { margin-bottom: 1.6rem; }
.contact-figure { margin: 0; }
.contact-figure img { width: 100%; max-width: 320px; margin-inline: auto; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-grid {
  display: grid; gap: 2rem clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.2fr .7fr 1fr; }
}
.footer-brand img { width: 168px; }
.footer-brand p { margin-top: .75rem; color: var(--ink-3); font-size: .98rem; }
.footer-links h2, .footer-presented h2 {
  font-family: Barlow, sans-serif;
  font-size: .85rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .85rem;
}
.footer-links { display: grid; gap: .1rem; justify-items: start; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.footer-links a:hover { color: var(--orange-ink); text-decoration: underline; }
.footer-presented img { width: 170px; }
.footer-presented p { margin-top: .9rem; font-size: .98rem; }
.footer-base {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: .92rem;
}

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  .masthead-inner { flex-direction: column; align-items: stretch; gap: .45rem; padding-block: .6rem; }
  .logo { align-self: center; }
  .logo img { width: 150px; }
  .masthead-nav { justify-content: center; flex-wrap: nowrap; gap: .2rem; }
  .masthead-nav a { padding: .55rem .6rem; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; }
  .masthead-nav .nav-cta { margin-left: .1rem; }
  .stats-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .stats-row .stat + .stat { border-top: 1px solid var(--line); padding-top: 1.25rem; }
  .hero-actions .btn { width: 100%; }
}

/* Very narrow: keep one nav row by dropping the two links nearest the top of the page */
@media (max-width: 560px) {
  .masthead-nav a[href$="#about"], .masthead-nav a[href$="#faq"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .form-grid a, .form-grid a::after, .faq-list summary, .faq-list summary::after, .masthead-nav a {
    transition: none;
  }
}
