/* Red River Cornerstone Mechanical LLC — shared styles
   Seed 2-4-5-1-4-3-2: deep, rich mechanical colours (cobalt navy, copper pipe, river red, frost blue) ·
   saturated navy hero and section bands with white text over white content areas ·
   full-width bands with alternating alignment · classic serif headings + sans body ·
   phone strip above the header · flat tiles grouped by category · 4px radius · motif: copper pipe runs */

@font-face { font-family: "Crimson Text"; src: url("fonts/crimson-text-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --navy: #163d6b;
  --navy-deep: #0f2238;
  --ink: #14202c;
  --slate: #586470;
  --rule: #d5dde5;
  --pale: #f2f5f8;
  --white: #ffffff;
  --copper: #c0713a;
  --copper-text: #9c4f1f;
  --red: #b3261e;
  --red-bright: #e24e34;
  --frost: #a9d3f2;
  --r: 4px;
  --serif: "Crimson Text", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --pipe: url("assets/motif-pipe.svg") 0 0 / 120px 14px repeat-x;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
strong { font-weight: 600; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 0.45em; color: var(--navy); }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); letter-spacing: -0.005em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0 0 1em; }

a { color: var(--copper-text); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; border-radius: var(--r); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.5rem 1rem; border-radius: var(--r); background: var(--red); color: var(--white); font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ---------- phone strip above the header ---------- */
.top-strip { background: var(--navy-deep); color: #dbe4ee; font-size: 0.92rem; }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem 1.5rem; padding-block: 0.55rem; }
.strip-inner p { margin: 0; }
.strip-inner strong { color: var(--white); }
.strip-call { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.top-strip a { color: var(--white); font-weight: 600; text-decoration: none; }
.top-strip a:hover { color: var(--frost); text-decoration: underline; }
.strip-phone::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 0.45rem; border-radius: 50%; background: var(--red-bright); vertical-align: 0.12em; }

.site-header { background: var(--white); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 2rem; padding-block: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.9rem; color: var(--navy); text-decoration: none; }
.brand img { width: 68px; height: auto; flex: none; border-radius: var(--r); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.1; }
.brand:hover .brand-name { color: var(--red); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-block; padding: 0.35rem 0; border-bottom: 3px solid transparent; color: var(--ink); font-weight: 600; font-size: 0.98rem; text-decoration: none; }
.main-nav a:hover { color: var(--navy); border-bottom-color: var(--rule); }
.main-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--red); }

/* ---------- full-width bands, alternating alignment ---------- */
.band { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.band-navy { background: var(--navy); color: var(--white); }
.band-navy h1, .band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy a:not(.btn) { color: var(--white); }
.band-pale { background: var(--pale); }
.pipe-line { height: 14px; background: var(--pipe); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.band-grid.lead-narrow { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
.band-grid.flip > :first-child { order: 2; }
.band-grid.flip.lead-narrow { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.align-end { text-align: right; }
.align-end .btn-row { justify-content: flex-end; }
.kicker { margin: 0 0 0.5rem; color: var(--copper-text); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.band-navy .kicker { color: var(--frost); }
.tag { display: inline-block; margin: 0 0 1rem; padding: 0.3rem 0.75rem; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: var(--r); font-size: 0.9rem; line-height: 1.45; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.25rem); max-width: 44ch; }
.band-navy .lede { color: #e3ebf3; }
.align-end .lede { margin-left: auto; }
.hero-art { display: block; width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.72rem 1.3rem; border: 2px solid var(--red); border-radius: var(--r);
  background: var(--red); color: var(--white);
  font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  max-width: 100%; overflow-wrap: anywhere;
}
.btn:hover { background: #8f1d17; border-color: #8f1d17; color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.band-navy .btn-ghost { color: var(--white); border-color: var(--white); }
.band-navy .btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* ---------- lists ---------- */
.ticks { list-style: none; margin: 0; padding: 0; text-align: left; }
.ticks li { position: relative; padding: 0.75rem 0 0.75rem 1.9rem; border-top: 1px solid var(--rule); color: var(--slate); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 14px; height: 14px; border-radius: 50%; background: var(--copper); box-shadow: inset 0 0 0 4px #e8b48c; }
.ticks strong { color: var(--ink); }
.band-navy .ticks li { border-top-color: rgba(255, 255, 255, 0.22); color: #d6e0ea; }
.band-navy .ticks strong { color: var(--white); }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 0.9rem; list-style: none; margin: 0; padding: 0; }
.cats a { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0.2rem 0.85rem; align-items: center; height: 100%; padding: 0.85rem; border-radius: var(--r); background: var(--white); color: var(--ink); text-decoration: none; }
.cats a:hover { box-shadow: inset 0 0 0 2px var(--red-bright); }
.cats img { grid-row: span 2; width: 52px; height: 52px; }
.cat-name { font-weight: 600; line-height: 1.3; letter-spacing: 0.02em; }
.cat-count { color: var(--slate); font-size: 0.9rem; }

.hours { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); }
.hours caption { caption-side: top; text-align: left; padding-bottom: 0.6rem; font-family: var(--serif); font-weight: 600; font-size: 1.7rem; color: var(--navy); }
.hours th, .hours td { padding: 0.6rem 0.85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.hours tbody tr:last-child > * { border-bottom: 0; }
.hours thead th { background: var(--pale); color: var(--copper-text); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hours td { font-variant-numeric: tabular-nums; }
.hours .note { display: block; color: var(--slate); font-size: 0.9rem; }
.hours .emergency { color: var(--red); font-weight: 600; }

/* ---------- catalog: flat tiles grouped by category ---------- */
.cat-band { scroll-margin-top: 0.5rem; }
.cat-head { position: sticky; top: 1rem; }
.cat-icon { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 1rem; border-radius: var(--r); background: var(--white); }
.cat-icon img { width: 56px; height: 56px; }
.align-end .cat-icon { margin-left: auto; }
.cat-head h2 { margin-bottom: 0.3rem; letter-spacing: 0.02em; }
.cat-head .count { margin: 0; font-weight: 600; font-size: 0.92rem; }
.band-navy .cat-head .count { color: var(--frost); }
.band-pale .cat-head .count { color: var(--copper-text); }
.band-pale .cat-icon { box-shadow: inset 0 0 0 1px var(--rule); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.tile { display: flex; flex-direction: column; padding: 1.1rem 1.15rem 1rem; border: 1px solid var(--rule); border-radius: var(--r); background: var(--white); color: var(--ink); scroll-margin-top: 1rem; }
.band-navy .tile { border-color: transparent; }
.tile h3 { font-family: var(--sans); font-weight: 600; font-size: 1.02rem; line-height: 1.35; margin: 0 0 0.35rem; color: var(--ink); }
.band-navy .tile h3 { color: var(--ink); }
.tile .desc { margin: 0 0 0.9rem; color: var(--slate); font-size: 0.95rem; line-height: 1.55; }
.tile .price { margin: auto 0 0; padding-top: 0.55rem; border-top: 2px solid var(--pale); font-family: var(--serif); font-weight: 600; font-size: 1.65rem; line-height: 1.1; color: var(--navy); font-variant-numeric: lining-nums; }
.tile .price.quote { font-family: var(--sans); font-size: 1rem; line-height: 1.4; color: var(--copper-text); }
.band-navy .tile a { color: var(--copper-text); }
.tile .call { display: block; margin-top: 0.2rem; font-weight: 400; white-space: nowrap; }
.offer { border-top: 4px solid var(--copper); }
.offer h3 { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); }
.offer p { margin: 0; color: var(--slate); }

/* ---------- about ---------- */
.story p { color: var(--slate); }
.story .first { color: var(--ink); font-size: clamp(1.15rem, 1.9vw, 1.3rem); line-height: 1.55; }
.facts { margin: 0; border: 1px solid var(--rule); border-radius: var(--r); background: var(--white); }
.facts div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0.2rem 1rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--rule); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--copper-text); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 0.2rem; }
.facts dd { margin: 0; font-weight: 600; }

/* ---------- contact ---------- */
.details { margin: 0; border-top: 2px solid var(--navy); }
.details div { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.details dt { color: var(--copper-text); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.details dd { margin: 0; font-weight: 600; font-size: 1.08rem; }
.details address { font-style: normal; }
.map-frame { display: block; width: 100%; height: 400px; border: 0; border-radius: var(--r); background: var(--pale); }
.map-link { margin-top: 0.9rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #c9d5e1; font-size: 0.98rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--frost); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 2rem; padding-block: 2.4rem 1.5rem; }
.footer-name { margin: 0 0 0.35rem; font-family: var(--serif); font-weight: 600; font-size: 1.45rem; color: var(--white); }
.site-footer address { font-style: normal; }
.footer-title { margin: 0 0 0.45rem; color: var(--frost); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-bottom { margin: 0; padding-block: 1rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.88rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .band-grid, .band-grid.lead-narrow, .band-grid.flip.lead-narrow { grid-template-columns: 1fr; }
  .band-grid.flip > :first-child { order: 0; }
  .align-end { text-align: left; }
  .align-end .btn-row { justify-content: flex-start; }
  .align-end .lede { margin-left: 0; }
  .align-end .cat-icon { margin-left: 0; }
  .cat-head { position: static; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 1rem; align-items: center; }
  .cat-icon { grid-row: span 2; width: 64px; height: 64px; margin: 0; }
  .cat-icon img { width: 48px; height: 48px; }
  .cat-head h2 { margin: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .strip-inner { font-size: 0.88rem; }
  .brand img { width: 56px; }
  .brand-name { font-size: 1.3rem; }
  .main-nav ul { gap: 0.15rem 1.15rem; }
  .facts div { grid-template-columns: 1fr; }
  .map-frame { height: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.band-grid.top { align-items: start; }
.band-navy .cats a { color: var(--ink); }
.footer-name { line-height: 1.15; }
