/* RNH Building Solutions — one stylesheet. Design verdict: Notes/DESIGN-VERDICT-26Aug.md
   Lane: a tile manufacturer's spec sheet. Flat planes, one squared-off family, photographs in courses. */

@font-face {
  font-family: "Geologica";
  src: url("/assets/fonts/geologica-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geologica Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 103%;
  ascent-override: 96%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  --navy: #002048;
  --cobalt: #1068d0;
  --cobalt-deep: #0b53a8;
  --sky: #9cc4ff;
  --grp: #eceef1;
  --grp-2: #e2e5ea;
  --white: #ffffff;
  --tile: #4a4b50;
  --mute: #5b5e66;
  --lap: #282726;
  --line: rgba(0, 32, 72, 0.16);

  --font: "Geologica", "Geologica Fallback", Arial, sans-serif;
  --lap-h: 10px;
  --tile-gap: 14px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-header: 40;
  --z-skip: 60;
  --measure: 68ch;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
  --band: clamp(3rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--tile);
  background: var(--grp);
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { color: var(--navy); line-height: 1.08; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
ul, ol { padding-left: 1.2em; max-width: var(--measure); }
li { margin-bottom: 0.35em; }
a { color: var(--cobalt); font-weight: 600; text-decoration: underline; text-underline-offset: 0.14em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--navy); }
strong { font-weight: 700; color: var(--navy); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.on-dark :focus-visible, .band-navy :focus-visible, .band-cobalt :focus-visible { outline-color: var(--white); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: var(--z-skip); background: var(--navy); color: var(--white); padding: 0.75rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--pad), 1180px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--pad), 860px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: var(--white); position: relative; z-index: var(--z-header); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 76px; padding-block: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; color: var(--white); text-decoration: none; margin-right: auto; }
.brand img { width: 56px; height: 56px; flex: none; }
.brand-name { display: none; font-weight: 800; font-size: 1.05rem; line-height: 1.05; letter-spacing: -0.01em; }
.brand-name small { display: block; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky); margin-top: 0.2rem; }
.nav { display: none; }
.nav a { color: var(--white); text-decoration: none; font-weight: 600; padding: 0.6rem 0.75rem; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--sky); color: var(--white); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.7rem 1.15rem; background: var(--cobalt); color: var(--white); font-weight: 700; text-decoration: none; border: 0; border-radius: var(--radius); cursor: pointer; font: inherit; font-weight: 700; line-height: 1.1; transition: background 160ms var(--ease), transform 160ms var(--ease); }
.btn:hover { background: var(--cobalt-deep); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: #062a5c; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-call { white-space: nowrap; }
.btn-call .num { display: none; }
@media (min-width: 560px) { .brand-name { display: block; } .btn-call .num { display: inline; } }
.menu { display: block; }
.menu summary { list-style: none; cursor: pointer; color: var(--white); font-weight: 700; min-height: 48px; min-width: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 0.6rem; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); border-radius: var(--radius); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: rgba(255, 255, 255, 0.12); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-top: 1px solid rgba(255, 255, 255, 0.15); padding: 0.5rem var(--pad) 1rem; }
.menu-panel a { display: flex; align-items: center; min-height: 48px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.menu-panel a[aria-current="page"] { color: var(--sky); }
@media (min-width: 900px) {
  .nav { display: flex; gap: 0.25rem; }
  .menu { display: none; }
  .site-header .wrap { gap: 1.5rem; }
}

/* ---------- hero (split, uncropped photo) ---------- */
.hero { background: var(--grp); }
.hero-grid { display: grid; grid-template-columns: 1fr; }
.hero-plate { background: var(--cobalt); color: var(--white); padding: clamp(2rem, 5vw, 4rem) var(--pad); display: flex; flex-direction: column; justify-content: center; }
.hero-plate h1 { color: var(--white); margin-bottom: 0.5em; }
.hero-plate p { color: var(--white); font-size: 1.15rem; max-width: 34ch; }
.hero-plate .lead-fact { font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.hero-photo { position: relative; background: var(--lap); }
.hero-photo img { width: 100%; height: auto; }
.hero-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: var(--navy); color: var(--white); font-size: 0.85rem; font-weight: 500; padding: 0.55rem var(--pad); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero-plate { padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem); }
  .hero-photo img { height: 100%; object-fit: cover; }
}

/* ---------- bands ---------- */
.band { padding-block: var(--band); }
.band-tight { padding-block: clamp(2rem, 5vw, 4rem); }
.band-navy { background: var(--navy); color: var(--white); }
.band-navy h2, .band-navy h3, .band-navy strong { color: var(--white); }
.band-navy p { color: var(--white); }
.band-navy a { color: var(--sky); }
.band-navy a:hover { color: var(--white); }
.band-cobalt { background: var(--cobalt); color: var(--white); }
.band-cobalt h2, .band-cobalt h3, .band-cobalt p, .band-cobalt strong { color: var(--white); }
.band-white { background: var(--white); }
.band-head { display: grid; gap: 0.5rem 3rem; margin-bottom: clamp(1.5rem, 4vw, 3rem); align-items: end; }
.band-head p { margin: 0; font-size: 1.1rem; }
@media (min-width: 900px) { .band-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } .band-head h2 { margin: 0; } }
.mute { color: var(--mute); }
.band-navy .mute, .band-cobalt .mute { color: var(--white); opacity: 0.9; }

/* ---------- THE COURSE: tiles in half-bond, each course lapping the one below ---------- */
.course { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 var(--tile-gap); list-style: none; margin: 0; padding: 0; max-width: none; }
.tile { position: relative; margin: 0; background: var(--white); z-index: calc(200 - var(--i, 0)); box-shadow: 0 var(--lap-h) 0 -1px var(--lap); }
.tile > a, .tile figure { display: block; margin: 0; text-decoration: none; }
.tile img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.tile figcaption, .tile .lap { display: block; background: var(--navy); color: var(--white); padding: 0.6rem 0.75rem 0.7rem; font-size: 0.85rem; line-height: 1.3; }
.tile figcaption strong, .tile .lap strong { color: var(--white); display: block; font-size: 0.95rem; }
.tile figcaption span, .tile .lap span { color: var(--sky); font-weight: 500; display: block; }
.tile-plate { display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; padding: 1rem 1.1rem; background: var(--navy); color: var(--white); text-decoration: none; }
.tile > a.tile-plate { display: flex; }
.tile-plate:hover { background: var(--cobalt); color: var(--white); }
.tile-plate strong { color: var(--white); font-size: 1.35rem; line-height: 1.1; letter-spacing: -0.01em; }
.tile-plate span { color: var(--sky); font-weight: 500; font-size: 0.9rem; margin-top: 0.25rem; }
.tile-plate:hover span { color: var(--white); }
/* 2 - 1 - 2 half-bond (phone and tablet) */
.tile:nth-child(3n+1) { grid-column: 1 / 3; }
.tile:nth-child(3n+2) { grid-column: 3 / 5; }
.tile:nth-child(3n+3) { grid-column: 2 / 4; }
.tile:nth-child(n+3) { margin-top: calc(var(--lap-h) * -1 + 1px); }
.course-home .tile:nth-child(n+6) { display: none; }
@media (min-width: 640px) {
  .course { --tile-gap: 16px; }
  .tile figcaption, .tile .lap { padding: 0.7rem 0.9rem 0.85rem; font-size: 0.93rem; }
  .tile figcaption strong, .tile .lap strong { font-size: 1rem; }
  .course-home .tile:nth-child(n+6) { display: block; }
}
@media (min-width: 1000px) {
  .course { grid-template-columns: repeat(6, 1fr); }
  .tile:nth-child(3n+1), .tile:nth-child(3n+2), .tile:nth-child(3n+3) { grid-column: auto; }
  .tile:nth-child(n+3) { margin-top: 0; }
  /* 3 - 2 - 3 half-bond */
  .tile:nth-child(5n+1) { grid-column: 1 / 3; }
  .tile:nth-child(5n+2) { grid-column: 3 / 5; }
  .tile:nth-child(5n+3) { grid-column: 5 / 7; }
  .tile:nth-child(5n+4) { grid-column: 2 / 4; }
  .tile:nth-child(5n+5) { grid-column: 4 / 6; }
  .tile:nth-child(n+4) { margin-top: calc(var(--lap-h) * -1 + 1px); }
}

/* ---------- project study (Our Work) ---------- */
.study { display: grid; gap: 1rem; padding-block: clamp(1.5rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.study:first-of-type { border-top: 0; }
.study-text h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 0.4em; }
.study-text .when { color: var(--mute); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.75rem; }
.study-photos { display: grid; gap: var(--tile-gap); grid-template-columns: 1fr; }
.study-photos figure { margin: 0; background: var(--white); box-shadow: 0 var(--lap-h) 0 -1px var(--lap); }
.study-photos.one figure { max-width: 620px; }
.study-photos figcaption { background: var(--navy); color: var(--white); font-size: 0.88rem; padding: 0.55rem 0.8rem 0.65rem; }
.study-photos figcaption span { color: var(--sky); }
@media (min-width: 720px) { .study-photos.two { grid-template-columns: 1fr 1fr; } .study-photos.three { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 900px) { .study { grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: 2.5rem; align-items: start; } .study-text { position: sticky; top: 1rem; } }

/* ---------- form band (the only cobalt band on a page; card first in the DOM) ---------- */
.quote-band { background: var(--cobalt); color: var(--white); padding-block: var(--band); scroll-margin-top: 1rem; }
.quote-grid { display: grid; gap: 2rem; }
.quote-card { background: var(--white); color: var(--tile); padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); box-shadow: 0 var(--lap-h) 0 -1px var(--lap); }
.quote-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.3em; }
.quote-card .req-note { color: var(--mute); font-size: 0.95rem; margin-bottom: 1.25rem; }
.quote-aside h2 { color: var(--white); }
.quote-aside p { color: var(--white); font-size: 1.1rem; }
.quote-aside .big-call { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--white); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.2rem); text-decoration: none; min-height: 48px; letter-spacing: -0.01em; }
.quote-aside .big-call:hover { text-decoration: underline; color: var(--white); }
.quote-aside .big-call svg { width: 1em; height: 1em; }
@media (min-width: 900px) { .quote-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; } }
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-weight: 700; color: var(--navy); }
.field label small { font-weight: 500; color: var(--mute); }
.field input, .field textarea { font: inherit; color: var(--tile); background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius); padding: 0.7rem 0.8rem; min-height: 48px; width: 100%; }
.field input::placeholder, .field textarea::placeholder { color: var(--mute); }
.field input:focus, .field textarea:focus { outline: 3px solid var(--cobalt); outline-offset: 2px; border-color: var(--cobalt); }
.field textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.25rem; }
.form-foot .btn { min-width: 220px; }
.form-foot p { margin: 0; font-size: 0.92rem; color: var(--mute); max-width: 32ch; }

/* ---------- facts strip (verified facts only) ---------- */
.facts { display: grid; gap: 1.25rem; }
.facts div { border-top: 3px solid var(--navy); padding-top: 0.75rem; }
.facts strong { display: block; font-size: 1.15rem; }
.facts p { margin: 0.25rem 0 0; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* ---------- areas words / credit chips ---------- */
.credit { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--mute); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.3rem 0.55rem; margin-top: 0.6rem; }
.credit a { color: var(--mute); font-weight: 600; }
.ledger { font-size: 0.85rem; color: var(--mute); }
.ledger li { margin-bottom: 0.4rem; }

/* ---------- prose pages ---------- */
.prose h2 { margin-top: 2rem; }
.prose ul { margin-bottom: 1.25rem; }
.thanks { text-align: left; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding-block: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; }
.foot-grid { display: grid; gap: 2rem; }
.site-footer a { color: var(--sky); }
.site-footer a:hover { color: var(--white); }
.site-footer p { color: var(--white); }
.foot-brand img { width: 96px; height: 96px; margin-bottom: 0.75rem; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin: 0; }
.foot-links a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; font-weight: 600; }
.foot-links a:hover { text-decoration: underline; }
.foot-small { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot-small p { margin: 0; opacity: 0.9; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

/* ---------- motion: enhance an already-visible default ---------- */
.js .reveal { opacity: 1; transform: none; }
.js .reveal[data-armed] { opacity: 0; transform: translateY(6px); }
.js .reveal[data-armed].in { opacity: 1; transform: none; transition: opacity 420ms var(--ease), transform 520ms var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
.js .hero-plate > * { animation: rise 520ms var(--ease) both; }
.js .hero-plate > :nth-child(2) { animation-delay: 60ms; }
.js .hero-plate > :nth-child(3) { animation-delay: 120ms; }
.js .hero-plate > :nth-child(4) { animation-delay: 180ms; }
.js .hero-photo { animation: rise 640ms var(--ease) 80ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-plate > *, .js .hero-photo { animation: none; }
  .js .reveal[data-armed] { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ---------- 27 Aug: Services, the hub and the ten area pages (extending the system, not redesigning it) ---------- */
.crumb { font-size: 0.9rem; font-weight: 600; margin: 0 0 0.75rem; color: var(--white); }
.hero-plate .crumb a { color: var(--white); }
.hero-photo figcaption .credit-inline { display: block; font-size: 0.78rem; font-weight: 500; color: var(--sky); margin-top: 0.15rem; }
.hero-photo figcaption .credit-inline a { color: var(--sky); font-weight: 600; }
.hero-photo figcaption .credit-inline a:hover { color: var(--white); }
.hero-town .hero-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .hero-town .hero-photo img { aspect-ratio: auto; } }

.town-prose h2 { margin-top: 1.75rem; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.town-prose h2:first-child { margin-top: 0; }
.town-prose .near { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.98rem; }

.plain-cols { display: grid; gap: 1.5rem 3rem; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.plain-cols h3 { margin-bottom: 0.4em; }
.plain-cols p { margin: 0; }
@media (min-width: 800px) { .plain-cols { grid-template-columns: 1fr 1fr; } }

/* the one numbered sequence on the site: a re-roof really is a sequence */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 clamp(1.5rem, 4vw, 3rem); max-width: none; display: grid; gap: 0.9rem 2rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.1rem; margin: 0; min-height: 2.4rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; background: var(--cobalt); color: var(--white); font-weight: 800; font-size: 1.1rem; border-radius: var(--radius); box-shadow: 0 4px 0 -1px var(--lap); }
.steps strong { display: block; }
@media (min-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } }

.asks { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: none; display: grid; gap: 0.75rem 2rem; }
.asks li { margin: 0; padding: 0.85rem 1rem; background: var(--grp); border-top: 3px solid var(--navy); font-weight: 500; color: var(--navy); }
@media (min-width: 800px) { .asks { grid-template-columns: 1fr 1fr; } }

.band-navy .tile-plate { background: var(--cobalt); }
.band-navy .tile-plate span { color: var(--white); }
.band-navy .tile-plate:hover { background: var(--white); color: var(--navy); }
.band-navy .tile-plate:hover strong { color: var(--navy); }
.band-navy .tile-plate:hover span { color: var(--cobalt); }
.band-navy .tile { background: transparent; }
.course-towns .tile-plate { min-height: 120px; }
.band-foot { margin: 1.75rem 0 0; }

.course-hub .tile img { aspect-ratio: 4 / 3; }
.course-hub .lap strong { font-size: 1.15rem; }

.ledger { list-style: none; padding: 0; margin: 0; max-width: none; }
.ledger .credit { display: block; max-width: none; margin-top: 0; }
.h-small { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.social { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; text-decoration: none; font-weight: 600; }
.social svg { width: 20px; height: 20px; }
.social:hover span { text-decoration: underline; }
