/* Bay Drywall & Insulation – static site styles
   Colours: navy #013B73, sky #60A2D9, pale #EEF5FB, charcoal #1C2228
   Fonts: Montserrat (headings), Open Sans (body) via Google Fonts */

:root {
  --navy: #013B73;
  --navy-deep: #012B55;
  --navy-2: #0B4F8F;
  --sky: #60A2D9;
  --sky-hover: #4B92CE;
  --pale: #EEF5FB;
  --border: #BFD7ED;
  --line: #DCE7F2;
  --charcoal: #1C2228;
  --charcoal-2: #2A323A;
  --text: #1C2228;
  --muted: #4A5561;
  --link: #1F6FB2;
  --white: #fff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(1, 43, 85, .06), 0 8px 24px rgba(1, 43, 85, .08);
  --shadow-lg: 0 2px 4px rgba(1, 43, 85, .06), 0 18px 40px rgba(1, 43, 85, .14);
  --container: 1200px;
  --gutter: 24px;
  --header-h: 84px;
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 1.25rem + 2.6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.35vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.005em; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); }

.sr-only { 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: var(--radius-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: calc(860px + var(--gutter) * 2); }
.section { padding: clamp(56px, 4rem + 2vw, 96px) 0; }
.section-sm { padding: clamp(40px, 2.5rem + 1vw, 64px) 0; }
.bg-pale { background: var(--pale); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-charcoal { background: var(--charcoal); color: #fff; }
.bg-navy h2, .bg-navy h3, .bg-charcoal h2, .bg-charcoal h3 { color: #fff; }
.bg-navy p, .bg-charcoal p { color: rgba(255, 255, 255, .88); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.075rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 14px;
}
.bg-navy .eyebrow, .bg-charcoal .eyebrow, .page-hero .eyebrow { color: var(--sky); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 24px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sky { background: var(--sky); color: var(--charcoal); border-color: var(--sky); }
.btn-sky:hover { background: var(--sky-hover); border-color: var(--sky-hover); color: var(--charcoal); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.btn-outline-white:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-text { background: none; border: 0; padding-left: 8px; padding-right: 8px; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.btn-text:hover { color: var(--sky); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.ext { font-size: .85em; }

.link-arrow { font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--link); }
.link-arrow:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy-deep); color: #fff; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar p { margin: 0; color: rgba(255, 255, 255, .9); }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar a:hover { color: var(--sky); }
.topbar svg { width: 15px; height: 15px; }

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(1, 43, 85, .1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 60px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.main-nav a.nav-link {
  display: block; position: relative; padding: 10px 12px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--charcoal); text-decoration: none; border-radius: 6px;
}
.main-nav a.nav-link:hover { color: var(--navy); background: var(--pale); }
.main-nav a.nav-link[aria-current="page"] { color: var(--navy); }
.main-nav a.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--sky); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-shop { min-height: 44px; padding: 9px 16px; font-size: .92rem; }
.btn-call { min-height: 44px; padding: 9px 16px; font-size: .92rem; white-space: nowrap; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0; border: 2px solid var(--line); background: #fff; border-radius: var(--radius-sm);
  color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-only { display: none; }

@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .desktop-only { display: none !important; }
  .mobile-only { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(1, 43, 85, .14);
    padding: 12px var(--gutter) 24px; flex-direction: column; align-items: stretch;
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a.nav-link { padding: 15px 4px; font-size: 1.08rem; border-radius: 0; }
  .main-nav a.nav-link:hover { background: none; }
  .main-nav a.nav-link[aria-current="page"]::after { left: 4px; right: auto; width: 28px; bottom: 8px; }
  .mobile-menu-actions { display: grid; gap: 10px; margin-top: 20px; }
  .mobile-menu-actions .btn { width: 100%; }
  .mobile-menu-meta { margin: 16px 0 0; font-size: .9rem; color: var(--muted); }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; --gutter: 18px; }
  .topbar { display: none; }
  .brand img { height: 44px; }
  .btn-call { padding: 8px 12px; font-size: .88rem; min-height: 44px; }
}
@media (max-width: 370px) {
  .btn-call .call-num { display: none; }
  .btn-call::after { content: "Call"; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 600px; }
.hero-text {
  align-self: center;
  padding: 72px 48px 80px max(var(--gutter), calc((100vw - var(--container)) / 2));
}
.hero-text h1 { max-width: 15ch; margin-bottom: 20px; }
.hero-text .lead { max-width: 34em; margin-bottom: 0; }
.hero-media { position: relative; min-height: 100%; }
.hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: right center; }
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 22%); }
.hero-meta { margin-top: 22px; font-size: .92rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--link); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 44px var(--gutter) 36px; }
  .hero-text h1 { max-width: 18ch; }
  .hero-media { height: 240px; min-height: 0; }
  .hero-media img { object-position: center 30%; }
  .hero-media::after { display: none; }
}

/* ---------- USP strip ---------- */
.usp { background: var(--pale); border-bottom: 1px solid var(--border); }
.usp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.usp-item { display: flex; gap: 16px; align-items: flex-start; padding: 30px 24px; }
.usp-item + .usp-item { border-left: 1px solid var(--border); }
.usp-item:first-child { padding-left: 0; }
.usp-item:last-child { padding-right: 0; }
.icon-badge {
  flex: none; width: 50px; height: 50px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px var(--border);
}
.icon-badge svg { width: 24px; height: 24px; }
.usp-item strong { display: block; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.02rem; line-height: 1.3; margin-bottom: 4px; }
.usp-item p { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.5; }
.usp-item a { font-weight: 700; }
@media (max-width: 1000px) {
  .usp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usp-item { padding: 24px 20px; }
  .usp-item + .usp-item { border-left: 0; }
  .usp-item:nth-child(even) { border-left: 1px solid var(--border); }
  .usp-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .usp-item:first-child, .usp-item:nth-child(3) { padding-left: 0; }
}
@media (max-width: 600px) {
  .usp-grid { grid-template-columns: 1fr; }
  .usp-item, .usp-item:first-child, .usp-item:nth-child(3), .usp-item:last-child { padding: 18px 0; }
  .usp-item:nth-child(even) { border-left: 0; }
  .usp-item + .usp-item { border-top: 1px solid var(--border); }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cat-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border); }
.cat-card .card-media { aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.cat-card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.cat-card:hover .card-media img { transform: scale(1.03); }
.cat-card .card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.cat-card h3 { margin-bottom: 8px; }
.cat-card p { color: var(--muted); font-size: .96rem; margin-bottom: 16px; }
.cat-card .link-arrow { margin-top: auto; }
.cat-card .link-arrow::after { content: ""; position: absolute; inset: 0; }
.center-cta { text-align: center; margin-top: 40px; }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; gap: 14px; }
  .cat-card { flex-direction: row; align-items: stretch; }
  .cat-card .card-media { flex: 0 0 38%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .cat-card .card-body { padding: 16px 16px 16px; }
  .cat-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
  .cat-card p { font-size: .9rem; margin-bottom: 10px; line-height: 1.5; }
  .cat-card .link-arrow { font-size: .92rem; }
}

/* Calculator cards (home) */
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.calc-card {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow);
}
.calc-icon { flex: none; width: 60px; height: 60px; border-radius: 12px; background: var(--sky); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.calc-icon svg { width: 30px; height: 30px; }
.calc-card h3 { margin-bottom: 6px; }
.calc-card p { color: var(--muted); margin-bottom: 18px; }
.calc-card .btn { min-height: 46px; padding: 10px 18px; }
@media (max-width: 800px) {
  .calc-grid { grid-template-columns: 1fr; gap: 16px; }
  .calc-card { padding: 22px; gap: 16px; }
  .calc-icon { width: 50px; height: 50px; }
}

/* ---------- Bands ---------- */
.band-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.band-grid h2 { margin-bottom: 14px; }
.band-grid p { font-size: 1.07rem; max-width: 40em; }
.band-grid .btn-row { margin-top: 24px; }
.credit-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy) 0%, var(--navy) 55%, var(--navy-2) 100%); }
.credit-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }
.credit-band .container { position: relative; }
.terms-badge {
  justify-self: end; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255, 255, 255, .06); border: 2px solid rgba(96, 162, 217, .7);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff;
}
.terms-badge .big { font-family: var(--font-head); font-weight: 800; font-size: 4.2rem; line-height: 1; color: var(--sky); }
.terms-badge .small { font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; line-height: 1.35; }
.store-band .store-visual { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.store-band .store-visual img { width: 100%; height: auto; }
.store-band .store-name { color: #fff; font-weight: 700; }
@media (max-width: 860px) {
  .band-grid { grid-template-columns: 1fr; gap: 32px; }
  .terms-badge { justify-self: start; width: 160px; height: 160px; }
  .terms-badge .big { font-size: 3rem; }
  .terms-badge .small { font-size: .8rem; }
  .credit-band .terms-badge { order: -1; display: none; }
}

.cta-band { text-align: left; }
.cta-band .cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.cta-band .cta-copy { max-width: 700px; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { margin: 0; font-size: 1.07rem; }
.cta-band .btn-row { margin-top: 0; }
.store-strip .cta-inner p { max-width: 760px; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.split-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.split-copy h2 { margin-bottom: 16px; }
.split-copy > p { font-size: 1.05rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media { order: 0; }
}

.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; line-height: 1.5; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .12em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23013B73' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
  box-shadow: inset 0 0 0 1px var(--border);
}
.bg-pale .check-list li::before { background-color: #fff; }
.range-links { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.bg-pale .range-links { border-top-color: var(--border); }
.range-links .label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 7px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); color: var(--navy);
  font-family: var(--font-head); font-weight: 600; font-size: .86rem; text-decoration: none; line-height: 1.3;
}
.chip:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.small-print { font-size: .9rem; color: var(--muted); margin-top: 16px; }
.small-print a { font-weight: 600; }
.note { font-size: .92rem; color: var(--muted); }

/* Products jump nav */
.jump-nav { background: #fff; border-bottom: 1px solid var(--line); }
.jump-nav .container { display: flex; align-items: center; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
.jump-nav .label { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.jump-nav .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.jump-nav .chips::-webkit-scrollbar { display: none; }
.jump-nav .chip { white-space: nowrap; background: var(--pale); }
.jump-nav .chip:hover { background: var(--navy); }
@media (max-width: 700px) { .jump-nav .label { display: none; } }
.product-section { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-2) 100%);
  padding: clamp(48px, 3rem + 2vw, 84px) 0 clamp(52px, 3rem + 2.4vw, 92px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; max-width: 20ch; margin-bottom: 16px; }
.page-hero .lead { color: rgba(255, 255, 255, .9); max-width: 42em; margin-bottom: 0; }
.page-hero .btn-row { margin-top: 30px; }
.breadcrumb { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: rgba(255, 255, 255, .75); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, .45); }
.updated { font-style: italic; font-size: .95rem; color: rgba(255, 255, 255, .85); margin: 0; }

/* ---------- Feature columns ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }
.bg-pale .feature { border-color: var(--border); }
.feature .icon-badge { width: 56px; height: 56px; background: var(--pale); box-shadow: none; margin-bottom: 18px; }
.bg-pale .feature .icon-badge { background: var(--pale); }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; gap: 16px; } .feature { padding: 24px; } }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li { position: relative; padding-left: 60px; counter-increment: step; min-height: 44px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; margin-bottom: 2px; }
.steps span { color: var(--muted); }
.steps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps-row li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px 24px 84px; }
.steps-row li::before { left: 24px; top: 24px; }
@media (max-width: 900px) { .steps-row { grid-template-columns: 1fr; gap: 14px; } }

/* Calculator page cards */
.calc-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.calc-page-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.calc-page-card .card-media { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); background: #fff; }
.calc-page-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.calc-page-card .card-body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.calc-page-card h2 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); margin-bottom: 10px; }
.calc-page-card p { color: var(--muted); }
.calc-page-card .btn { margin-top: auto; align-self: flex-start; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--link); margin-bottom: 10px; }
.tag svg { width: 16px; height: 16px; }
@media (max-width: 860px) { .calc-page-grid { grid-template-columns: 1fr; gap: 20px; } .calc-page-card .card-body { padding: 22px; } }

/* About sponsor callout */
.callout { display: flex; gap: 14px; align-items: center; margin-top: 24px; padding: 16px 18px; background: var(--pale); border-left: 4px solid var(--sky); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.callout svg { flex: none; width: 26px; height: 26px; color: var(--navy); }
.callout p { margin: 0; font-weight: 600; color: var(--navy); }
.callout a { font-weight: 700; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-badge { width: 44px; height: 44px; }
.contact-list .icon-badge svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .92rem; }
.contact-list a { font-weight: 600; word-break: break-word; }
.contact-list div { line-height: 1.5; padding-top: 1px; }
.info-block { margin-top: 24px; }
.info-block h3 { font-size: 1.1rem; margin-bottom: 8px; }
.hours { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; max-width: 360px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.hours li span:last-child { font-weight: 600; }
.bg-pale .contact-list .icon-badge { background: #fff; }

.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--pale); }
.map-placeholder {
  min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 32px 24px;
  background-color: #E4EEF8;
  background-image: linear-gradient(rgba(1,59,115,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(1,59,115,.07) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-placeholder .pin { width: 58px; height: 58px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.map-placeholder .pin svg { width: 28px; height: 28px; }
.map-placeholder address { font-style: normal; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.1rem; max-width: 30ch; }
.map-placeholder .map-consent { font-size: .88rem; color: var(--muted); max-width: 46ch; margin: 0; }
.map-box iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-caption { margin: 14px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(22px, 3vw, 40px); }
.form-card h2, .form-card h3 { margin-bottom: 8px; }
.form-intro { color: var(--muted); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, fieldset legend { display: block; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--charcoal); margin-bottom: 6px; }
.req { color: #B42318; margin-left: 2px; }
.optional { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; border: 1.5px solid #B8C7D6; border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(96, 162, 217, .35); }
.field .hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.form-fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.form-fieldset > legend { font-size: 1.05rem; font-weight: 700; color: var(--navy); padding: 0; margin-bottom: 14px; width: 100%; padding-bottom: 8px; border-bottom: 2px solid var(--pale); }
.form-fieldset .form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; line-height: 1.55; margin-top: 4px; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.consent label { font-family: var(--font-body); font-weight: 400; color: var(--text); margin: 0; font-size: .94rem; }
.form-submit { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-submit .btn { min-width: 200px; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.form-status.is-success { display: block; background: #E7F6EC; color: #145C2E; border: 1px solid #A6DDB8; }
.form-status.is-error, .form-status.is-info { display: block; background: #FFF6E5; color: #7A4A00; border: 1px solid #F2CF8D; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.privacy-line { font-size: .88rem; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 640px) {
  .form-grid, .form-fieldset .form-grid.three { grid-template-columns: 1fr; gap: 16px; }
  .form-submit .btn { width: 100%; }
}

/* ---------- Legal / prose ---------- */
.legal-list { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.legal-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 20px 28px; border-bottom: 1px solid var(--line); }
.legal-row:last-child { border-bottom: 0; }
.legal-row:nth-child(even) { background: #FAFCFE; }
.legal-row dt { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.legal-row dd { margin: 0; }
.legal-row dd p:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .legal-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 20px; } }

.prose-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); background: var(--pale); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.toc h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 0; font-size: .9rem; color: var(--navy); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--link); text-decoration: underline; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); margin: 2.2em 0 .6em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--sky); }
@media (max-width: 960px) { .prose-layout { grid-template-columns: 1fr; gap: 32px; } .toc { position: static; } .toc ol { grid-template-columns: 1fr 1fr; column-gap: 16px; } }
@media (max-width: 520px) { .toc ol { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.not-found-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .88); font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sky); }
.footer-main { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-logo img { height: 64px; width: auto; margin-bottom: 20px; }
.site-footer h2 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer address strong { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact svg { width: 16px; height: 16px; flex: none; color: var(--sky); }
.footer-contact a { text-decoration: none; font-weight: 600; }
.footer-hours { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; }
.footer-hours li { display: flex; justify-content: space-between; gap: 12px; max-width: 250px; }
.footer-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: rgba(255, 255, 255, .88); }
.footer-note svg { width: 18px; height: 18px; flex: none; color: var(--sky); margin-top: 3px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.social { display: flex; gap: 10px; margin-bottom: 22px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .1); color: #fff; transition: background-color .15s; }
.social a:hover { background: var(--sky); color: var(--navy); }
.social svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); background: var(--navy-deep); font-size: .82rem; color: rgba(255, 255, 255, .75); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 20px; padding-bottom: 22px; }
.footer-bottom p { margin: 0; max-width: 820px; line-height: 1.6; }
.footer-bottom nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .9); }
.cookie-note { margin-top: 6px !important; }
@media (max-width: 1000px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 36px 32px; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-top: 48px; padding-bottom: 36px; } .footer-main > div:nth-child(-n+2) { grid-column: 1 / -1; } }
