/* Cape Door Systems website styles.
   Follows CDS Brand Guidelines v1.0: solid colours only, no gradients, no content shadows,
   4px corners, 8px spacing grid, Montserrat headings, Open Sans body. */

:root {
  --navy: #0A2A8A;
  --royal: #1652F0;
  --mid: #5B9BFF;
  --pale: #E8EFFB;
  --slate: #1E293B;
  --grey: #55637A;
  --line: #CBD5E1;
  --white: #FFFFFF;
  --whatsapp: #25D366;

  --font-head: "Montserrat", Arial, Helvetica, sans-serif;
  --font-body: "Open Sans", Arial, Helvetica, sans-serif;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --radius: 4px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--slate); font: 400 1rem/1.65 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--mid); outline-offset: 2px; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { font-family: var(--font-head); color: var(--navy); margin: 0 0 var(--s2); text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.18; letter-spacing: -.015em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 var(--s2); }
.eyebrow { font: 700 .75rem/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--royal); margin: 0 0 var(--s2); }
.lead { font-size: 1.125rem; line-height: 1.6; max-width: 54ch; }
.measure { max-width: 62ch; }
.muted { color: var(--grey); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: var(--s2); z-index: 100; }
.skip:focus { left: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s3); }
.section { padding: var(--s7) 0; }
.section--pale { background: var(--pale); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .eyebrow { color: var(--mid); }
.section--tight { padding: var(--s6) 0; }
.section--ruled { border-top: 1px solid var(--line); padding-bottom: 0; }

/* Buttons */
.btn {
  display: inline-block; font: 700 .875rem/1 var(--font-head); letter-spacing: .02em; text-align: center;
  padding: 16px 26px; border-radius: var(--radius); border: 2px solid var(--royal);
  background: var(--royal); color: var(--white); cursor: pointer;
}
.btn:hover { background: var(--navy); border-color: var(--navy); text-decoration: none; }
.btn--outline { background: transparent; color: var(--royal); }
.btn--outline:hover { background: var(--royal); border-color: var(--royal); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--light:hover { background: var(--pale); border-color: var(--pale); color: var(--navy); }
.btn-row { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s4); }
.text-link { font: 700 .875rem/1 var(--font-head); letter-spacing: .02em; }
.text-link::after { content: " \2192"; }

/* Top bar and header */
.topbar { background: var(--navy); color: var(--white); font-size: .8125rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: var(--s2); }
.topbar a { color: var(--white); font-weight: 600; }
.topbar-right { display: flex; gap: var(--s3); align-items: center; }
.topbar-hours { opacity: .8; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: var(--s3); }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--s4); }
.nav > ul { display: flex; align-items: center; gap: var(--s4); }
.nav li a { display: block; font: 600 .9rem/1 var(--font-head); color: var(--slate); padding: 12px 0; border-bottom: 2px solid transparent; }
.nav li a:hover, .nav li a[aria-current="page"], .nav li a.is-active { color: var(--royal); border-color: var(--royal); text-decoration: none; }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sub { display: none; position: absolute; top: 100%; left: -20px; min-width: 264px; background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--royal); padding: var(--s1) 0; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.nav .sub li a { padding: 12px 20px; border: 0; font-weight: 600; }
.nav .sub li a:hover, .nav .sub li a[aria-current="page"] { background: var(--pale); }
.nav-toggle { display: none; }

/* Breadcrumb */
.breadcrumb { border-bottom: 1px solid var(--line); font-size: .8125rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s1); padding: 14px 0; color: var(--grey); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s1); color: var(--line); }
.breadcrumb a { color: var(--grey); }

/* Home hero: text sits in the page grid, photo runs to the right edge of the screen */
.hero { position: relative; border-bottom: 1px solid var(--line); }
.hero .container { display: flex; align-items: center; min-height: 600px; padding-top: var(--s6); padding-bottom: var(--s6); }
.hero-text { width: 50%; padding-right: var(--s6); }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; margin: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption, .media figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--navy); color: var(--white);
  font: 600 .6875rem/1.3 var(--font-head); letter-spacing: .1em; text-transform: uppercase; padding: 10px 16px;
}

/* Facts strip */
.facts { border-bottom: 1px solid var(--line); }
.facts ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: var(--s4) var(--s3); border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; font: 700 1.5rem/1.1 var(--font-head); color: var(--navy); letter-spacing: -.01em; margin-bottom: 6px; }
.facts span { font-size: .875rem; color: var(--grey); }

/* Two-column section: heading on the left, content on the right */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.split-head { position: sticky; top: 120px; }

/* Numbered service list */
.service-list { border-top: 1px solid var(--line); }
.service-list a { display: grid; grid-template-columns: 56px 1fr 32px; gap: var(--s2); align-items: start; padding: var(--s4) var(--s2) var(--s4) 0; border-bottom: 1px solid var(--line); color: inherit; }
.service-list a:hover { background: var(--pale); text-decoration: none; padding-left: var(--s2); }
.service-list .num { font: 700 .875rem/1.9 var(--font-head); color: var(--royal); letter-spacing: .08em; }
.service-list h3 { margin-bottom: 6px; }
.service-list p { margin: 0; color: var(--grey); max-width: 52ch; }
.service-list .arrow { font: 700 1.25rem/1.4 var(--font-head); color: var(--royal); text-align: right; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s5); }
.product-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--royal); border-radius: var(--radius); padding: var(--s4); display: flex; flex-direction: column; }
.product .type { font: 700 .6875rem/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--royal); margin-bottom: var(--s1); }
.product h3 { font-size: 1.625rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: var(--s2); }
.product p { color: var(--grey); }
.product dl { margin: var(--s2) 0 var(--s3); border-top: 1px solid var(--line); }
.product dl div { display: flex; justify-content: space-between; gap: var(--s2); padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.product dt { color: var(--grey); }
.product dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.product .text-link { margin-top: auto; }

/* Photo with caption */
.media { position: relative; margin: 0; }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.media--tall img { aspect-ratio: 4 / 5; }

/* Brand names we service */
.brand-list { display: flex; flex-wrap: wrap; gap: var(--s1); margin: var(--s3) 0; }
.brand-list li { font: 600 .875rem/1 var(--font-head); padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }

/* Client logos */
.clients { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s3); align-items: center; margin-top: var(--s4); }
.clients img { width: 100%; max-width: 150px; margin: 0 auto; filter: grayscale(1); opacity: .75; }
.clients img:hover { filter: none; opacity: 1; }

/* Work photos */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s5); }
.work-grid figure { margin: 0; }
.work-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.work-grid figcaption { font-size: .875rem; color: var(--grey); padding-top: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s3); flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* Inner page hero */
.page-hero { padding: var(--s6) 0 var(--s7); }
.page-hero .split--even { gap: var(--s6); }

/* Numbered features */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--s4); margin-top: var(--s5); }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: var(--s2); }
.feature .num { width: 48px; height: 48px; display: grid; place-items: center; background: var(--navy); color: var(--white); font: 700 1.05rem var(--font-head); border-radius: var(--radius); }
.feature h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--grey); font-size: .9375rem; }

/* Specification table */
.table-wrap { overflow-x: auto; margin-top: var(--s4); }
.spec { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 560px; background: var(--white); }
.spec th, .spec td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec thead th { background: var(--navy); color: var(--white); font: 700 .75rem/1.2 var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.spec tbody th { font-weight: 600; color: var(--navy); }
.spec th:not(:first-child), .spec td { text-align: right; font-variant-numeric: tabular-nums; }
.spec tbody tr:nth-child(even) > * { background: var(--pale); }
.table-note { font-size: .8125rem; color: var(--grey); margin-top: var(--s2); }

.standards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s4); border-top: 1px solid rgba(255,255,255,.3); margin-top: var(--s3); }
.standards li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.3); font: 600 .875rem/1.3 var(--font-head); letter-spacing: .02em; }

.check-list li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); }
.check-list li:first-child { border-top: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 10px; height: 10px; background: var(--royal); }

/* FAQ */
.faq-item { padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 1.125rem; margin-bottom: var(--s1); }
.faq-item p { margin: 0; max-width: 68ch; }

/* Call-to-action panel */
.cta-panel { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: var(--s6); display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: var(--s6); align-items: center; }
.cta-panel h2 { color: var(--white); max-width: 22ch; }
.cta-panel .eyebrow { color: var(--mid); }
.cta-panel p { margin: 0; max-width: 56ch; opacity: .9; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.cta-phone { font: 700 1.75rem/1 var(--font-head); color: var(--white); letter-spacing: -.01em; }
.cta-hours { font-size: .8125rem; opacity: .8; }

/* Footer */
.site-footer { background: var(--navy); color: var(--white); padding: var(--s6) 0 var(--s3); font-size: .9375rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: var(--s5); }
.footer-brand img { width: 220px; height: auto; margin-bottom: var(--s3); }
.footer-brand p { opacity: .85; max-width: 38ch; }
.site-footer h2 { font: 700 .75rem/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--mid); margin-bottom: var(--s2); }
.site-footer li { padding: 5px 0; }
.footer-contact { margin-top: var(--s2); }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s2); border-top: 1px solid rgba(255,255,255,.25); margin-top: var(--s5); padding-top: var(--s3); font-size: .8125rem; color: rgba(255,255,255,.8); }

/* Floating WhatsApp button (brand: green is for WhatsApp only) */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; background: var(--whatsapp); color: #06371c; font: 700 .875rem/1 var(--font-head); padding: 14px 20px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.wa-float:hover { background: #1fb457; text-decoration: none; }

/* Tablet */
@media (max-width: 1000px) {
  .section { padding: var(--s6) 0; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font: 700 .8125rem/1 var(--font-head); color: var(--navy); cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--navy); }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .site-header .container { flex-wrap: wrap; min-height: 72px; }
  .logo img { height: 40px; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: var(--s3); }
  .nav.is-open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .has-sub > a::after { display: none; }
  .sub { display: block; position: static; border: 0; padding: 0 0 0 var(--s3); min-width: 0; }
  .nav .sub li a { padding: 14px 0; font-weight: 400; font-family: var(--font-body); font-size: 1rem; }
  .nav .btn { margin-top: var(--s3); }

  .hero .container { display: block; min-height: 0; padding-top: var(--s5); padding-bottom: var(--s5); }
  .hero-text { width: 100%; padding-right: 0; }
  .hero-media { position: relative; width: 100%; aspect-ratio: 16 / 10; }
  .split, .split--even { grid-template-columns: 1fr; gap: var(--s4); }
  .split-head { position: static; }
  .product-grid, .product-grid--2, .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cta-panel { grid-template-columns: 1fr; gap: var(--s4); padding: var(--s5); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero { padding: var(--s5) 0 var(--s6); }
}

/* Phone */
@media (max-width: 640px) {
  .container { padding: 0 var(--s2); }
  .section { padding: var(--s5) 0; }
  .topbar-hours, .topbar .container > span:first-child { display: none; }
  .topbar .container { justify-content: flex-end; }
  .facts ul { grid-template-columns: 1fr; }
  .facts li, .facts li:first-child { padding: var(--s3) 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts li:first-child { border-top: 0; }
  .facts strong { font-size: 1.25rem; }
  .product-grid, .product-grid--2, .work-grid, .feature-grid, .footer-grid, .standards { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-list a { grid-template-columns: 40px 1fr 24px; }
  .cta-panel { padding: var(--s4) var(--s3); }
  .cta-phone { font-size: 1.5rem; }
  .btn-row .btn { width: 100%; }
  .wa-float span { display: none; }
  .wa-float { padding: 16px; right: 16px; bottom: 16px; }
  .legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Keeps in-page links from hiding their target under the sticky header */
[id] { scroll-margin-top: 110px; }

/* ---- Inner pages ---- */

/* Key figures panel (used where a page has no photo of its own) */
.figures { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: var(--s5); }
.figures h2 { font: 700 .75rem/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--mid); margin-bottom: var(--s2); }
.figures dl { margin: 0; border-top: 1px solid rgba(255,255,255,.25); }
.figures dl div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.figures dt { font-size: .9375rem; opacity: .85; }
.figures dd { margin: 0; font: 700 1.375rem/1.15 var(--font-head); letter-spacing: -.01em; text-align: right; }

.prose p { max-width: 66ch; }
.stack > * + * { margin-top: var(--s5); }
.cols-2 { columns: 2; column-gap: var(--s5); }
.cols-2 li { break-inside: avoid; }

.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: var(--s4); }
.value-grid li { padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--line); font: 600 1rem/1.3 var(--font-head); color: var(--navy); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s5); counter-reset: step; }
.steps li { border-top: 4px solid var(--royal); padding-top: var(--s3); counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font: 700 .875rem/1 var(--font-head); letter-spacing: .08em; color: var(--royal); margin-bottom: var(--s2); }
.steps h3 { font-size: 1.125rem; margin-bottom: var(--s1); }
.steps p { margin: 0; color: var(--grey); }

/* Leaf capacity bars */
.capacity { margin-top: var(--s3); }
.capacity li { display: grid; grid-template-columns: 64px 1fr 72px; gap: var(--s2); align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font: 600 .9375rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
.capacity .bar { height: 14px; background: var(--royal); border-radius: 2px; }
.capacity li span:last-child { text-align: right; }

/* Photo pair */
.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.photo-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.field--full { grid-column: 1 / -1; }
.form label { display: block; font: 600 .8125rem/1.2 var(--font-head); margin-bottom: var(--s1); color: var(--slate); }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--slate); }
.form textarea { min-height: 168px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--royal); outline: 3px solid var(--pale); }
.form .optional { font-weight: 400; color: var(--grey); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-note { font-size: .8125rem; color: var(--grey); margin: 0; }
.form-error { grid-column: 1 / -1; margin: 0; padding: var(--s2); border: 1px solid #DC2626; border-left-width: 4px; border-radius: var(--radius); color: #991B1B; background: #FEF2F2; }

/* Contact details */
.detail-list { margin: 0; border-top: 1px solid var(--line); }
.detail-list div { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.detail-list dt { font: 700 .75rem/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--royal); margin-bottom: var(--s1); }
.detail-list dd { margin: 0; font-size: 1.0625rem; }
.detail-list dd a { font-weight: 600; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s5); }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery a:hover img, .gallery a:focus-visible img { opacity: .85; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 20, 60, .92); }
.lightbox img { max-width: 94vw; max-height: 84vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding-top: var(--s2); color: var(--white); font-size: .875rem; }
.lightbox-bar div { display: flex; gap: var(--s1); }
.lightbox button { font: 700 .8125rem/1 var(--font-head); padding: 12px 16px; border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius); background: transparent; color: var(--white); cursor: pointer; }
.lightbox button:hover { background: var(--white); color: var(--navy); }

@media (max-width: 1000px) {
  .value-grid, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: var(--s3); }
}
@media (max-width: 640px) {
  .figures { padding: var(--s4) var(--s3); }
  .figures dd { font-size: 1.125rem; }
  .cols-2 { columns: 1; }
  .value-grid, .photo-pair, .form { grid-template-columns: 1fr; }
  .gallery { gap: var(--s1); }
  .capacity li { grid-template-columns: 52px 1fr 64px; }
}

/* A heading that should look like an h3 whatever its level */
.h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.service-list .h3 { margin-bottom: 6px; }
.split-head .h3 { margin-top: var(--s5); }

/* Facts strip on tablets: two by two */
@media (min-width: 641px) and (max-width: 1000px) {
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li { border-top: 1px solid var(--line); }
  .facts li:nth-child(-n+2) { border-top: 0; }
  .facts li:nth-child(odd) { border-left: 0; padding-left: 0; }
}
