/* =========================================================
   Dr Nyiko E Vukeya — General Practice Website
   Mobile-first stylesheet. No JavaScript required.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Colour palette: "California Beaches" — sky blue #66C4FF, orange
     #FFC067 and cyan #66F4FF. Unlike the primary palette, none of
     these three are dark enough to hold white text, so --color-primary
     and --color-primary-dark are darkened, same-hue derivatives used
     for text/backgrounds that need contrast; the exact client hexes
     appear as --color-primary-light, --color-accent-bright and
     --color-highlight, used where a pastel tone is safe (large fills,
     borders, or paired with dark ink text instead of white). */
  --color-primary: #086d9e; /* derived from #66C4FF for AA text/button contrast */
  --color-primary-dark: #052f44; /* derived dark shade of #66C4FF for backgrounds needing white text */
  --color-primary-light: #66c4ff; /* exact client hex — decorative fills, gradient's light stop */
  --color-primary-tint: #eaf7ff;
  --color-muted-on-dark: #bfe8ff; /* body/label text on primary-dark backgrounds — tint of #66C4FF */
  --color-accent: #8c5416; /* darkened from #FFC067 for AA text contrast */
  --color-accent-bright: #ffc067; /* exact client hex — full-strength, backgrounds/large elements only */
  --color-highlight: #66f4ff; /* exact client hex */
  --color-text: #1a1f2b;
  --color-text-muted: #4b5566;
  --color-bg: #ffffff;
  --color-bg-alt: #f3fafe;
  --color-border: #d7eefb;

  --font-base: "Tenor Sans", "Segoe UI", Arial, Helvetica, sans-serif;

  --container-width: 1140px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;

  --radius: 10px;
  --shadow-card: 0 4px 16px rgba(15, 33, 68, 0.08);
  --shadow-card-hover: 0 10px 28px rgba(15, 33, 68, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-base);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-2);
  color: var(--color-primary-dark);
}

h1 {
  font-size: 55px;
}

h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 var(--space-3);
}

a {
  color: var(--color-primary);
}

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

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

/* ---------- Utility: skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons / links styled as buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-base);
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  font-weight: 400;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 192, 103, 0.22);
}

/* ---------- Header & Navigation ---------- */
/* Starts transparent over the hero image; a small scroll listener
   (see index.html) adds .is-scrolled once the page scrolls, which
   swaps it to a solid bar. Fixed positioning (rather than sticky)
   is what lets it float over the hero instead of pushing it down. */
.site-header {
  border-bottom: 1px solid transparent;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: var(--color-bg);
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 12px rgba(15, 33, 68, 0.08);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
  gap: var(--space-2);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.logo img {
  height: 80px;
  width: auto;
  transition: height 0.25s ease;
}

.site-header.is-scrolled .logo img {
  height: 48px;
}

/* Dark footer background: give the logo a light chip so it stays legible */
.footer-logo {
  background: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
}

.footer-logo img {
  height: 44px;
}

/* Mobile menu toggle — a visually-hidden checkbox + label.
   Chromium no longer allows CSS to force open a closed <details>'s
   content, so the nav is built with a plain checkbox toggle instead
   (still zero JavaScript, and the display rules below are ordinary
   CSS with no browser-controlled hidden state to fight). */
.nav-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nav-toggle-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: 1rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled .nav-toggle-label {
  color: var(--color-primary-dark);
  border-color: var(--color-border);
}

.nav-checkbox:focus-visible + .nav-toggle-label {
  outline: 3px solid var(--color-accent-bright);
  outline-offset: 2px;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  width: 18px;
  height: 2px;
  background: #fff;
  display: block;
  transition: background-color 0.25s ease;
}

.site-header.is-scrolled .nav-toggle-icon,
.site-header.is-scrolled .nav-toggle-icon::before,
.site-header.is-scrolled .nav-toggle-icon::after {
  background: var(--color-primary-dark);
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.site-nav {
  display: none;
  width: 100%;
  padding-top: var(--space-3);
}

.nav-checkbox:checked ~ .site-nav {
  display: block;
  background: var(--color-bg);
  padding: var(--space-2) var(--space-3) var(--space-3);
  box-shadow: var(--shadow-card);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-nav > ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.site-nav a {
  display: block;
  padding: var(--space-2) var(--space-1);
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.25s ease;
}

/* The open mobile panel always has a solid background (above), so
   its links stay dark regardless of header scroll state. */
.nav-checkbox:checked ~ .site-nav a {
  color: var(--color-text);
}

.site-header.is-scrolled .site-nav a {
  color: var(--color-text);
}

.site-nav a:hover {
  color: var(--color-primary);
}

/* "Services" — a dropdown trigger only, not a link to any page (there
   is no standalone services overview page). On mobile its sub-list is
   collapsed by default and opens via a hidden checkbox (same pattern
   as the main nav toggle); at desktop widths it becomes a hover/focus
   dropdown instead and the checkbox is irrelevant. */
.services-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.services-trigger {
  display: block;
  padding: var(--space-2) var(--space-1);
  color: #fff;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  user-select: none;
  transition: color 0.25s ease;
}

.nav-checkbox:checked ~ .site-nav .services-trigger {
  color: var(--color-text);
}

.site-header.is-scrolled .services-trigger {
  color: var(--color-text);
}

.services-trigger::after {
  content: " ▾";
  display: inline-block;
  transition: transform 0.2s ease;
}

.services-checkbox:checked ~ .services-trigger::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  padding-left: var(--space-3);
  padding-bottom: var(--space-1);
}

.services-checkbox:checked ~ .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  border-bottom: none;
  padding: 0.6rem var(--space-1);
  font-size: 0.97rem;
}

/* ---------- Desktop navigation ---------- */
@media (min-width: 768px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .nav-checkbox,
  .nav-toggle-label {
    display: none;
  }

  .site-nav {
    display: block;
    width: auto;
    padding-top: 0;
    max-height: none;
    overflow: visible;
  }

  .site-nav > ul {
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
  }

  .site-nav > ul > li {
    position: relative;
  }

  .site-nav a,
  .services-trigger {
    border-bottom: none;
    padding: 0.5rem 0.25rem;
    position: relative;
  }

  .site-nav > ul > li > a::after {
    content: "";
    position: absolute;
    left: 0.25rem;
    right: 0.25rem;
    bottom: 0;
    height: 2px;
    background: var(--color-accent-bright);
    transform: scaleX(0);
    transition: transform 0.15s ease;
  }

  .site-nav > ul > li > a:hover::after {
    transform: scaleX(1);
  }

  .services-trigger::after {
    content: " ▾";
    position: static;
    background: none;
    height: auto;
  }

  .nav-services:hover > .services-trigger::after,
  .nav-services:focus-within > .services-trigger::after {
    transform: rotate(180deg);
  }

  /* The mobile checkbox may still be checked at this width (e.g. after
     a resize); the dropdown here is driven by hover/focus only. */
  .services-checkbox:checked ~ .dropdown-menu {
    display: none;
  }

  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius);
    padding: 0.35rem;
    margin-top: 0;
  }

  .nav-services:hover .dropdown-menu,
  .nav-services:focus-within .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.35;
    white-space: normal;
    color: var(--color-text);
  }

  .dropdown-menu a:hover {
    background: var(--color-primary-tint);
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 60%),
    url("../../images/family-care.jpg") center / cover no-repeat;
  padding-block: calc(var(--space-5) + 1.5rem);
  color: #fff;
  position: relative;
}

.hero h1 {
  color: #fff;
  width: 100%;
  font-size: clamp(2rem, 8vw, 55px);
}

.hero-highlight {
  color: var(--color-primary);
  font-weight: 700;
}

.hero-inner {
  width: 100%;
  min-height: 420px;
  padding-block: 12% 5%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-muted-on-dark);
  width: 100%;
}

@media (min-width: 768px) {
  .hero-inner {
    height: 500px;
    padding-block: 5% 0;
  }

  .hero h1,
  .hero p {
    width: 60%;
  }
}

/* Wavy divider — sits at the bottom edge of a section, filled with
   whatever colour comes next, so the boundary reads as a curve
   instead of a hard line. */
.wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  pointer-events: none;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 70px;
}

/* ---------- Generic sections ---------- */
.section {
  padding-block: calc(var(--space-5) + 1.5rem);
}

.section-alt {
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
  color: #fff;
  position: relative;
}

.section-alt h2 {
  color: #fff;
}

.section-alt p {
  color: var(--color-muted-on-dark);
}

.section-alt .btn-secondary {
  border-color: #fff;
  color: #fff;
}

.section-alt .btn-secondary:hover {
  background: #fff;
  color: var(--color-primary);
}

.section-header {
  max-width: 760px;
  margin-bottom: var(--space-4);
}

.section-header p {
  color: var(--color-text-muted);
}

/* Bold intro block that sits as the first cell inside .card-grid,
   matching a reference layout where heading + copy share the grid
   with the image cards instead of sitting above them. */
.service-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* .service-intro::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--color-accent-bright);
  margin-bottom: var(--space-2);
} */

.service-intro h2 {
  /* font-family: "Segoe UI", Arial, Helvetica, sans-serif; */
  font-size: clamp(1.7rem, 2.6vw + 1rem, 2.4rem);
  line-height: 1.15;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-2);
}

.service-intro p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.two-col {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

/* Below the two-col breakpoint, stack this section's image above its
   text instead of the default DOM order (text, then image). */
.mobile-media-first .two-col-media {
  order: -1;
}

@media (min-width: 860px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  .two-col.reverse .two-col-media {
    order: 2;
  }

  .mobile-media-first .two-col-media {
    order: 0;
  }
}

.media-placeholder {
  background: var(--color-primary-tint);
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-primary-dark);
  font-size: 0.95rem;
  padding: var(--space-3);
}

.doctor-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  filter: brightness(1.25) contrast(1.05);
  box-shadow: var(--shadow-card-hover);
}

/* Wrap a .doctor-photo in this when it needs to run smaller than the
   column and/or carry a dark tint, e.g. an overexposed shot on a
   light image that reads as washed-out against a dark section. */
.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 47, 68, 0.15);
  pointer-events: none;
}

.photo-frame--sm {
  max-width: 80%;
  margin-inline: auto;
}

/* ---------- Credential grid (About / Meet the doctor) ---------- */
.credential-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  padding: var(--space-3) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

@media (min-width: 480px) {
  .credential-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.credential-item {
  border-left: 3px solid var(--color-accent-bright);
  padding-left: var(--space-2);
}

.credential-item dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted-on-dark);
}

.credential-item dd {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  color: #fff;
}

/* ---------- Card grid ---------- */
.card-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}

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

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

.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  /* border-radius: var(--radius); */
  padding: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(255, 192, 103, 0.08);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  box-shadow: 0 10px 22px rgba(255, 192, 103, 0.16);
  transform: translateY(-2px);
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin: 0;
}

.card-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card h3 {
  margin-bottom: var(--space-1);
}

.card p {
  color: var(--color-text-muted);
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  margin-top: var(--space-2);
  padding: 0.85rem 1.75rem;
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--color-primary);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.card-link::after {
  content: "→";
  transition: transform 0.15s ease;
}

.card-link:hover {
  background: var(--color-accent-bright);
  border-color: var(--color-accent-bright);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 192, 103, 0.22);
}

.card-link:hover::after {
  transform: translateX(3px);
}

/* ---------- CTA band ---------- */
/* .cta-band {
  background: var(--color-primary);
  padding-block: var(--space-5) 0;
} */

.cta-box {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 3px solid var(--color-primary-dark);
  box-shadow: var(--shadow-card-hover);
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: -80px;
  padding: var(--space-4) var(--space-3);
  text-align: center;
}

.cta-box h2 {
  /* font-family: "Segoe UI", Arial, Helvetica, sans-serif; */
  font-weight: 700;
  text-transform: uppercase;
  font-size: 35px;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding-block: var(--space-2);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

/* ---------- Service detail page ---------- */
.service-list {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.service-list li {
  padding-left: 1.75rem;
  position: relative;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.service-nav-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.service-nav-card ul {
  display: grid;
  gap: var(--space-1);
}

.service-nav-card a {
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
}

.service-nav-card a[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 400;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-list {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.contact-list dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.contact-list dd {
  margin: 0.15rem 0 0;
  font-size: 1.1rem;
}

.map-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: var(--color-primary-tint);
  padding-block: calc(var(--space-5) + 80px) var(--space-3);
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.site-footer .logo {
  color: #fff;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.site-footer a {
  color: var(--color-muted-on-dark);
}

.site-footer a:hover {
  color: var(--color-highlight);
}

.footer-list {
  display: grid;
  gap: 0.6rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.2em;
  color: var(--color-highlight);
}

.contact-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  /* color: var(--color-accent-bright); */
  margin-bottom: 0.15rem;
}

.contact-value {
  display: block;
}

.hours-grid {
  margin: 0.5rem 0 0;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-row dt {
  color: var(--color-primary-tint);
}

.hours-row dd {
  margin: 0;
  color: var(--color-muted-on-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-3);
  font-size: 0.9rem;
  color: var(--color-muted-on-dark);
  text-align: center;
}

/* ---------- Inner page header banner ---------- */
.page-header {
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding-block: calc(var(--space-5) + 1rem) var(--space-5);
  position: relative;
}

.page-header .breadcrumb {
  color: var(--color-muted-on-dark);
  margin-bottom: var(--space-2);
}

.page-header .breadcrumb a {
  color: var(--color-muted-on-dark);
}

.page-header .breadcrumb a:hover {
  color: var(--color-highlight);
}

.page-header h1 {
  color: #fff;
  font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
  max-width: 760px;
}

.page-header p {
  color: var(--color-muted-on-dark);
  max-width: 640px;
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ---------- Service / content page layout ---------- */
.service-layout {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}

@media (min-width: 900px) {
  .service-layout {
    grid-template-columns: 2fr 1fr;
  }
}

.service-hero-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-3);
}

.service-main h2 {
  margin-top: var(--space-4);
}

.service-main h2:first-child {
  margin-top: 0;
}

.service-aside {
  display: grid;
  gap: var(--space-3);
  position: sticky;
  top: calc(var(--space-4) + 90px);
}

/* ---------- Sidebar form card ---------- */
.form-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-3);
}

.form-card h3 {
  margin-bottom: var(--space-1);
}

.form-card .form-intro {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: var(--space-3);
}

.form-group {
  margin-bottom: var(--space-2);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-base);
  font-size: 0.98rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(8, 109, 158, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
}

/* ---------- Contact mini card (aside) ---------- */
.contact-mini {
  background: var(--color-primary-dark);
  color: var(--color-primary-tint);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.contact-mini h3 {
  color: #fff;
}

.contact-mini .contact-list {
  gap: 0.25rem;
  margin-bottom: 0;
}

.contact-mini .contact-list dt {
  color: var(--color-muted-on-dark);
}

.contact-mini .contact-list dd a {
  color: var(--color-highlight);
}

/* ---------- Legal content (Privacy / Terms) ---------- */
.legal-content h2 {
  margin-top: var(--space-4);
  font-size: 1.3rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content ul {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 var(--space-3);
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-content p {
  color: var(--color-text-muted);
}

.legal-content strong {
  color: var(--color-text);
}

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

  * {
    transition: none !important;
  }
}

/* Avily "Designed by" credit */
.avily-credit .avily-link { text-decoration: none; }
.avily-credit .avily-link:hover { text-decoration: underline; }
.avily-credit img { height: 1em; width: auto; vertical-align: middle; margin: 0 4px; }
