/* Rise and Grind — light theme; purple for brand actions + logo */
:root {
  /* Logo / primary actions only */
  --color-purple-mid: #7c3fa6;
  --color-purple-deep: #5f3180;
  --color-purple-hover: #6d3892;

  --color-bg: #f7f6f4;
  --color-bg-subtle: #efede9;
  --color-surface: #ffffff;
  --color-surface-2: #fafaf9;
  --color-ink: #1c1917;
  --color-muted: #57534e;
  --color-bark: #44403c;
  --color-ring: #d6d3d1;
  --color-edge: rgba(28, 25, 23, 0.08);

  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --radius: 10px;
  --shadow: 0 10px 36px rgba(28, 25, 23, 0.07);
  --max-width: 68ch;
  --nav-max: 1100px;
  /* Header bar height = logo image height (edge-to-edge vertically) */
  --header-bar-height: 4.5rem;
  --ratio-golden: 1.6180339887;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-ink);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-bark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-purple-mid);
}

/* No underline on buttons; footer contact reads as a chip-style link */
.btn,
.site-footer a {
  text-decoration: none;
}

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

/* Header */
.site-header {
  background: #141218;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  padding: 0 var(--space-md);
  min-height: var(--header-bar-height);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #ffffff;
  border-radius: 8px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(201, 168, 232, 0.85);
  outline-offset: 2px;
}

.nav-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo:hover .logo__img {
  opacity: 0.92;
}

.logo:focus-visible {
  outline: 2px solid rgba(201, 168, 232, 0.85);
  outline-offset: 3px;
  border-radius: 6px;
}

.logo__img {
  height: var(--header-bar-height);
  width: auto;
  max-width: min(52vw, 360px);
  display: block;
  object-fit: contain;
  object-position: left center;
}

.nav {
  flex: 1;
  justify-content: center;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  align-items: center;
  justify-content: center;
  width: 100vw;
}

.nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav a:hover {
  color: #ffffff;
}

.nav a[aria-current="page"] {
  color: #f5f0ff;
  font-weight: 600;
}

.nav a::before {
  display: none;
  font-size: 0.95em;
  opacity: 0.9;
}

.nav a[href="index.html"]::before {
  content: "⌂";
}

.nav a[href="services.html"]::before {
  content: "⚙";
}

.nav a[href="about.html"]::before {
  content: "★";
}

/* CTA button in the header */
.header-cta {
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 0.45rem 1.1rem;
  white-space: nowrap;
  background: var(--color-purple-mid);
  color: #ffffff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s;
}

.header-cta:hover {
  background: var(--color-purple-hover);
}

@media (max-width: 720px) {
  .site-header__inner {
    gap: var(--space-sm);
  }

  .logo {
    flex: 1;
  }

  .logo__img {
    height: calc(var(--header-bar-height) - 0.5rem);
    max-width: min(68vw, 300px);
    object-position: left center;
  }

  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .header-cta {
    display: none;
  }

  .mobile-nav-cta.btn {
    display: none;
  }

  /* Full-screen overlay nav */
  .nav {
    position: fixed;
    top: var(--header-bar-height);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100dvh - var(--header-bar-height));
    z-index: 99;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: var(--space-lg) var(--space-md) var(--space-xl);
    background: rgba(14, 12, 20, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    gap: 0.1rem;
    overflow-y: auto;
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .site-header.is-open .nav-toggle {
    background: rgba(255, 255, 255, 0.1);
  }

  .nav a {
    display: flex;
    width: 100%;
    padding: 0.8rem 0.5rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    text-align: left;
    box-sizing: border-box;
  }

  .nav a::before {
    display: inline-block;
  }

  .nav a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
  }

  /* Mobile menu CTA — fixed button, not a nav link */
  .site-header.is-open .mobile-nav-cta.btn {
    display: inline-block;
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
  }
}

/* Main */
main {
  flex: 1;
}

/* Hero */
.hero {
  color: var(--color-ink);
  padding: var(--space-xl) var(--space-md);
  border-bottom: 1px solid var(--color-edge);
}

.hero__inner {
  max-width: var(--nav-max);
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero p {
  margin: 0 0 var(--space-lg);
  font-size: 1.1rem;
  max-width: 36ch;
  color: var(--color-muted);
}

/* Home: full-height photo hero, overlay, centered light copy */
.hero--splash {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 75vh;
  min-height: 75dvh;
  padding: var(--space-md);
  color: #ffffff;
  background-color: #1c1917;
  background-image: url("assets/hero-home.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero--splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
  z-index: 0;
}

.hero--splash .hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Note: .hero and .hero--splash share the same <section>, so never use
   ".hero--splash .hero p" — it won't match. Target .hero--splash p instead. */
.hero--splash h1,
.hero--splash p {
  color: #ffffff;
}

.hero--splash h1 {
  text-shadow:
    0 0 1px #000000,
    0 0 2px #000000,
    0 1px 0 #000000,
    0 2px 4px rgba(0, 0, 0, 0.95),
    0 4px 20px rgba(0, 0, 0, 0.75),
    0 8px 36px rgba(0, 0, 0, 0.5);
}

.hero--splash p {
  margin-left: auto;
  margin-right: auto;
  max-width: 38ch;
  text-shadow:
    0 0 1px #000000,
    0 0 2px #000000,
    0 1px 0 #000000,
    0 2px 3px rgba(0, 0, 0, 0.9),
    0 3px 14px rgba(0, 0, 0, 0.65);
}

.hero--splash .hero__actions {
  justify-content: center;
}

.hero--splash .btn--ghost {
  margin-left: 0;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.hero--splash .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn--primary {
  background: var(--color-purple-mid);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--color-purple-hover);
  color: #ffffff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-ring);
  margin-left: var(--space-sm);
}

.btn--ghost:hover {
  background: var(--color-bg-subtle);
  color: var(--color-ink);
}

/* Desktop header — inline nav only; hide mobile overlay + menu button */
@media (min-width: 721px) {
  .nav-toggle {
    display: none;
  }

  .mobile-nav-cta.btn {
    display: none;
  }

  .site-header .nav {
    position: static;
    inset: auto;
    height: auto;
    width: auto;
    flex: 1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
    gap: var(--space-sm) var(--space-lg);
  }

  .nav a {
    display: inline-flex;
    width: auto;
    padding: 0;
    border-radius: 0;
    font-size: 0.95rem;
    text-align: inherit;
  }

  .nav a::before {
    display: none;
  }

  .nav a:hover {
    background: transparent;
    color: #ffffff;
  }
}

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

/* Page shell (inner pages) */
.page-hero {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  padding: var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--color-edge);
}

.page-hero__inner {
  max-width: var(--nav-max);
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 var(--space-xs);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.page-hero p {
  margin: 0;
  color: var(--color-muted);
  max-width: 45ch;
}

/* Full-bleed page heroes — golden ratio of space below header (~61.8%) */
.about-hero,
.faq-hero {
  position: relative;
  width: 100%;
  height: calc((100dvh - var(--header-bar-height)) / var(--ratio-golden));
  min-height: 16rem;
  overflow: hidden;
}

.about-hero {
  background: var(--color-bg-subtle);
}

.about-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.faq-hero {
  background: #000000;
}

.faq-hero__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.faq-intro {
  margin: 0 0 var(--space-lg);
  color: var(--color-muted);
  max-width: 45ch;
}

/* Content sections */
.section {
  max-width: var(--nav-max);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

.section--narrow {
  max-width: calc(var(--max-width) + 4rem);
}

.section--story,
.section--faq {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.section--story > h1,
.section--faq > h1 {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.section h2 {
  margin: 0 0 var(--space-md);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.section p {
  margin: 0 0 var(--space-md);
  color: var(--color-muted);
}

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

/* Home teaser cards */
.grid-2 {
  display: grid;
  gap: var(--space-md);
}

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

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-edge);
}

.card h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1.1rem;
  color: var(--color-ink);
}

.card p {
  margin: 0 0 var(--space-md);
  font-size: 0.98rem;
  color: var(--color-muted);
}

.card .btn {
  margin-top: 0;
}

.section--choose {
  background: var(--color-bg);
  padding: var(--space-xl) var(--space-md);
}

.choose-inner {
  max-width: var(--nav-max);
  margin: 0 auto;
  text-align: center;
}

.section--choose h2 {
  color: var(--color-ink);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-xl);
}

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

.choose-item {
  background: var(--color-surface);
  border: 1px solid var(--color-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.choose-item:hover {
  border-color: var(--color-ring);
  box-shadow: 0 12px 40px rgba(28, 25, 23, 0.1);
}

.choose-item__icon {
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: var(--space-md);
  color: var(--color-purple-mid);
  flex-shrink: 0;
}

.choose-item h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-ink);
}

.choose-item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-muted);
}

.choose-tagline {
  margin: var(--space-xl) auto var(--space-md);
  max-width: 44ch;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-bark);
  letter-spacing: 0.01em;
}

.choose-cta {
  display: inline-block;
  border: 1px solid var(--color-ring);
  color: var(--color-purple-deep);
  border-radius: var(--radius);
  padding: 0.6rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--color-surface);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.choose-cta:hover {
  border-color: var(--color-purple-mid);
  color: var(--color-purple-mid);
}

@media (max-width: 720px) {
  .choose-grid {
    grid-template-columns: 1fr;
  }

  .choose-item {
    padding: var(--space-lg) var(--space-md);
  }
}

/* Services list */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.service-item {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-edge);
}

.service-item h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1.15rem;
  color: var(--color-ink);
}

.service-item p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-muted);
}

/* ─── Service index nav ─────────────────────────────────── */
/* ─── Service directory (chip grid) ────────────────────── */
/* ─── Services layout: sidenav + tiles ─────────────────── */
/* Three-zone layout: glass nav left | image + description right */
.services-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: start;
}

/* Left: sticky frosted-glass jump nav */
.service-sidenav {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: var(--header-bar-height);
  height: calc(100dvh - var(--header-bar-height));
  z-index: 10;
  background: rgba(10, 8, 15, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  overflow-y: auto;
  scrollbar-width: none;
}

.service-sidenav::-webkit-scrollbar {
  display: none;
}

.service-sidenav__inner {
  width: 100%;
}

.service-sidenav__eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 var(--space-md);
}

.service-sidenav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-sidenav__item {
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0 0.5rem 0.9rem;
  transition: border-color 0.2s;
}

.service-sidenav__item.is-active {
  border-left-color: var(--color-purple-mid);
}

.service-sidenav__link {
  display: block;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, font-weight 0.2s;
  line-height: 1.3;
}

.service-sidenav__item.is-active .service-sidenav__link {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
}

.service-sidenav__link:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* No descriptions in the nav — they live in the tile body */
.service-sidenav__desc {
  display: none;
}

/* Tiles span full width — nav overlays left portion via glass panel */
.service-tiles {
  grid-column: 1 / -1;
  grid-row: 1;
}

/* Each tile: side-by-side text | image — Apple product aesthetic */
.service-tile {
  position: relative;
  height: 100dvh;
  overflow: hidden;
  background: var(--color-surface);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding-left: 300px; /* clear the glass nav */
}

/* Alternating background on every other tile */
.service-tile--flip {
  flex-direction: row-reverse;
  background: var(--color-bg-subtle);
}

/* Bleed: image touches outer edge */
.service-tile--bleed .service-tile__image-wrap {
  padding-right: 0;
}
.service-tile--bleed .service-tile__image {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.service-tile--flip.service-tile--bleed .service-tile__image-wrap {
  padding-right: var(--space-lg);
  padding-left: 0;
}
.service-tile--flip.service-tile--bleed .service-tile__image {
  border-radius: 18px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Wide-image: text narrower, image gets more room */
.service-tile--wide-image .service-tile__body {
  flex: 0 0 38%;
}

/* Text side */
.service-tile__body {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) clamp(var(--space-lg), 4vw, 3.5rem);
  position: relative;
}

.service-tile__body::before {
  display: none;
}

/* Image side — centers the contained card */
.service-tile__image-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(var(--space-lg), 4vh, 3.5rem) clamp(var(--space-lg), 3vw, 3rem);
}

/* The actual image card */
.service-tile__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 104vh;
  border-radius: 18px;
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Per-service crop */
.service-spotlight--tree .service-tile__image       { object-position: center 40%; }
.service-spotlight--residential .service-tile__image { object-position: center 50%; }
.service-spotlight--roots .service-tile__image       { object-position: center 55%; }
.service-spotlight--shrub .service-tile__image       { object-position: center 50%; }
.service-spotlight--tight .service-tile__image       { object-position: center 45%; }
.service-spotlight--large .service-tile__image       { object-position: center 38%; }
.service-spotlight--commercial .service-tile__image  { object-position: center 45%; }
.service-spotlight--multiple .service-tile__image    { object-position: center 20%; }

/* Aspect ratio variety */
.service-spotlight--residential .service-tile__image,
.service-spotlight--shrub .service-tile__image {
  aspect-ratio: 4 / 3;
}

.service-spotlight--roots .service-tile__image,
.service-spotlight--multiple .service-tile__image {
  aspect-ratio: 3 / 2;
}

.service-spotlight--commercial .service-tile__image {
  aspect-ratio: 21 / 9;
  max-height: 60vh;
}

/* ── iPad breakpoint: stack image above text, light styling ── */
@media (max-width: 1080px) and (min-width: 721px) {
  .service-tile,
  .service-tile--flip {
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
    padding-left: 300px;
    background: var(--color-surface);
  }

  .service-tile--flip {
    background: var(--color-bg-subtle);
  }

  .service-tile__image-wrap {
    flex: none;
    width: 100%;
    padding: var(--space-lg) var(--space-lg) var(--space-md);
  }

  .service-tile__image {
    max-height: 80vh;
    width: 92%;
    aspect-ratio: 16 / 9;
  }

  .service-spotlight--residential .service-tile__image,
  .service-spotlight--shrub .service-tile__image {
    aspect-ratio: 16 / 9;
  }

  .service-spotlight--commercial .service-tile__image {
    aspect-ratio: 16 / 9;
    max-height: 80vh;
  }

  .service-tile__body {
    flex: none;
    width: 100%;
    padding: var(--space-md) var(--space-lg) var(--space-xl);
  }

  .service-tile h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
  }

  .service-tile p {
    max-width: 60ch;
    font-size: 1rem;
  }
}

.service-tile h2 {
  color: var(--color-ink);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 var(--space-md);
}

.service-tile p {
  color: var(--color-muted);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.8;
  margin: 0;
  max-width: 42ch;
}


/* Mobile: full-height snapping tiles with dots + title top / desc bottom */
.service-dots {
  display: none;
}

@media (max-width: 720px) {
  /* Scroll snap on the services page body */
  .page-services {
    scroll-snap-type: y mandatory;
  }

  .page-services .site-header {
    /* Keep header above snap content */
    z-index: 100;
  }

  .services-layout {
    display: block;
  }

  .service-sidenav {
    display: none;
  }

  /* Progress dots — fixed just below the header */
  .service-dots {
    display: flex;
    position: fixed;
    top: calc(var(--header-bar-height) + 0.85rem);
    left: 0;
    right: 0;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 50;
  }

  .service-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(28, 25, 23, 0.2);
    transition: width 0.3s ease, background 0.3s ease;
    cursor: pointer;
  }

  .service-dot.is-active {
    width: 26px;
    background: var(--color-purple-mid);
  }

  .service-dot:hover {
    background: rgba(28, 25, 23, 0.4);
  }

  /* Full-height snapping tiles on mobile — stack like tablet, light theme */
  .service-tile,
  .service-tile--flip {
    height: auto;
    min-height: calc(100dvh - var(--header-bar-height));
    scroll-snap-align: start;
    flex-direction: column;
    padding-left: 0;
    background: var(--color-surface);
  }

  .service-tile--flip {
    background: var(--color-bg-subtle);
  }

  .service-tile--bleed .service-tile__image-wrap,
  .service-tile--flip.service-tile--bleed .service-tile__image-wrap {
    padding: var(--space-lg) var(--space-md) var(--space-md);
  }

  .service-tile--bleed .service-tile__image,
  .service-tile--flip.service-tile--bleed .service-tile__image {
    border-radius: 18px;
  }

  .service-tile__image-wrap {
    flex: none;
    width: 100%;
    padding: var(--space-lg) var(--space-md) var(--space-md);
  }

  .service-tile__image {
    width: 100%;
    height: auto;
    max-height: 55vh;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    box-shadow:
      0 24px 72px rgba(0, 0, 0, 0.2),
      0 8px 24px rgba(0, 0, 0, 0.12);
    object-fit: cover;
  }

  .service-tile__body {
    flex: none;
    width: 100%;
    padding: var(--space-xl) var(--space-md) var(--space-xl);
  }

  .service-tile h2 {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
    margin: 0 0 var(--space-sm);
  }

  .service-tile p {
    font-size: 0.95rem;
    max-width: none;
  }
}

/* Form */
.form-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-edge);
}

.form-note {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0 0 var(--space-md);
}

fieldset.field {
  border: 0;
  padding: 0;
  margin: 0 0 var(--space-md);
  min-width: 0;
}

fieldset.field legend {
  padding: 0;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  color: var(--color-bark);
}

.field {
  margin-bottom: var(--space-md);
}

.form-note code {
  font-size: 0.88em;
  background: var(--color-bg-subtle);
  color: var(--color-bark);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
  color: var(--color-bark);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-ring);
  border-radius: 8px;
  font: inherit;
  background: var(--color-surface);
  color: var(--color-ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--color-purple-mid);
  outline-offset: 1px;
  border-color: var(--color-purple-mid);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: var(--space-xs);
}

.field .field-error {
  display: none;
  font-size: 0.85rem;
  color: #c0392b;
  margin: 0.35rem 0 0;
  font-weight: 500;
}

.field .field-error.is-visible {
  display: block;
  color: #c0392b;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #c0392b;
}

.measure-guide {
  display: block;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  border: 1px solid var(--color-edge);
  margin: var(--space-sm) 0;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.radio-group label {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.radio-group input {
  width: auto;
  accent-color: var(--color-purple-mid);
}

.form-actions {
  margin-top: var(--space-lg);
}

.btn--text-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-sm);
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Footer */
.site-footer {
  background: var(--color-bg-subtle);
  color: var(--color-muted);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  font-size: 0.9rem;
  margin-top: auto;
  border-top: 1px solid var(--color-edge);
}

.site-footer__inner {
  max-width: var(--nav-max);
  margin: 0 auto;
}

.site-footer__name {
  margin: 0 0 var(--space-xs);
  font-weight: 600;
  color: var(--color-ink);
}

.site-footer__contact {
  margin: 0 0 var(--space-xs);
}

.site-footer__area {
  margin: 0 0 var(--space-sm);
  font-size: 0.85rem;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--color-purple-deep);
}

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

/* FAQ accordion */
.faq-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-edge);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-edge);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 1.02rem;
  text-align: left;
  padding: var(--space-md) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.faq-question:hover {
  color: var(--color-purple-mid);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-purple-mid);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-chevron {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: var(--color-muted);
  transition: transform 0.2s ease;
}

.faq-item--open .faq-chevron {
  transform: rotate(180deg);
}

.faq-item--open .faq-question {
  color: var(--color-purple-mid);
}

.faq-answer {
  padding: 0 0 var(--space-md);
}

.faq-answer p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.faq-cta {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-edge);
  text-align: center;
}

.faq-cta p {
  margin: 0 0 var(--space-md);
  color: var(--color-muted);
  font-size: 1.05rem;
}
