/* ==========================================================================
   Ebenezer Cabs & Tours Safari Kenya
   Palette: navy #092E4F (headings/nav/buttons/text), gold #F1B533 (action
   accent), muted gold #C1AA71 (borders/details), soft white #FDFBFC (bg).
   Type: Inter only. No gradients, no shadows.
   ========================================================================== */

:root {
  --navy: #092E4F;
  --navy-800: #0d3a63;
  --gold: #F1B533;
  --gold-dark: #d99e1b;
  --muted-gold: #C1AA71;
  --white: #FDFBFC;
  --ink: #1c2733;
  --ink-soft: #4a5568;
  --line: #e4dcc8;
  --bg-tint: #f7f3e9;

  /* Image slot aspect ratios — adjust here when real photos arrive */
  --ratio-hero: 4 / 3;
  --ratio-card: 4 / 3;
  --ratio-wide: 16 / 9;
  --ratio-thumb: 1 / 1;
  --ratio-gallery: 4 / 3;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem;
  --header-h: 4rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; max-width: 70ch; }
a { color: var(--navy); }
a:hover { color: var(--navy-800); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}
.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
}
.header-call svg { width: 22px; height: 22px; }
.header-call:hover { background: var(--gold); color: var(--navy); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy);
}
.site-header .brand { height: 100%; }
.brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 2.375rem; /* 38px — fits 360px screens beside the menu toggle */
  object-fit: contain;
}
.brand-logo-footer { max-height: 3rem; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 2px solid var(--gold);
  border-radius: 5px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(9, 46, 79, 0.12);
  padding: 0.5rem 1.25rem 1.25rem;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  display: block;
  padding: 0.85rem 0.25rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  min-height: 44px;
}
.site-nav li a:hover { color: var(--navy-800); }
.site-nav li a[aria-current="page"] { color: var(--navy); font-weight: 800; }
.nav-cta { margin-top: 0.75rem; width: 100%; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-800); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-wa { background: #128C4B; color: #fff; }
.btn-wa:hover { background: #0e6e3a; color: #fff; }
.btn-block { width: 100%; }

/* Whole-card tap targets: image + title link to the detail page */
a.slot-card { display: block; }
.card-title { color: inherit; text-decoration: none; }
.card-title:hover { text-decoration: underline; }

/* Paired buttons — one compact line on phones */
.btn-pair { display: flex; gap: 0.6rem; }
.btn-pair .btn {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  padding-inline: 0.6rem;
  font-size: 0.92rem;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--gold);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  gap: 2rem;
  padding-block: 3rem 3.5rem;
}
.hero-copy { max-width: 44rem; }
.hero h1 { color: var(--white); }
.hero .lede { font-size: 1.15rem; color: #dfe7f0; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #c9d6e4;
}
.hero-meta strong { color: var(--gold); font-weight: 700; }

/* Image slots */
.slot {
  position: relative;
  background: var(--navy-800);
  overflow: hidden;
}
.slot img, .slot svg.scene { width: 100%; height: 100%; object-fit: cover; }
.slot-card { aspect-ratio: var(--ratio-card); }
.slot-wide { aspect-ratio: var(--ratio-wide); }
.slot-thumb { aspect-ratio: var(--ratio-thumb); }
.slot-gallery { aspect-ratio: var(--ratio-gallery); }

/* ---------------------------------------------------------------- sections */

.section { padding-block: 3rem; }
.section-alt { background: var(--bg-tint); }
.section-tight { padding-block: 2rem; }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.3rem;
  margin-bottom: 0.9rem;
}

.kikoi { display: block; width: 100%; height: 24px; }

/* Cards */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card-body p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.card-link { margin-top: auto; padding-top: 0.75rem; font-weight: 700; }
.card-link::after { content: " →"; }
.card-meta { font-size: 0.85rem; color: var(--ink-soft); }
.price-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

/* Lists / tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 34rem; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: var(--white); font-size: 0.9rem; }
tr:last-child td { border-bottom: none; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.step h3 { margin-bottom: 0.35rem; }
.step h3::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--gold);
  margin-right: 0.55rem;
}
.step p { color: var(--ink-soft); margin: 0; }

/* Why us */
.why-grid { display: grid; gap: 1.25rem; }
.why-item { padding: 0.5rem 0; }
.why-item h3 { font-size: 1.05rem; }
.why-item h3::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--gold);
  margin-right: 0.55rem;
}
.why-item p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* FAQ */
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  margin-bottom: 0.75rem;
}
.faq-list summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--navy);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq-list summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--gold-dark); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--ink-soft); }

/* Contact strip */
.contact-strip {
  background: var(--navy);
  color: var(--white);
  padding-block: 2.5rem;
}
.contact-strip h2 { color: var(--white); }
.contact-strip p { color: #c9d6e4; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-card h3 { color: var(--white); font-size: 1.05rem; margin: 0; }
.contact-card a { color: var(--gold); font-weight: 600; }
.contact-card .note { font-size: 0.9rem; color: #c9d6e4; }

/* ---------------------------------------------------------------- forms */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.5rem;
  max-width: 46rem;
}
.form-grid { display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--font);
  font-size: 1rem; /* 16px+ prevents iOS zoom */
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  min-height: 48px;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23092E4F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy);
  outline: 3px solid rgba(241, 181, 51, 0.5);
}
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.consent input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; flex: none; }
.honeypot { position: absolute; left: -9999px; }
.form-errors {
  background: #fdf0f0;
  border: 1px solid #c0392b;
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  color: #7b1f1f;
  margin-bottom: 1.25rem;
}
.form-errors ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.form-ok {
  background: #eef7f0;
  border: 1px solid #2e7d4f;
  border-radius: 6px;
  padding: 1.25rem;
}

/* ---------------------------------------------------------------- detail pages */

/* Hero background photo + scrim (used by .hero and .detail-hero) */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: rgba(9, 46, 79, 0.74);
  z-index: 0;
}

/* Detail page heroes */
.detail-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding-block: 3rem;
}
.detail-hero .wrap { position: relative; z-index: 1; }
.detail-hero h1 { color: var(--white); }
.detail-hero .lede, .detail-hero p { color: #c9d6e4; }
.breadcrumb { font-size: 0.9rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: #c9d6e4; }

/* Coast band — full-width photo with caption bar */
.coast-band { margin: 0; }
.coast-band img {
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio-wide);
  object-fit: cover;
}
.coast-band-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  padding: 1rem 1.25rem;
}
.coast-band-bar p { margin: 0; color: #c9d6e4; }
.coast-band-bar a { color: var(--gold); font-weight: 700; text-decoration: none; }
.coast-band-bar a:hover { color: var(--white); }
.detail-grid { display: grid; gap: 2rem; }
.spec-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.spec-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.75rem;
}
.spec-list li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 0.55rem;
  flex: none;
}
.itin { list-style: none; margin: 0; padding: 0; counter-reset: day; }
.itin li {
  position: relative;
  padding: 0.15rem 0 1.25rem 1.75rem;
}
.itin li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  background: var(--gold);
}
.itin li:last-child { padding-bottom: 0; }
.itin .day-label { font-weight: 800; color: var(--navy); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.two-col { display: grid; gap: 2rem; }
.panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.5rem;
  background: var(--white);
}
.panel h2 { font-size: 1.25rem; }
.panel ul { padding-left: 1.2rem; }
.panel li { margin-bottom: 0.4rem; }

/* Gallery */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.gallery-item figcaption { font-size: 0.9rem; color: var(--ink-soft); padding: 0.5rem 0.25rem 0; }

/* Reviews marquee — single looping row on all screens */
.reviews-section { padding-bottom: 2.5rem; }
.reviews-viewport { overflow: hidden; }
.reviews-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 0.25rem 1.25rem 0.5rem;
  animation: reviews-scroll 55s linear infinite;
}
@keyframes reviews-scroll {
  to { transform: translateX(-50%); }
}
.reviews-viewport:hover .reviews-track,
.reviews-viewport:focus-within .reviews-track {
  animation-play-state: paused;
}
.review-card {
  flex: 0 0 19rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.review-top { display: flex; gap: 0.75rem; align-items: center; }
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--muted-gold);
  flex: none;
}
.review-name { margin: 0; font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.review-service { margin: 0; font-size: 0.82rem; color: var(--ink-soft); }
.review-stars { display: flex; gap: 2px; margin: 0; color: var(--gold-dark); }
.review-stars .star { width: 15px; height: 15px; }
.review-quote { margin: 0; font-size: 0.95rem; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; }
  .reviews-viewport { overflow-x: auto; }
}

/* Footer */
.site-footer { background: var(--navy); color: #c9d6e4; margin-top: 3rem; }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
.footer-brand .brand { margin-bottom: 1.1rem; }
.brand-logo-footer {
  max-height: 3rem;
  background: var(--white);
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
}
.footer-brand p { font-size: 0.95rem; line-height: 1.65; max-width: 36ch; }
.footer-contact { margin-top: 1.1rem; }
.footer-contact a { color: var(--gold); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-heading {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}
.footer-heading::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  margin-top: 0.55rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: #c9d6e4; text-decoration: none; line-height: 1.5; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--gold); }

/* Floating actions */
.float-actions {
  position: fixed;
  right: 0.9rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 90;
}
.float-btn {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(9, 46, 79, 0.3);
}
.float-btn svg { width: 24px; height: 24px; }
.float-wa { background: #25D366; }
.float-wa:hover { background: #20bd5a; }
.float-call { background: var(--navy); }
.float-call:hover { background: var(--gold); color: var(--navy); }

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); }
.admin-table th, .admin-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: top; }
.admin-table th { background: var(--navy); color: var(--white); }
.status-pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-tint);
  color: var(--navy);
  border: 1px solid var(--muted-gold);
}
.status-new { background: var(--gold); color: var(--navy); }
.status-booked { background: var(--navy); color: var(--white); }

/* 404 */
.error-page { text-align: center; padding-block: 5rem 4rem; }
.error-code { font-size: clamp(4rem, 15vw, 8rem); font-weight: 800; color: var(--gold-dark); line-height: 1; }

/* ---------------------------------------------------------------- tablet+ */

@media (max-width: 899px) {
  /* Hero / CTA button pairs stay on one line, thumb-friendly height */
  .hero-actions { flex-wrap: nowrap; gap: 0.6rem; }
  .hero-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.65rem 0.55rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }
}

@media (min-width: 640px) {
  body { font-size: 1.125rem; }
  .brand-logo { max-height: 2.75rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .field.full, .consent, .honeypot, .form-errors, .form-ok { grid-column: 1 / -1; }
  .field-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .header-actions { display: none; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: static;
    margin-left: auto;
    background: none;
    padding: 0;
    border: none;
  }
  .site-nav ul {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .site-nav li a {
    display: block;
    padding: 0.6rem 0.7rem;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: none;
    min-height: auto;
  }
  .site-nav li a:hover { color: var(--navy-800); }
  .site-nav li a[aria-current="page"] {
    color: var(--navy);
    box-shadow: inset 0 -2px 0 var(--gold);
  }
  .nav-cta { width: auto; margin-top: 0; }
  .brand-logo { max-height: 3.25rem; }

  .hero-copy { max-width: 46rem; }
  .section { padding-block: 4rem; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; align-items: start; }
  .detail-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }

  /* Desktop: no sticky bottom bar; floating buttons sit higher */
  .float-actions { bottom: 1.5rem; }
}

@media (min-width: 1280px) {
  .card-grid.services { grid-template-columns: repeat(3, 1fr); }
}

/* Corner radius — one figure per device size.
   Mobile/base: cards & panels 6px, buttons & controls 5px, chips 3px.
   Desktop (>=1024px): cards & panels 8px, buttons 6px. */
@media (min-width: 1024px) {
  .card, .panel, .contact-card, .review-card, .faq-list details,
  .table-wrap, .form-card, .form-errors, .form-ok { border-radius: 8px; }
  .btn, .nav-toggle { border-radius: 6px; }
}

@media (min-width: 1600px) {
  :root { --wrap: 80rem; }
}

/* ---------------------------------------------------------------- mobile card density */
/* Phones (<640px): 2-up card grids, uniform 6px horizontal rhythm.
   Edge-to-card = card gap = card side padding = 6px.
   Single-column card layouts get 8px edge (6px wrap + 2px inset). */
@media (max-width: 639px) {
  .wrap { padding-inline: 6px; }

  /* Tighter rhythm on small phones */
  .section { padding-block: 2.5rem; }
  .hero-grid { padding-block: 2.25rem 2.75rem; }

  /* 2-up cards need smaller type to stay readable at ~170px wide */
  .card-body h3 { font-size: 1rem; }
  .card-body p { font-size: 0.9rem; }
  .card-meta { font-size: 0.8rem; }
  .card-link { font-size: 0.88rem; }
  .spec-list { font-size: 0.92rem; }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .card-grid .card-body { padding: 0.75rem 6px; }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .why-item h3 { font-size: 0.95rem; }
  .why-item p { font-size: 0.85rem; }
  .gallery-grid { gap: 6px; }

  /* Stay single-column: phone numbers/addresses need the width.
     8px edge = 6px wrap padding + 2px inset. */
  .contact-cards { margin-inline: 2px; }
  .form-card { margin-inline: 2px; }

  /* Compact footer: brand block full width, Services|Areas side by side,
     Company (8 links) full width flowing into two columns. */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.25rem;
    padding-block: 2.5rem 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand .brand { margin-bottom: 0.9rem; }
  .footer-brand p { max-width: none; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-col:last-child ul { columns: 2; column-gap: 1.25rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Blog */
.badge {
  display: inline-block; padding: 0.15rem 0.55rem; border-radius: 3px;
  font-size: 0.75rem; font-weight: 700; text-transform: capitalize;
  background: var(--bg-tint); color: var(--navy);
}
.pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pill {
  display: inline-flex; align-items: center;
  padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  background: var(--white); border: 1px solid var(--line); color: var(--ink-soft);
  text-decoration: none;
}
.pill:hover { border-color: var(--navy); color: var(--navy); }
.pill.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Article prose */
.prose { font-size: 1.02rem; line-height: 1.7; color: var(--ink); max-width: 68ch; }
.prose h2 { font-size: 1.45rem; margin: 2rem 0 0.75rem; }
.prose h3 { font-size: 1.2rem; margin: 1.6rem 0 0.6rem; }
.prose h4 { font-size: 1.05rem; margin: 1.4rem 0 0.5rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.35rem; }
.prose a { color: var(--navy); font-weight: 600; }
.prose blockquote {
  margin: 1.25rem 0; padding: 0.75rem 1.25rem;
  border-left: 4px solid var(--gold); background: var(--bg-tint);
  color: var(--ink-soft); font-style: italic;
}
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose pre { background: var(--navy); color: #e8eef5; padding: 1rem; border-radius: 6px; overflow-x: auto; font-size: 0.9rem; }
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; }
.prose p code, .prose li code { background: var(--bg-tint); padding: 0.1rem 0.35rem; border-radius: 3px; }
