/* ==========================================================================
   Coastal Hardware & Building Supply
   Single-source design system. Tokens -> base -> components -> responsive.
   ========================================================================== */

:root {
  /* Surface & ink */
  --navy-950: #09243b;
  --navy-900: #071d30;
  --navy-800: #123b5b;
  --white: #ffffff;
  --surface: #f7f9fa;
  --ink: #102b43;
  --muted: #5d6e7e;

  /* Accent */
  --red: #c84630;
  --red-dark: #a83a2a;

  /* Text on dark surfaces */
  --on-dark: #b7c8d6;
  --on-dark-dim: #c9d5df;

  /* Rules */
  --line: #dce3e8;
  --line-light: rgba(255, 255, 255, 0.16);

  /* Focus — red clears 3:1 on light surfaces, white clears it on navy. */
  --focus: var(--red);

  /* Layout */
  --max: 1280px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --header-h: 74px;

  /* Type */
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Motion — a real ease-out curve; the CSS keyword is too weak to read as intentional. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-press: 100ms;
  --dur-hover: 180ms;
  --dur-reveal: 500ms;

  /* Semantic z-index scale */
  --z-hero-copy: 2;
  --z-header: 100;
  --z-callbar: 120;
  --z-skip: 200;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}

/* Anchors and the skip link must clear the sticky header. */
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

p,
li,
figcaption {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Dark bands need a light ring; red on navy is only 2.6:1. */
.site-header,
.hero,
.brand-rail,
.visit-band .visit-call,
.site-footer,
.page-hero,
.callout,
.mobile-call-bar {
  --focus: var(--white);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: var(--z-skip);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  color: var(--navy-950);
  background: var(--white);
  transform: translateY(-180%);
  transition: transform var(--dur-hover) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - (2 * var(--pad))), var(--max));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font);
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 4.8vw, 5rem);
}

h2 {
  font-size: clamp(2.15rem, 3.8vw, 3.7rem);
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
}

.section-heading {
  max-width: 12ch;
}

.section-intro {
  max-width: 42rem;
  margin: 1rem 0 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--white);
  background: rgba(9, 36, 59, 0.98);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(180px, 214px) 1fr auto;
  align-items: center;
  gap: clamp(1rem, 2.3vw, 2.3rem);
  min-height: var(--header-h);
}

.brand {
  display: block;
}

/* Widths target the artwork itself. The logo is trimmed to its own bounds, so
   these are ~12% smaller than the old boxed JPEG for the same optical size. */
.brand img {
  width: min(100%, 208px);
  height: auto;
}

.site-nav {
  justify-self: end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.8vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: inline-block;
  /* Clears the 40px dense-desktop hit-area floor at this font size. */
  padding-block: 0.6rem;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list a::after {
  position: absolute;
  right: 0;
  bottom: -0.24rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-hover) var(--ease-out);
}

.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0.75rem;
  border: 1px solid var(--line-light);
  border-radius: 4px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin-block: 5px;
  background: currentColor;
  transition: transform var(--dur-hover) var(--ease-out), opacity var(--dur-hover) var(--ease-out);
}

/* Harmless above the mobile breakpoint — the control is display:none there. */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.header-call,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  /* Icon side gets 2px less so the label reads optically centred. */
  padding: 0.72rem 1.1rem 0.72rem 1.225rem;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition-property: background-color, border-color, color, transform;
  transition-duration: var(--dur-hover);
  transition-timing-function: var(--ease-out);
}

.header-call {
  min-height: 40px;
  padding: 0.6rem 0.95rem;
  border: 0;
  border-radius: 4px;
  color: var(--white);
  background: var(--red);
  font-size: 0.81rem;
}

.button-primary {
  border-color: var(--red);
  color: var(--white);
  background: var(--red);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: transparent;
}

.button-dark {
  border-color: var(--navy-950);
  color: var(--white);
  background: var(--navy-950);
}

/* Touch devices fire :hover on tap; gate it so taps don't stick in hover state. */
@media (hover: hover) and (pointer: fine) {
  .header-call:hover,
  .button-primary:hover {
    border-color: var(--red-dark);
    background: var(--red-dark);
  }

  .button-secondary:hover {
    border-color: var(--white);
    color: var(--navy-950);
    background: var(--white);
  }

  .button-dark:hover {
    border-color: var(--navy-800);
    background: var(--navy-800);
  }

  .nav-list a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .text-link:hover {
    color: var(--red);
  }

  .footer-nav a:hover {
    color: var(--on-dark-dim);
  }
}

/* Press feedback — every pressable surface, interruptible, never below 0.95. */
.header-call:active,
.button:active,
.mobile-call-bar:active,
.phone-display:active,
.footer-phone:active {
  transform: scale(0.96);
  transition-duration: var(--dur-press);
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  /* Padding lifts the hit area to ~40px without moving the underline. */
  gap: 0.35rem;
  padding-block: 0.55rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 0 currentColor;
  transition: color var(--dur-hover) var(--ease-out);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

/* --------------------------------------------------------------------------
   Media
   -------------------------------------------------------------------------- */

/* Neutral hairline so contained photography has a defined edge on any surface.
   Pure black at 10% — a tinted neutral picks up the surface and reads as dirt. */
.product-photo img,
.product-mini img,
.service-gallery img,
.heritage-gallery img,
.content-media img {
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  min-height: min(650px, calc(100svh - var(--header-h)));
}

.hero-copy {
  position: relative;
  z-index: var(--z-hero-copy);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 5vw, 6rem) clamp(4rem, 8vw, 7rem)
    max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
}

/* Decorative repeat of the header mark, sized to lead the hero. Capped at the
   logo's own 653px so it is never upscaled past its source resolution. */
.hero-logo {
  width: min(100%, 340px);
  height: auto;
  margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
}

.hero-lede {
  max-width: 31rem;
  margin: 1.7rem 0 2rem;
  color: var(--on-dark);
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.contractor-section {
  padding: 0;
  background: var(--white);
}

.contractor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.contractor-photo {
  min-height: 600px;
}

.contractor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
}

.contractor-content {
  padding: clamp(4rem, 7vw, 7rem) clamp(2rem, 6vw, 6.5rem);
}

.ruled-list {
  margin: 0 0 2rem;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.ruled-item {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.item-number {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  line-height: 1.8;
}

.ruled-item h3 {
  margin-bottom: 0.35rem;
}

.ruled-item p,
.service-index span {
  margin: 0;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Products
   -------------------------------------------------------------------------- */

.products-section {
  background: var(--surface);
}

.products-lead {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.products-lead-copy {
  align-self: start;
}

.availability-note {
  max-width: 26rem;
  margin: 2rem 0;
  padding: 0.85rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
}

.product-feature {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
}

.product-photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-copy h3 {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.product-copy p {
  max-width: 38rem;
  font-size: 1.08rem;
}

.product-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.product-mini {
  padding: clamp(2rem, 4vw, 4rem);
}

.product-mini + .product-mini {
  border-left: 1px solid var(--line);
}

.product-mini figure {
  margin: 0 0 1.5rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-rail {
  padding-block: 1.25rem;
  color: var(--on-dark-dim);
  background: var(--navy-950);
  font-size: 0.79rem;
  font-weight: 650;
  letter-spacing: 0.055em;
  line-height: 1.7;
  text-align: center;
}

/* --------------------------------------------------------------------------
   In-store services
   -------------------------------------------------------------------------- */

.services-section {
  background: var(--white);
}

.services-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.service-index {
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-index li {
  display: grid;
  grid-template-columns: minmax(9rem, 0.75fr) 1.25fr;
  gap: 1.4rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--line);
}

.service-index strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.service-gallery {
  display: grid;
  grid-template-columns: 1fr 0.52fr;
  grid-template-rows: minmax(320px, 1fr) minmax(180px, 0.55fr);
  gap: 1rem;
}

.service-gallery figure {
  margin: 0;
  overflow: hidden;
}

.service-gallery figure:first-child {
  grid-column: 1 / -1;
}

.service-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-call {
  margin-top: 1.6rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Heritage
   -------------------------------------------------------------------------- */

.heritage-section {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.heritage-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.heritage-gallery {
  display: grid;
  gap: 1.2rem;
}

.heritage-gallery figure {
  margin: 0;
  overflow: hidden;
}

.heritage-gallery figure:first-child {
  aspect-ratio: 16 / 9;
}

.heritage-gallery figure:last-child {
  aspect-ratio: 4 / 1;
}

.heritage-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heritage-copy {
  padding-block: 2rem;
}

.heritage-copy p {
  font-size: 1.14rem;
}

.proof-line {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Visit
   -------------------------------------------------------------------------- */

.visit-band {
  color: var(--white);
  background: var(--navy-950);
}

.visit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Four-value padding on purpose. The wide gutter aligns this column's text with
   the 1280px container, so it belongs on the OUTER edge only. Applying it to
   both sides (as a two-value shorthand does) squeezed the content to ~200px at
   2560px wide and broke the phone number across three lines. */
.visit-call {
  display: flex;
  min-height: 470px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(4rem, 7vw, 6rem) clamp(2rem, 4vw, 4rem) clamp(4rem, 7vw, 6rem)
    max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
}

.visit-call h2::after {
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 1.2rem;
  content: "";
  background: var(--red);
}

.visit-call p {
  max-width: 28rem;
  color: var(--on-dark);
  font-size: 1.1rem;
}

.phone-display {
  display: inline-block;
  margin-block: 0.5rem 1.5rem;
  color: var(--white);
  /* A phone number is a single token — never let it break across lines. */
  white-space: nowrap;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  transition: transform var(--dur-hover) var(--ease-out);
}

/* Mirror of .visit-call — the wide gutter goes on this panel's outer (right)
   edge, so both columns' text lines up with the 1280px container. */
.visit-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 7vw, 7rem) max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)))
    clamp(4rem, 7vw, 7rem) clamp(2rem, 4vw, 4rem);
  color: var(--ink);
  background: var(--surface);
}

.address {
  margin: 0 0 1.4rem;
  font-size: clamp(1.55rem, 2.5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
}

.hours {
  width: 100%;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  border-collapse: collapse;
}

.hours caption {
  padding-block: 1rem;
  font-size: 1rem;
  font-weight: 750;
  text-align: left;
}

.hours th,
.hours td {
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

.hours th {
  text-align: left;
}

/* Equal-width digits keep the times optically aligned down the column. */
.hours td {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Map
   -------------------------------------------------------------------------- */

/* Full-bleed band, matching .visit-band and .brand-rail. An explicit height —
   not aspect-ratio — reserves the space before the iframe loads. aspect-ratio
   is bidirectional: clamped against min/max-height it back-computes a width
   wider than the viewport (320px x 21/8 = 840px at a 768px viewport). */
.map-band {
  position: relative;
  height: clamp(320px, 40vw, 520px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.map-band iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 620px) {
  .map-band {
    height: 320px;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: 3rem;
  color: var(--white);
  background: var(--navy-900);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem 2rem;
  margin: 0 0 2rem;
  padding: 0 0 2rem;
  border-bottom: 1px solid var(--line-light);
  list-style: none;
}

.footer-nav a {
  display: inline-block;
  padding-block: 0.55rem;
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  transition: color var(--dur-hover) var(--ease-out);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(200px, 324px) 1fr auto;
  gap: 2rem;
  align-items: center;
}

/* Same trap as .content-media img — the height attribute was stretching the
   logo to roughly twice its true proportions on every page. */
.footer-logo {
  width: min(100%, 324px);
  height: auto;
}

.footer-copy p {
  margin: 0.2rem 0;
}

.footer-phone {
  display: inline-block;
  color: var(--white);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  transition: transform var(--dur-hover) var(--ease-out);
}

.mobile-call-bar {
  display: none;
}

/* --------------------------------------------------------------------------
   Interior pages
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 7vw, 6.5rem);
  color: var(--white);
  background: var(--navy-950);
}

.page-hero h1 {
  max-width: 15ch;
}

.page-hero p {
  max-width: 44rem;
  margin: 1.5rem 0 0;
  color: var(--on-dark);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.page-hero .hero-actions {
  margin-top: 2rem;
}

/* The 404 "where to next" list reuses .service-index, whose labels are plain
   text elsewhere; here they are links and need the accent + underline. */
.service-index a {
  color: var(--red);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 0 currentColor;
}

.content-section {
  padding-block: clamp(4rem, 7vw, 7rem);
}

/* Centred closing prompt — replaces the inline styles that were on products.html. */
.section-prompt {
  padding-block: clamp(4rem, 8vw, 7rem);
  text-align: center;
}

.section-prompt h2 {
  max-width: none;
}

.section-prompt .section-intro {
  margin-inline: auto;
  color: var(--on-dark);
}

.content-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.content-grid + .content-grid {
  margin-top: clamp(4rem, 8vw, 8rem);
  padding-top: clamp(4rem, 8vw, 8rem);
  border-top: 1px solid var(--line);
}

.content-grid.reverse {
  grid-template-columns: 1.2fr 0.8fr;
}

.content-grid.reverse .content-media {
  order: 2;
}

.content-media {
  position: sticky;
  top: calc(var(--header-h) + 51px);
}

.content-media figure {
  margin: 0;
  overflow: hidden;
}

/* `height: auto` is required — without it the width/height HTML attributes
   supply a fixed height, and a non-auto height makes `aspect-ratio` a no-op. */
.content-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.content-copy h2 {
  max-width: 13ch;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.content-copy p,
.content-copy li {
  font-size: 1.08rem;
}

.plain-list {
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.callout {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 4px;
  color: var(--white);
  background: var(--navy-950);
}

.callout p {
  margin: 0 0 1rem;
  color: var(--on-dark);
}

.callout .button {
  margin-top: 0.4rem;
}

/* --------------------------------------------------------------------------
   Scroll reveal

   Content is visible by default. The hidden state is applied only once the
   `js` class confirms scripting is live, so a blocked/failed script.js, a
   print job, or a headless renderer still ships a fully readable page.
   -------------------------------------------------------------------------- */

.reveal {
  transition-property: opacity, transform;
  transition-duration: var(--dur-reveal);
  transition-timing-function: var(--ease-out);
}

.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(20px);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Mobile navigation. Single breakpoint authority — do not add a second one. */
@media (max-width: 1050px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    display: none;
    width: 100vw;
    min-height: calc(100dvh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 1rem var(--pad) 1.5rem;
    border-top: 1px solid var(--line-light);
    background: var(--navy-950);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    display: grid;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--line-light);
    font-size: 1rem;
  }

  .nav-list a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .header-call {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .header-inner {
    grid-template-columns: minmax(170px, 212px) 1fr auto;
  }

  .hero-grid,
  .contractor-layout,
  .products-lead,
  .services-layout,
  .heritage-layout,
  .visit-layout,
  .content-grid,
  .content-grid.reverse {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
  }

  .hero-copy {
    padding: 4rem var(--pad);
  }

  .hero-media {
    min-height: 400px;
  }

  .contractor-photo {
    min-height: 420px;
  }

  .product-feature {
    grid-template-columns: 1fr;
  }

  .content-grid.reverse .content-media {
    order: 0;
  }

  .heritage-copy {
    padding-bottom: 0;
  }

  .visit-call {
    min-height: auto;
    padding-inline: var(--pad);
  }

  .visit-info {
    padding-inline: var(--pad);
  }

  .content-media {
    position: static;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-phone {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .header-inner {
    grid-template-columns: minmax(160px, 1fr) auto;
    gap: 1rem;
  }

  .brand img {
    width: min(100%, 178px);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 11vw, 3.25rem);
  }

  h2 {
    font-size: clamp(2rem, 9.5vw, 2.8rem);
  }

  .hero-copy {
    padding-block: 3.5rem;
  }

  .hero-media {
    min-height: 310px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .button {
    justify-content: center;
  }

  .contractor-photo {
    min-height: 300px;
  }

  .contractor-content {
    padding-inline: var(--pad);
  }

  .product-pair {
    grid-template-columns: 1fr;
  }

  .product-mini {
    padding-inline: 0;
  }

  .product-mini + .product-mini {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .service-index li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .service-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 310px 170px;
  }

  .hours th,
  .hours td {
    font-size: 0.98rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    width: min(100%, 274px);
  }

  .mobile-call-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: var(--z-callbar);
    display: flex;
    min-height: calc(64px + env(safe-area-inset-bottom));
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding-bottom: env(safe-area-inset-bottom);
    color: var(--white);
    background: var(--red);
    box-shadow: 0 -6px 20px rgba(9, 36, 59, 0.12);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform var(--dur-press) var(--ease-out);
  }
}

/* --------------------------------------------------------------------------
   Preferences
   -------------------------------------------------------------------------- */

/* Keep the opacity crossfade — it aids comprehension. Drop the movement. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    transition-duration: 200ms !important;
  }

  .js .reveal:not(.is-visible) {
    transform: none;
  }
}

@media print {
  .js .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  .site-header,
  .mobile-call-bar,
  .skip-link {
    display: none;
  }
}
