/* ==========================================================================
   Nailit: styles
   Light theme, mobile-first. Colours, fonts and spacing are tokens below.
   ========================================================================== */

@font-face {
  font-family: "Bitter";
  src: url("../fonts/bitter-var.woff2") format("woff2-variations"),
       url("../fonts/bitter-var.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fff;
  --bg-soft: #f7f4ef;
  --bg-footer: #f1ede6;
  --tile: #ece7e0;
  --ink: #1f2328;
  --muted: #5b6470;
  --line: #e4ded5;
  --line-strong: #cfc7bb;
  --input-border: #8a8076;
  --accent: #9e3a26;          /* brick red: buttons and links only */
  --accent-dark: #7f2e1e;
  --accent-tint: #f5e6e1;
  --error: #b42318;
  --wa: #25d366;

  --heading: "Bitter", Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1160px;
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --header-h: 64px;
  --bar-h: 0px;               /* height of the phone quick-contact bar, set below */
  --radius: 6px;
  --radius-lg: 10px;
  --section-y: clamp(56px, 8vw, 96px);
  --shadow: 0 1px 2px rgba(31, 35, 40, 0.05), 0 6px 20px rgba(31, 35, 40, 0.07);
  --slide-interval: 6s;
  --focus: var(--accent);
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  padding-bottom: var(--bar-h);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.is-locked { overflow: hidden; }

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

h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul[role="list"], .site-nav__list { list-style: none; padding: 0; }

a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Photo captions are kept for screen readers and the enlarged photo viewer, but not shown on the page. */
.visually-hidden,
.gallery__cell figcaption,
.ba figcaption {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id] { scroll-margin-top: var(--header-h); }

/* ---------- Placeholder markers (switch off with showPlaceholderMarkers) ---------- */
.todo-flag { display: none; }
.show-markers .todo-flag {
  display: inline-block;
  padding: 0.1em 0.5em;
  border-radius: 4px;
  background: #fff1b8;
  color: #5f4700;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
}
.ph,
.show-markers .ph-line {
  text-decoration: underline dashed #b08900;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.ph-line { color: var(--muted); }

/* ---------- Typography ---------- */
.section-title {
  font-family: var(--heading);
  font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.section-lead {
  margin-top: 12px;
  max-width: 38rem;
  font-size: 1.125rem;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.65em 1.25em;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--outline { border-color: var(--line-strong); background: var(--bg); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--outline .icon { color: var(--accent); }
.btn--lg { min-height: 52px; padding-inline: 1.5em; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   1. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 12px rgba(31, 35, 40, 0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
}
.brand img { width: auto; height: 30px; }

.site-header__cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-right: -10px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  font-weight: 600;
}
.nav-toggle__icon { position: relative; width: 20px; height: 14px; }
.nav-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle__icon span:nth-child(1) { top: 0; }
.nav-toggle__icon span:nth-child(2) { top: 6px; }
.nav-toggle__icon span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Phone menu: a panel under the header */
.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
}
.nav-open .site-nav { visibility: visible; opacity: 1; }
.site-nav__list { margin: 0; }
.site-nav__list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  font-family: var(--heading);
  font-size: 1.375rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav__extra { display: grid; gap: 4px; margin-top: 24px; }
.site-nav__extra .btn { margin-bottom: 12px; }
.site-nav__contact {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-weight: 600;
  text-decoration: none;
}
.site-nav__contact .icon { color: var(--accent); }

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .brand img { height: 34px; }
  .nav-toggle { display: none; }
  .site-header__cta { display: inline-flex; }
  .site-header__inner { gap: 28px; }
  .site-nav {
    position: static;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    visibility: visible;
    opacity: 1;
    transition: none;
  }
  .site-nav__list { display: flex; gap: 4px; }
  .site-nav__list a {
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--radius);
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 500;
  }
  .site-nav__list a:hover { color: var(--accent); }
  .site-nav__extra { display: none; }
}

/* ==========================================================================
   2. Hero (split: text + photo carousel)
   ========================================================================== */
.hero { padding-block: 28px 56px; }
.hero__inner { display: grid; gap: 32px; }
.hero__title { display: grid; gap: 12px; }
.hero__kicker {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--accent);
}
.hero__headline {
  font-family: var(--heading);
  font-size: clamp(2.25rem, 1.45rem + 3.9vw, 3.75rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.hero__trust {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--muted);
  text-wrap: pretty;
}
.hero__trust .icon { margin-top: 0.2em; color: var(--accent); stroke-width: 2.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (max-width: 479px) {
  .hero__actions .btn { width: 100%; }
}
@media (min-width: 900px) {
  .hero { padding-block: 56px 88px; }
  .hero__inner { grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
}

/* Carousel */
.carousel { display: flex; flex-direction: column; }
.carousel__slides {
  position: relative;
  order: 1;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--tile);
  touch-action: pan-y;
}
.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.carousel__slide.is-active { opacity: 1; z-index: 1; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  .carousel__slide { transition: none; }
}

.carousel__controls {
  order: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
  margin-left: -10px;
}
.carousel__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
}
.carousel__btn:hover { background: var(--bg-soft); }
.carousel__btn .icon { width: 20px; height: 20px; }
.icon--play { fill: currentColor; stroke-width: 1.5; }
.carousel__btn .icon--play { display: none; }
.carousel.is-stopped .icon--pause { display: none; }
.carousel.is-stopped .icon--play { display: block; }

.carousel__dots { display: flex; align-items: center; }
.carousel__dot {
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
}
.carousel__dot-bar {
  position: relative;
  width: 22px;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-strong);
}
.carousel__dot-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.carousel__dot[aria-current="true"] .carousel__dot-fill { transform: scaleX(1); }
/* The progress bar on the active dot also drives the slide timing (see main.js). */
.carousel.is-playing .carousel__dot[aria-current="true"] .carousel__dot-fill {
  animation: slide-progress var(--slide-interval) linear forwards;
  animation-play-state: paused;
}
.carousel.is-playing.is-running .carousel__dot[aria-current="true"] .carousel__dot-fill { animation-play-state: running; }
@keyframes slide-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 42rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head > p:not(.section-lead) { margin-top: 12px; }

/* 3. Intro */
.intro__inner { display: grid; gap: 16px; }
.intro__copy { display: grid; gap: 12px; max-width: 40rem; font-size: 1.125rem; }
@media (min-width: 900px) {
  .intro__inner { grid-template-columns: 1fr 2fr; gap: 48px; }
}

/* 4. Services */
.services__grid { display: grid; gap: 16px; }
@media (min-width: 680px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .service--wide { grid-column: 1 / -1; }   /* odd card out spans the row */
}

.service {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.service__head { display: flex; align-items: center; gap: 12px; }
.service__icon { width: 28px; height: 28px; color: var(--accent); stroke-width: 1.75; }
.service__title { font-family: var(--heading); font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.service__sub { margin-top: -4px; font-size: 0.9375rem; color: var(--muted); }
.service__list { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.service__list li { position: relative; padding-left: 18px; }
.service__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.service__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 44px;
  margin-top: auto;
  padding: 8px 0 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 600;
  text-align: left;
}
.service__cta:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.service__cta .icon { width: 1.05em; height: 1.05em; }

/* 5. Gallery */
.gallery__grid { display: grid; gap: 14px; margin: 0; grid-template-columns: repeat(2, 1fr); }
/* Phones: two across to save scrolling, with the feature photo full width on top.
   If that leaves a photo on its own at the end, it goes full width too. */
@media (max-width: 559px) {
  .gallery__grid { gap: 10px; }
  .gallery__cell--feature,
  .gallery__cell:last-child:nth-child(even) { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .gallery__cell--feature { grid-column: span 2; grid-row: span 2; }
}
.gallery__cell figure { display: flex; flex-direction: column; height: 100%; }
.gallery__item {
  position: relative;
  display: block;
  flex: 1;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--tile);
  aspect-ratio: 3 / 4;   /* job photos are portrait phone shots */
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.gallery__zoom .icon { width: 16px; height: 16px; }
@media (hover: hover) {
  .gallery__zoom { opacity: 0; transition: opacity 0.2s; }
  .gallery__item:hover .gallery__zoom,
  .gallery__item:focus-visible .gallery__zoom { opacity: 1; }
}

/* Before / after */
.ba-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  margin: clamp(44px, 6vw, 72px) 0 18px;
}
.ba-head__title { font-family: var(--heading); font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); font-weight: 700; }
.ba-head__hint { font-size: 0.9375rem; color: var(--muted); }
.ba-grid { display: grid; gap: 24px; }
@media (min-width: 560px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } }
.ba__frame {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: var(--tile);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.ba__frame:has(.ba__range:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag {
  position: absolute;
  top: 10px;
  z-index: 2;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  pointer-events: none;
}
.ba__tag--before { left: 10px; background: rgba(255, 255, 255, 0.94); color: var(--ink); }
.ba__tag--after { right: 10px; background: var(--accent); color: #fff; }
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 2;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}
.ba__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.ba__knob .icon { width: 15px; height: 15px; margin: 0 -2px; stroke-width: 2.5; }
/* The range input keeps the slider keyboard- and screen-reader-accessible. Pointer/touch dragging is handled on the frame. */
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

/* Lightbox (dark backdrop is normal for a photo viewer) */
.lightbox {
  --focus: #fff;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: calc(64px + env(safe-area-inset-top)) 12px calc(88px + env(safe-area-inset-bottom));
  border: 0;
  background: rgba(17, 19, 22, 0.96);
  color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(17, 19, 22, 0.9); }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(1200px, 100%); max-height: 100%; }
.lightbox__img {
  max-width: 100%;
  max-height: calc(100dvh - 200px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__caption { font-size: 0.9375rem; color: #d5d9de; text-align: center; }
.lightbox__count { margin-left: 8px; font-variant-numeric: tabular-nums; color: #fff; }
.lightbox__btn {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.lightbox__prev, .lightbox__next { bottom: calc(20px + env(safe-area-inset-bottom)); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
@media (min-width: 900px) {
  .lightbox { padding: 48px 96px; }
  .lightbox__prev, .lightbox__next { top: 50%; bottom: auto; margin-top: -24px; }
  .lightbox__prev { left: 24px; }
  .lightbox__next { right: 24px; }
  .lightbox__close { top: 20px; right: 24px; }
  .lightbox__img { max-height: calc(100dvh - 140px); }
}

/* 6. Reviews */
.reviews__grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .reviews__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.review__quote { flex: 1; font-family: var(--heading); font-size: 1.1875rem; font-weight: 500; line-height: 1.45; }
.review__quote p::before { content: "\201C"; color: var(--accent); }
.review__quote p::after { content: "\201D"; color: var(--accent); }
.review__by { display: grid; gap: 2px; }
.review__name { font-weight: 600; }
.review__meta { font-size: 0.9375rem; color: var(--muted); }

/* 7. Why choose us */
.why__grid { display: grid; gap: 24px; margin: 0; }
@media (min-width: 760px) { .why__grid { grid-template-columns: repeat(3, 1fr); gap: 28px 32px; } }
.why__item { display: flex; gap: 14px; align-items: flex-start; }
.why__tick {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
}
.why__tick .icon { width: 18px; height: 18px; stroke-width: 2.75; }
.why__title { font-family: var(--heading); font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }
.why__item p { margin-top: 4px; color: var(--muted); }
.why__item .todo-flag { margin-top: 8px; }

/* 8. Contact */
.contact__grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 5fr 7fr; gap: 32px; } }
/* Quote form not connected yet: just the contact card */
.contact__grid--no-form { max-width: 560px; }
@media (min-width: 900px) { .contact__grid--no-form { grid-template-columns: 1fr; } }

.contact-card { padding: 6px 22px 22px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.contact-list { margin: 0; }
.contact-list li + li { border-top: 1px solid var(--line); }
.contact-list__link { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 0; text-decoration: none; }
.contact-list__link[href]:not([href="#contact"]):hover .contact-list__value { color: var(--accent); }
.contact-list__icon { width: 24px; height: 24px; color: var(--accent); }
.contact-list__label { display: block; font-size: 0.875rem; color: var(--muted); }
.contact-list__value { display: block; font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-card__areas { margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.contact-card__heading { margin-bottom: 10px; font-family: var(--heading); font-size: 1.0625rem; font-weight: 700; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.areas li { padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); font-size: 0.9375rem; }

.form-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
@media (min-width: 640px) { .form-card { padding: 30px; } }

.quote-form { display: grid; gap: 18px; }
.quote-form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .quote-form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field__label { font-weight: 600; }
.field__req { color: var(--accent); }
.field__input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 1.0625rem; /* 16px+ stops iOS zooming on focus */
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
.field__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(158, 58, 38, 0.25); }
.field__select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2328' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field__textarea { min-height: 132px; resize: vertical; }
.field__hint { font-size: 0.9375rem; color: var(--muted); }
.field__error { display: none; font-size: 0.9375rem; font-weight: 600; color: var(--error); }
.field__error:not(:empty) { display: block; }
.field__input[aria-invalid="true"] { border-color: var(--error); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.quote-form__note { font-size: 0.9375rem; color: var(--muted); text-align: center; }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border: 1px solid #f0d58a; border-radius: var(--radius); background: #fff8e1; color: #5f4700; }
.form-status.is-error { border-color: #f2b8b5; background: #fdecea; color: #7a1a12; }
.form-status a { font-weight: 600; }

.btn__spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; }
.is-busy .btn__spinner { display: inline-block; animation: spin 0.8s linear infinite; }
.is-busy { pointer-events: none; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { display: grid; justify-items: start; gap: 12px; outline: none; }
.form-success__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); }
.form-success__icon .icon { width: 24px; height: 24px; stroke-width: 2.75; }
.form-success__title { font-family: var(--heading); font-size: 1.375rem; font-weight: 700; line-height: 1.25; }
.form-success p { color: var(--muted); }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer { padding-top: clamp(44px, 6vw, 72px); background: var(--bg-footer); border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 40px; } }
.site-footer__brand img { width: auto; height: 32px; }
.site-footer__brand p { margin-top: 12px; color: var(--muted); }
.site-footer__heading { margin-bottom: 8px; font-family: var(--heading); font-size: 1.0625rem; font-weight: 700; }
.site-footer__list { display: grid; margin: 0; }
.site-footer__list a,
.site-footer__areas li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-footer__list a:hover { color: var(--accent); }
.site-footer__list .icon { width: 18px; height: 18px; color: var(--accent); }
.site-footer__areas li { min-height: 36px; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 32px;
  padding-block: 12px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.site-footer__bottom .legal-links a,
.site-footer__bottom .link-button { color: var(--ink); }

/* ==========================================================================
   Phone quick-contact bar
   ========================================================================== */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(31, 35, 40, 0.06);
  transition: transform 0.2s ease, visibility 0s;
}
.mobile-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 10px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.mobile-bar__btn .icon { color: var(--accent); }
.mobile-bar__btn--primary { border-color: var(--accent); background: var(--accent); color: #fff; }
/* Very narrow phones (e.g. iPhone SE 1st gen): keep the words, drop the icons */
@media (max-width: 359px) {
  .mobile-bar { gap: 6px; }
  .mobile-bar__btn { padding: 0 6px; }
  .mobile-bar__btn .icon { display: none; }
}
/* Out of the way while the hero's own buttons are on screen, while someone is
   typing into the form, while the menu is open and while the cookie banner is
   showing. visibility:hidden also keeps the hidden buttons out of the keyboard
   tab order. */
.hero-cta-visible .mobile-bar,
.is-typing .mobile-bar,
.nav-open .mobile-bar,
.consent-open .mobile-bar {
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.2s ease, visibility 0s 0.2s;
}

@media (max-width: 899px) {
  :root { --bar-h: calc(65px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) {
  .mobile-bar { display: none; }
}

/* ==========================================================================
   Quote pop-up (bottom sheet on phones, centred card on bigger screens)
   ========================================================================== */
.modal {
  width: 100%;
  max-width: 100%;
  max-height: 92dvh;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: 14px 14px 0 0;
  background: var(--bg);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(17, 19, 22, 0.55); }
.modal__panel { position: relative; padding: 22px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) {
  .modal { width: calc(100% - 48px); max-width: 480px; max-height: calc(100dvh - 48px); margin: auto; border-radius: 12px; }
  .modal.is-form { max-width: 600px; }
  .modal__panel { padding: 32px; }
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
}
.modal__close:hover { background: var(--bg-soft); }
.modal__close .icon { width: 22px; height: 22px; }
.modal__title { margin-bottom: 18px; padding-right: 44px; font-family: var(--heading); font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem); font-weight: 700; line-height: 1.2; }
.modal__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin: -6px 0 4px -6px;
  padding: 0 8px 0 2px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  font-weight: 600;
  color: var(--muted);
}
.modal__back:hover { color: var(--ink); }
.modal .form-card { padding: 0; border: 0; }

.choices { display: grid; gap: 10px; }
.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  text-align: left;
  text-decoration: none;
}
.choice:hover { border-color: var(--ink); }
.choice__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--radius); }
.choice__icon .icon { width: 22px; height: 22px; }
.choice__icon--wa { background: var(--wa); color: var(--ink); }
.choice__icon--call { background: var(--accent); color: #fff; }
.choice__icon--mail { background: var(--ink); color: #fff; }
.choice__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.choice__title { font-weight: 700; }
.choice__sub { font-size: 0.9375rem; color: var(--muted); }
.choice__chev { width: 20px; height: 20px; color: var(--muted); }
.choice.is-disabled { opacity: 0.6; }

@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: sheet-in 0.22s ease-out; }
  @media (min-width: 640px) { .modal[open] { animation-name: fade-in; } }
  .lightbox[open] { animation: fade-in 0.18s ease; }
}
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .site-header, .mobile-bar, .carousel__controls, .modal, .lightbox, .form-card, .todo-flag { display: none !important; }
  body { padding-bottom: 0; }
}
