/* ==========================================================================
   KNOT — Stringing Services
   Global Design System · Dark mode only
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colors */
  --color-bg: #202020;              /* neutral dark */
  --color-bg-alt: #262626;          /* slightly lighter dark */
  --color-bg-alt-2: #2b2b2b;        /* card surfaces */
  --color-bg-elevated: #333333;     /* elevated surfaces / hover */
  --color-accent: #ff4834;          /* brand orange */
  --color-accent-dim: #e0402c;
  --color-star: #34c77a;            /* review star rating */
  --color-text: #f4f7f2;            /* near-white */
  --color-text-muted: #a9bcaf;      /* muted gray-green */
  --color-text-faint: #74897c;
  --color-border: rgba(244, 247, 242, 0.1);
  --color-border-strong: rgba(244, 247, 242, 0.18);

  /* Typography */
  --font-body: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fs-eyebrow: clamp(0.75rem, 0.7rem + 0.2vw, 0.85rem);
  --fs-h1: clamp(2.75rem, 1.9rem + 4.2vw, 6.2rem);
  --fs-h2: clamp(2rem, 1.5rem + 2vw, 3.4rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --fs-body-lg: clamp(1.05rem, 1rem + 0.3vw, 1.3rem);
  --fs-body: clamp(0.95rem, 0.9rem + 0.15vw, 1.05rem);
  --fs-small: clamp(0.8rem, 0.78rem + 0.08vw, 0.9rem);

  /* Spacing */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1.25rem;
  --space-md: 2rem;
  --space-lg: clamp(2.5rem, 2rem + 2.5vw, 5rem);
  --space-xl: clamp(4rem, 3rem + 5vw, 8rem);
  --space-2xl: clamp(5rem, 4rem + 6vw, 10rem);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 rgba(255, 72, 52, 0);
  --shadow-glow-hover: 0 8px 30px rgba(255, 72, 52, 0.35);

  /* Motion */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.6s;
  --dur-slow: 1s;

  /* Layout */
  --container-w: 1320px;
  --nav-h: 88px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--color-accent); color: var(--color-bg); }

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

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}

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

/* ---------- 3. Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--color-text);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

/* ---------- 4. Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dim));
  transition: width 0.1s linear;
}

/* ---------- 4b. Cursor string trail ---------- */
.cursor-trail {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  pointer-events: none;
}

/* ---------- 5. Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(-16px);
  animation: navFadeIn var(--dur-slow) var(--ease-premium) 0.15s forwards;
  transition: background var(--dur-fast) var(--ease-soft), backdrop-filter var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft), border-color var(--dur-fast) var(--ease-soft);
  border-bottom: 1px solid transparent;
}

@keyframes navFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.nav.is-scrolled {
  background: rgba(32, 32, 32, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: 100%;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2vw, 2.5rem);
}

.nav__link {
  position: relative;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: 10px;
  transition: color var(--dur-fast) var(--ease-soft);
}

.nav__link:hover,
.nav__link.is-active { color: var(--color-text); }

.nav__dot {
  position: absolute;
  bottom: 0; left: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateX(-50%) scale(0);
  transition: transform var(--dur-fast) var(--ease-premium);
}

.nav__link.is-active .nav__dot { transform: translateX(-50%) scale(1); }

.nav__cta { flex-shrink: 0; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-soft), opacity var(--dur-fast) var(--ease-soft);
  margin-inline: auto;
}
.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); }

.mobile-menu {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(32, 32, 32, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  padding: var(--space-md) clamp(1.25rem, 3vw, 2.5rem) var(--space-lg);
  gap: var(--space-sm);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--dur-med) var(--ease-premium), opacity var(--dur-med) var(--ease-premium), visibility 0s linear var(--dur-med);
  z-index: 899;
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform var(--dur-med) var(--ease-premium), opacity var(--dur-med) var(--ease-premium), visibility 0s;
}
.mobile-menu__link {
  font-size: 1.1rem;
  font-weight: 600;
  padding: var(--space-2xs) 0;
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu__cta { align-self: flex-start; margin-top: var(--space-2xs); }

/* ---------- 6. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.9rem;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-premium), box-shadow var(--dur-fast) var(--ease-soft), background var(--dur-fast) var(--ease-soft), border-color var(--dur-fast) var(--ease-soft);
}
.btn--pill { border-radius: var(--radius-pill); }

.btn--accent {
  background: var(--color-accent);
  color: var(--color-bg);
  box-shadow: var(--shadow-glow);
}
.btn--accent:hover {
  box-shadow: var(--shadow-glow-hover);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(244, 247, 242, 0.06);
  color: var(--color-text);
  border-color: var(--color-border);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  background: rgba(244, 247, 242, 0.12);
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
}

.btn span { position: relative; z-index: 1; }

/* ---------- 7. Reveal animations (base state, activated via JS by adding .is-visible) ---------- */
.reveal-up, .reveal-left, .reveal-right, .reveal-blur {
  opacity: 0;
  transition: opacity 0.9s var(--ease-premium), transform 0.9s var(--ease-premium), filter 0.9s var(--ease-premium);
  will-change: transform, opacity;
}
.reveal-up { transform: translateY(36px); }
.reveal-left { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal-blur { filter: blur(14px); transform: translateY(20px); }

.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-blur.is-visible {
  opacity: 1;
  transform: translate(0, 0);
  filter: blur(0);
}

/* stagger children within a group via inline --stagger set by JS, fallback nth-child */
.services__grid .service-card:nth-child(1) { transition-delay: 0.05s; }
.services__grid .service-card:nth-child(2) { transition-delay: 0.15s; }
.services__grid .service-card:nth-child(3) { transition-delay: 0.25s; }

.reviews__grid .review-card:nth-child(1) { transition-delay: 0.05s; }
.reviews__grid .review-card:nth-child(2) { transition-delay: 0.15s; }
.reviews__grid .review-card:nth-child(3) { transition-delay: 0.25s; }

.stats__grid .stat:nth-child(1) { transition-delay: 0.05s; }
.stats__grid .stat:nth-child(2) { transition-delay: 0.15s; }
.stats__grid .stat:nth-child(3) { transition-delay: 0.25s; }
.stats__grid .stat:nth-child(4) { transition-delay: 0.35s; }

.booking__cards .contact-card:nth-child(1) { transition-delay: 0.05s; }
.booking__cards .contact-card:nth-child(2) { transition-delay: 0.12s; }
.booking__cards .contact-card:nth-child(3) { transition-delay: 0.19s; }
.booking__cards .contact-card:nth-child(4) { transition-delay: 0.26s; }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

/* Works for either an <img> or a <video> — object-fit + the slow zoom apply the same either way. */
.hero__media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.12);
  animation: heroZoom 16s var(--ease-soft) forwards;
  /* Color-grade footage toward the site's dark neutral palette. */
  filter: saturate(1.08) contrast(1.08) brightness(0.92);
}

@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

/* Soft-light wash that pulls blacks/midtones toward the dark neutral + brand orange,
   so licensed/stock footage reads as part of the same design system. */
.hero__media-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 72, 52, 0.16) 0%, rgba(38, 38, 38, 0.4) 45%, rgba(22, 22, 22, 0.75) 100%);
  mix-blend-mode: soft-light;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 22, 22, 0.55) 0%, rgba(22, 22, 22, 0.15) 32%, rgba(22, 22, 22, 0.35) 60%, rgba(16, 16, 16, 0.85) 100%),
    linear-gradient(90deg, rgba(16, 16, 16, 0.55) 0%, rgba(16, 16, 16, 0.05) 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-h) + var(--space-xl));
  padding-bottom: var(--space-2xl);
  max-width: 980px;
}

.hero__eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.hero__headline {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.line-wrap { display: block; overflow: hidden; }
.line {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  animation: lineReveal 1s var(--ease-premium) forwards;
  animation-delay: 0.5s;
}

@keyframes lineReveal {
  to { transform: translateY(0); opacity: 1; }
}

/* Hero load-in fades — delay is set inline by JS from each element's data-delay */
.hero-fade {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.9s var(--ease-premium) forwards;
  animation-delay: 0.5s;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero__subhead {
  font-size: var(--fs-body-lg);
  color: var(--color-text-muted);
  max-width: 620px;
  margin-bottom: var(--space-md);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero__scroll-cue {
  position: absolute;
  right: clamp(1.5rem, 3vw, 3rem);
  bottom: clamp(1.5rem, 3vw, 3rem);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s var(--ease-premium) 1.6s forwards;
}
.hero__scroll-cue span {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--color-accent), transparent);
  animation: scrollCue 2s var(--ease-soft) infinite;
}

@keyframes scrollCue {
  0% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.4; }
}

@keyframes fadeIn { to { opacity: 1; } }

/* ==========================================================================
   SECTION 01 — CREDIBILITY STRIP
   ========================================================================== */
.stats {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg) var(--space-md);
}

.stat { text-align: left; }

.stat__value {
  display: block;
  font-size: clamp(2rem, 1.6rem + 1.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  margin-bottom: var(--space-2xs);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 02 — SERVICES
   ========================================================================== */
.services { padding: var(--space-2xl) 0; background: #ffffff; }

.services .section-title { color: #000000; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 0;
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-premium), box-shadow var(--dur-med) var(--ease-premium), border-color var(--dur-med) var(--ease-soft);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: #cccccc;
}

.service-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-premium);
}

.service-card:hover .service-card__media img { transform: scale(1.08); }

.service-card__body { padding: var(--space-md); }

.service-card__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: var(--space-2xs);
  letter-spacing: -0.01em;
  color: #000000;
}

.service-card__desc {
  color: #4a4a4a;
  font-size: var(--fs-body);
  margin-bottom: var(--space-sm);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.service-card__arrow { transition: transform var(--dur-fast) var(--ease-premium); }
.service-card:hover .service-card__arrow { transform: translateX(6px); }

/* ==========================================================================
   SECTION 03 — ABOUT
   ========================================================================== */
.about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--space-2xl) 0;
}

/* Full-bleed background image, same layered pattern as .hero__media. */
.about__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Subtle dark overlay for text readability — kept light enough that the
   background photo stays clearly visible, matching .hero__scrim. */
.about__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(270deg, rgba(22, 22, 22, 0.88) 0%, rgba(22, 22, 22, 0.6) 45%, rgba(22, 22, 22, 0.25) 100%),
    linear-gradient(180deg, rgba(16, 16, 16, 0.35) 0%, rgba(16, 16, 16, 0.1) 30%, rgba(16, 16, 16, 0.45) 100%);
}

.about__inner {
  position: relative;
  z-index: 1;
}

.about__content { max-width: 639px; margin-left: auto; }

.about__body {
  color: var(--color-text-muted);
  font-size: var(--fs-body);
  margin-bottom: var(--space-sm);
  max-width: 560px;
}

.about__content .section-title { margin-bottom: var(--space-md); }

.checklist {
  margin-top: var(--space-md);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs) var(--space-md);
}

.checklist__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text);
}

.checklist__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  position: relative;
}
.checklist__icon::after {
  content: "";
  position: absolute;
  left: 6px; top: 3px;
  width: 5px; height: 9px;
  border-right: 2px solid var(--color-bg);
  border-bottom: 2px solid var(--color-bg);
  transform: rotate(45deg);
}

/* ==========================================================================
   SECTION 03b — PRECISION INSPECTION
   ========================================================================== */
.inspection { padding: var(--space-2xl) 0; }

.inspection__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

.inspection__col--intro { max-width: 480px; }

.inspection__col--intro .section-title {
  font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem);
  text-wrap: balance;
  margin-bottom: var(--space-md);
}

.inspection__intro {
  color: var(--color-text-muted);
  font-size: var(--fs-body-lg);
}

.inspection__lead {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.inspection__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.inspection__list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--color-text-muted);
  font-size: var(--fs-body);
  line-height: 1.6;
}

.inspection__list-item strong { color: var(--color-text); }

.inspection__list-icon {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 0.6em;
  border-radius: 50%;
  background: var(--color-accent);
}

.inspection__closing {
  color: var(--color-text-muted);
  font-size: var(--fs-body);
}

/* ==========================================================================
   SECTION 04 — REVIEWS
   ========================================================================== */
.reviews { padding: var(--space-2xl) 0; }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.review-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: var(--space-md);
  transition: transform var(--dur-med) var(--ease-premium), box-shadow var(--dur-med) var(--ease-premium);
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.review-card__stars {
  color: var(--color-star);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}

.review-card__quote {
  font-size: var(--fs-body-lg);
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.review-card__person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-card__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border-strong);
}

.review-card__name { font-weight: 700; font-size: var(--fs-body); }
.review-card__role { color: var(--color-text-faint); font-size: var(--fs-small); }

/* ==========================================================================
   SECTION 05 — BOOKING BANNER
   ========================================================================== */
.booking {
  padding: var(--space-2xl) 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255, 72, 52, 0.07), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(255, 72, 52, 0.05), transparent 50%),
    #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.booking .section-title { color: #000000; }

.booking__head { max-width: 700px; margin-bottom: var(--space-xl); }

.booking__body {
  color: #4a4a4a;
  font-size: var(--fs-body-lg);
  margin-top: var(--space-sm);
}

.booking__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.contact-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0;
  padding: var(--space-md) var(--space-sm);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
  transition: transform var(--dur-med) var(--ease-premium), border-color var(--dur-fast) var(--ease-soft), box-shadow var(--dur-med) var(--ease-premium);
}
.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 72, 52, 0.12);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.contact-card__label {
  font-size: var(--fs-small);
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3xs);
}

.contact-card__value {
  display: block;
  font-weight: 700;
  font-size: var(--fs-body);
  color: #111111;
  word-break: break-word;
}
a.contact-card__value:hover { color: var(--color-accent); }

.booking__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.booking__actions .btn--ghost {
  background: rgba(0, 0, 0, 0.04);
  color: #111111;
  border-color: rgba(0, 0, 0, 0.12);
}
.booking__actions .btn--ghost:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.2);
  color: #000000;
}

/* ==========================================================================
   SECTION 06 — FOOTER
   ========================================================================== */
.footer {
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
  background: #000000;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.footer__logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.footer__tagline {
  color: var(--color-text-muted);
  max-width: 260px;
}

.footer__heading {
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-sm);
}

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

.footer__link {
  color: var(--color-text-muted);
  font-size: var(--fs-body);
  position: relative;
  width: fit-content;
  transition: color var(--dur-fast) var(--ease-soft);
}
a.footer__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-fast) var(--ease-premium);
}
a.footer__link:hover { color: var(--color-text); }
a.footer__link:hover::after { transform: scaleX(1); transform-origin: left; }

.footer__col--cta { align-items: flex-start; justify-content: flex-start; }

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  color: var(--color-text-faint);
  font-size: var(--fs-small);
}

/* ==========================================================================
   Underline hover animation (generic utility, used across links)
   ========================================================================== */
.underline-hover {
  position: relative;
}
.underline-hover::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-fast) var(--ease-premium);
}
.underline-hover:hover::after { transform: scaleX(1); transform-origin: left; }

/* ==========================================================================
   BOOKING CONTACT MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-premium), visibility 0s linear var(--dur-med);
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--dur-med) var(--ease-premium), visibility 0s;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  box-shadow: var(--shadow-lg);
  transform: scale(0.94) translateY(12px);
  transition: transform var(--dur-med) var(--ease-premium);
}
.modal-overlay.is-open .modal {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: background var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft);
}
.modal__close:hover { background: rgba(244, 247, 242, 0.08); color: var(--color-text); }

.modal__title {
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-2xs);
  padding-right: var(--space-lg);
}

.modal__body {
  color: var(--color-text-muted);
  font-size: var(--fs-body);
  margin-bottom: var(--space-md);
}

.modal__contacts {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.modal__contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft);
}
.modal__contact:hover { border-color: var(--color-accent); transform: translateY(-2px); }

.modal__contact-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 72, 52, 0.12);
  font-size: 1.1rem;
}

.modal__contact-text { display: flex; flex-direction: column; gap: 0.15rem; }

.modal__contact-label {
  font-size: var(--fs-small);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.modal__contact-value {
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--color-text);
  word-break: break-word;
}

/* ==========================================================================
   Mobile swipe-carousel pagination dots
   Hidden by default (desktop/tablet keep the grid layout); switched on
   inside the Mobile breakpoint below alongside the carousel rules.
   ========================================================================== */
.carousel-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
}
.carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-border-strong);
  transition: background var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft);
}
.carousel-dot.is-active {
  background: var(--color-accent);
  transform: scale(1.3);
}
.services .carousel-dot { background: rgba(0, 0, 0, 0.15); }

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg) var(--space-md); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid .service-card:last-child { grid-column: 1 / -1; }
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid .review-card:last-child { grid-column: 1 / -1; }
  .booking__cards { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .inspection__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .inspection__col--intro { max-width: 640px; }
}

/* Mobile nav breakpoint */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --nav-h: 72px; }

  .nav__logo-img { height: 24px; }

  .hero__content { padding-bottom: var(--space-xl); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__scroll-cue { display: none; }

  .stats__grid { grid-template-columns: 1fr 1fr; gap: var(--space-md) var(--space-sm); }

  /* Swipe carousel — one card at a time via native scroll-snap, no JS required. */
  .services__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--space-xs);
  }
  .services__grid::-webkit-scrollbar { display: none; }
  .services__grid .service-card {
    flex: 0 0 88%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .reviews__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--space-xs);
  }
  .reviews__grid::-webkit-scrollbar { display: none; }
  .reviews__grid .review-card {
    flex: 0 0 88%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .carousel-dots { display: flex; }

  .checklist { grid-template-columns: 1fr; }

  /* Compact horizontal contact cards — icon left, text right, vertically centered. */
  .booking__cards { grid-template-columns: 1fr; gap: var(--space-xs); }
  .contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
  }
  .contact-card__icon { margin-bottom: 0; flex-shrink: 0; }
  .contact-card__text { min-width: 0; }

  .booking__actions { flex-direction: column; align-items: stretch; }
  .booking__actions .btn { width: 100%; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--space-md); }

  .footer__bottom {
    padding: var(--space-md) var(--space-xs) calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
    text-align: left;
  }

  .btn { padding: 0.9rem 1.5rem; }
}
