/* ===== Lauraville Fair — styles ===== */
:root {
  --navy: #0f3f5e;
  --navy-deep: #0a2c43;
  --navy-soft: #e7eef3;
  --butter: #f6f0a6;
  --butter-deep: #e9dd6a;
  --leaf: #ffffff;
  --ink: #1d2a33;
  --muted: #5a6872;
  --paper: #fbfaf5;
  --line: #dfe3e2;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(10, 44, 67, .10);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: "Poppins", system-ui, sans-serif; line-height: 1.2; color: var(--navy-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--butter); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ===== Draft placeholders: anything still to be filled in ===== */
.todo {
  background: #fff7c2;
  outline: 2px dashed #d4b106;
  outline-offset: 2px;
  border-radius: 4px;
  padding: 0 4px;
  color: #6b5600;
  font-style: italic;
}
.draft-banner {
  background: #fff7c2; color: #6b5600; text-align: center;
  font-size: .9rem; padding: 6px 16px; border-bottom: 1px solid #e9d97a;
}

/* ===== Header / nav ===== */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { border-radius: 50%; background: #fff; }
.brand span { display: flex; align-items: center; }
.brand b { font: 700 1rem/1 "Poppins", sans-serif; color: var(--butter); letter-spacing: .06em; margin-left: 4px; align-self: flex-end; margin-bottom: 4px; }
.brand .script-word { height: 40px; width: auto; border-radius: 0; background: none; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 8px; font-size: .97rem; }
.nav-links a:hover { background: rgba(255,255,255,.1); }
.nav-links a[aria-current="page"] { color: var(--butter); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; background: var(--navy-deep); padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px; }
  .nav-links .btn { text-align: center; margin-top: 8px; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: 600 1rem/1 "Poppins", sans-serif; text-decoration: none;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn--butter { background: var(--butter); color: var(--navy-deep) !important; }
.btn--butter:hover { background: var(--butter-deep); }
.btn--navy { background: var(--navy); color: #fff !important; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--ghost { border-color: currentColor; color: inherit; }
.nav-links .btn { padding: 10px 18px; }

/* ===== Hero ===== */
.hero {
  background: var(--navy);
  color: #fff; text-align: center; overflow: hidden; position: relative;
  padding: 56px 0 72px;
}
.hero::after { /* soft brushed edge at the bottom, echoing the logo */
  content: ""; position: absolute; left: -5%; right: -5%; bottom: -40px; height: 80px;
  background: var(--paper); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero__logo { width: 210px; margin: 0 auto 18px; border-radius: 50%; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.hero h1 { color: #fff; margin-bottom: .2em; }
.hero h1 .script { display: block; width: min(420px, 78vw); height: auto; margin: 0 auto 4px; }
.hero h1 .fair { color: var(--butter); letter-spacing: .08em; }
.hero__date { font: 600 1.25rem/1.4 "Poppins", sans-serif; color: var(--butter); margin: 10px 0 4px; }
.hero__place { opacity: .9; margin-bottom: 24px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; position: relative; z-index: 1; }

.countdown { display: flex; justify-content: center; gap: 12px; margin: 0 0 28px; }
.countdown div { background: rgba(255,255,255,.1); border-radius: 12px; padding: 10px 14px; min-width: 76px; }
.countdown b { display: block; font: 700 1.8rem/1 "Poppins", sans-serif; color: #fff; }
.countdown small { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }

/* ===== Page header (inner pages) ===== */
.page-hero { background: var(--navy); color: #fff; padding: 48px 0 56px; text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 640px; margin: 0 auto; opacity: .92; font-size: 1.1rem; }

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section--tint { background: var(--navy-soft); }
.section__head { text-align: center; max-width: 700px; margin: 0 auto 36px; }
.section__head p { color: var(--muted); }
.eyebrow { font: 600 .82rem/1 "Poppins", sans-serif; text-transform: uppercase; letter-spacing: .14em; color: var(--navy); opacity: .75; margin-bottom: 10px; display: block; }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card p { color: var(--muted); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card__icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--butter);
  display: grid; place-items: center; margin-bottom: 14px;
}
.card__icon svg { width: 26px; height: 26px; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { position: relative; padding: 16px 16px 16px 64px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--butter); color: var(--navy-deep); font: 700 1rem/34px "Poppins", sans-serif; text-align: center;
}

.cta-band { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .9; max-width: 600px; margin: 0 auto 20px; }

/* ===== Gallery ===== */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery__ph {
  aspect-ratio: 4 / 3; border-radius: 12px; background: var(--navy-soft);
  display: grid; place-items: center; color: var(--navy); opacity: .7; font-size: .9rem;
  border: 2px dashed #b9cad6;
}
.gallery__ph svg { width: 36px; height: 36px; }

/* ===== FAQ ===== */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font: 600 1.05rem/1.4 "Poppins", sans-serif; padding: 16px 0; color: var(--navy-deep); }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }

.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: #c9d6df; padding: 48px 0 28px; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--butter); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-brand { display: flex; align-items: flex-end; gap: 6px; color: #fff; }
.footer-brand .script-word { height: 52px; width: auto; }
.footer-brand b { margin-bottom: 6px; }
.footer-brand b { font: 700 1rem "Poppins", sans-serif; color: var(--butter); letter-spacing: .08em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .88rem; }

/* ===== Vendor categories & applications ===== */
.card--link { text-decoration: none; color: inherit; transition: transform .12s ease, border-color .12s ease; }
.card--link:hover { transform: translateY(-2px); border-color: var(--navy); }
.price { font: 700 1.05rem/1.3 "Poppins", sans-serif; color: var(--navy); margin-top: auto; }
.tiers .price { margin: 0 0 8px; }
.note { text-align: center; color: var(--muted); margin-top: 24px; }
.split--top { align-items: start; }
.facts { padding-left: 1.2em; margin: 0 0 1.2em; }
.facts li { margin-bottom: 4px; }

.apply { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.apply h3 { margin-bottom: .3em; }
.apply p { color: var(--muted); }
.form-embed iframe { width: 100%; border: 0; display: block; }
.form-embed[data-embed="notify"] iframe { height: 520px; }
.form-embed:not([data-embed="notify"]) iframe { height: 1400px; }
.form-embed__missing { margin: 12px 0 0; }

/* "The" in the wordmark */
.brand small { font: 600 .7rem/1 "Poppins", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--butter); align-self: flex-start; margin-right: 4px; }

.footer-brand small { font: 600 .8rem "Poppins", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--butter); align-self: flex-start; }
.hero h1 .the { display: block; font: 600 1rem/1 "Poppins", sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--butter); margin-bottom: 6px; }
.form-embed[data-embed="volunteer"] iframe { height: 1100px; }

/* ===== "Notify me" signup ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.notify { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.notify input {
  flex: 1 1 200px; min-width: 0; font: inherit; padding: 12px 16px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--paper);
}
.notify input:focus { outline: none; border-color: var(--navy); }
.notify button:disabled { opacity: .6; cursor: wait; }
.notify__done { color: var(--navy) !important; font-weight: 600; margin-top: 12px; }
.notify__error { color: #a32020 !important; margin-top: 12px; }
.hero__edition { display: inline-block; margin: 14px 0 0; padding: 5px 14px; border: 2px solid var(--butter); border-radius: 999px; color: var(--butter); font: 600 .85rem/1.2 "Poppins", sans-serif; letter-spacing: .14em; text-transform: uppercase; }

/* ===== Pay your booth fee ===== */
.pay-notice { background: #fff7c2; border: 1px solid #e9d97a; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; color: #5c4a00; }
.pay-card h3 { margin-bottom: 4px; }
.pay-card .price { margin: 0 0 10px; font-size: 1.4rem; }
.pay-card .btn { margin-top: auto; }
.btn--disabled { background: var(--line); color: var(--muted) !important; cursor: default; pointer-events: none; }

/* ===== Sponsor logos ===== */
.sponsor-logos { list-style: none; padding: 0; margin: 0 auto 40px; max-width: 960px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.sponsor-logos li { flex: 0 0 calc((100% - 3 * 16px) / 4); }   /* 4 per row; a short last row stays centered */
@media (max-width: 640px) { .sponsor-logos li { flex-basis: calc((100% - 16px) / 2); height: 110px; } }   /* 2 per row on phones */
.sponsor-logos li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 130px; display: flex; align-items: center; justify-content: center; padding: 14px; overflow: hidden; }
.sponsor-logos img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sponsor-logos a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; border-radius: 8px; }
.sponsor-logos li:has(a):hover { border-color: var(--navy); }

/* ===== Photo gallery ===== */
.gallery__item { display: block; position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--navy-soft); }
.gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 20, 32, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; flex-direction: column; }
.lightbox img { max-width: min(1400px, 92vw); max-height: 80vh; width: auto; height: auto; border-radius: 8px; }
.lightbox__caption { color: #fff; margin: 12px 16px 0; text-align: center; }
.lightbox button { position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; font-size: 2.2rem; line-height: 1; width: 52px; height: 52px; border-radius: 50%; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.gallery--year { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .gallery--year { grid-template-columns: repeat(2, 1fr); } }

/* ===== Home page photo slideshow ===== */
.rotator .rotator__incoming { opacity: 0; transition: opacity .8s ease; z-index: 1; }
.rotator .rotator__incoming.is-in { opacity: 1; }
.rotator__controls { text-align: right; margin: 8px 0 0; }
.rotator__pause { background: none; border: 0; color: var(--navy); font: 500 .85rem "Inter", sans-serif; text-decoration: underline; cursor: pointer; padding: 4px; }

/* ===== Pay page: 4 booth cards + 1 sponsorship card ===== */
.pay-grid { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .pay-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-card--sponsor { max-width: 460px; margin: 0 auto; }
.tier-list { list-style: none; padding: 0; margin: 0 0 18px; }
.tier-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tier-list b { color: var(--navy); }

/* ===== Community organization tiers ===== */
.org-tiers { margin: 0 0 1.2em; }
.org-tiers p { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 10px; color: var(--ink); }
.org-tiers p.org-tiers__note { background: none; border: 0; padding: 4px 0 0; color: var(--muted); }

/* "Rates shown are from last year" note (hidden automatically once applications open) */
.rates-note { display: inline-block; margin-top: 12px; padding: 8px 14px; border-radius: 10px; background: #fff7c2; border: 1px solid #e9d97a; color: #5c4a00 !important; font-size: .95rem; }
