/* ==========================================================================
   Spray Foam Removal Bristol — styles.css
   Mobile-first, no frameworks, system fonts.
   ========================================================================== */

:root {
  --navy: #14253d;
  --navy-2: #1e3554;
  --navy-3: #2a4568;
  --off-white: #f7f5f0;
  --white: #ffffff;
  --green: #3f6b55;
  --green-dark: #325643;
  --green-soft: #e3ece6;
  --sand: #e4d4b5;
  --sand-light: #f3ebdb;
  --grey: #dfe2e5;
  --grey-2: #c9ced4;
  --text: #1d2836;
  --muted: #536070;
  --error: #a3302a;
  --focus: #f0b84b;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(20, 37, 61, .06), 0 6px 20px rgba(20, 37, 61, .08);
  --shadow-lg: 0 10px 40px rgba(20, 37, 61, .18);
  --container: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--off-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
table { border-collapse: collapse; width: 100%; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: #fff; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green); margin-bottom: .75rem;
}
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.4em; border-radius: 8px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.25rem 0; }

/* ---------- Top bar ---------- */
.top-bar { background: var(--navy); color: #dfe6ef; font-size: .85rem; }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.top-bar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.top-bar li { margin: 0; position: relative; }
.top-bar li + li::before { content: "·"; position: absolute; left: -13px; color: var(--sand); }
.top-bar li:not(:first-child) { display: none; }
.top-bar a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.top-bar a:hover { color: var(--sand); }
@media (min-width: 760px) { .top-bar li:not(:first-child) { display: list-item; } }

/* ---------- Header ---------- */
.site-header {
  background: var(--white); border-bottom: 1px solid var(--grey);
  position: sticky; top: 0; z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.05rem; line-height: 1.15; }
.logo svg { flex: none; }
.logo span small { display: block; font-weight: 600; font-size: .66rem; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; margin-top: 2px; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border: 1px solid var(--grey-2); border-radius: 8px; background: var(--white); cursor: pointer; color: var(--navy);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--grey); box-shadow: var(--shadow); }
.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 20px 16px; }
.site-nav li { margin: 0; border-bottom: 1px solid var(--grey); }
.site-nav li:last-child { border-bottom: 0; }
.site-nav a { display: block; padding: 12px 4px; color: var(--navy); font-weight: 600; text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--green); }
.site-nav .nav-cta { margin-top: 10px; }
.site-nav .nav-cta a { color: #fff; text-align: center; }
.header-cta { display: none; }

.site-nav a, .header-cta { white-space: nowrap; }
@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .site-nav ul { display: flex; gap: 2px; padding: 0; }
  .site-nav li { border: 0; }
  .site-nav a { padding: 8px 10px; font-size: .95rem; border-radius: 6px; }
  .site-nav a:hover { background: var(--off-white); }
  .site-nav .nav-cta { display: none; }
  .header-cta { display: inline-flex; min-height: 44px; padding: .55em 1.1em; }
}

/* ---------- Hero (homepage) ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(228, 212, 181, .16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, var(--navy-3) 100%);
  color: #e8edf3; padding: 36px 0 48px;
}
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero .eyebrow { color: var(--sand); }
.hero-copy p { font-size: 1.15rem; color: #dbe3ec; max-width: 38em; }
.hero-grid { display: grid; gap: 24px; align-items: start; grid-template-areas: "copy" "form" "trust"; }
.hero-copy { grid-area: copy; }
.hero-grid > .quote-form-panel { grid-area: form; }
.hero-trust-wrap { grid-area: trust; }
.hero-trust-wrap .hero-trust { margin-top: 0; }
@media (max-width: 959px) {
  .hero-copy .btn-row { display: none; } /* form sits directly below; sticky bar handles Call */
  .hero-copy p { margin-bottom: 0; }
}
.hero-trust { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 8px 18px; grid-template-columns: 1fr 1fr; font-size: .95rem; }
.hero-trust li { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: #f2f5f8; }
.hero-trust svg { flex: none; margin-top: 4px; color: var(--sand); }
@media (min-width: 960px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-rows: auto 1fr; grid-template-areas: "copy form" "trust form"; gap: 0 48px; }
}

/* ---------- Inner page intro + quote panel ---------- */
.page-intro { background: linear-gradient(180deg, var(--sand-light), var(--off-white)); border-bottom: 1px solid var(--grey); padding: 24px 0 40px; }
.page-intro-grid { display: grid; gap: 24px; align-items: start; }
.page-intro h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); }
.page-intro .lead { color: var(--text); }
.intro-points { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 6px; }
.intro-points li { display: flex; gap: 8px; margin: 0; color: var(--navy); font-weight: 600; font-size: .98rem; }
.intro-points svg { flex: none; margin-top: 5px; color: var(--green); }
@media (max-width: 959px) {
  .page-intro { padding-bottom: 28px; }
  .page-intro .intro-points, .page-intro .btn-row { display: none; } /* keep the form near the top on phones */
  .page-intro .lead { margin-bottom: 0; }
}
@media (min-width: 960px) {
  .page-intro { padding: 32px 0 56px; }
  .page-intro-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 48px; }
  .page-intro-copy { padding-top: 12px; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 4px; font-size: .9rem; color: var(--muted); }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: var(--grey-2); }
.breadcrumbs a { color: var(--muted); }

/* ---------- Quote form ---------- */
.quote-form-panel, .form-card {
  background: var(--white); color: var(--text); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px 20px; border-top: 5px solid var(--green);
  scroll-margin-top: 90px;
}
.quote-form-panel h2, .form-card h2 { font-size: 1.35rem; margin-bottom: .25em; }
.form-intro { font-size: .95rem; color: var(--muted); margin-bottom: 1rem; }
.form-grid { display: grid; gap: 12px; }
@media (min-width: 520px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 4px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--white);
  border: 1px solid var(--grey-2); border-radius: 8px; padding: 10px 12px; min-height: 46px;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(63, 107, 85, .2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-error { display: block; color: var(--error); font-size: .85rem; margin-top: 4px; min-height: 0; }
.field-error:empty { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.consent input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 1px 0 0; flex: none; accent-color: var(--green); }
.consent label { margin: 0; line-height: 1.45; }
.consent label { font-weight: 600; color: var(--text); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-trust { font-size: .85rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
.form-status { margin-top: 12px; padding: 12px 14px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.is-success { background: var(--green-soft); color: var(--green-dark); }
.form-status.is-error { background: #f8e7e5; color: var(--error); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--grey); }
.trust-strip ul { list-style: none; margin: 0; padding: 16px 0; display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust-strip li { margin: 0; display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--navy); font-size: .95rem; }
.trust-strip svg { color: var(--green); flex: none; }

/* ---------- Sections ---------- */
.content-section { padding: 56px 0; }
.content-section.alt { background: var(--white); }
.content-section.sand { background: var(--sand-light); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head p { color: var(--muted); }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul li::marker { color: var(--green); }
.two-col { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.2fr .8fr; gap: 48px; } .content-section { padding: 72px 0; } }

/* Images: width/height attributes reserve space (no layout shift); object-fit keeps any replacement photo tidy */
.media-figure { margin: 1.5rem 0; }
.media-figure img {
  width: 100%; height: auto; object-fit: cover; border-radius: var(--radius);
  background: linear-gradient(135deg, #f6f1e6 0%, #eef0ec 55%, #dfe7e2 100%); /* matches the panels while an image loads */ border: 1px solid rgba(20, 37, 61, .08); box-shadow: var(--shadow);
}
.media-figure figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; line-height: 1.5; padding-left: 12px; border-left: 3px solid var(--sand); }
.media-figure.on-dark figcaption, .hero-figure figcaption { color: #cfd8e3; border-left-color: var(--green); }
.media-figure.on-dark img, .hero-figure img { border-color: rgba(255,255,255,.12); box-shadow: 0 10px 30px rgba(0,0,0,.25); }

/* Hero image: sits under the trust bullets on desktop; on phones it follows the form so it never pushes the form down */
.hero-figure { margin: 1.75rem 0 0; }
.hero-figure img { aspect-ratio: 3 / 2; }
@media (max-width: 959px) { .hero-figure { margin-top: 1.25rem; } .hero-figure figcaption { display: none; } }

/* Section heading paired with an image (homepage process) */
.head-with-media { display: grid; gap: 8px 40px; align-items: center; margin-bottom: 24px; }
.head-with-media .section-head { margin-bottom: 0; }
.head-with-media .media-figure { margin: 0; }
@media (min-width: 900px) { .head-with-media { grid-template-columns: 1.1fr .9fr; } }
.local-panel { margin-top: 0; }
.two-col > div > .media-figure:first-child { margin-top: 0; }

.note-box { background: var(--green-soft); border-left: 4px solid var(--green); border-radius: 8px; padding: 18px 20px; margin: 1.5rem 0; }
.note-box.warn { background: var(--sand-light); border-left-color: #b08a45; }
.note-box p:last-child, .note-box ul:last-child { margin-bottom: 0; }
.note-box strong { color: var(--navy); }

/* ---------- Service grid ---------- */
.service-grid { display: grid; gap: 20px; }
@media (min-width: 680px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: var(--white); border: 1px solid var(--grey); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.service-card h3 { font-size: 1.2rem; }
.service-card h3 a { color: var(--navy); text-decoration: none; }
.service-card h3 a:hover { color: var(--green); }
.service-card p { font-size: .98rem; }
.service-benefit { display: inline-flex; gap: 8px; align-items: center; background: var(--green-soft); color: var(--green-dark); font-weight: 700; font-size: .85rem; padding: 6px 10px; border-radius: 999px; margin: 0 0 14px; align-self: flex-start; }
.card-link { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.card-link:hover { text-decoration: underline; }

/* ---------- Cards (problems / trust) ---------- */
.card-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .card-grid.three { grid-template-columns: repeat(3, 1fr); } }
.info-card { background: var(--white); border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--grey); }
.info-card h3 { font-size: 1.1rem; display: flex; gap: 10px; align-items: flex-start; }
.info-card h3 svg { color: var(--green); flex: none; margin-top: 2px; }
.info-card p { font-size: .98rem; margin: 0; }
.sand .info-card { border-color: #e2d6bd; }

/* ---------- Local panel ---------- */
.local-panel { background: var(--navy); color: #e3e9f0; border-radius: var(--radius-lg); padding: 28px 24px; }
.local-panel h2, .local-panel h3 { color: #fff; }
.local-panel a { color: var(--sand); }
.area-tags { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area-tags li { margin: 0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: .9rem; }
.area-tags.light li { background: var(--white); border-color: var(--grey); color: var(--navy); }

/* ---------- Process steps ---------- */
.process-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 720px) { .process-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .process-steps.three { grid-template-columns: repeat(3, 1fr); } }
.process-steps > li { counter-increment: step; position: relative; background: var(--white); border: 1px solid var(--grey); border-radius: var(--radius); padding: 22px 22px 20px 72px; margin: 0; }
.process-steps > li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.process-steps h3 { font-size: 1.05rem; margin-bottom: .35em; }
.process-steps p { font-size: .96rem; margin: 0; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; border: 1px solid var(--grey); border-radius: var(--radius); background: var(--white); }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--grey); font-size: .96rem; }
.compare-table thead th { background: var(--navy); color: #fff; }
.compare-table tbody th { color: var(--navy); width: 26%; background: var(--off-white); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }

/* ---------- Guide prices ---------- */
.price-panel { margin: 1.25rem 0 1.5rem; }
.price-panel .table-wrap { margin: 0 0 .75rem; }
.price-table .price-range { font-weight: 800; color: var(--navy); white-space: nowrap; font-size: 1.02rem; }
.price-table .price-note { color: var(--muted); font-size: .92rem; }
.price-table tbody th { width: 34%; }
@media (max-width: 640px) {
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; }
  .price-table tr { padding: 12px 14px; border-bottom: 1px solid var(--grey); }
  .price-table tr:last-child { border-bottom: 0; }
  .price-table tbody th, .price-table td { padding: 2px 0; border: 0; background: none; width: auto; }
  .price-table .price-range { white-space: normal; }
}
.price-disclaimer { font-size: .92rem; color: var(--muted); background: var(--sand-light); border-radius: 8px; padding: 12px 14px; margin: 0; }
.price-disclaimer strong { color: var(--navy); }
.price-box { background: var(--white); border: 1px solid var(--grey); border-top: 4px solid var(--sand); border-radius: var(--radius); padding: 22px 22px 18px; margin: 1.75rem 0; }
.price-box h3 { margin-top: 0; }
.price-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.price-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px dashed var(--grey-2); margin: 0; font-size: .97rem; }
.price-list li:last-child { border-bottom: 0; }
.price-list strong { color: var(--navy); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq-item { background: var(--white); border: 1px solid var(--grey); border-radius: var(--radius); margin-bottom: 10px; }
.faq-item h3 { margin: 0; font-size: 1.02rem; }
.faq-question {
  width: 100%; text-align: left; background: none; border: 0; font: inherit; font-weight: 700; color: var(--navy);
  padding: 16px 52px 16px 20px; cursor: pointer; position: relative; line-height: 1.4;
}
.faq-question::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform .2s ease;
}
.faq-question[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-answer { padding: 0 20px 16px; }
.faq-answer p:last-child { margin-bottom: 0; }
.js .faq-answer[hidden] { display: none; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); color: #fff; border-radius: var(--radius-lg); padding: 28px 24px; margin: 2rem 0; display: grid; gap: 14px; align-items: center; }
.cta-band h2, .cta-band h3 { color: #fff; margin: 0 0 .3em; font-size: 1.35rem; }
.cta-band p { margin: 0; color: #eef4f0; }
.cta-band .btn-row { margin: 0; }
.cta-band .btn-primary { background: var(--white); color: var(--green-dark); }
.cta-band .btn-primary:hover { background: var(--sand-light); color: var(--navy); }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; padding: 32px 36px; } }
@media (min-width: 860px) { .two-col > div:last-child .cta-band { grid-template-columns: 1fr; padding: 26px 28px; } }

.final-cta { background: var(--navy); color: #e3e9f0; padding: 56px 0 64px; }
.final-cta h2 { color: #fff; }
.final-cta .final-grid { display: grid; gap: 28px; align-items: start; }
.final-cta p { color: #d6dee8; }
.final-cta a:not(.btn) { color: var(--sand); }
@media (min-width: 960px) { .final-cta .final-grid { grid-template-columns: 1fr minmax(0, 500px); gap: 56px; } }

/* ---------- Related links ---------- */
.related-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .related-links { grid-template-columns: 1fr 1fr; } }
.related-links li { margin: 0; }
.related-links a { display: block; background: var(--white); border: 1px solid var(--grey); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--navy); font-weight: 700; }
.related-links a span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; margin-top: 2px; }
.related-links a:hover { border-color: var(--green); }

/* ---------- Sidebar ---------- */
.side-card { background: var(--white); border: 1px solid var(--grey); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.side-card h3 { font-size: 1.05rem; }
.side-card ul { padding-left: 1.1em; font-size: .96rem; }
@media (min-width: 900px) { .sticky-side { position: sticky; top: 96px; } }

/* ---------- Contact details ---------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.contact-list li { margin: 0 0 10px; }
.contact-list strong { display: block; color: var(--navy); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.contact-list a { font-size: 1.15rem; font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: #0f1d31; color: #c4cfdc; padding: 52px 0 28px; font-size: .95rem; }
.footer a { color: #e7edf4; text-decoration: none; }
.footer a:hover { color: var(--sand); text-decoration: underline; }
.footer h2 { color: #fff; font-size: 1rem; margin-bottom: .8em; letter-spacing: .02em; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer-disclosure { margin-top: 32px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.03); color: #d5dde7; }
.footer-bottom { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #93a1b2; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
  border-top: 1px solid var(--grey); box-shadow: 0 -4px 18px rgba(20,37,61,.12);
  transform: translateY(0); transition: transform .25s ease;
}
.sticky-mobile-cta .btn { min-height: 48px; padding: .6em .8em; }
.sticky-mobile-cta.is-hidden { transform: translateY(110%); }
body { padding-bottom: 76px; }
@media (min-width: 760px) { .sticky-mobile-cta { display: none; } body { padding-bottom: 0; } }

/* ---------- Legal / 404 ---------- */
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal .placeholder { background: var(--sand-light); padding: 0 4px; border-radius: 3px; }
.error-page { text-align: center; padding: 80px 0; }
