/* ==========================================================================
   PropertyWise Inspections Stylesheet
   Design system: tokens -> base -> layout -> components -> sections -> utils

   IMPORTANT: this file is linked with a ?v= version query string in every
   HTML page (e.g. assets/styles.css?v=20260717). When editing this file,
   bump that version number in index.html, services.html, and about.html
   (search for "styles.css?v=") so browsers and Cloudflare's cache fetch
   the new version instead of serving a stale cached copy. See README.md
   under "Cache busting" for details.
   ========================================================================== */

/* -------------------------------- Fonts -------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

/* ------------------------------- Tokens --------------------------------- */
:root{
  /* Color */
  --ink:        #16202E;   /* primary dark — nav, headings on light */
  --ink-soft:   #2A3848;   /* lighter dark panel */
  --paper:      #FAF8F4;   /* warm off-white background */
  --paper-dim:  #F1EDE4;   /* secondary surface, warm grey */
  --ember:      #C8642A;   /* primary CTA — burnt clay */
  --ember-dark: #A8501F;   /* hover state */
  --sage:       #6E8068;   /* trust / certified accent, muted olive-sage */
  --sage-light: #E8EDE5;
  --slate:      #5B6470;   /* secondary text */
  --slate-dim:  #8A93A0;
  --hairline:   #E4DFD6;   /* borders, dividers on paper */
  --hairline-dark: #34404F;/* borders on dark panels */
  --white:      #FFFFFF;
  --gold:       #B68A4E;   /* small accent for badges/stars */

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scale */
  --step-1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-2: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --step-3: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --step-4: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem);
  --step-5: clamp(2.75rem, 2rem + 3vw, 4.5rem);

  /* Spacing */
  --space-section: clamp(4.5rem, 4rem + 3vw, 8rem);
  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------- 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.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

body{
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ember); color: var(--white); }

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

/* ------------------------------ Typography ------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: var(--step-5); line-height: 1.04; font-weight: 600; }
h2 { font-size: var(--step-4); line-height: 1.1; }
h3 { font-size: var(--step-2); line-height: 1.25; }
p  { color: var(--slate); }

.eyebrow{
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before{
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--ember);
  display: inline-block;
}

.section-head{
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.section-head h2 { margin-top: 0.85rem; }
.section-head p { margin-top: 1rem; font-size: var(--step-0); }
.section-head.centered{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head.centered .eyebrow::before{ display:none; }

/* -------------------------------- Layout --------------------------------- */
.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section{ padding-block: var(--space-section); }
.section--tight{ padding-block: clamp(3rem, 3rem + 2vw, 5rem); }
.section--dark{ background: var(--ink); color: var(--paper); }
.section--dark p { color: var(--slate-dim); }
.section--dark h2, .section--dark h3 { color: var(--paper); }
.section--alt{ background: var(--paper-dim); }

.grid{ display: grid; gap: clamp(1.5rem, 2vw, 2.5rem); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

/* Services grid: auto-fits 1–3+ cards without leaving a lopsided gap.
   Stays balanced as more services are added to the SERVICES array later. */
.services-grid{
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 760px;
}
.services-grid:has(.service-card:nth-child(3)){ max-width: none; }

/* -------------------------------- Buttons -------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn svg{ width: 17px; height: 17px; flex-shrink: 0; }

.btn--primary{
  background: var(--ember);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(168,80,31,.15), 0 8px 20px -8px rgba(200,100,42,.55);
}
.btn--primary:hover{ background: var(--ember-dark); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(200,100,42,.65); }
.btn--primary:active{ transform: translateY(0); }

.btn--ghost-dark{
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}
.btn--ghost-dark:hover{ border-color: var(--white); background: rgba(255,255,255,.08); transform: translateY(-2px); }

.btn--ghost-light{
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost-light:hover{ background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.btn--block{ width: 100%; }
.btn--sm{ padding: 0.7rem 1.3rem; font-size: 0.875rem; }

.cta-row{ display: flex; gap: 0.85rem; flex-wrap: wrap; align-items: center; }

/* ============================== HEADER / NAV ============================= */
.topbar{
  background: var(--ink);
  color: var(--slate-dim);
  font-size: 0.8125rem;
}
.topbar .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.5rem;
}
.topbar-info{ display: flex; gap: 1.5rem; align-items: center; }
.topbar-info a:hover{ color: var(--paper); }
.topbar-badges{ display: flex; gap: 1.25rem; align-items: center; color: var(--slate-dim); }
.topbar-badges span{ display:inline-flex; align-items:center; gap:.4rem; }
.topbar-badges svg{ width: 14px; height: 14px; color: var(--sage); }

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled{ box-shadow: 0 8px 24px -16px rgba(22,32,46,.18); }

.nav{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.95rem;
  gap: 2rem;
}
.brand-logo{
  height: 44px;
  width: auto;
  display: block;
  /* SVG has a dark background — make it transparent on the nav's light glass bg */
}
.brand-logo--footer{
  height: 52px;
}

/* Keep .brand link styles working with the image */
.brand{
  display: flex;
  align-items: center;
  flex-shrink: 0;
}


.nav-links{
  display: flex;
  align-items: center;
  gap: 2.1rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a{
  position: relative;
  padding-block: 0.3rem;
  color: var(--ink-soft);
}
.nav-links a::after{
  content:'';
  position:absolute; left:0; right:0; bottom:-2px;
  height: 1.5px; background: var(--ember);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after{ transform: scaleX(1); }
.nav-links .has-dropdown{ position: relative; }
.dropdown{
  position: absolute; top: calc(100% + 1.1rem); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px -20px rgba(22,32,46,.25);
  padding: 0.6rem;
  min-width: 248px;
  opacity: 0; visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown{
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown a{
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.dropdown a::after{ display: none; }
.dropdown a:hover{ background: var(--paper-dim); color: var(--ink); }
.dropdown a svg{ width: 16px; height: 16px; color: var(--ember); flex-shrink: 0; }

.nav-cta{ display: flex; align-items: center; gap: 0.7rem; }
.btn-label-short{ display: none; }
.nav-phone{
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.9rem; color: var(--ink);
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--hairline);
  border-radius: 999px;
  transition: border-color .25s, background .25s;
}
.nav-phone:hover{ border-color: var(--ink); background: var(--white); }
.nav-phone svg{ width: 16px; height: 16px; color: var(--ember); }

.nav-toggle{ display: none; }

/* ================================= HERO ================================== */
.hero{
  position: relative;
  background: var(--ink);
  overflow: hidden;
  padding-top: clamp(3.5rem, 4vw, 5.5rem);
  padding-bottom: clamp(4rem, 6vw, 6.5rem);
}
.hero::before{
  /* subtle architectural grid texture, evokes blueprint/structure */
  content:'';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 75%);
  pointer-events: none;
}
.hero::after{
  content:'';
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 90%;
  background: radial-gradient(circle, rgba(200,100,42,.16), transparent 65%);
  pointer-events: none;
}
.hero .container{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.hero .container.hero-container--centered{
  grid-template-columns: 1fr;
  max-width: 760px;
  text-align: center;
}
.hero-container--centered .hero-cta{ justify-content: center; }
.hero-container--centered .hero-trust{ justify-content: center; }
.hero-container--centered .hero-sub{ margin-inline: auto; }
.hero-container--centered .hero-discount{ display: flex; justify-content: center; }
.hero-eyebrow{
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.hero-eyebrow svg{ width: 16px; height:16px; }
.hero h1{ color: var(--paper); }
.hero h1 em{
  font-style: italic;
  color: var(--ember);
  font-weight: 500;
}
.hero-sub{
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--slate-dim);
  max-width: 540px;
}
.hero-cta{ margin-top: 2.25rem; }
.hero-discount{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: 0.875rem;
  color: rgba(255,255,255,.9);
  line-height: 1.3;
}
.hero-discount svg{ width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.hero-discount strong{ color: var(--gold); font-weight: 700; }
.hero-trust{
  margin-top: 2.75rem;
  display: flex; flex-wrap: wrap; gap: 1.75rem 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline-dark);
}
.hero-trust-item{ display: flex; align-items: center; gap: 0.65rem; }
.hero-trust-item svg{ width: 22px; height: 22px; color: var(--sage); flex-shrink:0; }
.hero-trust-item div{ font-size: 0.8125rem; color: var(--slate-dim); line-height: 1.3; }
.hero-trust-item strong{ display:block; color: var(--paper); font-size: 0.9375rem; font-family: var(--font-display); font-weight:600; }

/* (Hero signature "Field Report" element removed per client request) */

/* ============================ STATS BAND ============================ */
.stats-band{
  background: var(--ink-soft);
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
}
.stats-band .grid-4{ padding-block: clamp(2.25rem, 3vw, 3rem); }
.stat{ text-align: center; }
.stat-num{
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}
.stat-num span{ color: var(--ember); }
.stat-label{
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--slate-dim);
  letter-spacing: .03em;
}

/* ============================ DISCOUNT BANNER ============================ */
.discount-banner{
  background: var(--ember);
  padding-block: 1.1rem;
}
.discount-banner-inner{
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.discount-badge{
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(0,0,0,.15);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.discount-copy{
  flex: 1;
  min-width: 200px;
}
.discount-copy strong{
  display: block;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 700;
}
.discount-copy span{
  color: rgba(255,255,255,.85);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.discount-banner .btn--primary{
  background: var(--white);
  color: var(--ember);
  box-shadow: none;
  flex-shrink: 0;
}
.discount-banner .btn--primary:hover{
  background: var(--paper-dim);
  transform: translateY(-2px);
}

@media (max-width: 640px){
  .discount-banner-inner{ gap: 1rem; }
  .discount-badge{ font-size: 1.25rem; }
  .discount-banner .btn--primary{ width: 100%; }
}

/* ============================ SERVICES ============================ */
.service-card{
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -28px rgba(22,32,46,.22);
  border-color: transparent;
}
.service-icon{
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--paper-dim);
  display: grid; place-items: center;
  margin-bottom: 1.4rem;
  transition: background .35s var(--ease);
}
.service-card:hover .service-icon{ background: var(--ember); }
.service-icon svg{ width: 26px; height: 26px; color: var(--ember); transition: color .35s var(--ease); }
.service-card:hover .service-icon svg{ color: var(--white); }
.service-card h3{ margin-bottom: 0.6rem; }
.service-card p{ font-size: 0.9375rem; flex-grow: 1; }
.service-tag{
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-light);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  width: fit-content;
}
.service-link{
  margin-top: 1.4rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: 0.875rem; color: var(--ink);
}
.service-link svg{ width: 15px; height: 15px; transition: transform .25s var(--ease); }
.service-card:hover .service-link svg{ transform: translateX(4px); }

.services-footer-cta{
  margin-top: clamp(2.5rem, 3vw, 3.5rem);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: var(--ink);
  border-radius: var(--radius-lg);
  color: var(--paper);
}
.services-footer-cta p{ color: var(--slate-dim); margin-top: 0.3rem; }

/* ============================ PROCESS ============================ */
.process-list{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
  position: relative;
}
.process-step{
  position: relative;
  padding: 0 1.5rem 0 0;
}
.process-step:not(:last-child)::after{
  content:'';
  position: absolute;
  top: 26px; left: 60px; right: -10px;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--hairline) 0 6px, transparent 6px 12px);
}
.process-num{
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  position: relative; z-index: 2;
}
.process-step h3{ font-size: 1.1875rem; margin-bottom: 0.5rem; }
.process-step p{ font-size: 0.9rem; }

/* ============================ TRUST WALL ============================ */
.trust-wall{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: center;
}
.trust-badge{
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  text-align: center;
  color: var(--slate-dim);
  opacity: .85;
  transition: opacity .3s;
}
.trust-badge:hover{ opacity: 1; }
.trust-badge svg{ width: 34px; height: 34px; color: var(--ember); }
.trust-badge span{ font-size: 0.75rem; font-weight: 600; letter-spacing: .03em; line-height:1.3; }

/* ============================ TESTIMONIALS ============================ */
.testimonial-track-wrap{ overflow: hidden; margin-inline: calc(clamp(1.25rem, 4vw, 2.5rem) * -1); padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.testimonial-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card{
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.stars{ display: flex; gap: 0.2rem; margin-bottom: 1.1rem; }
.stars svg{ width: 16px; height: 16px; color: var(--gold); }
.testimonial-card p.quote{
  color: var(--ink-soft);
  font-size: 0.9375rem;
  flex-grow: 1;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 400;
}
.testimonial-foot{
  display: flex; align-items: center; gap: 0.85rem;
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
}
.avatar{
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--paper-dim);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  flex-shrink: 0;
}
.testimonial-foot .name{ font-weight: 600; font-size: 0.875rem; color: var(--ink); }
.testimonial-foot .role{ font-size: 0.8125rem; color: var(--slate-dim); }
.testimonial-foot svg.platform{ width: 18px; height: 18px; margin-left: auto; color: var(--slate-dim); flex-shrink: 0; }

/* ============================ AREAS SERVED ============================ */
.areas-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem 1.5rem;
}
.areas-grid a{
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.9375rem; color: var(--slate);
  padding: 0.4rem 0;
  transition: color .2s;
}
.areas-grid a:hover{ color: var(--ember); }
.areas-grid svg{ width: 14px; height: 14px; color: var(--sage); flex-shrink: 0; }

/* "Communities We Serve" beneath the county grid, shown as a clean,
   evenly wrapped set of tags rather than a dense sentence or bullet
   list. Spans the full section width to match the county grid above it
   instead of capping out and looking off-center. A hidden natural-
   language sentence (.sr-only) covers SEO/accessibility without
   affecting what visitors see. Deliberately quiet in color and size so
   it supports the counties above rather than competing with them. */
.areas-communities{
  margin-top: clamp(1.75rem, 2vw, 2.25rem);
  padding-top: clamp(1.5rem, 2vw, 1.75rem);
  border-top: 1px solid var(--hairline);
}
.areas-communities-label{
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate-dim);
  margin-bottom: 1rem;
}
.areas-communities-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.areas-communities-tags li{
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--paper-dim);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.areas-communities-tags li:hover{
  background: var(--sage-light);
  border-color: var(--sage);
  color: var(--ink);
}
.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================ FAQ ============================ */
.faq-list{ max-width: 780px; margin-inline: auto; }
.faq-item{
  border-bottom: 1px solid var(--hairline);
}
.faq-q{
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  background: none; border: none; text-align: left;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-icon{
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--hairline);
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.faq-icon::before, .faq-icon::after{
  content:'';
  position: absolute;
  background: var(--ink);
  transition: background .3s, transform .3s var(--ease);
}
.faq-icon::before{ width: 11px; height: 1.5px; }
.faq-icon::after{ width: 1.5px; height: 11px; }
.faq-item.is-open .faq-icon{ background: var(--ember); border-color: var(--ember); transform: rotate(180deg); }
.faq-item.is-open .faq-icon::after{ transform: scaleY(0); }
.faq-item.is-open .faq-icon::before, .faq-item.is-open .faq-icon::after{ background: var(--white); }
.faq-a{
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}
.faq-a-inner{ padding-bottom: 1.5rem; padding-right: 3rem; }
.faq-a-inner p{ font-size: 0.9375rem; }
.faq-a-inner a{ color: var(--ember); text-decoration: underline; text-underline-offset: 2px; }
.faq-a-inner a:hover{ color: var(--ember-dark); }

/* ============================ FINAL CTA (BOOKING) ============================ */
.booking{
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.booking::before{
  content:'';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 30% 50%, black, transparent 70%);
}
.booking .container{
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.booking-copy h2{ color: var(--paper); }
.booking-copy p{ margin-top: 1.25rem; max-width: 480px; }
.booking-points{ margin-top: 2rem; display: flex; flex-direction: column; gap: 0.85rem; }
.booking-points li{ display: flex; align-items: center; gap: 0.75rem; color: var(--slate-dim); font-size: 0.9375rem; }
.booking-points svg{ width: 19px; height: 19px; color: var(--sage); flex-shrink: 0; }
.booking-cta{ margin-top: 2.25rem; }

.booking-form{
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
}
.booking-form h3{ margin-bottom: 0.4rem; }
.booking-form > p{ font-size: 0.875rem; margin-bottom: 1.5rem; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field{ margin-bottom: 1rem; }
.field label{ display: block; font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea{
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.9375rem;
  color: var(--ink);
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--ember);
}
.field textarea{ resize: vertical; min-height: 90px; }
.form-disclaimer{ font-size: 0.75rem; color: var(--slate-dim); margin-top: 0.9rem; text-align: center; }

/* ============================ FOOTER ============================ */
.site-footer{
  background: var(--ink);
  color: var(--slate-dim);
  padding-top: clamp(3.5rem, 5vw, 5rem);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--hairline-dark);
}
.footer-brand .brand{ color: var(--paper); margin-bottom: 1rem; }
.footer-brand .brand-mark{ background: var(--ember); }
.footer-brand .brand-mark svg{ color: var(--ink); }
.footer-brand .brand-name span{ color: var(--slate-dim); }
.footer-brand p{ font-size: 0.9rem; max-width: 280px; margin-bottom: 1.5rem; }
.footer-social{ display: flex; gap: 0.7rem; }
.footer-social a{
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--hairline-dark);
  display: grid; place-items: center;
  transition: background .25s, border-color .25s;
}
.footer-social a:hover{ background: var(--ember); border-color: var(--ember); }
.footer-social svg{ width: 16px; height: 16px; }

.footer-col h4{
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a{ font-size: 0.9rem; transition: color .2s; }
.footer-col a:hover{ color: var(--paper); }
.footer-col .contact-line{ display: flex; align-items: flex-start; gap: 0.6rem; }
.footer-col .contact-line svg{ width: 16px; height: 16px; color: var(--ember); margin-top: 2px; flex-shrink: 0; }

.footer-bottom{
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  padding-block: 1.75rem;
  font-size: 0.8125rem;
}
.footer-bottom-links{ display: flex; gap: 1.5rem; }
.footer-bottom-links a:hover{ color: var(--paper); }

/* ============================ STICKY MOBILE CTA ============================ */
.mobile-sticky-cta{
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--white);
  border-top: 1px solid var(--hairline);
  padding: 0.7rem clamp(1rem, 4vw, 1.5rem);
  box-shadow: 0 -10px 30px -16px rgba(22,32,46,.25);
}
.mobile-sticky-cta .cta-row{ flex-wrap: nowrap; }
.mobile-sticky-cta .btn{ flex: 1; }

/* ============================ REVEAL ANIMATION ============================ */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ================================================================
   RESPONSIVE
   Breakpoints: 1024px (tablet/nav collapse), 640px (phone)
   ================================================================ */

/* ---- Tablet and below: collapse nav, stack two-column layouts ---- */
@media (max-width: 1024px){
  .nav-links{ display: none; }
  .nav-toggle{
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border: 1.5px solid var(--hairline);
    border-radius: 8px;
    background: var(--white);
    flex-shrink: 0;
  }
  .nav-toggle svg{ width: 18px; height: 18px; }
  .nav-links.is-open-mobile{
    display: flex !important;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 16px 32px -20px rgba(22,32,46,.25);
    padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem) 1rem;
  }
  .nav-links.is-open-mobile li{ width: 100%; }
  .nav-links.is-open-mobile a{ display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--hairline); }
  .nav-links.is-open-mobile li:last-child a{ border-bottom: none; }
  .nav-links.is-open-mobile .dropdown{
    position: static;
    transform: none;
    opacity: 1; visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0 0 0.5rem 0.75rem;
    display: none;
  }
  .nav-links.is-open-mobile .has-dropdown.is-expanded .dropdown{ display: block; }

  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .trust-wall{ grid-template-columns: repeat(2, 1fr); }
  .process-list{ grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .process-step:not(:last-child)::after{ display: none; }
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .footer-brand{ grid-column: 1 / -1; }
  .booking .container{ grid-template-columns: 1fr; }
  .areas-grid{ grid-template-columns: repeat(3, 1fr); }
  .service-detail{ grid-template-columns: 56px 1fr; }
}

/* ---- Phone: single-column everything, larger tap targets ---- */
@media (max-width: 640px){
  html{ font-size: 15px; }

  .topbar-badges{ display: none; }
  .topbar .container{ justify-content: center; }
  .topbar-info{ gap: 1rem; font-size: 0.75rem; }

  .nav{ padding-block: 0.75rem; }
  .brand{ font-size: 1.0625rem; }
  .brand-mark{ width: 34px; height: 34px; }
  .nav-cta{ gap: 0.5rem; }
  .nav-phone{ display: none; } /* phone number lives in the topbar + sticky bar on mobile */
  .nav-cta .btn--primary{ padding: 0.7rem 1.1rem; font-size: 0.8125rem; }
  .nav-cta .btn--primary .btn-label-full{ display: none; }
  .nav-cta .btn--primary .btn-label-short{ display: inline; }

  .container{ padding-inline: 1.25rem; }
  .section{ padding-block: clamp(3rem, 10vw, 4rem); }
  .section--tight{ padding-block: clamp(2.25rem, 8vw, 3rem); }

  h1{ font-size: clamp(2rem, 1.6rem + 4vw, 2.5rem); }
  h2{ font-size: clamp(1.625rem, 1.4rem + 2vw, 2rem); }

  .hero{ padding-top: 2rem; padding-bottom: 3rem; }
  .hero-eyebrow{ font-size: 0.75rem; }
  .hero-cta{ flex-direction: column; align-items: stretch; }
  .hero-cta .btn{ width: 100%; }
  .hero-trust{ flex-direction: column; align-items: flex-start; gap: 1.1rem; }

  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-4{ grid-template-columns: 1fr 1fr; }

  .brand-logo{ height: 36px; }
  .brand-logo--footer{ height: 44px; }
  .trust-badge svg{ width: 28px; height: 28px; }
  .trust-badge span{ font-size: 0.6875rem; }

  .process-list{ grid-template-columns: 1fr; gap: 2rem; }

  .areas-grid{ grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; }
  .areas-communities-tags{ gap: 0.45rem; }
  .areas-communities-tags li{ font-size: 0.75rem; padding: 0.35rem 0.7rem; }

  .form-row{ grid-template-columns: 1fr; }
  .booking-form{ padding: 1.5rem; }

  .services-footer-cta{ flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .services-footer-cta .btn{ width: 100%; }

  .footer-grid{ grid-template-columns: 1fr; gap: 2.25rem; text-align: left; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  .service-detail{ grid-template-columns: 1fr; gap: 1rem; text-align: left; }
  .service-detail-icon{ width: 52px; height: 52px; }

  .mobile-sticky-cta{ display: block; }
  body{ padding-bottom: 68px; }

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

/* ---- Very small phones ---- */
@media (max-width: 380px){
  .areas-grid{ grid-template-columns: 1fr; }
  .grid-4{ grid-template-columns: 1fr; }
}
