/* ============================================================
   Rip & Fix Construction Ltd. — design system
   Palette drawn from the RAF logo:
   oxblood #730217 · work blue #0477BF · hi-vis gold #D9B504
   Type: Barlow Condensed (display) / Barlow (body)
   ============================================================ */

:root {
  --oxblood: #730217;
  --oxblood-deep: #4c020f;
  --blue: #0477BF;
  --blue-deep: #035e96;
  --gold: #D9B504;
  --gold-bright: #f0ca06;
  --graphite: #171a20;
  --iron: #22262e;
  --ink: #24272b;
  --slate: #5b6169;
  --paper: #ffffff;
  --mist: #f2f4f6;
  --line: #e1e4e8;
  --radius: 6px;
  --hazard: repeating-linear-gradient(-45deg,
      var(--gold) 0 14px, var(--graphite) 14px 28px);
  --shadow: 0 2px 6px rgba(23, 26, 32, .08), 0 12px 32px rgba(23, 26, 32, .10);
}

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/Barlow-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/Barlow-500.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/Barlow-700.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/BarlowCondensed-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/BarlowCondensed-700.woff2) format('woff2'); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--blue-deep); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--graphite);
  padding: .6rem 1rem; font-weight: 700; z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3, .display {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: 1.08;
  color: var(--graphite);
}

.eyebrow {
  font: 700 .8rem/1 'Barlow', sans-serif;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--oxblood);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .8rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 4px;
  background: var(--gold);
}

/* ---------- header ---------- */
.site-header {
  background: var(--graphite);
  border-top: 6px solid var(--gold);
  position: sticky; top: 0; z-index: 50;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .55rem 1.25rem;
  max-width: 1180px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 118px; height: 47px; }
.brand-motto {
  font: 600 .95rem/1.1 'Barlow Condensed', sans-serif;
  color: #cfd3d9; text-transform: uppercase; letter-spacing: .08em;
  border-left: 1px solid #3a3f48; padding-left: .75rem;
}
.nav-toggle {
  display: none;
  background: none; border: 2px solid #3a3f48; border-radius: var(--radius);
  color: #fff; font: 700 .9rem 'Barlow', sans-serif;
  padding: .45rem .8rem; cursor: pointer;
}
.site-nav ul { display: flex; gap: .25rem; list-style: none; align-items: center; }
.site-nav a {
  display: block; padding: .55rem .7rem;
  color: #e8eaee; text-decoration: none;
  font: 500 .95rem 'Barlow', sans-serif;
  border-radius: var(--radius);
}
.site-nav a:hover { background: var(--iron); color: var(--gold-bright); }
.site-nav a[aria-current="page"] { color: var(--gold-bright); }
.nav-call {
  background: var(--oxblood);
  font-weight: 700 !important;
  white-space: nowrap;
}
.nav-call:hover { background: var(--oxblood-deep) !important; color: #fff !important; }

@media (max-width: 900px) {
  .brand-motto { display: none; }
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding-bottom: .75rem; }
  .site-header .bar { flex-wrap: wrap; }
}

/* ---------- hero (home) ---------- */
.hero {
  background: var(--graphite);
  color: #e8eaee;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2.5rem;
  align-items: center;
  padding-top: 3.5rem; padding-bottom: 3.5rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  margin-bottom: 1rem;
}
.hero h1 .accent { color: var(--gold-bright); }
.hero p.lede { font-size: 1.15rem; color: #c6cad1; max-width: 34rem; }
.hero .eyebrow { color: var(--gold-bright); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
}
.hero-media figcaption {
  font-size: .85rem; color: #9aa0a9; margin-top: .6rem;
}
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 2.5rem; }
}

.hazard-rule { height: 10px; background: var(--hazard); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font: 700 1rem 'Barlow', sans-serif;
  text-decoration: none;
  padding: .8rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--graphite); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-outline { border: 2px solid #4a505a; color: #fff; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-oxblood { background: var(--oxblood); color: #fff; }
.btn-oxblood:hover { background: var(--oxblood-deep); }

/* ---------- sections ---------- */
.section { padding: 4rem 0; }
.section.alt { background: var(--mist); }
.section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: .6rem; }
.section-head p { color: var(--slate); }

/* ---------- motto process band (signature) ---------- */
.process-band {
  background: var(--graphite);
  color: #fff;
  position: relative;
  padding: 3.4rem 0 3.8rem;
}
.process-band::before, .process-band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: var(--hazard);
}
.process-band::before { top: 0; }
.process-band::after { bottom: 0; }
.process-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.process-step { border-left: 4px solid var(--gold); padding-left: 1.1rem; }
.process-step .display {
  color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); display: block;
}
.process-step p { color: #b9bec7; margin-top: .4rem; font-size: .98rem; }
.process-step .step-label {
  font: 700 .75rem/1 'Barlow', sans-serif; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-bright);
}
@media (max-width: 700px) {
  .process-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.svc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.svc-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.svc-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.svc-card .body { padding: 1.15rem 1.25rem 1.35rem; }
.svc-card h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.svc-card p { font-size: .95rem; color: var(--slate); }
.svc-card .go {
  margin-top: .7rem; font-weight: 700; color: var(--blue-deep); font-size: .95rem;
}
.svc-card:hover .go { color: var(--oxblood); }

/* ---------- before / after strip ---------- */
.ba-figure { margin: 0; }
.ba-figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.ba-figure figcaption { font-size: .9rem; color: var(--slate); margin-top: .55rem; }
.ba-grid { display: grid; gap: 2rem; }

/* ---------- about / steve ---------- */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 2.5rem; align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- service area ---------- */
.area-list {
  display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin-top: 1.2rem;
}
.area-list li {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  padding: .45rem .9rem; border-radius: var(--radius);
  font-weight: 500; font-size: .95rem;
}

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: .75rem; background: var(--paper);
}
.faq summary {
  cursor: pointer; padding: 1rem 1.2rem;
  font: 600 1.1rem 'Barlow', sans-serif; color: var(--graphite);
  list-style: none; position: relative; padding-right: 2.6rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%;
  transform: translateY(-50%);
  font: 700 1.4rem 'Barlow Condensed', sans-serif; color: var(--gold);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.2rem 1.1rem; color: var(--slate); }

/* ---------- page hero (interior pages) ---------- */
.page-hero { background: var(--graphite); color: #fff; }
.page-hero .wrap { padding-top: 2.6rem; padding-bottom: 2.6rem; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.3rem); }
.page-hero p.lede { color: #c6cad1; max-width: 44rem; margin-top: .7rem; font-size: 1.12rem; }
.breadcrumbs { font-size: .88rem; margin-bottom: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumbs li + li::before { content: "›"; color: #6b727d; margin-right: .35rem; }
.breadcrumbs a { color: #aeb4bd; text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-bright); }
.breadcrumbs [aria-current] { color: #e8eaee; }

.banner-img img { width: 100%; }

/* ---------- prose / two-col service body ---------- */
.svc-body {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 3rem; align-items: start;
}
@media (max-width: 860px) { .svc-body { grid-template-columns: 1fr; } }
.prose h2 { font-size: 1.8rem; margin: 2rem 0 .7rem; }
.prose h3 { font-size: 1.4rem; margin: 1.6rem 0 .5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.2rem; }
.prose li { margin-bottom: .35rem; }

.side-panel { position: sticky; top: 84px; display: grid; gap: 1.25rem; }
.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; background: var(--paper);
}
.panel.cta { background: var(--graphite); color: #dfe2e7; border: none; }
.panel.cta h3 { color: #fff; font-size: 1.5rem; }
.panel.cta .phone {
  font: 700 1.7rem 'Barlow Condensed', sans-serif;
  color: var(--gold-bright); text-decoration: none; display: block; margin: .5rem 0 .9rem;
}
.panel h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.panel ul { list-style: none; }
.panel li { padding: .3rem 0 .3rem 1.3rem; position: relative; font-size: .97rem; }
.panel li::before {
  content: ""; position: absolute; left: 0; top: .78em;
  width: 9px; height: 9px; background: var(--gold);
}

/* ---------- gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.gallery img {
  border-radius: var(--radius); width: 100%; height: 100%;
  object-fit: cover; aspect-ratio: 3 / 4;
}
.gallery.landscape img { aspect-ratio: 4 / 3; }

/* ---------- project cards ---------- */
.project { display: grid; gap: 1rem; margin-bottom: 3.2rem; }
.project h2 { font-size: 1.9rem; }
.project .meta { color: var(--slate); font-size: .9rem; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem; align-items: start;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--graphite); color: #dfe2e7;
  border-radius: var(--radius); padding: 2rem;
}
.contact-card h2 { color: #fff; }
.contact-card .phone {
  font: 700 2.3rem 'Barlow Condensed', sans-serif;
  color: var(--gold-bright); text-decoration: none; display: inline-block; margin: .8rem 0;
}
.contact-card ul { list-style: none; margin-top: 1rem; }
.contact-card li { padding: .35rem 0; }
.contact-card a { color: #fff; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--graphite); color: #aeb4bd;
  margin-top: 0; font-size: .95rem;
}
.site-footer .top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2rem; padding: 3rem 0 2rem;
}
.site-footer h3 {
  color: #fff; font-size: 1.15rem; letter-spacing: .06em; margin-bottom: .8rem;
}
.site-footer ul { list-style: none; }
.site-footer li { padding: .22rem 0; }
.site-footer a { color: #cfd3d9; text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer .brandline img { width: 150px; margin-bottom: .9rem; }
.site-footer .legal {
  border-top: 1px solid #2c313a; padding: 1.1rem 0;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .85rem; color: #7d838d;
}
.site-footer .legal a { color: #9aa0a9; }
.fb-badge { display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; }
.fb-badge img { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .site-footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .site-footer .top { grid-template-columns: 1fr; }
}

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--oxblood); color: #fff; }
.cta-banner .wrap {
  padding: 2.6rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.4rem;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.cta-banner p { color: #f3d9de; margin-top: .3rem; }
.cta-banner .btn-gold { flex-shrink: 0; }

/* ---------- misc ---------- */
.checklist { list-style: none; margin: 1rem 0; }
.checklist li { padding: .35rem 0 .35rem 1.7rem; position: relative; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--blue); font-weight: 700;
}
.error-hero { text-align: center; padding: 6rem 1rem; }
.error-hero .display { font-size: clamp(4rem, 12vw, 8rem); color: var(--oxblood); }
