/* ==========================================================================
   Richland Tow Pros, Design System Stylesheet
   Tokens: sand #F5F0E5 · basalt #211D1A · ink #221E1A
   rust (CTA fill, WHITE text) #C1521C · river #2C5F6F · river-deep #1D4552
   Fonts: Space Grotesk (display, 700) · IBM Plex Sans (body, labels)
   Signature: thin arced-cable-line SVG tile (evokes the Ed Hendler "Cable
   Bridge"), divider strips + card top-borders only, never a background.
   ========================================================================== */

:root {
  --sand: #F5F0E5;
  --surface: #FFFFFF;
  --ink: #221E1A;
  --ink-soft: #5B564E;
  --basalt: #211D1A;
  --basalt-raised: #2B2621;
  --basalt-line: rgba(255, 255, 255, 0.12);
  --basalt-text-soft: rgba(255, 255, 255, 0.78);
  --rust: #C1521C;
  --rust-dark: #A64313;
  --river: #2C5F6F;
  --river-deep: #1D4552;
  --line: #E5DDCB;

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;

  --container: 1200px;
  --radius: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 18px 40px -22px rgba(33, 29, 26, 0.35);
  --shadow-panel: 0 24px 60px -28px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
img:not([src]), img[src=""] { visibility: hidden; }

a { color: var(--river-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--rust-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 2.1rem + 2vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 1.55rem + 1.1vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0 0 1.1em; color: var(--ink-soft); }
strong { color: var(--ink); }
ul, ol { padding-left: 1.25em; color: var(--ink-soft); }
li { margin-bottom: 0.45em; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Honeypot: visually hidden off-screen, never display:none (Section 9 contract) */
.hp-field {
  position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--rust); color: #fff;
  padding: 12px 20px; z-index: 300;
  font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 0.08em;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: 8px; }

.mono-label, .eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--river-deep);
  display: inline-block;
}
.eyebrow--on-dark, .mono-label--on-dark { color: var(--rust); }

/* ---------- Section rhythm ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-dark { background: var(--basalt); color: #fff; }
.section-dark p { color: var(--basalt-text-soft); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-header { max-width: 640px; margin-bottom: 44px; }
.section-header .eyebrow { margin-bottom: 12px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.05rem; margin-bottom: 0; }

/* ---------- Buttons (pill-shaped, no border) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  border: none; border-radius: var(--radius-pill);
  cursor: pointer; transition: background-color .15s ease, transform .1s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-rust { background: var(--rust); color: #fff; }
.btn-rust:hover { background: var(--rust-dark); color: #fff; }
.btn-outline-river { background: transparent; border: 2px solid var(--river); color: #fff; padding: 14px 30px; }
.btn-outline-river:hover { background: var(--river); color: #fff; }
.btn-outline-ink { background: transparent; border: 2px solid var(--ink); color: var(--ink); padding: 14px 30px; }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 20px 40px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header ---------- */
.site-header { background: var(--sand); border-bottom: 1px solid var(--line); position: relative; z-index: 100; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { flex-shrink: 0; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }

/* Primary illustrated identity. Keep the original text available to
   assistive technology while the generated portfolio lockup is visible. */
.site-header .brand {
  position: relative; display: block; width: 95px; height: 68px; flex: 0 0 95px;
  background: url("/assets/logo.webp") left center / contain no-repeat;
}
.site-header .brand > * {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

.primary-nav > ul { display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.primary-nav > ul > li > a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.86rem;
  padding: 8px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.primary-nav > ul > li > a:hover { color: var(--river-deep); border-bottom-color: var(--rust); }

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-phone {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15;
  text-decoration: none; color: var(--ink); font-family: var(--font-display);
  font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em;
}
.header-phone-label {
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--rust-dark); margin-bottom: 2px;
}
.header-phone:hover { color: var(--river-deep); }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--ink); border-radius: 8px;
  padding: 8px; cursor: pointer; color: var(--ink);
}
.mobile-nav { display: none; }

@media (max-width: 1180px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-phone { font-size: 1.02rem; }
  .mobile-nav {
    display: block; max-height: 0; overflow: hidden; background: var(--basalt);
    transition: max-height .28s ease;
  }
  .mobile-nav.is-open { max-height: 640px; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 8px 24px 20px; }
  .mobile-nav li { margin: 0; border-bottom: 1px solid var(--basalt-line); }
  .mobile-nav a { display: block; padding: 14px 4px; color: #fff; text-decoration: none; font-weight: 600; }
  .mobile-nav-call { color: var(--rust) !important; font-family: var(--font-display); font-weight: 700 !important; }
}

/* ---------- Cable-line divider (signature motif) ---------- */
.cable-divider {
  height: 4px; width: 100%;
  background-image: url("/assets/cable-line.svg");
  background-size: 60px 6px; background-repeat: repeat-x; background-position: center;
  border: 0; margin: 0; flex-shrink: 0;
}

/* ---------- Homepage cinematic hero ---------- */
.hero {
  position: relative; background: var(--basalt); color: #fff;
  overflow: hidden; min-height: 620px; display: flex; align-items: stretch;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  background: linear-gradient(135deg, #2b2621 0%, #1a1613 70%);
}
.hero-media video { z-index: 1; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(100deg, rgba(33,29,26,.94) 0%, rgba(33,29,26,.82) 38%, rgba(33,29,26,.55) 68%, rgba(33,29,26,.38) 100%);
}
.hero-inner {
  position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center;
  padding: 116px 0 76px; min-height: 620px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust);
}
.hero-badge .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--rust);
  box-shadow: 0 0 0 4px rgba(193,82,28,0.24);
}
.hero h1 { color: #fff; max-width: 16ch; margin-bottom: 20px; }
.hero-sub { max-width: 48ch; font-size: 1.12rem; color: var(--basalt-text-soft); margin-bottom: 32px; }
.hero-phone-callout {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.2rem); color: #fff; text-decoration: none;
  letter-spacing: -0.01em; margin-bottom: 6px;
}
.hero-phone-callout:hover { color: var(--rust); }
.hero-phone-note { color: var(--basalt-text-soft); font-size: 13px; margin: 0 0 28px; letter-spacing: 0.02em; }

/* ---------- Interior page hero ---------- */
.page-hero { background: var(--basalt); color: #fff; padding: 56px 0 48px; }
.page-hero .eyebrow--on-dark { margin-bottom: 14px; }
.page-hero h1 { color: #fff; max-width: 24ch; margin-bottom: 14px; }
.page-hero-sub { max-width: 62ch; color: var(--basalt-text-soft); font-size: 1.04rem; margin-bottom: 24px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--sand); border-bottom: 1px solid var(--line); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 12px 0; }
.breadcrumbs li { margin: 0; font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--rust-dark); font-weight: 700; }
.breadcrumbs a { color: var(--river-deep); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { color: var(--rust-dark); }
.breadcrumbs li[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-strip .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 24px 24px;
}
.trust-item {
  display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.86rem; color: var(--ink);
}
.trust-item svg { color: var(--rust-dark); flex-shrink: 0; }

@media (max-width: 880px) {
  .trust-strip .container { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.service-card {
  background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column;
  box-shadow: var(--shadow-card); border-radius: var(--radius); overflow: hidden;
}
.service-card-top { height: 4px; background-image: url("/assets/cable-line.svg"); background-size: 60px 6px; background-repeat: repeat-x; }
.service-icon-frame {
  aspect-ratio: 16/10; background: var(--basalt); display: flex; align-items: center; justify-content: center;
}
.service-icon-frame svg { color: var(--rust); }
.service-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service-card-body .mono-label { margin-bottom: 10px; color: var(--river-deep); }
.service-card-body h3 { margin-bottom: 10px; }
.service-card-body p { flex: 1; }
.card-link {
  color: var(--ink); font-weight: 700; text-decoration: none; font-size: 0.9rem;
  border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px;
}
.card-link:hover { color: var(--rust-dark); }

@media (max-width: 1020px) { .card-grid, .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid, .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; } }

/* ---------- Two-column content + capability panel ---------- */
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.two-col .prose p { font-size: 1.02rem; }
.capability-panel {
  background: var(--basalt); color: #fff; padding: 30px; position: sticky; top: 100px; border-radius: var(--radius);
}
.capability-panel .mono-label { color: var(--rust); margin-bottom: 16px; }
.capability-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.capability-list li {
  padding: 12px 14px; background: var(--basalt-raised); border-left: 3px solid var(--rust); border-radius: 0 8px 8px 0;
  font-size: 0.92rem; color: var(--basalt-text-soft); font-weight: 500;
}

@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; }
  .capability-panel { position: static; }
}

/* ---------- Numbered process strip (genuine sequence) ---------- */
.process-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.process-step { position: relative; padding-top: 8px; }
.process-index {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.5rem;
  color: var(--rust-dark); line-height: 1; margin-bottom: 14px;
}
.process-step h3 { margin-bottom: 8px; }

@media (max-width: 780px) { .process-strip { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); background: var(--surface); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 4px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: #fff; background: var(--rust); width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 4px 22px; max-width: 68ch; }
.faq-answer p { margin: 0; }

.section-dark .faq-item { background: var(--basalt-raised); border-bottom-color: var(--basalt-line); }
.section-dark .faq-item summary { color: #fff; }
.section-dark .faq-list { border-top-color: var(--basalt-line); }
.section-dark .faq-answer p { color: var(--basalt-text-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--basalt); color: #fff; }
.cta-band-inner {
  padding: 56px 0; display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; max-width: 22ch; }
.cta-band p { color: var(--basalt-text-soft); margin: 0; max-width: 46ch; }

@media (max-width: 780px) { .cta-band-inner { flex-direction: column; align-items: flex-start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--basalt); color: var(--basalt-text-soft); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 48px; padding: 56px 0 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-phone { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: var(--rust); text-decoration: none; margin-bottom: 4px; }
.footer-phone:hover { color: #fff; }
.footer-phone-block .mono-label { color: var(--basalt-text-soft); font-weight: 600; }

.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-nav .mono-label { color: var(--rust); margin-bottom: 14px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--basalt-text-soft); text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--rust); }
.footer-coverage { font-size: 0.88rem; margin: 0; }

.footer-disclosure {
  border-top: 1px solid var(--basalt-line); padding-top: 24px; font-size: 0.82rem;
  color: rgba(255,255,255,0.55); max-width: 78ch;
}
.footer-copyright { font-size: 0.8rem; color: rgba(255,255,255,0.4); padding-bottom: 28px; margin: 0; }

@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile sticky call bar ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: flex; height: 56px; background: var(--basalt);
  border-top: 2px solid var(--rust);
  transform: translateY(100%); transition: transform .2s ease;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.sticky-call { flex: 0 0 75%; background: var(--rust); color: #fff; }
.sticky-call span { font-weight: 600; text-transform: none; letter-spacing: 0; opacity: 0.85; }
.sticky-text { flex: 0 0 25%; color: #fff; border-left: 2px solid var(--river); background: var(--basalt-raised); font-size: 0.72rem; text-align: center; padding: 0 4px; }

@media (min-width: 1181px) { .sticky-bar { display: none !important; } }

/* ---------- Forms ---------- */
.callback-form { display: flex; flex-direction: column; gap: 18px; max-width: 480px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.form-row input, .form-row select, .form-row textarea {
  border: 2px solid var(--ink); border-radius: 8px; padding: 13px 14px;
  font-family: var(--font-body); font-size: 1rem; background: var(--surface); color: var(--ink);
}
.form-row textarea { resize: vertical; min-height: 88px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 3px solid var(--river); outline-offset: 1px; }
.form-note { font-size: 0.88rem; color: var(--ink-soft); margin: 4px 0 0; }
.form-note a { color: var(--river-deep); font-weight: 700; }

/* ---------- Service area list page ---------- */
.area-block { padding: 40px 0; border-bottom: 1px solid var(--line); }
.area-block:last-child { border-bottom: 0; }
.area-block h2 { margin-bottom: 12px; }
.area-block .mono-label { display: block; margin-bottom: 10px; }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .reveal.is-visible { opacity: 1; transform: none; }

  @supports (animation-timeline: view()) {
    .reveal {
      opacity: 1; transform: none; transition: none;
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 20%;
      animation-delay: calc(var(--i, 0) * 80ms);
    }
  }
}

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ---------- About / Contact layout ---------- */
.standards-list { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 14px; }
.standards-list li {
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--rust); border-radius: 0 8px 8px 0;
  font-weight: 600; color: var(--ink); font-size: 0.95rem;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-call-block { background: var(--basalt); color: #fff; padding: 32px; border-radius: var(--radius); }
.contact-call-block .mono-label { color: var(--rust); }
.contact-call-block .footer-phone { font-size: 2rem; margin: 12px 0 16px; }
.coverage-recap-list { columns: 2; column-gap: 24px; list-style: none; padding: 0; margin: 16px 0 0; }
.coverage-recap-list li { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 8px; break-inside: avoid; }

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .site-header .brand { width: 76px; height: 54px; flex-basis: 76px; }
  .hero-inner { padding: 92px 0 64px; }
  .footer-nav { grid-template-columns: 1fr; }
  .coverage-recap-list { columns: 1; }
}
