/* ProctorPros NOLA — styles.css */
:root {
  --navy: #0B2348;
  --primary: #22538C;
  --primary-dark: #1A3F6E;
  --teal: #0A8A84;
  --teal-dark: #0B7A74;
  --gold: #E6A817;
  --gold-light: #F2C14E;
  --gold-pale: #F5EDD0;
  --bg: #F6F4EE;
  --line: #E3DED1;
  --line-2: #D9D3C3;
  --field: #FBFAF6;
  --ink: #0D1B2E;
  --mid: #1E3A5F;
  --muted: #4A6580;
  --red: #A01C22;
  --red-pale: #FBE9E9;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Public Sans', system-ui, sans-serif;
  --nav-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body { font-family: var(--sans); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
p, h1, h2, h3, h4, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:hover { color: var(--teal-dark); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
section[id], div[id="apply"] { scroll-margin-top: calc(var(--nav-h) + 8px); }

.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 2000; }
.skip-link:focus { left: 8px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy { background: var(--navy); color: #fff; }
.stack { display: flex; flex-direction: column; }
.split-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px 64px; align-items: end; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(40px, 6vw, 80px); align-items: start; }
.pair { display: flex; flex-wrap: wrap; gap: 40px clamp(40px, 6vw, 80px); align-items: flex-start; }
.pair > :first-child { flex: 1 1 300px; }
.pair > :last-child { flex: 2 1 520px; min-width: 0; }

/* Type */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-dark); }
.section--navy .eyebrow, .hero .eyebrow, .cta-band .eyebrow { color: var(--gold-light); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 50px); line-height: 1.06; letter-spacing: -.01em; color: var(--navy); text-wrap: balance; }
.section--navy .h2 { color: #fff; }
.h2 em, .hero h1 em { font-style: italic; color: var(--gold-light); }
.lead { font-size: 17px; color: var(--mid); max-width: 520px; text-wrap: pretty; }
.section--navy .lead { color: rgba(255,255,255,.84); }
.ph { background: var(--gold-pale); border-bottom: 1px dashed var(--teal-dark); padding: 0 4px; border-radius: 2px; color: var(--ink); }
.check { color: var(--gold); font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 15px; padding: 14px 22px; border-radius: 4px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; min-height: 44px; }
.btn-lg { font-size: 16px; padding: 16px 26px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); }
.btn-navy { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-navy:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { border-color: rgba(242,193,78,.55); color: #fff; font-weight: 600; }
.btn-ghost:hover { background: rgba(242,193,78,.12); color: #fff; }
.btn-line { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-line:hover { background: var(--primary); color: #fff; }
.btn-block { display: flex; width: 100%; }
.link-btn { background: none; border: none; color: var(--primary); font-weight: 700; cursor: pointer; padding: 0; }

/* Hiring bar */
.hiring-bar { background: var(--gold); color: var(--navy); font-size: 14px; font-weight: 600; }
.hiring-bar .container { padding-top: 9px; padding-bottom: 9px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; text-align: center; }
.hiring-bar a { color: var(--navy); font-weight: 700; text-underline-offset: 3px; }

/* Nav */
.site-nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-nav.scrolled { box-shadow: 0 6px 20px -14px rgba(11,35,72,.45); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo img { height: 64px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links .btn { font-size: 14px; padding: 11px 18px; color: var(--navy); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: 1px solid var(--line-2); border-radius: 4px; cursor: pointer; align-items: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); transition: transform .3s, opacity .3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; min-height: min(90vh, 880px); display: flex; flex-direction: column; justify-content: center; }
.hero-slides { position: absolute; inset: 0; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1); transition: opacity 1.4s ease, transform 9s ease-out; }
.hero-slides img.is-active { opacity: 1; transform: scale(1.07); }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,35,72,.95) 0%, rgba(11,35,72,.84) 42%, rgba(11,35,72,.4) 100%); }
.hero-scrim::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(0deg, rgba(11,35,72,.75), rgba(11,35,72,0)); }
.hero-grid { position: relative; width: 100%; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-copy .eyebrow { font-size: 13px; letter-spacing: .2em; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.015em; text-wrap: balance; }
.hero-sub { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: rgba(255,255,255,.84); max-width: 540px; text-wrap: pretty; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-creds { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: rgba(255,255,255,.82); }
.hero-creds li { display: flex; align-items: center; gap: 8px; }
.hero-bar { position: relative; width: 100%; padding-bottom: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.dots { display: flex; gap: 8px; align-items: center; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: none; cursor: pointer; background: rgba(255,255,255,.5); transition: width .3s, background .3s; }
.dots button.is-active { width: 28px; background: var(--gold-light); }
.slide-place { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.78); }

/* Finder card */
.finder { background: #fff; color: var(--ink); border-radius: 8px; padding: clamp(22px, 3vw, 32px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 18px; }
.finder h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; color: var(--navy); }
.finder-options { display: flex; flex-direction: column; gap: 8px; }
.finder-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font-size: 15px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 13px 16px; cursor: pointer; min-height: 48px; }
.finder-opt:hover { border-color: var(--primary); }
.finder-opt .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.finder-opt[aria-checked="true"] { background: #EEF3F9; border-color: var(--primary); }
.finder-opt[aria-checked="true"] .radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.rec { background: var(--gold-pale); border-radius: 6px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.rec-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-dark); }
.rec-name { font-family: var(--serif); font-size: 24px; line-height: 1.15; color: var(--navy); }
.rec-sum { font-size: 14px; color: var(--mid); }
.rec-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.rec-actions .btn { font-size: 14px; padding: 12px 18px; }
.rec-actions a:not(.btn) { font-size: 14px; font-weight: 600; }

/* Services */
.photo-wide { position: relative; width: 100%; aspect-ratio: 21/8; min-height: 220px; border-radius: 8px; overflow: hidden; background: #EAE5D8; }
.photo-wide img, .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo { position: relative; width: 100%; border-radius: 8px; overflow: hidden; background: #1A3F6E; }
.svc { display: flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.svc-tabs { flex: 1 1 300px; display: flex; flex-direction: column; background: var(--field); border-right: 1px solid var(--line); }
.svc-tab { text-align: left; background: transparent; border: none; border-left: 4px solid transparent; border-bottom: 1px solid var(--line); padding: 24px 26px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.svc-tab[aria-selected="true"] { background: #fff; border-left-color: var(--gold); }
.svc-num { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--teal-dark); }
.svc-label { font-family: var(--serif); font-size: 24px; line-height: 1.15; color: var(--navy); }
.svc-blurb { font-size: 14px; color: var(--muted); line-height: 1.5; }
.svc-ask { padding: 22px 26px; margin-top: auto; font-size: 14px; font-weight: 700; }
.svc-panel { flex: 2 1 520px; padding: clamp(24px, 3vw, 40px); min-width: 0; }
.svc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px 36px; }
.svc-list li { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 2px solid var(--gold); }
.svc-list h3 { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.svc-list p { font-size: 15px; color: var(--mid); text-wrap: pretty; }

/* Inspections */
.list-label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.review-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 24px; font-size: 15px; }
.review-areas li { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.receive li { display: flex; gap: 14px; align-items: baseline; }
.receive .n { font-family: var(--serif); font-size: 22px; color: var(--gold); min-width: 22px; }
.fine { font-size: 13px; color: rgba(255,255,255,.62); max-width: 520px; }
.report { background: var(--bg); color: var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.report-head { background: #fff; padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.report-kicker { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-dark); }
.report-title { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.pill-high { background: var(--red-pale); color: var(--red); }
.pill-med { background: var(--gold-pale); color: #6E5617; }
.report-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.report-row .area { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.report-row .obs { font-size: 14px; line-height: 1.5; }
.report-row .act { font-size: 13px; color: var(--primary); font-weight: 600; }
.report-row .pill { align-self: start; }
.report-foot { padding: 14px 24px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Packages */
.pkg-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 24px; padding-top: 12px; }
.pkg { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 16px; position: relative; transition: box-shadow .2s, transform .2s, border-color .2s; }
/* 7 packages: 3 across, then two rows of 2 */
.pkg:nth-child(n+4) { grid-column: span 3; }
.pkg:hover { transform: translateY(-3px); }
.pkg h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--navy); }
.pkg-for { font-size: 14px; color: var(--teal-dark); font-weight: 600; }
.pkg ul { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pkg li { display: flex; gap: 10px; font-size: 15px; color: var(--mid); line-height: 1.45; }
.pkg-details { display: flex; flex-wrap: wrap; gap: 6px; }
.pkg-details span { font-size: 12px; background: var(--gold-pale); border-bottom: 1px dashed var(--teal-dark); padding: 3px 7px; border-radius: 2px; }
.pkg .btn { border-color: var(--primary); color: var(--primary); background: #fff; }
.pkg .btn:hover { background: var(--primary-dark); color: #fff; }
.pkg-badge { display: none; position: absolute; top: -12px; left: 20px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; }
.pkg.is-match { border: 2px solid var(--primary); box-shadow: 0 20px 40px -24px rgba(11,35,72,.45); }
.pkg.is-match .pkg-badge { display: block; }
.pkg.is-match .btn { background: var(--primary); color: #fff; }

/* Classes */
.class-list { border-top: 1px solid var(--line); }
.class-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.class-main { flex: 2 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.class-main h3 { font-size: 19px; font-weight: 700; color: var(--navy); }
.class-main p { font-size: 14px; color: var(--muted); }
.class-meta { flex: 1 1 260px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--mid); }
.class-meta .k { color: var(--muted); }
.class-row .btn { flex: 0 0 auto; font-size: 14px; padding: 12px 18px; }
.group-banner { background: var(--navy); color: #fff; border-radius: 8px; padding: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.group-banner h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; }
.group-banner p { font-size: 15px; color: rgba(255,255,255,.8); max-width: 640px; }

/* Audiences + steps */
.aud-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
/* 3-up variant: always fills rows evenly (empty cells would show the 1px line color) */
.aud-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aud { background: #fff; padding: 26px 22px; display: flex; flex-direction: column; gap: 8px; }
.aud h3 { font-size: 17px; font-weight: 700; color: var(--navy); }
.aud p { font-size: 14px; color: var(--mid); line-height: 1.55; }
.aud--area { background: var(--gold-pale); }
.aud--area .ph { background: #fff; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 28px 24px; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--navy); }
.steps .n { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--gold); }
.steps h3 { font-size: 17px; font-weight: 700; color: var(--navy); }
.steps p { font-size: 14px; color: var(--mid); line-height: 1.55; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: rgba(11,35,72,.8); z-index: 1; }
.cta-inner { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; padding: clamp(80px, 10vw, 136px) 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta-inner .eyebrow { letter-spacing: .2em; }
.cta-inner h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 62px); line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
.cta-inner p.sub { font-size: clamp(17px, 1.5vw, 19px); color: rgba(255,255,255,.88); max-width: 620px; text-wrap: pretty; }
.cta-inner .btn-row { justify-content: center; margin-top: 6px; }
.btn-white-line { border-color: rgba(255,255,255,.6); color: #fff; font-weight: 600; }
.btn-white-line:hover { background: rgba(255,255,255,.1); color: #fff; }

/* About */
.portrait { position: relative; width: 100%; aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; background: #EAE5D8; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote { padding: 0 0 0 20px; border-left: 3px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.35; color: var(--navy); }
.creds { margin-top: 8px; border-top: 1px solid var(--line); }
.creds > div { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.creds dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); padding-top: 2px; }
.creds dd { font-size: 15px; }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 8px; }
.mini-cards > div { background: var(--bg); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.mini-cards .k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-dark); }
.mini-cards p:not(.k) { font-size: 15px; color: var(--mid); }

/* Careers */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.role { border: 1px solid rgba(230,168,23,.35); border-radius: 8px; padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; background: rgba(255,255,255,.03); }
.role .ph { align-self: flex-start; font-size: 12px; padding: 3px 8px; }
.role h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.role p { font-size: 15px; color: rgba(255,255,255,.8); flex: 1; }
.role a { color: var(--gold-light); font-weight: 700; font-size: 15px; text-decoration: none; }
.role a:hover { color: #fff; }
.perks { display: flex; flex-direction: column; gap: 20px; }
.perks li { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 2px solid var(--gold); }
.perks strong { font-size: 16px; }
.perks span { font-size: 15px; color: rgba(255,255,255,.78); }
.h3-serif { font-family: var(--serif); font-weight: 400; font-size: 30px; }

/* Forms */
.card-form { background: #fff; color: var(--ink); border-radius: 8px; padding: clamp(24px, 3vw, 36px); }
.card-form--bordered { border: 1px solid var(--line); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form-title { font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--navy); }
.form-note { font-size: 14px; color: var(--muted); }
.form-error { font-size: 14px; font-weight: 600; color: var(--red); background: var(--red-pale); border-radius: 4px; padding: 12px 14px; }
.btn[disabled] { opacity: .65; cursor: progress; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--mid); }
.input { width: 100%; font-size: 15px; color: var(--ink); background: var(--field); border: 1px solid var(--line-2); border-radius: 4px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(34,83,140,.15); }
.input.invalid { border-color: var(--red); }
textarea.input { resize: vertical; }
fieldset.plain { border: none; margin: 0; padding: 0; }
fieldset.plain legend { font-size: 13px; font-weight: 600; color: var(--mid); margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 99px; cursor: pointer; background: #fff; color: var(--mid); border: 1px solid var(--line-2); min-height: 36px; }
.chip[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; text-align: center; font-size: 13px; font-weight: 600; padding: 11px 4px; background: var(--field); color: var(--mid); cursor: pointer; }
.seg input:checked + span { background: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: -3px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--mid); }
.check-row input { margin-top: 3px; accent-color: var(--primary); width: 18px; height: 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 99px; cursor: pointer; background: #fff; color: var(--mid); border: 1px solid var(--line-2); min-height: 42px; }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.form-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.success { display: flex; flex-direction: column; gap: 12px; padding: 32px 0; text-align: center; align-items: center; }
.success .tick { width: 52px; height: 52px; border-radius: 50%; background: var(--gold-pale); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.success h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--navy); }
.success p { font-size: 15px; color: var(--mid); max-width: 420px; }

/* Checklist band */
.checklist { background: var(--gold-pale); border-bottom: 1px solid #E3D6AE; }
.checklist .container { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px 64px; align-items: center; }
.checklist h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; color: var(--navy); }
.checklist p.lead { font-size: 16px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form .input { flex: 1 1 240px; background: #fff; border-color: #D9C990; font-size: 16px; padding: 14px 16px; }
.inline-form .btn { background: var(--navy); color: #fff; }
.inline-form .btn:hover { background: var(--primary); }
.check-done { background: #fff; border-radius: 6px; padding: 22px 24px; display: flex; gap: 14px; align-items: center; }
.check-done .tick { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-size: 17px; font-weight: 600; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--primary); }
.faq summary::after { content: '+'; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--teal-dark); }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { padding: 0 48px 22px 0; font-size: 15px; color: var(--mid); line-height: 1.65; text-wrap: pretty; }

/* Contact info */
.info { border-top: 1px solid var(--line); }
.info > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.info dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.info dd { font-size: 15px; }

/* Contact: navy band, lifted form card */
.contact { border-top: 3px solid var(--gold); }
.contact .pair { align-items: start; }
.contact .info { border-top-color: rgba(255,255,255,.2); }
.contact .info > div { border-bottom-color: rgba(255,255,255,.2); }
.section#contact .info dt, .section#contact .info dd, .section#contact .info dd b, .section#contact .info dd a, .section#contact .info dd a:hover, .section#contact .info dd a:visited { color: #fff; opacity: 1; }
.section#contact .info > div { flex-wrap: nowrap; align-items: baseline; }
.section#contact .info dt { font-size: 15px; font-weight: 700; }
.section#contact .info dd { text-align: right; }
.section#contact .info dd, .section#contact .info dd b, .section#contact .info dd a { font-size: 15px; font-weight: 700; }
.section#contact .info dd a { text-decoration: none; }
.section#contact .info dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.section#contact .info dd a:focus-visible { outline-color: #fff; }
.card-form--lift { border-radius: 10px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.55), 0 8px 20px -10px rgba(0,0,0,.35); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); border-top: 3px solid var(--gold); }
.footer-inner { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 40px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 36px 56px; }
.footer-brand { flex: 2 1 320px; max-width: 480px; display: flex; flex-direction: column; gap: 14px; }
.footer-logo { align-self: flex-start; margin-bottom: 6px; }
.footer-logo { display: block; }
.footer-logo img { height: 150px; width: auto; }
.footer-tag { font-family: var(--serif); font-size: 28px; color: #fff; line-height: 1.1; }
.footer-tag em { color: var(--gold-light); }
.footer-brand p:not(.footer-tag) { font-size: 14px; }
.footer-social { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.footer-social:hover { color: var(--gold-light); }
.footer-social svg { flex: none; }
.footer-col { flex: 1 1 180px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 4px; }
.footer-col a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(230,168,23,.25); font-size: 13px; color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.78); }

/* Mobile bar + back to top */
.mobile-bar { display: none; }
#backToTop { position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold-light); border: 1px solid var(--gold); font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 55; }
#backToTop.visible { opacity: 1; pointer-events: auto; }

/* Reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) { .nav-links { gap: 18px; } .nav-links a { font-size: 13px; } }
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; padding: 14px; font-size: 16px; border-bottom: none; }
  .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .pkg, .pkg:nth-child(n+4) { grid-column: auto; }
  .pkg:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .aud-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aud-grid--3 .aud:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .svc-tabs { border-right: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy); border-top: 1px solid rgba(230,168,23,.4); padding: 10px 14px; }
  .mobile-bar .btn { min-height: 48px; }
  body { padding-bottom: 72px; }
  #backToTop { bottom: 88px; }
}
@media (max-width: 640px) {
  .pkg-grid { grid-template-columns: minmax(0, 1fr); }
  .aud-grid--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .faq details p, .faq details ul, .faq details ol { padding-right: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =====================================================================
   ADDITIONS (resource library, visit, habits, service area, legal pages)
   ===================================================================== */

/* 3-up card grids. The 1px-gap trick shows the line color in any empty
   cell, so these grids are always filled evenly (see media queries above). */
.aud a { font-weight: 700; }

/* .fine and .list-label default to light text for the navy sections.
   Flip them to dark text everywhere else. */
.section:not(.section--navy) .fine,
.checklist .fine { color: var(--muted); }
.section:not(.section--navy) .list-label { color: var(--teal-dark); }
.group-banner .fine { color: rgba(255,255,255,.7); }

.section--tight { padding-bottom: clamp(24px, 3vw, 40px); }

/* Reference table inside library cards */
.table-wrap { overflow-x: auto; margin: 0 0 8px; -webkit-overflow-scrolling: touch; }
.ref-table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 15px; line-height: 1.45; color: var(--mid); }
.ref-table th, .ref-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ref-table thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark); border-bottom: 2px solid var(--navy); }
.ref-table tbody th { font-weight: 600; color: var(--navy); width: 48%; }

/* Lists inside FAQ / library accordions (the global reset removes bullets) */
.faq details ul, .faq details ol { padding: 0 48px 0 1.3em; margin: 0 0 22px; font-size: 15px; color: var(--mid); line-height: 1.6; }
.faq details ul { list-style: disc; }
.faq details ol { list-style: decimal; }
.faq details li { padding-left: 4px; margin: 0 0 6px; }
.faq details li::marker { color: var(--teal-dark); }
.faq details p:has(+ ul), .faq details p:has(+ ol) { padding-bottom: 10px; }
.faq details p.fine { font-size: 13px; padding-top: 4px; }
.faq details .table-wrap { margin-bottom: 14px; }
.faq details summary + p, .faq details summary + ul, .faq details summary + ol { margin-top: -4px; }
.faq details > p + p { margin-top: -10px; }

/* Privacy / Terms pages */
.legal h1 { margin-bottom: 4px; }
.legal h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin-top: 14px; }
.legal p, .legal li { font-size: 16px; color: var(--mid); line-height: 1.7; max-width: 70ch; }
.legal ul { list-style: disc; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.legal li::marker { color: var(--teal-dark); }
.legal .fine { color: var(--muted); }

@media (max-width: 560px) { .faq details ul, .faq details ol { padding-right: 0; } }
