/* Jesse Cunningham microsite component library (Rank Expand Academy "Scaling Microsites"),
   rebuilt from wiki/components/component-library.md: navy + brand colour + gold call button,
   Georgia headings, system body, light-blue hero, two-row header, card grids, linklists,
   native <details> FAQ, phone strip, teal form card, four-column footer. --brand is set per site. */
:root {
  --brand: #C0392B; --brand-dark: #a93226;
  --navy: #152244; --navy-dark: #0e1830;
  --teal: #2980B9; --teal-dark: #2172a4;
  --gold: #C8A040; --gold-dark: #a8863a;
  --ink: #1a1a2e; --ink-soft: #4a5a6a; --line: #e3e8ee; --bg: #fff; --bg-alt: #f5f7fa;
  --max: 1160px; --radius: 6px;
  --font-head: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 17px }
img { max-width: 100%; height: auto; display: block }
a { color: var(--teal-dark) }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; text-wrap: balance }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); text-transform: uppercase; letter-spacing: .01em }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem) }
h3 { font-size: 1.22rem }
p { margin: 0 0 1em }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px }
.center { text-align: center }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px }

/* Header: navy top bar (logo + contact) + brand-colour nav row */
.site-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.12) }
.header-top { background: var(--navy); color: #fff }
.header-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; max-width: var(--max); margin: 0 auto }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.1 }
.nav__logo svg { flex: 0 0 auto }
.nav__logo small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8 }
.header-contact { display: flex; gap: 18px; font-size: .92rem }
.header-contact__item { color: #fff; text-decoration: none; opacity: .92 }
.site-nav { background: var(--brand) }
.nav { max-width: var(--max); margin: 0 auto; padding: 0 12px; display: flex; align-items: center; justify-content: space-between }
.nav__toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; padding: 10px; cursor: pointer }
.nav__links { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; flex-wrap: wrap }
.nav__links a { display: block; color: #fff; text-decoration: none; padding: 14px 14px; font-weight: 600; font-size: .95rem }
.nav__links a:hover { background: rgba(0,0,0,.12) }
.nav__links .nav__call { background: var(--gold); color: var(--navy); margin-left: 6px }
.nav__links .nav__call:hover { background: var(--gold-dark); color: #fff }

/* Hero */
.hero { background: linear-gradient(180deg, #eaf4fb 0%, #f7fbfe 100%); padding: 56px 0 48px; border-bottom: 1px solid var(--line) }
.hero__split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center }
.hero__eyebrow { display: inline-block; background: var(--navy); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 3px; margin-bottom: 14px }
.hero__checklist { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px }
.hero__checklist li { padding-left: 30px; position: relative; font-weight: 600; color: var(--navy) }
.hero__checklist li::before { content: "\2713"; position: absolute; left: 0; top: -1px; color: var(--brand); font-weight: 900; font-size: 1.15rem }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px }
.hero__photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px -20px rgba(21,34,68,.45) }
.hero__inner p.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch }

/* Buttons, named by colour (framework rule) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2 }
.btn--lg { padding: 15px 26px; font-size: 1.06rem }
.btn--red { background: var(--brand); color: #fff } .btn--red:hover { background: var(--brand-dark) }
.btn--navy { background: var(--navy); color: #fff } .btn--navy:hover { background: var(--navy-dark) }
.btn--gold { background: var(--gold); color: var(--navy) } .btn--gold:hover { background: var(--gold-dark); color: #fff }
.btn--teal { background: var(--teal); color: #fff } .btn--teal:hover { background: var(--teal-dark) }
.btn--outline { border-color: var(--navy); color: var(--navy); background: #fff }
.btn--ghost { border-color: #fff; color: #fff; background: transparent }

/* Sections */
.section { padding: 56px 0 }
.section--alt { background: var(--bg-alt) }
.section__lead { max-width: 65ch; font-size: 1.06rem }
.section__lead p:last-child { margin-bottom: 0 }
.section__lead h2 { font-size: 1.4rem; margin-top: 1.2em }
.inline-cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px }
.grid { display: grid; gap: 20px; margin-top: 24px }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); padding: 22px }
.card h3 { margin-bottom: .4em }
.card p:last-child { margin-bottom: 0 }
.card a.more { font-weight: 700; text-decoration: none }
.linklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px }
.linklist a { display: block; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--navy); font-weight: 600 }
.linklist a:hover { border-color: var(--brand) }
.area-link__city { display: block; font-weight: 400; color: var(--ink-soft); font-size: .88rem }
.image-band { padding: 18px 0 }
.image-band .art { border-radius: var(--radius); overflow: hidden }
.art svg, .hero__photo svg { width: 100%; height: auto; display: block }

/* Cost table */
.table-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff }
table { width: 100%; border-collapse: collapse; font-size: .98rem }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top }
th { background: var(--navy); color: #fff; font-weight: 700 }
tr:last-child td { border-bottom: 0 }
.source { font-size: .88rem; color: var(--ink-soft); margin-top: 10px }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 24px auto 0 }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; color: var(--navy); position: relative }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--brand) }
.faq details[open] summary::after { content: "\2013" }
.faq details p { padding: 0 18px 16px; margin: 0 }

/* Phone strip (preferred CTA band) */
.phone-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 0; text-align: center }
.phone-strip .sub { color: var(--ink-soft); max-width: 60ch; margin: 0 auto 18px }
.phone-strip .btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px }

/* Forms */
.split { display: grid; grid-template-columns: 60fr 40fr; gap: 36px; align-items: start }
.form-card--teal { background: var(--teal); color: #fff; border-radius: var(--radius); padding: 26px }
.form-card--teal .form-card__h { color: #fff; font-size: 1.35rem }
.form-card--teal .italic { font-style: italic; opacity: .92 }
.field { display: grid; gap: 6px; margin-bottom: 14px }
.field label { font-weight: 700; font-size: .95rem }
.field input, .field select, .field textarea { width: 100%; padding: 12px; border-radius: 4px; border: 1px solid #cfd8e3; font: inherit; color: var(--ink); background: #fff }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; margin: 6px 0 14px }
.consent input { margin-top: 4px }
.form-card--teal a { color: #fff }
.form-msg { font-weight: 700; margin-top: 10px }
.form-done { background: rgba(255,255,255,.14); border-radius: 4px; padding: 14px }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.86); padding: 48px 0 0; margin-top: 0 }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px }
.site-footer .footer__h { color: #fff; font-size: 1.05rem; margin-bottom: 12px }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px }
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none }
.site-footer a:hover { color: #fff; text-decoration: underline }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding: 18px 0; font-size: .86rem; color: rgba(255,255,255,.65) }
.callbar { display: none }

@media (max-width: 900px) {
  .nav__toggle { display: block }
  .nav__links { display: none; width: 100%; flex-direction: column; padding-bottom: 8px }
  .nav__links.open { display: flex }
  .nav { flex-wrap: wrap }
  .hero__split, .split { grid-template-columns: 1fr }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .linklist { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .footer-grid { grid-template-columns: 1fr 1fr }
  .header-contact { display: none }
}
@media (max-width: 600px) {
  body { font-size: 16px }
  .grid--2, .grid--3, .linklist, .form-row, .footer-grid { grid-template-columns: 1fr }
  .hero { padding: 36px 0 }
  .section { padding: 40px 0 }
  .callbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 8px 12px calc(env(safe-area-inset-bottom, 0px) + 8px) }
  .callbar .btn { width: 100% }
  body { padding-bottom: 76px }
}

.cta-link { font-weight: 700; color: var(--brand); white-space: nowrap }
