/* ============================================================
   TRANQUILITY DESIGNS — Editorial Warmth
   ============================================================
   Audience: 50–70 year old LA homeowners
   Aesthetic: Architectural Digest meets trusted contractor
   Palette: warm cream, charcoal, terra cotta
   Typography: Fraunces (display) + DM Sans (body)
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("/static/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/static/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/static/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}


@layer components {


/* ────────────────────────────────────────────────────────────
   DESIGN TOKENS
   ──────────────────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --cream:       #FAF7F2;
  --cream-mid:   #F0EBE3;
  --cream-dark:  #E8E2D9;
  --white:       #FFFFFF;
  --charcoal:    #2C2C2C;
  --ink:         #1A1816;

  /* Text */
  --text:        #3D3935;
  --text-2:      #7A746D;
  --text-3:      #A49E97;

  /* Accent */
  --terra:       #C4654A;
  --terra-hover: #A8523B;
  --terra-faint: oklch(0.65 0.12 35 / 0.08);
  --sage:        #7A8B6F;

  /* Borders */
  --border:      #E2DCD4;
  --border-lite: #EDE9E3;

  /* Shadows */
  --sh-sm:  0 1px 3px oklch(0.2 0 0 / 0.06);
  --sh-md:  0 4px 16px oklch(0.2 0 0 / 0.08);
  --sh-lg:  0 12px 40px oklch(0.2 0 0 / 0.1);

  /* Typography */
  --display: "Fraunces", Georgia, serif;
  --body:    "DM Sans", system-ui, sans-serif;

  --text-xs:   clamp(0.7rem,   0.67rem + 0.12vw,  0.78rem);
  --text-sm:   clamp(0.82rem,  0.78rem + 0.15vw,  0.92rem);
  --text-base: clamp(1.0rem,   0.95rem + 0.22vw,  1.125rem);
  --text-lg:   clamp(1.15rem,  1.08rem + 0.3vw,   1.35rem);
  --text-xl:   clamp(1.35rem,  1.2rem  + 0.55vw,  1.65rem);
  --text-2xl:  clamp(1.8rem,   1.5rem  + 1.1vw,   2.5rem);
  --text-3xl:  clamp(2.2rem,   1.7rem  + 1.9vw,   3.4rem);
  --text-hero: clamp(2.8rem,   2.0rem  + 3.2vw,   5rem);

  /* Layout */
  --header-h:    5rem;
  --max-w:       72rem;
  --gutter:      clamp(1.25rem, 0.8rem + 2vw, 3rem);
  --section-pad: clamp(4.5rem, 3rem + 6vw, 9rem);

  /* Progressive enhancement */
  interpolate-size: allow-keywords;
}


/* ────────────────────────────────────────────────────────────
   BILINGUAL
   ──────────────────────────────────────────────────────────── */
html[lang="en"] [lang="es"] { display: none !important; }
html[lang="es"] [lang="en"] { display: none !important; }


/* ────────────────────────────────────────────────────────────
   FOUNDATION
   ──────────────────────────────────────────────────────────── */
body {
  margin: 0;
  background: var(--cream);
  font-family: var(--body);
  font-size: var(--text-base);
  font-weight: 420;
  line-height: 1.7;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  max-inline-size: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--charcoal);
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--text-hero); letter-spacing: -0.015em; font-weight: 500; }
h2 { font-size: var(--text-3xl); margin-block-end: 1.5rem; font-style: italic; }
h3 { font-size: var(--text-xl); font-weight: 500; }

p {
  margin-block: 0 1rem;
  max-inline-size: 65ch;
  text-wrap: pretty;
}

a {
  color: var(--terra);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--terra-hover); }

section[id] {
  scroll-margin-block-start: calc(var(--header-h) + 1rem);
}

/* Skip link */
.skip-link {
  position: absolute;
  inset-block-start: -100%;
  inset-inline-start: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--terra);
  color: var(--white);
  font-weight: 600;
  border-radius: 0 0 0.25rem 0.25rem;
  z-index: 200;
}
.skip-link:focus { inset-block-start: 0; }


/* ────────────────────────────────────────────────────────────
   BUTTONS
   ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, transform 0.15s, box-shadow 0.25s;
}
.btn-primary {
  background: var(--terra);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--terra-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}
.btn-back {
  background: transparent;
  color: var(--text-3);
  border: 1px solid rgba(250,247,242,0.2);
}
.btn-back:hover {
  border-color: rgba(250,247,242,0.4);
  color: var(--cream);
}
.btn-lg {
  padding: 1.125rem 2.75rem;
  font-size: var(--text-base);
}


/* ────────────────────────────────────────────────────────────
   SECTION COMMON
   ──────────────────────────────────────────────────────────── */
.section-label {
  font-family: var(--body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terra);
  margin-block-end: 0.5rem;
}

.section-intro {
  font-size: var(--text-lg);
  font-weight: 450;
  color: var(--text-2);
  margin-block-end: 3rem;
  max-inline-size: 55ch;
}


/* ────────────────────────────────────────────────────────────
   HEADER — Mobile base (solid cream)
   ──────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: transparent;
  border-block-end: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
/* Mobile over hero: light elements */
.logo img                  { filter: brightness(0) invert(1); transition: filter 0.35s ease; }
.header-phone              { color: oklch(1 0 0 / 0.85); }
.header-phone svg          { stroke: currentColor; }
.lang-toggle               { color: oklch(1 0 0 / 0.7); }
.mobile-menu-btn span      { background: var(--white); }

/* Mobile: solid when scrolled past hero */
.site-header.scrolled {
  background: var(--cream);
  border-color: var(--border-lite);
  box-shadow: var(--sh-sm);
}
.site-header.scrolled .logo img             { filter: none; }
.site-header.scrolled .header-phone         { color: var(--text); }
.site-header.scrolled .lang-toggle          { color: var(--text-2); }
.site-header.scrolled .mobile-menu-btn span { background: var(--text); }

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1rem;
  padding-block: 0.75rem;
}

/* Logo */
.logo { flex-shrink: 0; line-height: 0; }
.logo img { height: 3.25rem; width: auto; }

/* Desktop nav — hidden on mobile */
.main-nav { display: none; }

/* Header right side */
.header-end {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-inline-start: auto;
}

.lang-toggle {
  background: none;
  border: none;
  padding: 0.3rem 0.4rem;
  font-family: var(--body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}
.lang-toggle:hover { color: var(--text); }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.header-phone:hover { color: var(--terra); }
.header-phone svg { flex-shrink: 0; width: 18px; height: 18px; }

/* Mobile: show abbreviations, hide globe + full text */
.lang-globe     { display: none; }
.lang-full      { display: none; }
.lang-abbr      { display: inline; }

.header-cta { display: none; }

/* Mobile hamburger */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-inline-start: 0.25rem;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav dropdown */
.mobile-nav {
  background: var(--cream);
  border-block-end: 1px solid var(--border);
  padding: 0.5rem var(--gutter) 1.5rem;
  box-shadow: var(--sh-md);
}
.mobile-nav:not([hidden]) {
  display: flex;
  flex-direction: column;
}
.mobile-nav a,
.mobile-nav button {
  display: block;
  padding: 0.875rem 0;
  font-family: var(--body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border: none;
  background: none;
  text-align: start;
  cursor: pointer;
}
.mobile-nav a + a { border-block-start: 1px solid var(--border-lite); }
.mobile-nav a:hover { color: var(--terra); }
.mobile-nav hr {
  border: none;
  border-block-start: 1px solid var(--border);
  margin-block: 0.5rem;
}


/* ────────────────────────────────────────────────────────────
   HERO — Cinematic Scrim
   ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

/* Dark wash — subtle tint over the entire hero image */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: oklch(0.05 0 0 / 0.35);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding-block-end: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Dark blob behind the entire text block */
.hero-content::before {
  content: "";
  position: absolute;
  inset: -2rem -4rem;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    oklch(0.03 0 0 / 0.85) 0%,
    oklch(0.03 0 0 / 0.65) 35%,
    oklch(0.03 0 0 / 0.3) 60%,
    transparent 80%
  );
  filter: blur(30px);
}

/* ── Eyebrow ── */
.hero .eyebrow {
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.85);
  margin-block-end: 1.25rem;
  opacity: 0;
  animation: hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* ── Headline ── */
.hero h1 {
  color: var(--white);
  font-weight: 500;
  font-style: normal;
  line-height: 1.15;
  margin-block-end: 1.25rem;
  max-inline-size: 14ch;
  text-wrap: balance;
}

.hero-line {
  display: block;
  clip-path: inset(0 100% 0 0);
  animation: wipe-in 0.7s cubic-bezier(0.25, 1, 0.5, 1) both;
}
.hero-line:nth-child(1) { animation-delay: 0.6s; }
.hero-line:nth-child(2) { animation-delay: 0.85s; }
.hero-line:nth-child(3) { animation-delay: 1.1s; }

/* ── Subtitle + CTA ── */
.hero-sub {
  font-size: var(--text-lg);
  font-weight: 500;
  color: oklch(1 0 0 / 0.85);
  margin-block-end: 2rem;
  opacity: 0;
  animation: hero-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.5s both;
}

.hero-cta {
  font-size: var(--text-sm);
  opacity: 0;
  animation: hero-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.7s both;
}

/* Trust bar */
.trust-bar {
  position: relative;
  z-index: 2;
  background: oklch(0.15 0 0 / 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-block-start: 1px solid oklch(1 0 0 / 0.08);
}

.trust-bar-inner {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  padding-block: 1.25rem;
  text-align: center;
}

.trust-item { color: var(--white); }
.trust-item strong {
  display: block;
  font-family: var(--display);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.trust-item > span {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.55);
}


/* ────────────────────────────────────────────────────────────
   SERVICES
   ──────────────────────────────────────────────────────────── */
.services {
  padding-block: var(--section-pad);
}

.services-grid {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-lite);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card-body {
  padding: 1.5rem;
}
.service-card-body h3 {
  margin-block-end: 0.625rem;
  font-size: var(--text-lg);
}
.service-card-body p {
  color: var(--text-2);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin: 0;
}


/* ────────────────────────────────────────────────────────────
   IMAGE DIVIDER — Full-bleed section break
   ──────────────────────────────────────────────────────────── */
.image-divider {
  height: clamp(16rem, 40vw, 26rem);
  overflow: hidden;
  contain: layout paint;
}
.image-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* ────────────────────────────────────────────────────────────
   PROCESS
   ──────────────────────────────────────────────────────────── */
.process {
  padding-block: var(--section-pad);
  background: var(--cream-mid);
}

.process-grid {
  display: grid;
  gap: 1.25rem;
}

.process-step {
  padding: 1.75rem;
  background: var(--white);
  border-radius: 0.5rem;
  border: 1px solid var(--border-lite);
  contain: layout paint;
}

.step-num {
  display: block;
  font-family: var(--display);
  font-size: var(--text-3xl);
  font-weight: 600;
  font-style: italic;
  color: var(--terra);
  opacity: 0.2;
  line-height: 1;
  margin-block-end: 0.75rem;
}

.process-step h3 { margin-block-end: 0.625rem; }
.process-step p {
  color: var(--text-2);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-block-end: 1.25rem;
}

.step-duration {
  display: inline-block;
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  padding: 0.35rem 0.85rem;
  background: var(--terra-faint);
  border-radius: 2rem;
}


/* ────────────────────────────────────────────────────────────
   EXPLAINER (What is an ADU?)
   ──────────────────────────────────────────────────────────── */
.explainer {
  padding-block: var(--section-pad);
}

.explainer-img {
  border-radius: 0.5rem;
  overflow: hidden;
  margin-block-end: 2.5rem;
  margin-inline: calc(var(--gutter) * -1);
  border-radius: 0;
}
.explainer-img img {
  width: 100%;
  height: auto;
  display: block;
}



.explainer-content h2 { margin-block-end: 1rem; }

.explainer-lead {
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  margin-block-end: 2.5rem;
  max-inline-size: 50ch;
}

/* ADU type cards */
.spec-heading {
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: oklch(0.5 0.02 80);
  margin-block-end: 1rem;
}
.spec-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-block-end: 2.5rem;
}
.spec-card {
  padding: 1.25rem;
  background: var(--cream-mid);
  border-radius: 0.375rem;
  border: 1px solid var(--border-lite);
}
.spec-card h4 {
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-block-end: 0.5rem;
}
.spec-size {
  font-size: var(--text-sm);
  color: var(--text-2);
  margin-block-end: 0.25rem;
}
.spec-income {
  font-family: var(--display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--sage);
  margin: 0;
}

/* California law facts */
.spec-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  border-block-start: 1px solid var(--border);
  padding-block-start: 1.5rem;
}
.spec-facts li {
  position: relative;
  padding-inline-start: 1.75rem;
  padding-block: 0.35rem;
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.6;
}
.spec-facts li::before {
  content: '\2713';
  position: absolute;
  inset-inline-start: 0;
  color: var(--sage);
  font-weight: 700;
}


/* ────────────────────────────────────────────────────────────
   TESTIMONIALS
   ──────────────────────────────────────────────────────────── */
.testimonials {
  padding-block: var(--section-pad);
  background: var(--cream-mid);
}

.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}

.testimonial {
  margin: 0;
  padding: 2rem;
  background: var(--white);
  border-radius: 0.5rem;
  border: 1px solid var(--border-lite);
  border-block-start: 3px solid var(--terra);
  position: relative;
}

/* Decorative quotation mark */
.testimonial::before {
  content: '\201C';
  font-family: var(--display);
  font-size: 5rem;
  line-height: 1;
  color: var(--terra);
  opacity: 0.12;
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 1.25rem;
  pointer-events: none;
}

.testimonial p {
  font-family: var(--display);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  position: relative;
  z-index: 1;
  max-inline-size: none;
}

.testimonial footer {
  margin-block-start: 1.25rem;
  position: relative;
  z-index: 1;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--border-lite);
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--charcoal);
  font-size: var(--text-sm);
}
.testimonial footer > span {
  font-size: var(--text-xs);
  color: var(--text-3);
  letter-spacing: 0.04em;
}


/* ────────────────────────────────────────────────────────────
   FAQ
   ──────────────────────────────────────────────────────────── */
.faq {
  padding-block: var(--section-pad);
}

.faq-list {
  max-inline-size: 48rem;
}

.faq-list details {
  border-block-end: 1px solid var(--border);
  overflow: hidden;
}

/* Smooth open/close — interpolate-size: allow-keywords is set on :root */
.faq-list details .faq-answer {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
  padding-block-end: 0;
}
.faq-list details[open] .faq-answer {
  height: auto;
  opacity: 1;
  padding-block-end: 1.5rem;
}

.faq-list summary {
  padding-block: 1.375rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--charcoal);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  transition: color 0.2s ease;
}
.faq-list summary:hover { color: var(--terra); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::marker { display: none; content: ''; }

.faq-list summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text-3);
  transition: color 0.25s ease, transform 0.35s ease;
}
.faq-list details[open] summary { color: var(--terra); }
.faq-list details[open] summary::after {
  content: '+';
  color: var(--terra);
  transform: rotate(45deg);
}

.faq-answer {}
.faq-answer p {
  color: var(--text-2);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin: 0;
  max-inline-size: none;
}


/* ────────────────────────────────────────────────────────────
   CONTACT
   ──────────────────────────────────────────────────────────── */
.contact {
  padding-block: var(--section-pad);
  background: var(--charcoal);
  color: var(--cream);
}
.contact h2 { color: var(--cream); font-style: italic; }
.contact .section-label { color: var(--terra); }
.contact .section-intro { color: oklch(0.92 0.01 80 / 0.5); }

.contact-layout {
  display: flex;
  flex-direction: column;
}
.contact-image {
  order: -1;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-block-end: 2.5rem;
}
.contact-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Form */
.contact-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
.contact-form legend {
  font-family: var(--display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--cream);
  margin-block-end: 1.75rem;
  padding: 0;
}

/* Project type radio buttons */
.project-type-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.type-btn { cursor: pointer; }
.type-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.type-btn span {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  border: 1px solid oklch(1 0 0 / 0.15);
  border-radius: 0.25rem;
  font-family: var(--body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: oklch(1 0 0 / 0.6);
  transition: all 0.2s ease;
}
.type-btn:hover span {
  border-color: oklch(1 0 0 / 0.35);
  color: var(--cream);
}
.type-btn input:checked + span {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--white);
}

/* Form fields */
.form-fields {
  display: grid;
  gap: 1.75rem;
}
.field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.4);
  margin-block-end: 0.5rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-block-end: 1px solid oklch(1 0 0 / 0.15);
  color: var(--cream);
  padding: 0.625rem 0;
  font-family: var(--body);
  font-size: var(--text-base);
  transition: border-color 0.25s ease;
  appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--terra);
}
.field input:user-valid   { border-color: var(--sage); }
.field input:user-invalid { border-color: oklch(0.6 0.18 25); }
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A49E97' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-inline-end: 1.5rem;
}
.field select option {
  background: var(--charcoal);
  color: var(--cream);
}
.field textarea {
  resize: vertical;
  min-height: 4rem;
  border: 1px solid oklch(1 0 0 / 0.15);
  border-radius: 0.25rem;
  padding: 0.75rem;
  margin-block-start: 0.25rem;
}

.form-nav {
  display: flex;
  gap: 1rem;
  margin-block-start: 2rem;
}

/* Progress dots */
.form-dots {
  display: flex;
  gap: 0.5rem;
  margin-block-start: 2rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(1 0 0 / 0.15);
  transition: background 0.3s ease;
}
.dot.on   { background: var(--terra); }
.dot.done { background: var(--sage); }


/* ────────────────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: oklch(0.92 0.01 80 / 0.6);
  position: relative;
  padding-block-end: 4.5rem; /* space for mobile sticky bar */
}

/* Terra accent stripe at the top */
.footer-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--terra) 0%, var(--terra) 30%, transparent 100%);
}

/* ── Main grid: logo left, details right ── */
.footer-main {
  display: grid;
  gap: 1.5rem;
  padding-block: 2.5rem 2rem;
}

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-logo {
  filter: brightness(0) invert(1);
  opacity: 0.85;
  height: 6rem;
  width: auto;
  align-self: center;
}
.footer-tagline {
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.3);
  max-inline-size: none;
  line-height: 1.7;
}
.footer-tagline-desktop { display: none; }

/* Details column — 2-col on mobile for Office + Contact, Navigate full width */
.footer-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.footer-details .footer-detail-group:last-of-type {
  grid-column: 1 / -1;
  align-items: center;
  text-align: center;
}
.footer-nav {
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  row-gap: 0.4rem;
}

.footer-detail-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-label {
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-block-end: 0.25rem;
}

.footer-detail-group address {
  font-style: normal;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: oklch(1 0 0 / 0.5);
}

.footer-detail-group a {
  color: oklch(0.92 0.01 80 / 0.55);
  font-size: var(--text-sm);
  transition: color 0.25s ease;
  width: fit-content;
}
.footer-detail-group a:hover {
  color: var(--cream);
}

.footer-nav {
  display: flex;
  justify-content: center;
}
.footer-nav a {
  color: oklch(0.92 0.01 80 / 0.55);
  font-size: var(--text-sm);
  transition: color 0.25s ease;
  width: fit-content;
  position: relative;
}
.footer-nav a::after {
  content: "";
  position: absolute;
  inset-block-end: -1px;
  inset-inline-start: 0;
  width: 0;
  height: 1px;
  background: var(--terra);
  transition: width 0.3s ease;
}
.footer-nav a:hover {
  color: var(--cream);
}
.footer-nav a:hover::after {
  width: 100%;
}

/* ── Bottom bar ── */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-block: 1.5rem 2rem;
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.25);
  letter-spacing: 0.03em;
}
.footer-bottom a {
  color: var(--terra);
  transition: color 0.2s ease;
}
.footer-bottom a:hover {
  color: oklch(0.75 0.14 35);
}


/* ────────────────────────────────────────────────────────────
   MOBILE STICKY BAR
   ──────────────────────────────────────────────────────────── */
.mobile-sticky-bar {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem var(--gutter);
  /* Hidden until scroll past hero */
  transform: translateY(100%);
  opacity: 0;
  transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
  background: transparent;
  border-block-start: 1px solid oklch(1 0 0 / 0.1);
  box-shadow: none;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.mobile-sticky-bar .sticky-phone { color: oklch(1 0 0 / 0.85); }
.mobile-sticky-bar .sticky-phone svg { stroke: currentColor; }

/* Solid when scrolled past hero */
.mobile-sticky-bar.scrolled {
  transform: translateY(0);
  opacity: 1;
  background: var(--white);
  border-color: var(--border);
  box-shadow: 0 -2px 12px oklch(0.2 0 0 / 0.06);
}
.mobile-sticky-bar.scrolled .sticky-phone { color: var(--text); }

.sticky-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.sticky-phone:hover { color: var(--terra); }

.sticky-cta {
  flex: 1;
  text-align: center;
}


/* ════════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════════ */

/* Hero entrance — fade up */
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero line wipe — clip-path curtain from left */
@keyframes wipe-in {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* Terra cotta line draws itself */
@keyframes line-draw {
  from { inline-size: 0; }
  to   { inline-size: 2.5rem; }
}

/* Scroll-driven reveal — progressive enhancement */
@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(2.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports (animation-timeline: view()) {
  .service-card,
  .process-step,
  .testimonial,
  .explainer-img,
  .explainer-content,
  .faq-list details {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 20%;
  }
}


/* ════════════════════════════════════════════════════════════
   PERFORMANCE — skip rendering off-screen sections
   ════════════════════════════════════════════════════════════ */
.services,
.process,
.explainer,
.testimonials,
.faq,
.contact,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}


/* ════════════════════════════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ════════════════════════════════════════════════════════════
   TABLET+ (768px)
   ════════════════════════════════════════════════════════════ */
@media (min-width: 48rem) {

  /* Remove mobile-only elements */
  .mobile-menu-btn  { display: none; }
  .mobile-nav       { display: none !important; }

  /* Header always visible on desktop */
  .site-header {
    transform: translateY(0);
    opacity: 1;
  }
  .mobile-sticky-bar { display: none; }
  body { padding-block-end: 0; }

  :root { --header-h: 6.5rem; }

  .header-inner { padding-block: 1rem; }

  .logo img { height: 4rem; }

  /* Show desktop nav & CTA */
  .main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-inline-start: auto;
  }
  .main-nav a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    padding-block: 0.25rem;
    border-block-end: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .main-nav a:hover {
    color: var(--terra);
    border-color: var(--terra);
  }

  .header-end { gap: 1.25rem; margin-inline-start: 0; }
  .header-phone { font-size: var(--text-sm); }
  .lang-globe { display: inline; }
  .lang-abbr  { display: none; }
  .lang-full  { display: inline; }
  .header-cta { display: inline-flex; }

  /* ── Header: transparent over hero ── */
  .site-header {
    background: transparent;
    border-color: transparent;
  }
  .site-header .logo img             { filter: brightness(0) invert(1); transition: filter 0.35s ease; }
  .site-header .main-nav a           { color: oklch(1 0 0 / 0.8); }
  .site-header .main-nav a:hover     { color: var(--white); border-color: var(--white); }
  .site-header .header-phone         { color: oklch(1 0 0 / 0.8); }
  .site-header .header-phone:hover   { color: var(--white); }
  .site-header .header-phone svg     { stroke: currentColor; }
  .site-header .lang-toggle          { color: oklch(1 0 0 / 0.6); }
  .site-header .lang-toggle:hover    { color: var(--white); }

  /* Scrolled state — solid cream */
  .site-header.scrolled {
    background: var(--cream);
    border-color: var(--border-lite);
    box-shadow: var(--sh-sm);
  }
  .site-header.scrolled .logo img           { filter: none; }
  .site-header.scrolled .main-nav a         { color: var(--text); }
  .site-header.scrolled .main-nav a:hover   { color: var(--terra); border-color: var(--terra); }
  .site-header.scrolled .header-phone       { color: var(--text); }
  .site-header.scrolled .header-phone:hover { color: var(--terra); }
  .site-header.scrolled .lang-toggle        { color: var(--text-2); }
  .site-header.scrolled .lang-toggle:hover  { color: var(--text); }

  /* ── Hero: desktop ── */
  .hero-content {
    padding-block-end: 8rem;
  }
  .hero h1 {
    max-inline-size: none;
  }
  .trust-bar-inner {
    gap: 4rem;
    padding-block: 1.5rem;
  }

  /* ── Services: 2×2 ── */
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sh-lg);
  }
  .service-card:hover .service-card-img img {
    transform: scale(1.05);
  }
  .service-card-body { padding: 1.75rem; }

  /* ── Process: 4 across ── */
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  /* ── Explainer: side by side ── */
  .explainer-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
    align-items: start;
  }
  .explainer-img {
    margin-block-end: 0;
    margin-inline: 0;
    border-radius: 0.5rem;
    position: sticky;
    inset-block-start: calc(var(--header-h) + 2rem);
    align-self: start;
  }
  /* ── Testimonials: 3 columns ── */
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
  .testimonial { padding: 2.25rem; }

  /* ── FAQ: centered column ── */
  .faq-list { margin-inline: auto; }

  /* ── Contact: form + image ── */
  .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
  .contact-image {
    display: block;
    border-radius: 0.5rem;
    overflow: hidden;
    position: sticky;
    inset-block-start: calc(var(--header-h) + 2rem);
  }
  .contact-image img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  /* ── Footer: asymmetric two-column ── */
  .footer-main {
    grid-template-columns: auto 1fr;
    gap: 5rem;
    padding-block: 3rem 2.5rem;
    align-items: center;
  }
  .footer-brand {
    align-items: flex-start;
    text-align: start;
  }
  .footer-logo {
    height: 7rem;
    align-self: flex-start;
  }
  .footer-tagline-mobile { display: none; }
  .footer-tagline-desktop {
    display: block;
    grid-column: 1 / -1;
    max-inline-size: none;
    border-block-start: 1px solid oklch(1 0 0 / 0.06);
    padding-block-start: 1.5rem;
    margin-block-start: 0.5rem;
  }
  .footer-details {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-content: start;
  }
  .footer-details .footer-detail-group:last-of-type {
    grid-column: auto;
    align-items: flex-start;
    text-align: start;
  }
  .footer-nav {
    flex-direction: column;
    gap: 0.4rem;
  }
  .footer-bottom {
    justify-content: center;
  }
}


/* ════════════════════════════════════════════════════════════
   WIDE DESKTOP (1024px)
   ════════════════════════════════════════════════════════════ */
@media (min-width: 64rem) {
  .hero-content { padding-block-end: 10rem; }
  .hero h1 { max-inline-size: none; }
  .service-card-body { padding: 2rem; }
  .process-step { padding: 2rem; }
  .testimonial { padding: 2.5rem; }
}


.honeypot { position: absolute; left: -9999px; }

} /* end @layer components */
