/* Allergy Associates — modern edition */
:root {
  --navy: #0e3a5b;
  --navy-2: #0a2c46;
  --blue: #0f7ac0;
  --blue-bright: #1592dd;
  --green: #5bbf1e;
  --green-deep: #3d8f0e;
  --mist: #eef6f1;
  --sky: #eaf4fb;
  --line: #d9e3ea;
  --text: #2c3e4c;
  --muted: #5d6f7c;
  --white: #fff;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --max: 1180px;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 1;
  padding: 15px 24px; border-radius: 999px; text-decoration: none; border: 2px solid var(--blue);
  cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-green { background: var(--green); border-color: var(--green); color: var(--navy-2); }
.btn-green:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover { background: var(--blue); border-color: var(--blue); }
.text-link { font-weight: 600; text-decoration: none; color: var(--blue); }
.text-link:hover { text-decoration: underline; }

/* ---------- Utility bar & header ---------- */
.topbar { background: var(--navy-2); color: #cfe0ec; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 24px; align-items: center; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.site-header { background: rgba(255,255,255,.97); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 86px; }
.logo { flex-shrink: 0; }
.logo img { width: 250px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 12px; font-size: 15px; font-weight: 500; color: var(--navy); text-decoration: none; border-radius: 8px; }
.main-nav a:hover { background: var(--sky); color: var(--navy); }
.main-nav a[aria-current="page"], .main-nav .has-current > .nav-row > a { color: var(--blue); box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
.nav-row { display: flex; align-items: center; }
.sub-toggle { background: none; border: 0; padding: 10px 6px 10px 0; cursor: pointer; color: var(--navy); }
.sub-toggle svg { width: 10px; height: 10px; transition: transform .2s; }
.submenu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(14,58,91,.14); display: none; padding: 8px; }
.submenu a { padding: 10px 12px; }
.main-nav li:hover > .submenu, .main-nav li:focus-within > .submenu, .main-nav li.open > .submenu { display: block; }
.main-nav li:hover > .submenu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.header-cta { padding: 12px 20px; font-size: 15px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.menu-btn span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; border-radius: 2px; }
.mobile-only { display: none; }

@media (max-width: 1080px) {
  .header-cta { display: none; }
  .main-nav a { padding: 10px 9px; font-size: 14px; }
}
@media (max-width: 920px) {
  .topbar .wrap { justify-content: center; gap: 18px; }
  .topbar .hide-sm { display: none; }
  .menu-btn { display: block; }
  .header-inner { flex-wrap: wrap; min-height: 72px; }
  .logo img { width: 200px; }
  .main-nav { display: none; width: 100%; margin: 0; padding-bottom: 16px; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 13px 6px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a[aria-current="page"], .main-nav .has-current > .nav-row > a { box-shadow: none; }
  .nav-row { justify-content: space-between; border-bottom: 1px solid var(--line); }
  .nav-row a { border-bottom: 0; flex: 1; }
  .sub-toggle { padding: 13px; }
  .submenu { position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; border-radius: 0; }
  .main-nav li:hover > .submenu, .main-nav li:focus-within > .submenu { display: none; }
  .main-nav li.open > .submenu { display: block; }
  .main-nav li.open .sub-toggle svg { transform: rotate(180deg); }
  .mobile-only { display: block; padding-top: 16px; }
  .mobile-only .btn { width: 100%; justify-content: center; }
}

/* ---------- Home: hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy) url("../images/hero-leaves.jpg") 70% center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,44,70,.92) 0%, rgba(10,44,70,.72) 42%, rgba(10,44,70,.05) 75%); }
.hero .wrap { position: relative; padding-top: clamp(80px, 12vw, 150px); padding-bottom: clamp(80px, 12vw, 150px); }
.hero h1 { color: #fff; font-size: clamp(44px, 6.4vw, 80px); line-height: 1.02; max-width: 9.5em; margin-bottom: 24px; font-weight: 600; letter-spacing: -.02em; }
.hero h1 .tagline-mark { display: block; width: 72px; height: 6px; background: var(--green); border-radius: 3px; margin-bottom: 28px; }
.hero p { font-size: 20px; max-width: 30em; color: #e3edf4; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Home: intro ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.intro { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.photo-offset { position: relative; }
.photo-offset::before { content: ""; position: absolute; inset: 28px -28px -28px 28px; background: var(--green); border-radius: var(--radius); }
.photo-offset img { position: relative; border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; }
.intro { grid-template-columns: 6fr 5fr; align-items: start; }
.intro-lead p { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.3; color: var(--navy); margin: 0; }
.intro-lead::before { content: ""; display: block; width: 56px; height: 6px; background: var(--green); border-radius: 3px; margin-bottom: 26px; }
.intro-text { padding-top: 32px; }

/* ---------- Home: audience paths ---------- */
.paths { background: var(--mist); }
.paths-head { max-width: 640px; margin-bottom: 44px; }
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.path { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.path:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(14,58,91,.14); color: var(--text); }
.path img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.path-body { padding: 30px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.path .who { font-size: 14px; font-weight: 700; color: var(--green-deep); margin-bottom: 8px; }
.path .text-link { margin-top: auto; }

/* ---------- Home: mission ---------- */
.mission { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.mission blockquote { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.3; color: var(--navy); }
.mission blockquote::before { content: ""; display: block; width: 56px; height: 6px; background: var(--green); border-radius: 3px; margin-bottom: 26px; }
.mission figcaption { margin-top: 22px; color: var(--muted); font-weight: 600; }
.mission img { border-radius: var(--radius); width: 100%; aspect-ratio: 1/1; object-fit: cover; }

/* ---------- Home: Food SLIT spotlight ---------- */
.spotlight { background: var(--navy); color: #dce8f1; border-radius: 20px; overflow: hidden; }
.spotlight-img { background: url("../images/food-allergens-banner.jpg") center / cover; aspect-ratio: 1024 / 232; }
.spotlight-body { padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; align-items: start; }
.spotlight-body .kicker { grid-column: 1 / -1; margin: 0; }
.spotlight-body h2 { margin: 0; }
.spotlight h2 { color: #fff; }
.spotlight .kicker { color: var(--green); font-weight: 700; margin-bottom: 10px; }

/* ---------- Resource row ---------- */
.resources { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: clamp(64px, 9vw, 112px); }
.resource { padding: 44px 34px 48px; text-decoration: none; color: var(--text); border-right: 1px solid var(--line); display: flex; flex-direction: column; transition: background .2s; }
.resource:last-child { border-right: 0; }
.resource:hover { background: var(--sky); color: var(--text); }
.resource svg { width: 64px; height: 64px; margin-bottom: 18px; }
.resource h3 { text-transform: capitalize; }
.resource .text-link { margin-top: auto; }

/* ---------- Inner page banner ---------- */
.page-banner { position: relative; color: #fff; background: var(--navy) center / cover no-repeat; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,44,70,.93) 0%, rgba(10,44,70,.75) 50%, rgba(10,44,70,.35) 100%); }
.page-banner .wrap { position: relative; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.page-banner h1 { color: #fff; font-size: clamp(36px, 5vw, 58px); max-width: 16em; margin: 0; }
.page-banner .crumb { font-size: 14px; margin-bottom: 14px; color: #cfe0ec; }
.page-banner .crumb a { color: #fff; }

/* ---------- Inner page content ---------- */
.page-body { padding: clamp(56px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.page-body .wrap { max-width: 860px; }
.page-body h2 { font-size: clamp(26px, 2.8vw, 34px); margin-top: 1.6em; }
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { margin-top: 1.3em; }
.page-body ul:not(.steps):not(.question-list) { padding-left: 0; list-style: none; }
.page-body ul:not(.steps):not(.question-list) > li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.page-body ul:not(.steps):not(.question-list) > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.lead { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.55; color: var(--navy); }
.callout { font-family: var(--serif); font-size: 24px; line-height: 1.35; color: var(--navy); background: var(--mist); border-radius: var(--radius); padding: 26px 30px; margin: 28px 0; }
.fine { font-size: 14px; color: var(--muted); }
.cols-2 { columns: 2; column-gap: 40px; }
.cols-2 li { break-inside: avoid; }
.notice { background: var(--mist); border-radius: var(--radius); padding: 28px 32px; }

.figure-split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; margin: 32px 0; }
.figure-split img, .figure-wide img { border-radius: var(--radius); width: 100%; }
.figure-split img.contain { background: #fff; }
.figure-wide { margin: 32px 0; }
.figure-wide img { aspect-ratio: 1024/232; object-fit: cover; }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

.cards { display: grid; gap: 18px; margin: 28px 0 12px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.card h3 { margin-top: 0 !important; font-size: 20px; }
.card p:last-child { margin-bottom: 0; }
.cards-3 .card { background: var(--mist); border-color: transparent; }
.card.option { background: var(--sky); border-color: transparent; margin-top: 22px; padding: 32px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0; display: grid; gap: 4px; }
.steps li { counter-increment: step; position: relative; padding: 6px 0 18px 64px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--serif); font-size: 19px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 2px; width: 2px; background: var(--line); }
.steps li strong { display: block; color: var(--navy); font-size: 18px; }

.form-panel { background: var(--navy); color: #dce8f1; padding: clamp(30px, 5vw, 52px); border-radius: 20px; margin-top: 56px; scroll-margin-top: 110px; }
.form-panel h2 { color: #fff; margin-top: 0; }
.contact-form label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 16px; color: #fff; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 7px; padding: 13px 14px; font: inherit; font-weight: 400; border: 1px solid transparent; border-radius: 10px; background: #fff; color: var(--text); }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--green); outline-offset: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.contact-form .btn { background: var(--green); border-color: var(--green); color: var(--navy-2); margin-top: 6px; }
.contact-form .btn:hover { background: #fff; border-color: #fff; }
.hp { position: absolute; left: -9999px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--navy); padding: 22px 48px 22px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--mist); color: var(--green-deep); font-family: var(--sans); font-size: 22px; display: flex; align-items: center; justify-content: center; }
.faq details[open] summary::after { content: "–"; background: var(--green); color: #fff; }
.faq details > *:not(summary) { margin-bottom: 1em; }

.cta-band { background: var(--mist); border-radius: 20px; text-align: center; padding: 44px 28px 36px; margin-top: 48px; }
.cta-band h2 { margin-top: 0 !important; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 8px 0 32px; }
.contact-card { background: var(--mist); border-radius: var(--radius); padding: 26px 28px; text-decoration: none; color: var(--navy); transition: background .2s; }
.contact-card:hover { background: var(--sky); color: var(--navy); }
.contact-card span { display: block; font-size: 14px; font-weight: 700; color: var(--green-deep); margin-bottom: 4px; }
.contact-card strong { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.question-list { padding-left: 1.4em; }
.question-list li { margin-bottom: .6em; padding-left: 6px; }
.printable { background: var(--sky); border-radius: 20px; padding: clamp(28px, 4vw, 44px); margin-top: 48px; }
.printable h2 { margin-top: 0; }
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.subnav a { border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--navy); }
.subnav a:hover { background: var(--sky); }
.subnav a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-2); color: #b9cddc; padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer-logo { background: #fff; border-radius: 12px; padding: 12px 16px; display: inline-block; margin-bottom: 18px; }
.footer-logo img { width: 210px; }
.site-footer h3 { font-family: var(--sans); font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #dce8f1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.linkedin { display: inline-flex; align-items: center; gap: 8px; }
.linkedin svg { width: 18px; height: 18px; fill: currentColor; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .intro, .mission, .path-grid, .spotlight, .figure-split { grid-template-columns: 1fr; }
  .photo-offset { max-width: 420px; margin-right: 28px; }
  .mission img { aspect-ratio: 16/10; }
  .resources { grid-template-columns: 1fr; }
  .resource { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .spotlight-body { grid-template-columns: 1fr; }
  .spotlight-img { aspect-ratio: 16 / 7; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .cards-3, .cards-2, .field-row, .contact-cards { grid-template-columns: 1fr; }
  .cols-2 { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(180deg, rgba(10,44,70,.6), rgba(10,44,70,.9)); }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .topbar, .site-header, .site-footer, .page-banner, .no-print, .subnav { display: none !important; }
  body.print-questions .page-body > .wrap > *:not(.printable) { display: none !important; }
  .printable { background: none; padding: 0; }
}
