/* ============================================
   Farr Constructions — Custom Styles
   Project-specific styles only (Levels 5+).
   Levels 1–4 must use framework classes.
   Brand: monochromatic (black on warm off-white #F5F4F2). Poppins everywhere.
   ============================================ */

/* ============================================
   BASE TWEAKS
   ============================================ */
html { scroll-behavior: smooth; }

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

a { color: inherit; }


/* ============================================
   REUSABLE — PILL BUTTON
   White pill with black-ringed circular arrow on right.
   Used in hero, home-works, difference, CTA.
   ============================================ */
.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;            /* Figma: ~12px */
  background: var(--color-light);
  color: var(--color-dark);
  border: 1px solid var(--color-dark);
  border-radius: 9999px;
  padding: 0.375rem 0.5rem 0.375rem 1.25rem;
  text-decoration: none;
  font-family: var(--p--font-family);
  font-weight: 500;
  font-size: 0.8125rem;     /* Figma: ~13px */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.pill-button:hover { opacity: 0.85; }
.pill-button:active { transform: translateY(0.0625rem); }

.pill-button_label { white-space: nowrap; }

.pill-button_arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;           /* Figma: ~28px */
  height: 1.75rem;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-light);
  flex-shrink: 0;
}


/* ============================================
   1. NAVIGATION (transparent overlay, black text)
   ============================================ */
.nav_farr {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: transparent;
  padding-top: var(--space-s);
  padding-bottom: var(--space-s);
}

/* Force the wrapper to lay out as logo-left / menu-right on one row */
.nav_farr .navbar_wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-m);
}

.nav_brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-dark);
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.nav_brand-line {
  display: block;
  font-family: var(--h--font-family);
  color: var(--color-dark);
}
.nav_brand-line--lg {
  font-weight: 800;
  font-size: 1.125rem;      /* Figma: ~18px */
}
.nav_brand-line--sm {
  font-weight: 700;
  font-size: 0.625rem;      /* Figma: ~10px */
  letter-spacing: 0.18em;
  margin-top: 0.125rem;
}

.nav_menu {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav_link {
  font-family: var(--p--font-family);
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: opacity 0.2s ease;
}
.nav_link:hover { opacity: 0.65; }

.nav_caret {
  font-size: 0.75rem;
  line-height: 1;
  margin-top: 0.125rem;
}

/* Dropdown trigger — relative parent for the absolute-positioned menu */
.nav_item--dropdown {
  position: relative;
}

/* Caret indicator after the trigger label */
.nav_item--dropdown > .nav_link::after {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.4rem;
  border-right: 0.1rem solid currentColor;
  border-bottom: 0.1rem solid currentColor;
  transform: rotate(45deg) translateY(-0.15rem);
  transition: transform 0.2s ease;
}
.nav_item--dropdown.is-active > .nav_link::after,
.nav_item--dropdown:hover > .nav_link::after {
  transform: rotate(-135deg) translateY(-0.05rem);
}

.nav_dropdown {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0.4rem);
  min-width: 14rem;
  background: var(--color-light, #F5F4F2);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 100;
}

/* Show on hover (desktop) AND when JS toggles is-active (click) */
.nav_item--dropdown:hover > .nav_dropdown,
.nav_item--dropdown.is-active > .nav_dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Bridge the gap between trigger and dropdown so the hover doesn't break */
.nav_item--dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.6rem;
}

.nav_dropdown li {
  list-style: none;
  margin: 0;
}
.nav_dropdown .nav_link {
  display: block;
  padding: 0.6rem 1.25rem;
  white-space: nowrap;
  font-size: 0.95rem;
  color: var(--color-dark);
  transition: background 0.15s ease, opacity 0.15s ease;
}
.nav_dropdown .nav_link:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.04);
}

.nav_hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 1.75rem;
  height: 1.5rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}
.nav_hamburger span {
  display: block;
  width: 100%;
  height: 0.125rem;
  background: var(--color-dark);
  border-radius: 0.0625rem;
}


/* ============================================
   2. HERO — full-bleed image, content over left
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;         /* dominate the viewport */
  padding-top: 7rem;        /* tighter to nav so text sits higher in the sky area */
  padding-bottom: 6rem;
}
.hero_bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Shift the visible crop toward the top-left of the photo
     so more sky shows behind the text (less white-wall on the right). */
  object-position: 65% 35%;
  z-index: 0;
}
.hero_inner {
  position: relative;
  z-index: 1;
}
.hero_content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-s);
  max-width: 46rem;            /* room for indented l2 + button beside it */
}
.hero_headline {
  margin: 0;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  line-height: 1;
  /* Override heading-xxl (max 67px) — Figma headline is larger here */
  font-size: clamp(2.75rem, 6.5vw, 5rem);   /* ~44–80px */
  font-weight: 400;            /* Regular */
}
.hero_headline-l1,
.hero_headline-l2 {
  display: block;
}
.hero_headline-l2 {
  /* Indent so the GET A QUOTE button can sit beside it */
  padding-left: clamp(8rem, 16vw, 13rem);
}
.hero_cta {
  align-self: flex-start;
  /* Pull up so the button is vertically centered within the second headline line.
     = -(line-height) - gap + half(line-height - button-height)
     Button is ~2.5rem tall, so the half-diff is ~(line - 2.5)/2. */
  margin-top: calc(-1 * clamp(2.75rem, 6.5vw, 5rem) - var(--space-s) + clamp(0.125rem, 1.5vw, 1.25rem));
  position: relative;
  z-index: 2;
}
.hero_subtext {
  margin: 0;
  margin-top: var(--space-xxs);   /* tight to the headline cluster */
  max-width: 22rem;
  color: var(--color-dark);
}


/* ============================================
   3. TRUST STRIP — floating card overlapping hero/section-4 boundary
   ============================================ */
.trust {
  position: relative;
  z-index: 5;
  margin-top: -3rem;        /* lift card up over hero */
  padding-bottom: var(--space-l);
}
.trust_card {
  background: var(--color-light);
  border-radius: 1.25rem;
  padding: var(--space-s) var(--space-l);
  box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-m);
  flex-wrap: wrap;
}
.trust_logo {
  max-height: clamp(1.75rem, 6vw, 3.5rem);
  max-width: 100%;
  width: auto;
  object-fit: contain;
  /* NOTE: these JPGs have a black canvas (JPG can't store transparency).
     There is no reliable CSS-only fix — re-export from Figma as transparent PNG.
     Until then, they will display as dark tiles. */
}


/* ============================================
   4. A HOME THAT WORKS — text left (container-aligned), images right (full-bleed)
   ============================================ */
.home-works {
  overflow: hidden;
}
.home-works_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: stretch;     /* right col matches text col height */
}
.home-works_text {
  display: flex;
  flex-direction: column;
  justify-content: center;  /* center text vertically in stretched cell */
}
.home-works_heading {
  margin: 0 0 var(--space-s);
  color: var(--color-dark);
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-weight: 500;          /* less bold per design */
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
}
.home-works_p {
  margin: 0 0 var(--space-xs);   /* tight spacing between paragraphs */
}
.home-works_p:last-of-type { margin-bottom: 0; }
.home-works_cta {
  align-self: flex-start;
  margin-top: var(--space-m);
}

.home-works_images {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  justify-content: center;    /* center the (now-shorter) image stack vertically */
  /* No right padding — flush to viewport edge */
}
.home-works_image {
  width: 100%;
  height: clamp(9rem, 17vw, 14rem);   /* explicit height — between half and full */
  border-radius: 1.25rem;
  object-fit: cover;
}
/* Top image is narrower — ~75% width of the bottom, right-aligned */
.home-works_image:first-child {
  width: 75%;
  align-self: flex-end;
}


/* ============================================
   5. EXPLORE OUR SERVICES — heading + 3 cards left / image right
   ============================================ */
.services_title {
  text-align: center;
  margin-bottom: var(--space-l);
}
.services_title h2 {
  margin: 0;
  color: var(--color-dark);
  letter-spacing: -0.01em;
  font-weight: 500;          /* lighter weight */
}

.services_cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.services_card {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  background: transparent;
  min-height: 16rem;
  /* Heading and body are absolutely positioned for true corner pinning */
}
.services_card-heading {
  position: absolute;
  top: 1.5rem;                     /* tight to top edge */
  right: 1.5rem;                   /* tight to right edge — arrow moved to bottom */
  margin: 0;
  text-align: right;
  color: var(--color-dark);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.services_card-body {
  position: absolute;
  bottom: 1.5rem;                  /* tight to bottom edge */
  left: 1.5rem;
  right: 5rem;                     /* leave room for the arrow on the right */
  margin: 0;
  text-align: left;
  color: var(--color-dark);
  max-width: 22rem;
}
.services_card-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.services_card-arrow:hover { opacity: 0.85; }

.services_feature {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  border-radius: 1.25rem;
  object-fit: cover;
}


/* ============================================
   6. THE FARR DIFFERENCE — mirror of section 4 (images left full-bleed, text right container-aligned)
   ============================================ */
.difference {
  overflow: hidden;
}
.difference_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: stretch;     /* left col matches text col height */
}
.difference_images {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  justify-content: center;    /* center the (now-shorter) image stack vertically */
  /* No left padding — flush to viewport edge */
}
.difference_image {
  width: 100%;
  height: clamp(9rem, 17vw, 14rem);   /* explicit height — between half and full */
  border-radius: 1.25rem;
  object-fit: cover;
}
/* Top image is narrower — ~75% width of the bottom, left-aligned (flush to viewport edge) */
.difference_image:nth-child(1) {
  width: 75%;
  align-self: flex-start;
}
.difference_image:nth-child(2) {
  width: 100%;
  align-self: flex-start;
}

.difference_text {
  display: flex;
  flex-direction: column;
  justify-content: center;  /* center text vertically in stretched cell */
  text-align: right;
  align-items: flex-end;
}
.difference_heading {
  margin: 0 0 var(--space-s);
  color: var(--color-dark);
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-weight: 500;          /* less bold per design */
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
}
.difference_p {
  margin: 0 0 var(--space-xs);   /* tight spacing between paragraphs */
}
.difference_p:last-of-type { margin-bottom: 0; }
.difference_cta {
  align-self: flex-end;
  margin-top: var(--space-m);
}


/* ============================================
   7. TESTIMONIALS — full-bleed carousel (active card centered, prev/next peek)
   ============================================ */
.testimonials {
  /* Override section-l horizontal padding so track can run viewport-edge to viewport-edge */
  padding-left: 0;
  padding-right: 0;
  overflow-x: hidden;       /* clip peek overflow so the page doesn't gain a horizontal scrollbar */
}
.testimonials_title {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-l);
}
.testimonials_title h2 {
  margin: 0;
  color: var(--color-dark);
  font-weight: 500;
  letter-spacing: 0.01em;
  max-width: 26rem;
}
.testimonials_badge {
  height: 2.5rem;
  width: auto;
  /* Same JPG-canvas caveat as .trust_logo — re-export as transparent PNG. */
}

.testimonials_track {
  display: flex;
  gap: var(--space-s);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* 20% side padding lets the first/last cards snap to viewport center;
     bottom margin separates the track from the prev/next controls below. */
  padding: var(--space-xs) 20% var(--space-l);
  scroll-padding-inline: 20%;
  margin-bottom: var(--space-m);
  scrollbar-width: none;
}
.testimonials_track::-webkit-scrollbar { display: none; }

.testimonial_card {
  flex: 0 0 60%;
  scroll-snap-align: center;
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: var(--space-m);
  background: transparent;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}
.testimonial_card--active { opacity: 1; }
.testimonial_card p { margin: 0 0 var(--space-s); }
.testimonial_author {
  margin-top: var(--space-s);
  font-family: var(--p--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
}
.testimonial_meta {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-text-muted, #888);
}
.testimonial_stars {
  color: #F5B400;            /* google reviews gold */
  letter-spacing: 0.15em;
  font-size: 1rem;
}

.testimonials_controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
}
.testimonials_btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--color-dark);
  background: var(--color-light);
  color: var(--color-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.testimonials_btn--next {
  background: var(--color-dark);
  color: var(--color-light);
  border-color: var(--color-dark);
}
.testimonials_btn:hover { opacity: 0.85; }


/* ============================================
   8. CTA SECTION — full-bleed bg + overlay + centered content
   ============================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}
.cta-section_bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cta-section_overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}
.cta-section .container-s {
  position: relative;
  z-index: 2;
}
.cta-section_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-s);
}
.cta-section_heading {
  margin: 0;
  color: var(--color-light);
  font-weight: 500;
  max-width: 32rem;
  line-height: 1.2;        /* override heading-xl's tight 0.9 — more breathing room between lines */
}
/* Underlined variant — used on house-extensions CTA. Underline picks up the teal accent. */
.cta-section_heading--underlined {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.cta-section_subtext {
  margin: 0;
  color: var(--color-light);
  max-width: 26rem;
  opacity: 0.9;
}
.cta-section_buttons {
  display: flex;
  gap: var(--space-s);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: var(--space-xs);
}


/* ============================================
   9. FOOTER — 4 cols (mascot / brand+contact / SERVICES / MENU), cream bg (same as page bg)
   ============================================ */
.footer {
  background: var(--color-light);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

/* Override the framework's flex row inside the footer so columns can be unequal:
   narrow mascot column, wider brand column, then services + menu. */
.footer .row_gap-l {
  display: grid;
  grid-template-columns: auto 1.6fr 1fr 1fr;
  align-items: start;
}
.footer .row_gap-l > [class*="col-1-of-"] { width: auto; }

.footer_brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
}
.footer_mascot {
  width: 100%;
  max-width: 9rem;
  height: auto;
}
.footer_wordmark { margin: 0; }
.footer_blurb {
  margin: 0;
  max-width: 22rem;
  color: var(--color-dark);
}
.footer_contact {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--color-dark);
  font-size: 0.875rem;
  font-weight: 400;
}
.footer_contact:hover { opacity: 0.7; }
.footer_contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.footer_col-heading {
  margin: 0 0 var(--space-s);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-dark);
}
.footer_links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer_links a {
  text-decoration: none;
  color: var(--color-dark);
  font-size: 0.9375rem;
  transition: opacity 0.2s ease;
}
.footer_links a:hover { opacity: 0.6; }


/* ============================================
   RESPONSIVE — Mobile-specific adjustments
   The framework auto-stacks col-1-of-2 / col-1-of-3 at its breakpoints.
   These rules handle layout-specific mobile tweaks beyond the column behavior.
   ============================================ */
/* ============================================
   ABOUT PAGE — sections specific to /about.html
   ============================================ */

/* Solid nav modifier — used on pages without an overlay hero (about, etc.) */
.nav_farr--solid {
  position: static;            /* don't overlay — sit in normal flow above hero */
  background: var(--color-light);
  padding-top: var(--space-s);
  padding-bottom: var(--space-s);
}

/* Active nav link state */
.nav_link--active { font-weight: 600; }

/* --- 2. About hero — full-bleed image + dark overlay, centered title --- */
.about-hero {
  position: relative;
  overflow: hidden;
  background: #8C8C8C;       /* fallback if the image fails to load */
  padding-top: clamp(8rem, 18vw, 14rem);
  padding-bottom: clamp(8rem, 18vw, 14rem);
}
.about-hero_bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.about-hero_overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.4);   /* lighter so figures in the photo read through */
  z-index: 1;
}
.about-hero_inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-hero_title {
  margin: 0;
  color: #FFFFFF;
  font-family: var(--h--font-family);
  font-weight: 500;            /* lighter — matches Figma weight */
  letter-spacing: -0.01em;
  line-height: 1;
  font-size: clamp(2.75rem, 7vw, 5rem);
  text-align: center;
}

/* --- 4. Meet Tomas — text left / portrait right --- */
.meet-tomas {
  background: var(--color-light);
}
.meet-tomas_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.meet-tomas_text {
  display: flex;
  flex-direction: column;
}
.meet-tomas_heading {
  margin: 0 0 var(--space-m);
  color: var(--color-dark);
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}
.meet-tomas_p {
  margin: 0 0 var(--space-s);
  color: var(--color-dark);
}
.meet-tomas_p:last-of-type { margin-bottom: 0; }
.meet-tomas_cta {
  align-self: flex-start;
  margin-top: var(--space-m);
}
.meet-tomas_image-wrap {
  width: 100%;
}
.meet-tomas_image {
  width: 100%;
  height: clamp(20rem, 36vw, 32rem);
  border-radius: 1.25rem;
  object-fit: cover;
}

/* --- 5. Why families trust us — cream panel, 4 columns w/ vertical dividers --- */
.why-trust {
  background: #ECEAE6;            /* slightly warmer/darker than page bg */
}
.why-trust_title {
  text-align: center;
  margin-bottom: var(--space-l);
}
.why-trust_heading {
  margin: 0;
  color: var(--color-dark);
  font-family: var(--h--font-family);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}
.why-trust_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.why-trust_col {
  padding: 0 var(--space-m);
  border-left: 1px solid var(--color-divider);
}
.why-trust_col:first-child { border-left: 0; padding-left: 0; }
.why-trust_col:last-child  { padding-right: 0; }
.why-trust_col-heading {
  margin: 0 0 var(--space-s);
  font-family: var(--h--font-family);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.25;
  color: var(--color-dark);
  max-width: 9rem;
}
.why-trust_col-body {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-dark);
}

/* --- 6. We build for the way you live — image left / text right --- */
.build-for-life {
  background: var(--color-light);
}
.build-for-life_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.build-for-life_image-wrap { width: 100%; }
.build-for-life_image {
  width: 100%;
  height: clamp(20rem, 36vw, 32rem);
  border-radius: 1.25rem;
  object-fit: cover;
}
.build-for-life_text {
  display: flex;
  flex-direction: column;
}
.build-for-life_heading {
  margin: 0 0 var(--space-m);
  color: var(--color-dark);
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  max-width: 22rem;
}
.build-for-life_p {
  margin: 0 0 var(--space-s);
  color: var(--color-dark);
}
.build-for-life_p:last-of-type { margin-bottom: 0; }
.build-for-life_cta {
  align-self: flex-start;
  margin-top: var(--space-m);
}

/* --- 7. Where we service — checklist card left / map right --- */
.service-area {
  background: #ECEAE6;            /* same cream as why-trust */
}
.service-area_title {
  text-align: center;
  margin-bottom: var(--space-l);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}
.service-area_heading {
  margin: 0;
  font-family: var(--h--font-family);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-dark);
}
.service-area_subtext {
  margin: 0;
  max-width: 30rem;
  color: var(--color-dark);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.service-area_grid {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) 1fr;
  gap: var(--space-l);
  align-items: stretch;
}

.service-area_card {
  background: transparent;
  border: 1px solid var(--color-dark);
  border-radius: 0.875rem;
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}
.service-area_card-heading {
  margin: 0;
  font-family: var(--h--font-family);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.25;
  color: var(--color-dark);
  max-width: 12rem;
}
.service-area_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.service-area_item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.9375rem;
  color: var(--color-dark);
}
.service-area_check {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.service-area_divider {
  margin: var(--space-xs) 0;
  border: 0;
  border-top: 1px solid var(--color-primary-30);
}
.service-area_card-footer {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-dark);
}
.service-area_cta { align-self: flex-start; }

.service-area_map {
  border-radius: 0.875rem;
  overflow: hidden;
  min-height: 22rem;
  border: 1px solid var(--color-primary-30);
}
.service-area_map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 22rem;
  border: 0;
}


/* ============================================
   SERVICES PAGE — sections specific to /services.html
   ============================================ */

/* --- 2. Services hero — same anatomy as about-hero, lighter overlay so the bathroom photo reads through. --- */
.services-hero_overlay { background: rgba(20, 20, 20, 0.25); }

/* --- Service blocks — alternating image/text rows.
   Two layout modifiers (--images-left / --images-right) plus a --variant flag
   that flips the top/bottom image widths so the three blocks read with rhythm. --- */
.service-block {
  overflow: hidden;
}
.service-block_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.service-block_text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* When images are LEFT, text sits in the right column: right-aligned */
.service-block--images-left .service-block_text {
  text-align: right;
  align-items: flex-end;
}
.service-block--images-left .service-block_p {
  /* max-width still applies, but the paragraph hugs the right edge of its column */
  margin-left: auto;
}
/* When images are RIGHT, text sits in the left column */
.service-block--images-right .service-block_text {
  align-items: flex-start;   /* stop the pill button from stretching to full column width */
}

.service-block_heading {
  margin: 0 0 var(--space-s);
  color: var(--color-dark);
  font-family: var(--h--font-family);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}
.service-block_p {
  margin: 0;
  color: var(--color-dark);
  max-width: 28rem;
}
.service-block_cta {
  margin-top: var(--space-m);
  /* alignment is inherited from .service-block_text's align-items
     (flex-end on images-left blocks, flex-start on images-right blocks) */
}

.service-block_images {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  justify-content: center;
}
.service-block_image {
  width: 100%;
  height: clamp(9rem, 17vw, 14rem);
  object-fit: cover;
  background: #D9D9D9;
}

.service-block_images--left .service-block_image,
.service-block_images--right .service-block_image {
  border-radius: 1.25rem;
}

/* Default rhythm (HOME RENOVATIONS, HOUSE EXTENSIONS): top narrow, bottom wide */
.service-block_image--top-narrow {
  width: 75%;
}
.service-block_image--bottom-wide {
  width: 100%;
}
/* Variant rhythm (OTHER SERVICES): top wide, bottom narrow */
.service-block_image--top-wide {
  width: 100%;
}
.service-block_image--bottom-narrow {
  width: 75%;
}

/* Anchor the narrow image to the same edge as the wide one so the stack stays flush */
.service-block_images--left .service-block_image--top-narrow,
.service-block_images--left .service-block_image--bottom-narrow {
  align-self: flex-start;   /* flush to LEFT viewport edge */
}
.service-block_images--right .service-block_image--top-narrow,
.service-block_images--right .service-block_image--bottom-narrow {
  align-self: flex-end;     /* flush to RIGHT viewport edge */
}


/* ============================================
   HOME RENOVATIONS PAGE — sections specific to /home-renovations.html
   ============================================ */

/* --- 4. Problem split — text left (container-aligned), images right (flush to viewport edge) ---
   Mirrors home-works anatomy but with two equal-width stacked images and a tighter heading. */
.problem {
  padding-top: clamp(6rem, 11vw, 10rem);
  padding-bottom: clamp(6rem, 11vw, 10rem);
  overflow: hidden;
}
.problem_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: stretch;
}
.problem_text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.problem_heading {
  margin: 0 0 var(--space-m);
  color: var(--color-dark);
  font-family: var(--h--font-family);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  text-transform: uppercase;
}
.problem_p {
  margin: 0 0 var(--space-s);
  color: var(--color-dark);
}
.problem_p:last-of-type { margin-bottom: 0; }
.problem_p:last-of-type { margin-bottom: 0; }
.problem_cta {
  align-self: flex-start;
  margin-top: var(--space-m);
}
.problem_images {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  justify-content: center;
}
.problem_image {
  width: 100%;
  height: clamp(9rem, 17vw, 14rem);
  border-radius: 1.25rem;
  object-fit: cover;
}
/* Top image is narrower — right-aligned, flush to right viewport edge */
.problem_image--top {
  width: 75%;
  align-self: flex-end;
}
.problem_image--bottom {
  width: 100%;
  align-self: flex-end;
}


/* --- 5. Numbered services — alternating image/text rows ---
   Image lives in a fixed-height greyscale card (rounded), text column has the accent
   number, heading, paragraph and a pair of pill buttons. */
.numbered-services {
  padding-top: clamp(6rem, 11vw, 10rem);     /* override section-l defaults — more breathing room between sections */
  padding-bottom: clamp(6rem, 11vw, 10rem);
}
.numbered-services .container-xl {
  display: flex;
  flex-direction: column;
  gap: clamp(6rem, 12vw, 10rem);   /* big vertical gap between rows so each numbered item reads as distinctly separate */
}
.numbered-service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.numbered-service_image-wrap {
  width: 100%;
}
.numbered-service_image {
  width: 100%;
  height: clamp(14rem, 24vw, 20rem);
  border-radius: 1.25rem;
  object-fit: cover;
  background: #D9D9D9;       /* matches the figma placeholder grey */
}
.numbered-service_text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 28rem;
}
.numbered-service_number {
  font-family: var(--h--font-family);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  color: var(--color-accent);
  margin-bottom: 0.25rem;            /* tight to the heading below */
  letter-spacing: 0.02em;
}
.numbered-service_heading {
  margin: 0 0 var(--space-xs);       /* tight to the paragraph */
  color: var(--color-dark);
  font-family: var(--h--font-family);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}
.numbered-service_p {
  margin: 0 0 var(--space-s);        /* tight to the buttons */
  color: var(--color-dark);
}
.numbered-service_buttons {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

/* Image-on-the-right rows: flip column order so source order stays semantic (text then image) */
.numbered-service--image-right .numbered-service_image-wrap { order: 2; }
.numbered-service--image-right .numbered-service_text { order: 1; }


/* --- 6. Five Step Process — cream panel, centered title with arrow controls below,
   a single active step shown with optional siblings peeking on either side. --- */
.five-step {
  background: #ECEAE6;        /* same cream as why-trust / service-area */
  padding-top: clamp(7rem, 12vw, 11rem);     /* override section-xl defaults — more breathing room between sections */
  padding-bottom: clamp(7rem, 12vw, 11rem);
}
.five-step_title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
  margin-bottom: var(--space-l);
}
.five-step_heading {
  margin: 0;
  text-align: center;
  font-family: var(--h--font-family);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--color-dark);
  max-width: 18rem;
}
.five-step_controls {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.five-step_btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--color-dark);
  background: var(--color-light);
  color: var(--color-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.five-step_btn--next {
  background: var(--color-dark);
  color: var(--color-light);
}
.five-step_btn:hover { opacity: 0.85; }
.five-step_btn:disabled { opacity: 0.35; cursor: default; }

.five-step_track {
  position: relative;
}
.five-step_card {
  display: none;                  /* JS toggles --active to reveal the current step */
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 64rem;
  margin: 0 auto;
}
.five-step_card--active { display: grid; }
.five-step_card-image-wrap { width: 100%; }
.five-step_card-image {
  width: 100%;
  height: clamp(14rem, 22vw, 20rem);
  border-radius: 1.25rem;
  object-fit: cover;
  background: #D9D9D9;            /* matches placeholder grey if image fails */
}
.five-step_card-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 28rem;
}
.five-step_card-number {
  font-family: var(--h--font-family);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.five-step_card-heading {
  margin: 0 0 var(--space-s);
  font-family: var(--h--font-family);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--color-dark);
}
.five-step_card-body {
  margin: 0;
  color: var(--color-dark);
  font-size: 0.9375rem;
  line-height: 1.5;
}


/* ============================================
   OUR WORK PAGE — sections specific to /our-work.html
   ============================================ */

/* --- 2. Our Work hero — photo background + dark overlay + centered title. --- */
.our-work-hero {
  position: relative;
  overflow: hidden;
  background: #8C8C8C;          /* fallback colour while image loads */
  padding-top: clamp(8rem, 18vw, 14rem);
  padding-bottom: clamp(8rem, 18vw, 14rem);
}
.our-work-hero_bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.our-work-hero_overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.55) 100%);
}
.our-work-hero_inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
.our-work-hero_title {
  margin: 0;
  color: #FFFFFF;
  font-family: var(--h--font-family);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  font-size: clamp(2.75rem, 7vw, 5rem);
  text-align: center;
}

/* --- 5/6/7. Project blocks — text left + 2x2 image grid right.
   --panel modifier wraps the block in a cream rounded panel (used for odd projects). --- */
.project-section {
  padding-top: clamp(3rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 5vw, 4rem);
}
.project-block {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 1.5rem;
}
.project-block--panel {
  background: #ECEAE6;          /* same cream as why-trust / service-area */
}
.project-block_text {
  display: flex;
  flex-direction: column;
}
.project-block_heading {
  margin: 0 0 var(--space-m);
  color: var(--color-dark);
  font-family: var(--h--font-family);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  text-transform: uppercase;
}
.project-block_p {
  margin: 0 0 var(--space-s);
  color: var(--color-dark);
  max-width: 30rem;
}
.project-block_p:last-of-type { margin-bottom: 0; }

.project-block_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.project-block_image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1.25rem;
  object-fit: cover;
  display: block;
  background: #D9D9D9;
}


/* ============================================
   INDIVIDUAL PROJECT PAGES
   ============================================ */

/* --- Hero --- */
.project-hero {
  position: relative;
  height: clamp(28rem, 55vw, 44rem);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.project-hero_bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.project-hero_overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.project-hero_inner {
  position: relative;
  z-index: 1;
}
.project-hero_tag {
  display: inline-block;
  font-family: var(--p--font-family);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.75rem;
}
.project-hero_title {
  margin: 0;
  color: var(--color-light);
  font-family: var(--h--font-family);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.2rem, 5vw, 4rem);
  text-transform: uppercase;
}
.project-hero_location {
  margin: 0.5rem 0 0;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  font-weight: 400;
}

/* --- Stats strip (floats below hero) --- */
.project-stats {
  position: relative;
  z-index: 2;
  margin-top: -3rem;
  margin-bottom: 0;
}
.project-stats_card {
  background: var(--color-light);
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-color: var(--color-divider);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
  gap: 1rem;
}
.project-stats_item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.project-stats_item + .project-stats_item {
  border-left: 1px solid rgba(0,0,0,0.1);
  padding-left: clamp(1rem, 2vw, 1.5rem);
}
.project-stats_label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-dark);
  opacity: 0.5;
}
.project-stats_value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.3;
}

/* --- Gallery grid (2 rows × 4 cols) --- */
.project-gallery {
  background: #ECEAE6;
}
.project-gallery_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.5rem, 1vw, 0.75rem);
}
.project-gallery_image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 0.75rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .project-stats_card { grid-template-columns: 1fr 1fr; }
  .project-stats_item:nth-child(3) { border-left: none; padding-left: 0; }
  .project-gallery_grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .project-stats_card { grid-template-columns: 1fr; }
  .project-stats_item + .project-stats_item { border-left: none; padding-left: 0; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 1rem; }
}


/* ============================================
   CONTACT US PAGE — split panel: dark left (heading + details) / light right (form)
   ============================================ */
.contact {
  background: var(--color-light);
  border-top: 1px solid var(--color-divider);
}
.contact_grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  min-height: clamp(32rem, 60vw, 44rem);
}

/* LEFT — dark panel */
.contact_left {
  background: var(--color-dark);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.75rem, 4vw, 3.5rem);
}
.contact_left-inner {
  width: 100%;
  max-width: 32rem;
  display: flex;
  flex-direction: column;
}
.contact_heading {
  margin: 0 0 var(--space-s);
  color: var(--color-light);
  font-family: var(--h--font-family);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.contact_subtext {
  margin: 0 0 var(--space-m);
  color: var(--color-light);
  opacity: 0.85;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 22rem;
}
.contact_detail {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: var(--space-xs);
  text-decoration: none;
  color: var(--color-light);
  font-size: 0.9375rem;
  font-weight: 400;
  transition: opacity 0.2s ease;
}
.contact_detail:last-child { margin-bottom: 0; }
.contact_detail:hover { opacity: 0.7; }
.contact_detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  color: var(--color-light);
  flex-shrink: 0;
}

/* RIGHT — form panel */
.contact_right {
  background: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
}
.contact_form {
  width: 100%;
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact_form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.contact_form-row--single {
  grid-template-columns: 1fr;
}

/* Floating-label field — bottom border only, label sits above the line */
.contact_field {
  position: relative;
  display: flex;
  flex-direction: column;
}
.contact_input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--color-dark);
  background: transparent;
  padding: 1rem 0 0.25rem;
  font-family: var(--p--font-family);
  font-size: 0.9375rem;
  color: var(--color-dark);
  outline: none;
  border-radius: 0;
}
.contact_input:focus {
  border-bottom-color: var(--color-accent);
}
.contact_label {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--p--font-family);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-primary-50);
  pointer-events: none;
  transition: color 0.2s ease;
}
.contact_input:focus ~ .contact_label {
  color: var(--color-accent);
}

/* Select — keep label above; caret sits inline next to label text */
.contact_field--select { position: relative; }
.contact_select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}
.contact_select-caret {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.625rem;
  color: var(--color-dark);
  pointer-events: none;
  vertical-align: middle;
}

/* Description textarea — rounded box with light border, on its own row */
.contact_field--textarea {
  margin-top: var(--space-xs);
}
.contact_textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  background: transparent;
  padding: 1rem 1.125rem;
  font-family: var(--p--font-family);
  font-size: 1rem;
  color: var(--color-dark);
  outline: none;
  resize: vertical;
  min-height: 8rem;
}
.contact_textarea::placeholder {
  color: var(--color-primary-50);
}
.contact_textarea:focus {
  border-color: var(--color-accent);
}

/* File input — pill shape, light grey bg, placeholder text */
.contact_field--file {
  margin-top: var(--space-xs);
}
.contact_file-label {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background 0.2s ease;
}
.contact_file-label:hover {
  background: rgba(0, 0, 0, 0.1);
}
.contact_file-text {
  font-family: var(--p--font-family);
  font-size: 0.8125rem;
  color: var(--color-primary-50);
}
.contact_file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.contact_file-label.has-files .contact_file-text { color: var(--color-dark); }

/* Submit button — right-aligned on desktop, full width on mobile */
.contact_submit {
  display: flex;
  justify-content: center;
  margin-top: var(--space-s);
}


/* ============================================
   RESPONSIVE — Mobile-specific adjustments
   The framework auto-stacks col-1-of-2 / col-1-of-3 at its breakpoints.
   These rules handle layout-specific mobile tweaks beyond the column behavior.
   ============================================ */
@media (max-width: 991px) {
  .nav_hamburger { display: flex; }
  .nav_menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-s);
    background: var(--color-light);
    padding: var(--space-m);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
    /* Hidden by default — kilr-nav script toggles .is-active on hamburger click */
    display: none;
  }
  .nav_menu.is-active { display: flex; }

  /* On mobile: dropdown becomes inline list below the trigger, no float */
  .nav_item--dropdown { width: 100%; }
  .nav_item--dropdown::after { display: none; }
  .nav_dropdown {
    position: static;
    transform: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0.25rem 0 0.25rem 1rem;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav_dropdown .nav_link {
    padding: 0.4rem 0;
    font-size: 0.95rem;
  }
  .nav_dropdown .nav_link:hover {
    background: transparent;
  }

  /* When mobile menu is open, force white background on the nav bar itself
     (the transparent hero nav would otherwise show the hero image behind the logo row) */
  .nav_farr:has(.nav_menu.is-active) {
    background: var(--color-light);
  }

  /* Solid nav still needs relative positioning so the absolute-positioned mobile menu anchors correctly */
  .nav_farr--solid { position: relative; }

  /* Hamburger → X animation when active */
  .nav_hamburger.is-active span:nth-child(1) {
    transform: translateY(0.6875rem) rotate(45deg);
  }
  .nav_hamburger.is-active span:nth-child(2) { opacity: 0; }
  .nav_hamburger.is-active span:nth-child(3) {
    transform: translateY(-0.6875rem) rotate(-45deg);
  }
  .nav_hamburger span { transition: transform 0.2s ease, opacity 0.2s ease; }

  /* Lock body scroll when menu open (kilr-nav script adds this class) */
  body.kilr-nav-no-scroll { overflow: hidden; }

  .hero { min-height: 32rem; padding-top: 7rem; padding-bottom: 4rem; }
  /* Drop the offset on small screens — stack vertically instead */
  .hero_content { max-width: 100%; }
  .hero_headline-l2 { padding-left: 0; }
  .hero_cta { margin-top: 0; }

  .testimonial_card { flex-basis: 85%; }

  /* Section 4: stack columns; left text gets normal side padding */
  .home-works_grid { grid-template-columns: 1fr; gap: var(--space-l); align-items: start; }
  .home-works_text { padding-left: var(--space-s); padding-right: var(--space-s); justify-content: start; }
  .home-works_image { height: auto; aspect-ratio: 16 / 9; }
  .home-works_image:first-child { width: 100%; align-self: stretch; }

  /* Section 6: stack columns; right text gets normal side padding and reverts to left-aligned */
  .difference_grid { grid-template-columns: 1fr; gap: var(--space-l); align-items: start; }
  .difference_text { padding-left: var(--space-s); padding-right: var(--space-s); justify-content: start; text-align: left; align-items: flex-start; }
  .difference_cta { align-self: flex-start; }
  .difference_image { height: auto; aspect-ratio: 16 / 9; }
  .difference_image:nth-child(1) { width: 100%; align-self: stretch; }

  /* About page — stack two-col sections vertically; image first/last by source order */
  .meet-tomas_grid,
  .build-for-life_grid {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }
  .meet-tomas_image,
  .build-for-life_image {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  /* Ensure image sits below the text on mobile in both sections */
  .meet-tomas_image-wrap { order: 2; }
  .meet-tomas_text { order: 1; }
  .build-for-life_image-wrap { order: 1; }
  .build-for-life_text { order: 2; }

  /* Where we service — stack card above map */
  .service-area_grid {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }
  .service-area_map { min-height: 18rem; }
  .service-area_map iframe { min-height: 18rem; }

  /* Service blocks — stack columns; images full-width and flush to viewport edge they belong to */
  .service-block_grid {
    grid-template-columns: 1fr;
    gap: var(--space-l);
    align-items: start;
  }
  .service-block--images-left .service-block_text,
  .service-block--images-right .service-block_text {
    padding-left: var(--space-s);
    padding-right: var(--space-s);
    text-align: left;
    align-items: flex-start;
  }
  .service-block--images-left .service-block_p { margin-left: 0; }
  .service-block_image { height: auto; aspect-ratio: 16 / 9; }
  .service-block_image--top-narrow,
  .service-block_image--bottom-narrow,
  .service-block_image--top-wide,
  .service-block_image--bottom-wide {
    width: 100%;
  }
  /* Image-first source order on stacked-up phones, regardless of which column they came from */
  .service-block--images-left .service-block_images { order: 1; }
  .service-block--images-left .service-block_text   { order: 2; }
  .service-block--images-right .service-block_images { order: 1; }
  .service-block--images-right .service-block_text   { order: 2; }

  /* Home Renovations — problem split: stack columns; text gets normal side padding */
  .problem_grid { grid-template-columns: 1fr; gap: var(--space-l); align-items: start; }
  .problem_text { padding-left: var(--space-s); padding-right: var(--space-s); justify-content: start; }
  .problem_heading { max-width: 100%; }
  .problem_image { height: auto; aspect-ratio: 16 / 9; }
  .problem_image--top { width: 100%; align-self: stretch; }

  /* Home Renovations — numbered services: stack image above text, image first.
     Tight image-to-text gap inside each item, so the big between-item gap (set on
     .numbered-services .container-xl) does the heavy lifting for grouping clarity. */
  .numbered-service {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    align-items: start;
  }
  .numbered-service_image { height: auto; aspect-ratio: 16 / 9; }
  .numbered-service--image-right .numbered-service_image-wrap { order: 1; }
  .numbered-service--image-right .numbered-service_text       { order: 2; }
  .numbered-service_text { max-width: 100%; }
  .numbered-service_buttons { width: 100%; }
  /* Tighten the internal text rhythm a touch more on phones */
  .numbered-service_number { margin-bottom: 0.125rem; }
  .numbered-service_heading { margin-bottom: var(--space-xxs); }
  .numbered-service_p { margin-bottom: var(--space-xs); }

  /* Home Renovations — five step process: stack image above text */
  .five-step_card--active {
    grid-template-columns: 1fr;
    gap: var(--space-m);
    align-items: start;
  }
  .five-step_card-image { height: auto; aspect-ratio: 16 / 9; }
  .five-step_card-text { max-width: 100%; }

  /* Our Work — project blocks: stack text above image grid */
  .project-block {
    grid-template-columns: 1fr;
    gap: var(--space-m);
    align-items: start;
    padding: var(--space-m);
  }
  .project-block_p { max-width: 100%; }

  /* Contact — stack dark panel above form */
  .contact_grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .contact_left,
  .contact_right {
    justify-content: center;
    padding: clamp(2rem, 6vw, 3.5rem) var(--space-s);
  }
  .contact_left-inner { max-width: 100%; }
}

@media (max-width: 768px) {
  .cta-section .container-s { width: 92vw; }

  /* Footer — collapse 4-col grid: brand+mascot row 1, services|menu row 2 */
  .footer .row_gap-l {
    grid-template-columns: 1fr auto;
    gap: var(--space-m);
  }
  .footer .col-1-of-4:nth-child(2) { order: 1; } /* brand — left of row 1 */
  .footer .col-1-of-4:first-child  { order: 2; } /* mascot — right of row 1 */
  .footer .col-1-of-4:nth-child(3) { order: 3; } /* services — left of row 2 */
  .footer .col-1-of-4:nth-child(4) { order: 4; } /* menu — right of row 2 */
  .footer .col-1-of-4:first-child .footer_mascot { max-width: 7rem; }

  .trust_card {
    flex-wrap: nowrap;
    gap: var(--space-s);
    padding: var(--space-s) var(--space-m);
  }

  .cta-section_buttons { flex-direction: column; align-items: center; }

  /* Contact — stack name/phone/email rows */
  .contact_form-row { grid-template-columns: 1fr; gap: var(--space-m); }
  .contact_submit { justify-content: stretch; }
  .contact_submit .pill-button { justify-content: space-between; width: 100%; }

  /* About page — collapse 4-col grid into 2x2 */
  .why-trust_grid {
    grid-template-columns: 1fr 1fr;
    row-gap: var(--space-m);
  }
  .why-trust_col { padding: 0 var(--space-s); }
  .why-trust_col:first-child { padding-left: 0; }
  .why-trust_col:nth-child(3) { border-left: 0; padding-left: 0; }
  .why-trust_col:last-child  { padding-right: var(--space-s); }
}

@media (max-width: 479px) {
  .hero { min-height: 28rem; }
  .hero_content { max-width: 100%; }

  .services_card { padding-right: 4.5rem; }

  /* Footer — single column on very small screens */
  .footer .row_gap-l { grid-template-columns: 1fr; }
  .footer .col-1-of-4:nth-child(2) { grid-column: auto; }
}


/* ============================================
   NAV — phone CTA pill (desktop only)
   ============================================ */
.nav_phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-dark);
  color: var(--color-light);
  border: 1px solid var(--color-dark);
  border-radius: 9999px;
  padding: 0.375rem 0.5rem 0.375rem 1rem;
  text-decoration: none;
  font-family: var(--p--font-family);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.nav_phone:hover { opacity: 0.8; }
.nav_phone_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--color-light);
  color: var(--color-dark);
  flex-shrink: 0;
}
@media (max-width: 991px) {
  .nav_phone_label { display: none; }
  .nav_phone { padding: 0.375rem; }
}


/* ============================================
   TRUST BAR — stat items replacing logo strip
   ============================================ */
.trust_stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  gap: 0;
}
.trust_stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xs) var(--space-s);
  border-left: 1px solid rgba(0,0,0,0.1);
}
.trust_stat:first-child { border-left: none; }
.trust_stat-value {
  font-family: var(--h--font-family);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--color-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.trust_stat-label {
  font-family: var(--p--font-family);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-dark);
  opacity: 0.6;
}
@media (max-width: 768px) {
  .trust_stats { grid-template-columns: 1fr 1fr; }
  .trust_stat:nth-child(3) { border-left: none; }
  .trust_stat { padding: var(--space-xs); }
}
@media (max-width: 479px) {
  .trust_stats { grid-template-columns: 1fr 1fr; }
}


/* ============================================
   PROCESS — 3-step section (cream bg, vertical dividers)
   Follows same anatomy as .why-trust on about page.
   ============================================ */
.process {
  background: #ECEAE6;
}
.process_title {
  text-align: center;
  margin-bottom: var(--space-l);
}
.process_heading {
  margin: 0;
  color: var(--color-dark);
  font-family: var(--h--font-family);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}
.process_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.process_step {
  padding: 0 var(--space-l);
  border-left: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
}
.process_step:first-child { border-left: none; padding-left: 0; }
.process_step:last-child { padding-right: 0; }
.process_step-number {
  font-family: var(--h--font-family);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.process_step-heading {
  margin: 0 0 var(--space-xs);
  font-family: var(--h--font-family);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.25;
  color: var(--color-dark);
}
.process_step-body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-dark);
  opacity: 0.75;
}
.process_cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-l);
}
@media (max-width: 768px) {
  .process_grid { grid-template-columns: 1fr; gap: var(--space-m); }
  .process_step { border-left: none; padding: 0; border-top: 1px solid var(--color-divider); padding-top: var(--space-m); }
  .process_step:first-child { border-top: none; padding-top: 0; }
}


/* ============================================
   FAQ — accordion section (light cream bg)
   ============================================ */
.faq {
  background: var(--color-light);
  border-top: 1px solid var(--color-divider);
}
.faq_title {
  text-align: center;
  margin-bottom: var(--space-l);
}
.faq_heading {
  margin: 0;
  color: var(--color-dark);
  font-family: var(--h--font-family);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}
.faq_list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(0,0,0,0.12);
}
.faq_item {
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.faq_trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  cursor: pointer;
  text-align: left;
  gap: var(--space-m);
}
.faq_trigger-text {
  font-family: var(--p--font-family);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.3;
}
.faq_icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid var(--color-dark);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  transition: background 0.2s ease, color 0.2s ease;
}
.faq_icon svg { transition: transform 0.3s ease; }
.faq_item--open .faq_icon {
  background: var(--color-dark);
  color: var(--color-light);
}
.faq_item--open .faq_icon svg { transform: rotate(45deg); }
.faq_body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq_item--open .faq_body { max-height: 20rem; }
.faq_body p {
  margin: 0;
  padding-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-dark);
  opacity: 0.75;
  max-width: 52rem;
}
