/* =========================================================
   Rabé Plumbers / Loodgieters - site styles
   Plain CSS, no build step. Colours and fonts are set once
   in :root below - change them there to restyle the site.
   ========================================================= */

:root {
  --primary: oklch(0.55 0.23 27.5);      /* Rabé red */
  --primary-fg: #fff;
  --ink: oklch(0.12 0 0);                /* near black */
  --bg: #fff;
  --fg: oklch(0.14 0 0);
  --muted: oklch(0.96 0 0);
  --muted-fg: oklch(0.45 0 0);
  --on-ink: #fff;
  --on-ink-soft: rgb(255 255 255 / 0.72);
  --on-ink-faint: rgb(255 255 255 / 0.55);
  --line-on-ink: rgb(255 255 255 / 0.15);

  --font-display: "Archivo Black", system-ui, sans-serif;
  --font-sans: "Barlow", system-ui, sans-serif;
  --font-condensed: "Barlow Condensed", system-ui, sans-serif;

  --container: 72rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
}
h1 { font-size: clamp(1.9rem, 8.5vw, 4.5rem); overflow-wrap: break-word; }
h2 { overflow-wrap: break-word; }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.4rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
.text-primary { color: var(--primary); }
.muted { color: var(--muted-fg); }
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Signature details ---------- */
.rule-label {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.4;
}
.hazard-bar {
  height: 6px;
  background-image: repeating-linear-gradient(-45deg, var(--primary) 0 14px, var(--ink) 14px 28px);
}
.slash-top { clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%); }

.section-label { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; color: var(--primary); }
.section-label::before { content: ""; width: 2.5rem; height: 4px; background: var(--primary); }
.section-label.center { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-family: var(--font-display); font-size: 0.875rem; text-transform: uppercase; letter-spacing: -0.01em;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-big { padding: 1rem 1.75rem; font-size: 1.1rem; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-ink { background: var(--ink); color: var(--on-ink); border-color: var(--bg); }
.btn-outline { background: transparent; color: var(--ink); border: 4px solid var(--ink); }
.btn-row { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .btn-row { flex-direction: row; flex-wrap: wrap; } }

/* ---------- Call strip (above the header) ---------- */
.emergency-bar { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.45rem 1rem; background: var(--primary); color: var(--primary-fg); font-size: 0.75rem; text-align: center; }
.emergency-bar:hover { background: var(--ink); }
.pulse { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #fff; flex-shrink: 0; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 4px solid var(--primary); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.logo img { height: 2.9rem; width: auto; }
@media (min-width: 640px) { .logo img { height: 3.5rem; } }

.main-nav { display: none; gap: 1.5rem; }
.main-nav a { font-family: var(--font-condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.95rem; padding: 0.25rem 0; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.header-phone { display: none; font-family: var(--font-display); font-size: 1.05rem; margin-right: 0.25rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; background: var(--ink); color: var(--on-ink); border: 0; cursor: pointer; transition: transform 0.15s ease; }
.icon-btn:hover { transform: translateY(-2px); }
.menu-toggle { background: var(--bg); color: var(--ink); border: 2px solid var(--ink); }

.main-nav { align-items: center; }
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 0.25rem; }
.drop { display: none; position: absolute; left: -1rem; top: 100%; min-width: 17rem; padding: 0.5rem 0; background: var(--bg); border: 4px solid var(--ink); border-top-color: var(--primary); z-index: 60; }
.nav-drop:hover .drop, .nav-drop:focus-within .drop { display: block; }
.drop a { display: block; padding: 0.55rem 1rem; border-bottom: 0; letter-spacing: 0.06em; font-size: 0.9rem; }
.drop a:hover, .drop a[aria-current="page"] { background: var(--muted); color: var(--primary); }
.mobile-nav a.sub { padding-left: 2rem; font-family: var(--font-condensed); font-weight: 700; letter-spacing: 0.06em; }
.mobile-nav { display: none; border-top: 2px solid var(--ink); background: var(--bg); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 0.9rem 1rem; border-bottom: 1px solid var(--muted); font-family: var(--font-display); text-transform: uppercase; }
.mobile-nav a[aria-current="page"] { color: var(--primary); }

@media (min-width: 640px) { .header-phone { display: block; } }
@media (min-width: 960px) {
  .main-nav { display: flex; }
  .menu-toggle, .mobile-nav, .mobile-nav.open { display: none; }
}
@media (max-width: 380px) { .header-call span { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--ink), rgb(10 10 10 / 0.8), transparent); }
.hero-inner { position: relative; z-index: 1; padding-top: 5rem; padding-bottom: 5rem; }
.hero h1 { max-width: 48rem; }
.hero-lead { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; color: rgb(255 255 255 / 0.8); }
.hero .btn-row { margin-top: 2rem; }
.hero-note { margin-top: 1.25rem; color: var(--on-ink-faint); }
.hero > .hazard-bar { position: relative; z-index: 1; height: 8px; }
@media (min-width: 640px) { .hero-inner { padding-top: 7rem; padding-bottom: 7rem; } }

/* Home hero: bakkie photo on the left, text on the right */
.hero-split::after { display: none; }
.hero-split .hero-photo { width: 100%; height: auto; aspect-ratio: 1600 / 720; object-fit: cover; object-position: left center; }
.hero-split .hero-inner { padding-top: 2.5rem; padding-bottom: 3rem; }
.hero-split h1 { font-size: clamp(2.2rem, 7vw, 3.75rem); }
@media (min-width: 900px) {
  .hero-split { display: flex; align-items: center; min-height: min(44vw, 680px); }
  /* anchor bottom-left so wide screens crop sky, never the bakkie */
  .hero-split .hero-photo { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: left 85%; }
  .hero-split::after {
    display: block; z-index: 0;
    background: linear-gradient(to right, transparent 0%, transparent 42%, rgb(10 10 10 / 0.7) 56%, rgb(10 10 10 / 0.92) 72%);
  }
  .hero-split .hero-inner { width: 100%; padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero-split .hero-text { margin-left: auto; max-width: 44%; }
  .hero-split h1 { font-size: clamp(2.2rem, 4vw, 3.75rem); }
  .hero-split .hero-lead { font-size: 1.05rem; }
  .hero-split > .hazard-bar { position: absolute; left: 0; right: 0; bottom: 0; }
}

/* Smaller page hero for inner pages */
.page-hero::after { display: none; }
.page-hero .hero-inner { padding-top: 3rem; padding-bottom: 3rem; }
.page-hero-grid { display: grid; gap: 2rem; align-items: center; }
.page-hero-photo { border: 4px solid var(--primary); background: var(--ink); }
.page-hero-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .page-hero .hero-inner { padding-top: 4rem; padding-bottom: 4rem; }
  .page-hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; }
  /* photos keep their natural upright shape, capped so they never dominate the screen */
  .page-hero-img { aspect-ratio: 4 / 5; max-height: 460px; }
}

/* ---------- 6-month guarantee ---------- */
.hero-guarantee { display: inline-flex; align-items: center; gap: 0.65rem; margin-top: 1.25rem; padding: 0.7rem 1.1rem; background: #fff; border-left: 6px solid var(--primary); color: var(--ink); font-size: 1rem; box-shadow: 0 6px 20px rgb(0 0 0 / 0.45); }
.hero-guarantee .icon { color: var(--primary); width: 1.5rem; height: 1.5rem; }
.hero-guarantee strong { text-transform: uppercase; font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; }
.guarantee-badge { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1.25rem; padding: 0.9rem 1rem; background: var(--ink); color: var(--on-ink); border-left: 6px solid var(--primary); }
.guarantee-badge .icon { color: var(--primary); width: 1.6rem; height: 1.6rem; margin-top: 0.1rem; }
.guarantee-badge strong { display: block; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1rem; line-height: 1.2; }
.guarantee-badge span { display: block; margin-top: 0.3rem; font-size: 0.85rem; color: var(--on-ink-soft); }

/* ---------- Trust bar ---------- */
.trust { background: var(--ink); color: var(--on-ink); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-on-ink); }
.trust-item { background: var(--ink); padding: 1.5rem 1rem; text-align: center; }
.trust-item .icon { margin: 0 auto 0.5rem; width: 1.5rem; height: 1.5rem; color: var(--primary); }
.trust-top { font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; }
.trust-bot { margin-top: 0.25rem; font-size: 0.65rem; color: var(--on-ink-faint); }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Trusted by: moving client logo strip ---------- */
.clients { background: var(--muted); padding: 2.25rem 0 2.5rem; border-bottom: 4px solid var(--ink); }
.clients-title { font-family: var(--font-condensed); font-size: 0.8rem; margin-bottom: 1.5rem; }
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; width: max-content; animation: logo-scroll 32s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-group { display: flex; gap: 1.25rem; padding-right: 1.25rem; list-style: none; margin: 0; }
.client-logo { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 12rem; height: 6rem; padding: 0.6rem; background: #fff; border: 2px solid rgb(10 10 10 / 0.12); }
.client-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 640px) { .client-logo { width: 9.5rem; height: 4.75rem; } .logo-track { animation-duration: 24s; } }
@keyframes logo-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; width: auto; }
  .logo-group { flex-wrap: wrap; justify-content: center; padding: 0 1rem; }
  .logo-group[aria-hidden="true"] { display: none; }
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
@media (min-width: 640px) { .section { padding: 6rem 0; } }
.section-dark { background: var(--ink); color: var(--on-ink); }
.section-dark .muted, .section-dark .lead { color: var(--on-ink-soft); }
.section-muted { background: var(--muted); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.lead { margin-top: 1rem; max-width: 42rem; color: var(--muted-fg); }

/* ---------- Cards ---------- */
.card { border: 4px solid var(--ink); background: var(--bg); color: var(--fg); }
/* Card photos: a fixed shape that suits upright phone photos. Wide photos are shown whole (see site.js). */
.card-media { position: relative; overflow: hidden; border-bottom: 4px solid var(--ink); aspect-ratio: 4 / 5; background: var(--ink); }
.grid-3 .card-media { aspect-ratio: 1 / 1; }
.post-list .card-media { aspect-ratio: 1 / 1; }
.card-media img, .card-media .img-missing { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-media img.is-landscape { object-fit: contain; }
.card:hover .card-media img { transform: scale(1.04); }
.card-badge { position: absolute; left: 0; top: 0; padding: 0.75rem; background: var(--primary); color: var(--primary-fg); }
.card-body { padding: 1.5rem; }
.card-body.tight { padding: 1.25rem; }
.card-body h3 { font-size: 1.5rem; }
.card-body.tight h3 { font-size: 1.2rem; margin-top: 0.5rem; }
.card-body p { margin-top: 0.75rem; color: var(--muted-fg); }
.card-body.tight p { margin-top: 0.5rem; font-size: 0.9rem; }
.card-link { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary); }

.grid-4 { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Feature tiles on dark background */
.tiles { display: grid; gap: 1px; background: var(--line-on-ink); }
.tile { background: var(--ink); padding: 1.5rem; }
.tile h3 { font-size: 1.25rem; color: var(--primary); }
.tile p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--on-ink-soft); }

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.owner { grid-template-columns: minmax(0, 380px) 1fr; }
  .split.top { align-items: start; }
}

/* ---------- Owner ---------- */
.owner-photo { position: relative; }
.owner-photo::before { content: ""; position: absolute; left: -0.75rem; top: -0.75rem; width: 100%; height: 100%; border: 4px solid var(--primary); }
.owner-photo img, .owner-photo .img-missing { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; border: 4px solid var(--ink); }
.owner-caption { position: relative; margin-top: -4px; background: var(--ink); padding: 0.75rem 1rem; }
.owner-caption .name { font-family: var(--font-display); font-size: 1.1rem; text-transform: uppercase; color: var(--on-ink); }
.owner-caption .rule-label { font-size: 0.65rem; color: var(--primary); }
.prose-stack > * + * { margin-top: 1rem; }


/* ---------- Service area ---------- */
.area-list { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; font-size: 0.9rem; }
.area-list li { border-left: 4px solid var(--primary); padding: 0.25rem 0 0.25rem 0.75rem; }

/* ---------- Reviews ---------- */
.reviews-wrap { padding: 6px 0; background-image: repeating-linear-gradient(-45deg, var(--primary) 0 14px, var(--ink) 14px 28px); }
.reviews { background: var(--bg); padding: 3.5rem 0; text-align: center; }
.reviews .container { max-width: 48rem; }
.stars { display: inline-flex; gap: 2px; margin-top: 1rem; }
.stars .icon { width: 1.25rem; height: 1.25rem; }
.stars .on { fill: var(--primary); stroke: var(--primary); }
.stars .off { color: rgb(94 94 94 / 0.5); }
.reviews .btn-row { justify-content: center; margin-top: 1.75rem; }

/* Scrolling testimonials - fill in with real Google reviews */
.marquee { margin-top: 3rem; overflow: hidden; border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); padding: 1.5rem 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 1rem; padding-right: 1rem; }
.review-card { width: 300px; flex-shrink: 0; border: 4px solid var(--ink); padding: 1.25rem; text-align: left; }
.review-card .stars { margin-top: 0; }
.review-card blockquote { margin: 0.75rem 0 0; font-size: 0.9rem; color: var(--muted-fg); }
.review-card figcaption { margin-top: 0.75rem; font-family: var(--font-display); font-size: 0.875rem; text-transform: uppercase; }
.review-card figcaption span { margin-left: 0.5rem; font-size: 0.75rem; color: var(--primary); }
@media (min-width: 640px) { .review-card { width: 360px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Contact ---------- */
.contact-list { margin-top: 2rem; font-size: 0.9rem; color: rgb(255 255 255 / 0.8); }
.contact-list li { display: flex; gap: 0.75rem; }
.contact-list li + li { margin-top: 0.75rem; }
.contact-list .icon { color: var(--primary); }

.quote-form { border: 4px solid var(--primary); background: var(--bg); color: var(--fg); padding: 1.5rem; }
.quote-form h3 { font-size: 1.5rem; }
.quote-form .muted { margin-top: 0.25rem; font-size: 0.9rem; }
.form-fields { margin-top: 1.25rem; display: grid; gap: 1rem; }
.form-fields input, .form-fields select, .form-fields textarea {
  width: 100%; border: 2px solid var(--ink); background: var(--bg); color: var(--fg);
  padding: 0.75rem; font: inherit; border-radius: 0; outline: none;
}
.form-fields input:focus, .form-fields select:focus, .form-fields textarea:focus { border-color: var(--primary); }
.form-fields .btn { width: 100%; padding: 1rem; font-size: 1rem; }
.form-note { font-size: 0.85rem; color: var(--muted-fg); }

/* ---------- Footer ---------- */
.site-footer { border-top: 8px solid var(--primary); padding: 3rem 0; }
.footer-grid { display: grid; gap: 2rem; font-size: 0.9rem; }
.footer-grid img { height: 3rem; width: auto; }
.footer-grid .footer-logo { height: auto; width: 100%; max-width: 13rem; }
.footer-logo + p, .footer-grid .img-missing + p { margin-top: 0.75rem; }
.footer-grid h3 { margin-bottom: 0.75rem; }
.footer-grid li + li { margin-top: 0.25rem; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 2px solid var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; font-size: 0.75rem; color: var(--muted-fg); }
.social-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem; padding: 0.5rem 0.8rem; background: var(--ink); color: var(--on-ink); font-family: var(--font-condensed); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.social-link:hover { background: var(--primary); color: var(--primary-fg); }
.footer-grid a.social-link:hover { color: var(--primary-fg); }
.contact-list a:hover { color: var(--primary); }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-bottom: 1px solid var(--muted); }
.hours-list li span:last-child { font-weight: 600; white-space: nowrap; }
.december-note { margin-top: 0.75rem; padding: 0.6rem 0.75rem; border-left: 4px solid var(--primary); background: var(--muted); font-size: 0.85rem; }
.site-credit { margin-left: auto; }
.site-credit a { color: var(--fg); font-weight: 600; border-bottom: 2px solid var(--primary); }
.site-credit a:hover { color: var(--primary); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Projects / gallery page ---------- */
.gallery { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery .card-media { cursor: zoom-in; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgb(10 10 10 / 0.92); }
.lightbox.open { display: flex; }
.lightbox img { max-height: 85vh; max-width: 100%; border: 4px solid var(--primary); }
.lightbox-caption { margin-top: 0.75rem; text-align: center; color: var(--on-ink); font-family: var(--font-display); text-transform: uppercase; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: var(--primary); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev[hidden], .lightbox-next[hidden] { display: none; }
.lightbox figure { max-width: calc(100% - 7rem); }
body.lightbox-open { overflow: hidden; }
.lightbox img { transition: opacity 0.15s ease; }
.lightbox img.is-loading { opacity: 0.15; }
.lightbox { touch-action: pan-y; overscroll-behavior: contain; }
.lightbox-hint { margin-top: 0.35rem; text-align: center; color: var(--on-ink-faint); font-size: 0.65rem; }
.lightbox-hint[hidden] { display: none; }
.photo-count { position: absolute; right: 0; bottom: 0; background: var(--ink); color: var(--on-ink); padding: 0.4rem 0.7rem; font-size: 0.65rem; }

/* ---------- Service pages ---------- */
.service-copy > * + * { margin-top: 1rem; }
.service-copy h2 { margin-bottom: 0.5rem; }
.service-copy p { color: var(--muted-fg); }
.checklist { border: 4px solid var(--ink); padding: 1.5rem; }
.checklist h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.checklist li { display: flex; gap: 0.6rem; align-items: flex-start; }
.checklist li + li { margin-top: 0.6rem; }
.checklist .icon { color: var(--primary); margin-top: 0.2rem; }
.other-services { display: grid; gap: 1px; margin-top: 2rem; background: var(--line-on-ink); }
.other-services a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--ink); color: var(--on-ink); padding: 1.1rem 1.25rem; font-family: var(--font-display); text-transform: uppercase; font-size: 0.95rem; }
.other-services a:hover { color: var(--primary); }
@media (min-width: 640px) { .other-services { grid-template-columns: repeat(2, 1fr); } }
.sticker-note { display: flex; gap: 1.25rem; align-items: center; margin-top: 2.5rem; border-left: 8px solid var(--primary); background: var(--muted); padding: 1.25rem; }
.sticker-note img { width: 7rem; height: 7rem; object-fit: cover; border: 3px solid var(--ink); flex-shrink: 0; }

.grid-3 { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card-cta { background: var(--muted); display: flex; align-items: center; }
.map { border: 4px solid var(--ink); }
.map iframe { display: block; width: 100%; height: 22rem; border: 0; }

/* Breadcrumbs (top of service pages and blog posts) */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; font-size: 0.7rem; color: var(--on-ink-faint); }
.breadcrumbs a { color: var(--on-ink-soft); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current] { color: var(--primary); }
.article .breadcrumbs { color: var(--muted-fg); }
.article .breadcrumbs a { color: var(--muted-fg); }

/* FAQ */
.faq-list { margin-top: 2rem; max-width: 52rem; border-top: 4px solid var(--ink); }
.faq-item { border-bottom: 2px solid var(--ink); }
.faq-item summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; cursor: pointer; list-style: none; font-family: var(--font-display); text-transform: uppercase; font-size: 1.05rem; line-height: 1.2; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary); font-size: 1.5rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { padding: 0 0 1.25rem; color: var(--muted-fg); max-width: 46rem; }

/* Home services cards link through to their page */
.card-link-wrap { display: block; height: 100%; }
.card-link-wrap:hover h3 { color: var(--primary); }

/* "On the road" split section */
.road-photo { border: 4px solid var(--primary); max-width: 420px; justify-self: center; width: 100%; }
.road-photo img, .road-photo .img-missing { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 70%; }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .post-list { grid-template-columns: repeat(3, 1fr); } }
.post-meta { color: var(--primary); font-size: 0.65rem; }

.article { max-width: 46rem; margin: 0 auto; }
.article-cover { border: 4px solid var(--ink); margin-bottom: 2.5rem; background: var(--ink); }
/* whole photo, never cropped or blown up */
.article-cover img, .article-cover .img-missing { display: block; width: 100%; height: min(65vh, 520px); object-fit: contain; }
.article-body { font-size: 1.08rem; }
.article-body > * + * { margin-top: 1.1rem; }
.article-body h2 { font-size: 1.75rem; margin-top: 2.5rem; }
.article-body ul, .article-body ol { padding-left: 1.25rem; }
.article-body ul { list-style: square; }
.article-body ol { list-style: decimal; }
.article-body li + li { margin-top: 0.4rem; }
.article-body li::marker { color: var(--primary); }
.callout { border-left: 8px solid var(--primary); background: var(--muted); padding: 1.25rem 1.5rem; }
.callout strong { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; }
.article-cta { margin-top: 3rem; border: 4px solid var(--ink); padding: 1.5rem; }
.article-cta h3 { font-size: 1.4rem; }
.article-cta .btn-row { margin-top: 1rem; }

/* ---------- Missing image placeholder (shown until the real photo is added) ---------- */
.img-missing {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 8rem; padding: 1rem;
  background: repeating-linear-gradient(-45deg, #e9e9e9 0 12px, #f4f4f4 12px 24px);
  color: var(--ink); font-family: var(--font-condensed); font-weight: 700; letter-spacing: 0.08em; font-size: 0.85rem;
  border: 2px dashed var(--primary);
}
.img-missing span { background: #fff; padding: 0.35rem 0.6rem; }
.logo .img-missing, .footer-grid .img-missing { min-height: 0; height: 3rem; width: 9rem; padding: 0; font-size: 0.7rem; }
@media (max-width: 380px) { .logo .img-missing { width: 6.5rem; font-size: 0.6rem; } }
