/* Styles for the Abugraite site — built section by section */

/* ---------- Variables (brand colours, fonts, shared sizes) ---------- */
:root {
  --color-bg: #F7F5EF;
  --color-bg-alt: #EEEBE2;
  --color-card: #FFFFFF;
  /* Shifted toward the logo's green (#008800, received 2026-11-04) at Josh's
     request. #008800 itself fell short of WCAG AA on light backgrounds (3.90–4.26:1,
     need 4.5:1) the same way the original #2E8A55 did — darkened slightly to
     #007A00, which stays clearly "the logo's green" but passes everywhere it's
     used as text or text-on-fill (eyebrows, buttons, timeline numbers, FAQ icon). */
  --color-primary: #007A00;
  --color-primary-hover: #005F00;
  /* Tried the logo's navy (#001B6C) here 2026-11-04 at Josh's request, but it read
     as too saturated/vivid against the rest of the palette — reverted back to the
     original deep slate. --color-primary (green) stays shifted toward the logo. */
  --color-dark: #1F2A33;
  /* Same colour as --color-dark, as individual R,G,B channels — CSS can't pull
     channels out of a hex custom property on its own, so anywhere that needs
     --color-dark at partial opacity (shadows, overlays) uses rgba(var(--color-dark-rgb), X)
     instead of a hardcoded rgba(...) literal. Keep this in sync with --color-dark by hand. */
  --color-dark-rgb: 31, 42, 33;
  --color-text: #3E4E5E;
  --color-gold: #D9BD7E;
  --color-coral: #E8655A;

  --font-serif: 'Fraunces', serif;
  --font-sans: 'Inter', sans-serif;

  --container-width: 1140px;
  --navbar-height: 80px;
}

/* ---------- Reset ---------- */
/* Box-sizing + removing default margins keeps spacing predictable section to section. */
* {
  box-sizing: border-box;
}

body,
h1, h2, h3, p,
ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Smooth-scrolls the whole page when a nav link jumps to a section anchor,
   instead of an instant cut — consistent with the fade-up motion used elsewhere. */
html {
  scroll-behavior: smooth;
}

/* Without this, jumping to a section anchor lands with its heading tucked behind
   the fixed navbar (--navbar-height tall) instead of just below it. */
main section[id] {
  scroll-margin-top: var(--navbar-height);
}

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

/* ---------- Base typography ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-dark);
}

/* ---------- Shared pieces reused across every section ---------- */

/* Small uppercase label that sits above every section heading (see CLAUDE.md > Design inspiration) */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.eyebrow--on-dark {
  color: var(--color-gold);
}

.eyebrow--on-light {
  color: var(--color-primary);
}

/* Pill-shaped buttons. Primary = solid brand green, secondary = outlined, for use on dark backgrounds. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: #FFFFFF;
}

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

.btn--secondary {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #FFFFFF;
}

.btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* ---------- Navbar ---------- */
/* Fixed so it stays on screen while scrolling. Transparent over the hero, then
   gets a solid background once the page scrolls (see .is-scrolled, toggled by js/main.js). */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.is-scrolled {
  background-color: var(--color-bg);
  box-shadow: 0 2px 16px rgba(var(--color-dark-rgb), 0.08);
}

.navbar__inner {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.navbar__wordmark {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: #FFFFFF;
  transition: color 0.3s ease;
}

.navbar__wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

/* The emblem artwork is a raster image on a plain white square (no transparency),
   so it's clipped to a circle and sat on its own white disc — otherwise the white
   corners would show as a box, especially over the transparent/photo navbar before
   scrolling. See CLAUDE.md > Brand > Logo. */
.navbar__emblem {
  flex-shrink: 0;
  display: flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(var(--color-dark-rgb), 0.25);
}

.navbar__emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.navbar.is-scrolled .navbar__wordmark {
  color: var(--color-dark);
}

.navbar__wordmark-main {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  /* Splitting the word into one <span> per letter (for the entrance animation)
     creates a line-break opportunity between every letter — without this, a
     narrow mobile viewport wraps the word mid-letter (e.g. "ABUGR" / "AITE"). */
  white-space: nowrap;
}

/* One-time entrance animation: each letter of "ABUGRAITE" fades/slides in in
   sequence when the page first paints. The letters are separate <span>s purely
   for this visual effect — the real, screen-reader-facing text is the
   aria-label on their parent, with aria-hidden on each letter span, so this
   doesn't change how the name is announced. Runs once via animation-fill-mode:
   forwards; scrolling the navbar afterwards doesn't replay it. */
@keyframes wordmark-letter-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.7);
  }
  60% {
    opacity: 1;
    transform: translateY(-3px) scale(1.05);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.navbar__wordmark-main span {
  display: inline-block;
  opacity: 0;
  animation: wordmark-letter-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.navbar__wordmark-main span:nth-child(1) { animation-delay: 0s; }
.navbar__wordmark-main span:nth-child(2) { animation-delay: 0.08s; }
.navbar__wordmark-main span:nth-child(3) { animation-delay: 0.16s; }
.navbar__wordmark-main span:nth-child(4) { animation-delay: 0.24s; }
.navbar__wordmark-main span:nth-child(5) { animation-delay: 0.32s; }
.navbar__wordmark-main span:nth-child(6) { animation-delay: 0.4s; }
.navbar__wordmark-main span:nth-child(7) { animation-delay: 0.48s; }
.navbar__wordmark-main span:nth-child(8) { animation-delay: 0.56s; }
.navbar__wordmark-main span:nth-child(9) { animation-delay: 0.64s; }

@media (prefers-reduced-motion: reduce) {
  .navbar__wordmark-main span {
    animation: none;
    opacity: 1;
  }
}

.navbar__wordmark-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* Nav links: a dropdown panel on mobile (toggled open by the hamburger),
   a plain inline row on desktop — see the min-width media query below. */
.navbar__nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  box-shadow: 0 12px 24px rgba(var(--color-dark-rgb), 0.1);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.navbar__nav.is-open {
  max-height: 24rem;
}

.navbar__links {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1.5rem;
}

.navbar__links a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--color-dark);
}

/* Hidden below 480px: on the narrowest phones, the wordmark + this pill + the
   hamburger don't all fit on one row without squeezing the hamburger toward
   the edge of the screen. The phone number is still reachable via the hero
   buttons, Contact section and footer, so it's safe to drop here and bring
   back once there's room. */
.navbar__phone {
  display: none;
  flex-shrink: 0;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: #FFFFFF;
  transition: color 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 480px) {
  .navbar__phone {
    display: inline-block;
  }
}

.navbar.is-scrolled .navbar__phone {
  color: var(--color-dark);
  border-color: rgba(var(--color-dark-rgb), 0.25);
}

/* Hamburger: three bars, animates into a cross when .navbar__nav is open */
.navbar__toggle {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  padding: 0;
}

.navbar__toggle span {
  display: block;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.navbar.is-scrolled .navbar__toggle span {
  background-color: var(--color-dark);
}

/* aria-expanded is enough on its own here — main.js always sets it in lockstep
   with .is-open, so there's no need to also key off the sibling nav's class. */
.navbar__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .navbar__nav {
    position: static;
    max-height: none;
    overflow: visible;
    background-color: transparent;
    box-shadow: none;
  }

  .navbar__links {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
  }

  .navbar__links a {
    padding: 0;
    color: #FFFFFF;
    transition: color 0.3s ease;
  }

  .navbar.is-scrolled .navbar__links a {
    color: var(--color-dark);
  }

  .navbar__toggle {
    display: none;
  }
}

/* ---------- Hero ---------- */
/* Stock photo (see CREDITS.md) — two construction workers on scaffolding in Abuja,
   Nigeria. --color-dark is still the background-color so there's an instant fill
   while the image loads, and a plain colour if it ever fails to load.
   background-position-y is tuned to 45% (rather than the 50% default) because the
   photo is portrait — on very wide screens, where cover crops most of the height
   away, this keeps their faces in the visible band rather than true-centering
   and risking cropping into their shoulders/hands instead. */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background-color: var(--color-dark);
  background-image: url('../assets/images/hero.webp');
  background-size: cover;
  background-position: center 45%;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right,
    rgba(var(--color-dark-rgb), 0.95) 0%,
    rgba(var(--color-dark-rgb), 0.65) 45%,
    rgba(var(--color-dark-rgb), 0.3) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: calc(var(--navbar-height) + 2.5rem) 1.25rem 4rem;
  color: #FFFFFF;
}

.hero__heading {
  color: #FFFFFF;
  font-size: 2rem;
  line-height: 1.2;
  max-width: 20ch;
  margin-bottom: 1.25rem;
}

.hero__text {
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

@media (min-width: 900px) {
  .hero__heading {
    font-size: 3rem;
    line-height: 1.25;
    max-width: 24ch;
  }

  .hero__text {
    font-size: 1.0625rem;
    max-width: 46ch;
  }
}

/* ---------- Scroll reveal ---------- */
/* Elements with class "reveal" fade up as they enter the viewport (js/main.js
   adds/removes .is-hidden via IntersectionObserver). The hidden state is added
   by JS, not written here as a plain rule — so if JS fails to run, elements
   just keep their default (visible) state instead of staying invisible.

   This uses the standalone "translate" property (not "transform") deliberately:
   .card and .faq__item below each have their own transition for a hover-lift /
   open-state transform, and since "transition" is a single property, whichever
   rule the cascade picks wins *completely* — nothing merges. Using "translate"
   here avoids the two colliding outright, but both rules still have to opt in to
   animating it (see the "opacity, translate" added to .card / .faq__item's own
   transition lists) or this fade-up silently does nothing on those two. */
.reveal {
  transition: opacity 0.6s ease-out, translate 0.6s ease-out;
}

.reveal.is-hidden {
  opacity: 0;
  translate: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
  /* The "body" prefix is to out-specificity .card / .faq__item's own unconditional
     transition rules further down the file — two plain class selectors of equal
     specificity resolve by source order, and those are declared later, so without
     this a reduced-motion user would still get an animated (if brief) transition
     on cards and FAQ items. */
  body .reveal,
  body .card,
  body .faq__item {
    transition: none;
  }

  .reveal.is-hidden {
    opacity: 1;
    translate: none;
  }
}

/* Stagger: direct .reveal children of a .reveal-group animate in slightly
   after one another instead of all at once (used by grids like the facts
   band and, later, the services cards). */
.reveal-group .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-group .reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal-group .reveal:nth-child(6) { transition-delay: 0.5s; }
.reveal-group .reveal:nth-child(7) { transition-delay: 0.6s; }
.reveal-group .reveal:nth-child(8) { transition-delay: 0.7s; }
.reveal-group .reveal:nth-child(9) { transition-delay: 0.8s; }

/* ---------- Facts band ---------- */
.facts {
  background-color: var(--color-bg-alt);
  padding: 1.75rem 1.25rem;
}

.facts__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  text-align: center;
}

.fact__number {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-dark);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.fact__caption {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
}

@media (min-width: 700px) {
  .facts__inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .fact__number {
    font-size: 2.75rem;
  }
}

/* ---------- Services ("What We Do") ---------- */
.services {
  padding: 5rem 1.25rem;
}

.services__inner {
  max-width: var(--container-width);
  margin: 0 auto;
}

.services__heading {
  max-width: 36ch;
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 3rem;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Card: photo on top, body below. Rounded corners + soft hover lift per CLAUDE.md.
   Transition list includes "opacity, translate" (not just "transform, box-shadow")
   because this element also carries the .reveal class — see the note on .reveal
   above for why those have to be merged in here rather than left to .reveal alone. */
.card {
  background-color: var(--color-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(var(--color-dark-rgb), 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    opacity 0.6s ease-out, translate 0.6s ease-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(var(--color-dark-rgb), 0.12);
}

/* A fixed aspect-ratio box + object-fit:cover means each source photo (they're
   all different native aspect ratios) gets a consistent crop without us having
   to hand-crop every image file. */
.card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card__body {
  padding: 1.5rem;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.9375rem;
  color: var(--color-text);
}

.services__detail {
  background-color: var(--color-bg-alt);
  border-radius: 12px;
  padding: 2rem;
}

.services__detail-title {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.services__detail p {
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.services__detail p:last-child {
  margin-bottom: 0;
}

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

@media (min-width: 900px) {
  .services__heading {
    font-size: 2.25rem;
  }
}

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

/* ---------- Image bands ---------- */
/* Shared full-width "dark photo + centred eyebrow + one line" component, reused
   for every image band on the page. Each instance sets its own background-image
   via a modifier class (e.g. .image-band--groundwork) so this base rule stays
   reusable without inline styles. */
.image-band {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-dark);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.image-band--groundwork {
  background-image: url('../assets/images/band-groundwork.webp');
}

.image-band--built-to-last {
  background-image: url('../assets/images/band-built-to-last.webp');
}

.image-band__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(var(--color-dark-rgb), 0.6);
}

.image-band__content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  padding: 4rem 1.25rem;
}

.image-band__line {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.4;
  color: #FFFFFF;
}

@media (min-width: 900px) {
  .image-band__line {
    font-size: 1.75rem;
  }
}

/* ---------- How It Works (timeline) ---------- */
.how-it-works {
  padding: 5rem 1.25rem;
}

.how-it-works__inner {
  max-width: 640px;
  margin: 0 auto;
}

.how-it-works__heading {
  max-width: 30ch;
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 3rem;
}

.timeline {
  position: relative;
}

.timeline__step {
  position: relative;
  padding-left: 4rem;
  padding-bottom: 2.5rem;
}

.timeline__step:last-child {
  padding-bottom: 0;
}

/* The connecting line runs from the bottom of one numbered circle to the top
   of the next; it's skipped after the last step since there's nothing to link to. */
.timeline__step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 3rem;
  bottom: 0;
  width: 2px;
  background-color: var(--color-primary);
  opacity: 0.3;
}

.timeline__number {
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1rem;
}

.timeline__title {
  font-size: 1.125rem;
  margin-bottom: 0.4rem;
}

.timeline__text {
  font-size: 0.9375rem;
  color: var(--color-text);
}

@media (min-width: 900px) {
  .how-it-works__heading {
    font-size: 2.25rem;
  }
}

/* ---------- Why Choose Us ---------- */
.why-us {
  background-color: var(--color-bg-alt);
  padding: 5rem 1.25rem;
}

.why-us__inner {
  max-width: var(--container-width);
  margin: 0 auto;
}

.why-us__heading {
  max-width: 36ch;
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.why-us__intro {
  max-width: 60ch;
  color: var(--color-text);
  margin-bottom: 3rem;
}

.why-us__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.feature__title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature__text {
  font-size: 0.9375rem;
  color: var(--color-text);
}

@media (min-width: 700px) {
  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 3rem;
  }
}

@media (min-width: 900px) {
  .why-us__heading {
    font-size: 2.25rem;
  }
}

/* ---------- FAQ ---------- */
.faq {
  padding: 5rem 1.25rem;
}

.faq__inner {
  max-width: 760px;
  margin: 0 auto;
}

.faq__heading {
  max-width: 30ch;
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 2.5rem;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Transition list includes "opacity, translate" for the same reason as .card
   above — this element also carries the .reveal class. */
.faq__item {
  background-color: var(--color-card);
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(var(--color-dark-rgb), 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    opacity 0.6s ease-out, translate 0.6s ease-out;
}

.faq__item[open] {
  border-color: rgba(46, 138, 85, 0.25);
  box-shadow: 0 8px 20px rgba(var(--color-dark-rgb), 0.1);
}

.faq__question {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-dark);
  transition: color 0.2s ease;
}

.faq__question:hover {
  color: var(--color-primary);
}

/* Keyboard focus ring (mouse clicks don't trigger :focus-visible) — the accordion
   is otherwise easy to lose track of when tabbing through. */
.faq__question:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Hide the browser's default disclosure triangle so our own +/x indicator can
   take its place. */
.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background-color: var(--color-bg-alt);
  font-size: 1.125rem;
  line-height: 1;
  color: var(--color-primary);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
  background-color: var(--color-primary);
  color: #FFFFFF;
}

/* The height-animation trick: a grid row sized at 0fr collapses to zero height
   and transitions smoothly to 1fr when the parent <details> gets [open] — instead
   of the instant display:none/block jump <details> does on its own by default.
   overflow:hidden on the inner element is what lets the 0fr track resolve to an
   actual zero. The browser's own stylesheet normally sets closed-details content
   to display:none with higher specificity than a single class, which would block
   this entirely (nothing to animate from) — ".faq__item > .faq__answer-wrap" is
   written specific enough to beat that and force display:grid at all times. */
.faq__item > .faq__answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq__item[open] .faq__answer-wrap {
  grid-template-rows: 1fr;
}

.faq__answer {
  overflow: hidden;
  padding-top: 0.25rem;
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text);
}

@media (min-width: 900px) {
  .faq__heading {
    font-size: 2.25rem;
  }
}

/* ---------- Contact + map + closing CTA ---------- */
/* Outline button variant for secondary actions on light backgrounds — .btn--secondary
   assumes a dark hero-style background (white border/text), which would be invisible
   here, so this is the light-background equivalent. */
.btn--outline {
  background-color: transparent;
  border: 1px solid var(--color-dark);
  color: var(--color-dark);
}

.btn--outline:hover {
  background-color: var(--color-bg-alt);
}

.contact {
  padding: 5rem 1.25rem;
}

.contact__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact__heading {
  max-width: 28ch;
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.contact__line {
  max-width: 46ch;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.contact__detail dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.contact__detail dd {
  margin: 0;
  font-size: 0.9375rem;
}

.contact__detail dd a {
  color: var(--color-dark);
  font-weight: 500;
  text-decoration: none;
}

.contact__detail dd a:hover {
  color: var(--color-primary);
}

.contact__offices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.office__title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.office__address {
  font-size: 0.875rem;
  color: var(--color-text);
}

.contact__map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(var(--color-dark-rgb), 0.08);
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

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

@media (min-width: 900px) {
  .contact__inner {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }

  .contact__heading {
    font-size: 2.25rem;
  }

  .contact__map {
    aspect-ratio: auto;
    min-height: 420px;
    height: 100%;
  }
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 1.25rem 2rem;
}

.footer__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand-top {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

/* Same clip-to-circle treatment as .navbar__emblem — see the comment there. */
.footer__emblem {
  flex-shrink: 0;
  display: flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #FFFFFF;
}

.footer__emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer__wordmark {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #FFFFFF;
}

.footer__wordmark span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.2rem;
}

.footer__tagline {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.footer__rc {
  font-size: 0.8125rem;
  color: var(--color-gold);
}

/* This is an <h3>, so it needs its colour set explicitly — the global
   h1/h2/h3 rule defaults to --color-dark, which would be invisible here. */
.footer__heading {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links li {
  font-size: 0.875rem;
}

.footer__links a {
  color: inherit;
  text-decoration: none;
}

.footer__links a:hover {
  color: #FFFFFF;
}

.footer__bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

@media (min-width: 700px) {
  .footer__inner {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}

/* ---------- Floating WhatsApp button ---------- */
/* #25D366 is WhatsApp's own brand green rather than our --color-primary —
   deliberate: this button is meant to be read instantly as "WhatsApp" from its
   colour alone, the way a site's social icons usually keep their own brand colours. */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #25D366;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}
