/* ==========================================================================
   Owensboro Home Expo — Green River Building Industry Association
   Design system + component styles
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Brand — sampled from the Home Expo logo */
  --navy-900: #0A2632;
  --navy-800: #0E3442;
  --navy:     #134252;
  --navy-600: #1B586D;
  --navy-500: #2A7189;

  --sky:      #67B8E5;
  --sky-600:  #3E9CD1;
  --sky-300:  #BFE2F5;
  --sky-100:  #E9F5FC;

  --amber:     #E39B2E;
  --amber-600: #C98115;
  --amber-100: #FDF3E2;

  /* Neutrals */
  --ink:      #0E1A20;
  --ink-soft: #405560;
  --muted:    #6B808B;
  --line:     #DDE6EA;
  --line-soft:#EBF1F4;
  --surface:  #F6F9FA;
  --white:    #FFFFFF;

  /* Type */
  --font-display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Space + shape */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 32, .06), 0 2px 8px rgba(14, 26, 32, .04);
  --shadow: 0 4px 12px rgba(14, 26, 32, .07), 0 12px 32px rgba(14, 26, 32, .06);
  --shadow-lg: 0 12px 28px rgba(14, 26, 32, .10), 0 32px 64px rgba(14, 26, 32, .10);

  --container: 1160px;
  --nav-h: 76px;
}

/* --- 2. Reset + base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sky-600); }

:focus-visible {
  outline: 3px solid var(--sky-600);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 18px;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* --- 3. Typography ------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--navy-900);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); letter-spacing: -0.01em; }
h4 { font-size: 1.02rem; letter-spacing: -0.005em; }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sky-600);
  margin: 0 0 .9rem;
  display: block;
}
.eyebrow--on-dark { color: var(--sky); }

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
}
.lede--on-dark { color: rgba(255,255,255,.82); }

.text-center { text-align: center; }
.center-narrow { max-width: 720px; margin-inline: auto; }
.center-narrow .lede { margin-inline: auto; }

/* --- 4. Layout ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--wide { max-width: 1320px; }

.section { padding: clamp(64px, 8vw, 108px) 0; }
.section--tight { padding: clamp(48px, 5.5vw, 72px) 0; }
.section--surface { background: var(--surface); }
.section--sky { background: var(--sky-100); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.85); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }

.section-head { margin-bottom: clamp(36px, 4.5vw, 56px); }
.section-head--split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.section-head--split > div { flex: 1 1 460px; }

.grid { display: grid; gap: 24px; }

/* Grid and flex children default to min-width:auto, which is min-content — so
   a wide child (a map iframe, a long word) refuses to shrink and pushes the
   whole track past the viewport. Resetting to 0 lets tracks actually shrink. */
.grid > *, .split > *, .stats__grid > *, .form-grid > *, .pick-grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(228px, 100%), 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
/* Form-beside-sidebar variant: wider left column, top-aligned. */
.split--form { grid-template-columns: 1.15fr .85fr; align-items: start; }
@media (max-width: 880px) {
  .split, .split--form { grid-template-columns: 1fr; }
}

/* --- 5. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .96rem;
  letter-spacing: .01em;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--amber); color: var(--navy-900); border-color: var(--amber); }
.btn--primary:hover { background: var(--amber-600); border-color: var(--amber-600); color: var(--navy-900); }

.btn--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }

.btn--sky { background: var(--sky); color: var(--navy-900); border-color: var(--sky); }
.btn--sky:hover { background: var(--sky-600); border-color: var(--sky-600); color: #fff; }

.btn--lg { padding: 18px 36px; font-size: 1.05rem; }

/* On very narrow screens a nowrap button overflows its container. */
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; }
  .btn--lg { padding: 16px 22px; font-size: 1rem; }
  .btn { padding-inline: 20px; }
}
.btn--sm { padding: 10px 18px; font-size: .86rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* --- 6. Navigation ------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { height: 46px; width: auto; }

.nav__links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav__links a {
  display: block;
  padding: 9px 13px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color .15s ease, background-color .15s ease;
}
.nav__links a:hover { color: var(--navy); background: var(--sky-100); }
.nav__links a[aria-current="page"] { color: var(--navy-900); background: var(--sky-100); }

.nav__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav__toggle span {
  display: block; width: 20px; height: 2px; background: var(--navy);
  position: relative; transition: background .15s ease;
  flex-shrink: 0;          /* the sr-only sibling was squeezing it */
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy);
  transition: transform .2s ease, top .2s ease;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1000px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 16px 24px 26px;
    display: none;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  .nav__menu.is-open { display: block; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__links a { padding: 13px 14px; font-size: 1.05rem; }
  .nav__cta { margin-top: 16px; flex-direction: column; align-items: stretch; }
  .nav__cta .btn { width: 100%; }
  .nav > .container > .nav__inner > .nav__cta { display: none; }
}
@media (min-width: 1001px) {
  .nav__menu { display: flex !important; align-items: center; gap: 20px; }
  .nav__menu .nav__cta { display: none; }
}

/* --- 7. Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 52%, var(--navy-600) 100%);
  color: #fff;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0 clamp(56px, 7vw, 92px);
}
.hero::before {
  /* Window-pane motif lifted from the logo's door */
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(103,184,229,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103,184,229,.14) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 76% 68% at 82% 18%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 76% 68% at 82% 18%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; right: -12%; top: -28%;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(103,184,229,.24) 0%, transparent 66%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em {
  font-style: normal;
  color: var(--sky);
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--amber); color: var(--navy-900);
  font-family: var(--font-display); font-weight: 800;
  font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px;
  margin-bottom: 24px;
}
.hero__badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--navy-900);
}

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 0;
  margin: 32px 0 34px;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.hero__meta-item {
  padding: 20px 32px 20px 0;
  margin-right: 32px;
  border-right: 1px solid rgba(255,255,255,.14);
}
.hero__meta-item:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__meta-label {
  display: block;
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 5px;
}
.hero__meta-value {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.12rem; color: #fff; line-height: 1.35;
}
.hero__meta-value small { display: block; font-size: .84rem; font-weight: 500; color: rgba(255,255,255,.65); font-family: var(--font-body); }

@media (max-width: 620px) {
  .hero__meta-item { padding: 16px 0; margin-right: 0; border-right: 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.12); }
  .hero__meta-item:last-child { border-bottom: 0; }
}

/* Countdown */
.countdown { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.countdown__unit {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 14px 18px;
  min-width: 82px;
  text-align: center;
}
.countdown__num {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.85rem; color: #fff; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--sky); font-weight: 700;
}

/* --- 8. Stat strip ------------------------------------------------------- */
.stats {
  background: var(--navy-900);
  color: #fff;
  padding: 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
}
@media (max-width: 900px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--navy-900);
  padding: 34px 26px;
  text-align: center;
  min-width: 0;            /* let the grid column actually shrink */
}
.stat__num {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  color: var(--sky);
  line-height: 1.05;
  margin-bottom: 6px;
}
.stat__label {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; color: rgba(255,255,255,.68);
  overflow-wrap: break-word;
}
@media (max-width: 420px) {
  .stat { padding: 26px 10px; }
  .stat__label { font-size: .75rem; letter-spacing: .03em; }
}

/* --- 9. Cards ------------------------------------------------------------ */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card--hover:hover { border-color: var(--sky); box-shadow: var(--shadow); transform: translateY(-3px); }
.card__icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sky-100); color: var(--navy);
  border-radius: 10px;
  margin-bottom: 18px;
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 0; }

/* Numbered reason cards */
.reason { position: relative; padding-left: 62px; }
.reason__num {
  position: absolute; left: 0; top: 2px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--sky);
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  border-radius: 10px;
}
.reason h3 { margin-bottom: .35em; }
.reason p { color: var(--ink-soft); margin-bottom: 0; }

/* Category tiles */
.cat {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 600;
  color: var(--navy-900);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.cat:hover { border-color: var(--sky); background: var(--sky-100); transform: translateY(-2px); }
.cat svg { width: 24px; height: 24px; color: var(--sky-600); flex-shrink: 0; }

/* --- 10. Sponsors -------------------------------------------------------- */
.sponsor-row {
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center;
  gap: 18px;
}
.sponsor {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 34px;
  min-width: 258px;
  min-height: 176px;
  text-align: center;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
/* Only the linked cards react to the pointer. */
a.sponsor:hover {
  border-color: var(--sky);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.sponsor__tier {
  font-family: var(--font-body); font-weight: 700;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.sponsor__logo {
  /* Sponsor marks vary wildly in aspect ratio. Capping both axes lets a wide
     lockup and a square one sit at comparable optical weight. */
  max-height: 88px; max-width: 260px; width: auto; height: auto;
  object-fit: contain;
}
/* Fallback for a sponsor with no logo file yet. */
.sponsor__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; line-height: 1.3; color: var(--navy);
}
.sponsor--presenting { border-color: var(--sky-300); }

/* --- 11. CTA band -------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  padding: clamp(56px, 6.5vw, 84px) 0;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(103,184,229,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103,184,229,.13) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(105deg, #000 0%, transparent 58%);
  -webkit-mask-image: linear-gradient(105deg, #000 0%, transparent 58%);
}
.cta-band__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 0; max-width: 54ch; }
.cta-band__text { flex: 1 1 480px; }

/* --- 12. Forms ----------------------------------------------------------- */
.form-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.6vw, 44px);
  box-shadow: var(--shadow-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field--full { grid-column: 1 / -1; }

.fieldset {
  border: 0; padding: 0; margin: 0 0 34px;
}
.fieldset:last-of-type { margin-bottom: 26px; }
.fieldset__legend {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.02rem;
  color: var(--navy-900);
  padding: 0 0 6px;
  margin-bottom: 20px;
  width: 100%;
  border-bottom: 2px solid var(--sky-300);
  display: flex; align-items: baseline; gap: 10px;
}
.fieldset__legend span {
  font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--sky-600);
}

label { display: block; }
.label {
  display: block;
  font-size: .84rem; font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 7px;
  letter-spacing: .01em;
}
.label .req { color: #C4442E; margin-left: 2px; }
.label .opt { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }

.input, .select, .textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B808B' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.input:hover, .select:hover, .textarea:hover { border-color: #C3D2D9; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--sky-600);
  box-shadow: 0 0 0 3px rgba(103,184,229,.26);
}
.input::placeholder, .textarea::placeholder { color: #9AAAB3; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: #C4442E;
  box-shadow: 0 0 0 3px rgba(196,68,46,.14);
}
.hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.error-msg { font-size: .82rem; color: #C4442E; margin-top: 6px; font-weight: 600; display: none; }
.error-msg.is-shown { display: block; }

/* Checkbox / radio */
.check {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: .95rem; color: var(--ink-soft);
  cursor: pointer; padding: 9px 0;
  min-height: 44px;          /* the whole label is the tap target */
}
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy-600); flex-shrink: 0; cursor: pointer; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 6px 20px; }

/* Card-style radio (booth picker) */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(232px, 100%), 1fr)); gap: 14px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.pick__body {
  display: block;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  height: 100%;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.pick:hover .pick__body { border-color: var(--sky); }
.pick input:checked + .pick__body {
  border-color: var(--navy-600);
  background: var(--sky-100);
  box-shadow: 0 0 0 3px rgba(103,184,229,.22);
}
.pick input:focus-visible + .pick__body { outline: 3px solid var(--sky-600); outline-offset: 2px; }
.pick__name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--navy-900); line-height: 1.3; }
.pick__price { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--navy); margin: 6px 0 2px; line-height: 1.15; }
.pick__price span { font-size: .8rem; font-weight: 600; color: var(--muted); font-family: var(--font-body); }
.pick__note { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: 6px; line-height: 1.45; }

/* Two fields sharing one grid cell (State / ZIP) */
.pair-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Member / non-member rate pair on the booth cards */
.price-pair { display: grid; gap: 3px; margin-bottom: 0; }
.price-pair span { font-size: .95rem; color: var(--ink-soft); }
.price-pair strong {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.15rem; color: var(--navy-900); margin-right: 5px;
}

/* Utilities rate table */
.rate-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.rate-table table { width: 100%; border-collapse: collapse; }
.rate-table th, .rate-table td { padding: 13px 18px; text-align: left; font-size: .96rem; }
.rate-table thead th {
  background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 700;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}
.rate-table tbody tr + tr { border-top: 1px solid var(--line-soft); }
.rate-table tbody td:last-child {
  font-family: var(--font-display); font-weight: 700; color: var(--navy-900);
  width: 1%; white-space: nowrap;
}
.rate-included { color: var(--muted); font-weight: 600; font-family: var(--font-body); font-size: .88rem; }

/* Utility picker rows in the form */
.util-list { display: grid; gap: 10px; }
.util {
  display: flex; align-items: center; gap: 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.util:hover { border-color: var(--sky); }
.util:has(input:checked) { border-color: var(--navy-600); background: var(--sky-100); }
.util input { width: 19px; height: 19px; accent-color: var(--navy-600); cursor: pointer; flex-shrink: 0; margin: 0; }
.util__name { flex: 1; font-weight: 600; color: var(--navy-900); font-size: .97rem; }
.util__price { font-family: var(--font-display); font-weight: 800; color: var(--navy); }

/* Running total */
.total-box {
  margin-top: 26px;
  border: 1.5px solid var(--sky-300);
  background: var(--sky-100);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.total-box__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  font-size: .96rem; color: var(--ink-soft);
  padding: 6px 0;
}
.total-box__row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy-900); }
.total-box__row--sum {
  margin-top: 8px; padding-top: 14px;
  border-top: 1.5px solid var(--sky-300);
}
.total-box__row--sum span:first-child {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--navy-900);
}
.total-box__row--sum span:last-child {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--navy);
}
.total-box__note { font-size: .84rem; color: var(--muted); margin: 10px 0 0; }

/* Honeypot */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Form status */
.form-status {
  display: none;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 22px;
  font-size: .96rem;
  border: 1.5px solid transparent;
}
.form-status.is-shown { display: block; }
.form-status--ok    { background: #E9F7EF; border-color: #9FD8B6; color: #16653C; }
.form-status--error { background: #FDECE8; border-color: #F0B4A6; color: #9A3418; }

.btn[aria-busy="true"] { opacity: .68; pointer-events: none; }

/* Success panel */
.success-panel {
  display: none;
  text-align: center;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 44px);
}
.success-panel.is-shown { display: block; }
.success-panel__mark {
  width: 62px; height: 62px; margin: 0 auto 22px;
  border-radius: 50%;
  background: #E9F7EF; color: #16653C;
  display: flex; align-items: center; justify-content: center;
}
.success-panel__mark svg { width: 30px; height: 30px; }

/* --- 13. Vendors --------------------------------------------------------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.search-wrap { position: relative; flex: 1 1 280px; max-width: 400px; }
.search-wrap svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}
.search-wrap .input { padding-left: 42px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-body);
  font-size: .87rem; font-weight: 600;
  padding: 10px 16px;
  min-height: 40px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--sky); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.vendor-count { font-size: .9rem; color: var(--muted); margin-bottom: 22px; }

.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(292px, 100%), 1fr)); gap: 20px; }
.vendor {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.vendor:hover { border-color: var(--sky); box-shadow: var(--shadow); transform: translateY(-3px); }
/* Logo plate. Fixed height so wildly different logo shapes still line the
   cards up on a row; contain keeps every mark whole and undistorted. */
/* Fixed-height plate keeps card content aligned across a row. The logo's own
   size is set per-image by balanceLogos() in main.js — see the note there. */
.vendor__logo {
  display: flex; align-items: center; justify-content: center;
  height: 100px;
  margin-bottom: 18px;
}
.vendor__logo img {
  max-width: 100%;
  max-height: 92px;
  object-fit: contain;
}

.vendor__tag {
  align-self: flex-start;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--sky-100); color: var(--navy-600);
  padding: 5px 10px; border-radius: 999px;
  margin-bottom: 14px;
}
.vendor__name { font-family: var(--font-display); font-weight: 800; font-size: 1.16rem; color: var(--navy-900); margin-bottom: 8px; line-height: 1.25; }
.vendor__desc { font-size: .94rem; color: var(--ink-soft); margin-bottom: 16px; flex-grow: 1; }
.vendor__links { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 15px; border-top: 1px solid var(--line-soft); }
.vendor__links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 600; color: var(--navy-600); text-decoration: none;
  padding: 9px 0; min-height: 40px;
}
.vendor__links a:hover { color: var(--sky-600); text-decoration: underline; }
.vendor__links svg { width: 14px; height: 14px; }
.vendor__booth {
  font-family: var(--font-display); font-weight: 700;
  font-size: .82rem; color: var(--muted); margin-left: auto; letter-spacing: .04em;
}

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h3 { color: var(--navy-900); }

/* --- 14. Gallery --------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}
.shot {
  position: relative;
  border: 0; padding: 0; margin: 0;
  background: var(--sky-100);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  display: block; width: 100%;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.shot:hover img { transform: scale(1.045); }
.shot__cap {
  position: absolute; inset: auto 0 0 0;
  padding: 26px 16px 13px;
  background: linear-gradient(to top, rgba(10,38,50,.86), transparent);
  color: #fff; font-size: .86rem; font-weight: 600; text-align: left;
  opacity: 0; transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
}
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { opacity: 1; transform: translateY(0); }
.shot--tall { grid-row: span 2; aspect-ratio: 4 / 6.2; }
@media (max-width: 620px) { .shot--tall { grid-row: span 1; aspect-ratio: 4 / 3; } }

/* Placeholder tile when no photo supplied yet */
.shot--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--sky-100), var(--sky-300));
  color: var(--navy-600); cursor: default;
}
.shot--placeholder span {
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; opacity: .7;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,38,50,.94);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1200px, 94vw); max-height: 82vh; border-radius: var(--radius); object-fit: contain; }
.lightbox__cap {
  color: rgba(255,255,255,.8); text-align: center; margin-top: 16px; font-size: .93rem;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.lightbox__count {
  color: rgba(255,255,255,.45); font-size: .82rem;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.24); }
.lightbox__close { top: 22px; right: 22px; font-size: 1.5rem; line-height: 1; }
.lightbox__nav--prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__nav svg { width: 20px; height: 20px; }
@media (max-width: 620px) {
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}

/* --- 15. FAQ / accordion ------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: 0;
  padding: 22px 4px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.06rem;
  color: var(--navy-900); text-align: left; cursor: pointer;
}
.faq__q:hover { color: var(--sky-600); }
.faq__q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .22s ease; color: var(--sky-600); }
.faq__q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq__a { display: none; padding: 0 4px 24px; color: var(--ink-soft); max-width: 72ch; }
.faq__a.is-open { display: block; }

/* --- 16. Info list / details --------------------------------------------- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 15px; align-items: flex-start; min-width: 0; }
/* Long unbreakable tokens (email addresses, URLs) otherwise force the row
   wider than the column on narrow screens. */
.info-list li > div { min-width: 0; overflow-wrap: anywhere; }
.info-list svg { width: 21px; height: 21px; color: var(--sky-600); flex-shrink: 0; margin-top: 3px; }
.info-list strong { display: block; color: var(--navy-900); font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.info-list span, .info-list a { color: var(--ink-soft); font-size: .97rem; }
.info-list--on-dark strong { color: #fff; }
.info-list--on-dark span, .info-list--on-dark a { color: rgba(255,255,255,.76); }
.info-list--on-dark svg { color: var(--sky); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

/* Not a flex row: a flex li turns an inline <strong> lead-in and the text that
   follows it into two independent flex items, which staggers the wrap. Absolute
   positioning keeps the tick out of flow so the copy reads as one block. */
.checklist li {
  position: relative;
  padding-left: 33px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.checklist li::before {
  content: '';
  position: absolute; left: 0; top: 3px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23134252' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5 6.3 12 13 4.5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checklist li strong { color: var(--navy-900); font-weight: 700; }
.checklist--on-dark li { color: rgba(255,255,255,.8); }
.checklist--on-dark li strong { color: #fff; }
/* Navy tick vanishes on a dark ground — swap it for the sky blue. */
.checklist--on-dark li::before {
  background: rgba(103,184,229,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2367B8E5' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5 6.3 12 13 4.5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Page header (interior pages) */
.page-head {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: clamp(52px, 6.5vw, 84px) 0 clamp(48px, 6vw, 76px);
  overflow: hidden;
}
.page-head::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(103,184,229,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103,184,229,.13) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(ellipse 70% 90% at 88% 10%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 88% 10%, #000 0%, transparent 70%);
}
.page-head__inner { position: relative; z-index: 1; max-width: 780px; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head .lede { color: rgba(255,255,255,.82); }

.breadcrumb {
  font-size: .82rem; color: rgba(255,255,255,.55);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255,255,255,.72); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* Pull quote */
.quote {
  border-left: 4px solid var(--sky);
  padding: 6px 0 6px 26px;
  margin: 0;
}
.quote p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  line-height: 1.42;
  letter-spacing: -.01em;
  color: var(--navy-900);
  margin-bottom: .7em;
}
.quote footer { font-size: .9rem; color: var(--muted); font-weight: 600; }
.quote--on-dark { border-color: var(--sky); }
.quote--on-dark p { color: #fff; }
.quote--on-dark footer { color: var(--sky); }

/* Map embed */
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sky-100);
  aspect-ratio: 16 / 11;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Media/press asset row */
.asset {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; background: var(--white);
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.asset:hover { border-color: var(--sky); box-shadow: var(--shadow-sm); }
.asset__icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--sky-100); color: var(--navy);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
}
.asset__icon svg { width: 20px; height: 20px; }
.asset__name { font-family: var(--font-display); font-weight: 700; color: var(--navy-900); font-size: 1rem; }
.asset__meta { font-size: .84rem; color: var(--muted); }

/* --- 16b. M Squared media-coverage panel ---------------------------------
   Dark ground on purpose: the M Squared mark is a white knockout, so it needs
   a dark background to read at all. */
.msq {
  background: var(--navy-900);
  color: rgba(255,255,255,.82);
  position: relative;
  overflow: hidden;
}
.msq::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(103,184,229,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103,184,229,.10) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 80% at 92% 12%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 92% 12%, #000 0%, transparent 70%);
  pointer-events: none;
}
.msq__inner { position: relative; z-index: 1; }
.msq h2 { color: #fff; }

.msq__mark { display: flex; align-items: center; justify-content: center; }
.msq__mark a {
  display: block;
  width: 100%; max-width: 420px;
  padding: 34px 30px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.msq__mark a:hover {
  border-color: rgba(103,184,229,.55);
  background: rgba(255,255,255,.07);
  transform: translateY(-3px);
}
.msq__mark img { width: 100%; height: auto; }

/* --- 16c. "Built by" footer credit --------------------------------------- */
.built-by {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; min-height: 44px;
  text-decoration: none;
  color: rgba(255,255,255,.5);
  font-size: .82rem;
  transition: color .16s ease;
}
.built-by:hover { color: rgba(255,255,255,.82); }
.built-by img {
  height: 27px; width: auto;
  opacity: .72;
  transition: opacity .16s ease;
}
.built-by:hover img { opacity: 1; }
.built-by span { white-space: nowrap; }
@media (max-width: 620px) {
  .built-by { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* --- 17. Footer ---------------------------------------------------------- */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.66);
  padding: clamp(52px, 6vw, 76px) 0 32px;
  font-size: .93rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__logo img { height: 52px; width: auto; margin-bottom: 18px; }
.footer h4 {
  color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 16px; font-weight: 700;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer a { color: rgba(255,255,255,.66); text-decoration: none; }
.footer a:hover { color: var(--sky); }
/* Padding rather than gap, so the tap target covers the whole row. */
.footer ul a { display: inline-block; padding: 9px 0; min-height: 40px; }
.footer ul li { line-height: 1.55; }
.footer__bottom {
  padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 12px 26px;
  align-items: center; justify-content: space-between;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}
.social { display: flex; gap: 10px; }
.social a {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  color: rgba(255,255,255,.72);
  transition: all .15s ease;
}
.social a:hover { background: var(--sky); border-color: var(--sky); color: var(--navy-900); }
.social svg { width: 17px; height: 17px; }

/* --- 18. Reveal animation ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --- 19. Utilities ------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; } .mt-4 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 36px; }
.tag-note {
  display: inline-block; background: var(--amber-100); border: 1px solid #F0D6A6;
  color: #855A0C; font-size: .82rem; font-weight: 600;
  padding: 8px 14px; border-radius: var(--radius-sm);
}
