/* =========================================================
   Gestoría Molina & Giró
   Archetype: Editorial cálido minimalista
   Display: Source Serif 4 Variable. Body: Inter. Mono: JetBrains Mono.
   Palette committed below. Do not drift.
   ========================================================= */

:root {
  /* Surfaces */
  --bg-cream: #F7F2E8;
  --bg-bone: #EFE9DC;
  --bg-paper: #FCFAF4;

  /* Ink */
  --ink: #1B1F1C;
  --ink-soft: #4A524C;
  --ink-mute: #7A7F78;

  /* Brand */
  --accent-green: #2E5A3B;
  --accent-green-deep: #214027;
  --accent-green-soft: #E4ECE3;
  --accent-green-glow: rgba(46, 90, 59, 0.45);
  --accent-terracota: #B86E50;

  /* Lines */
  --divider: rgba(27, 31, 28, 0.08);
  --divider-strong: rgba(27, 31, 28, 0.16);

  /* Type stack */
  --font-display: "Source Serif 4", "Source Serif Pro", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale */
  --shell-max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 9vw, 144px);

  /* Easing */
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-press: cubic-bezier(0.32, 0.72, 0, 1);

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg-cream);
  font-feature-settings: "ss01" on, "cv11" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, video, svg { max-width: 100%; display: block; }
img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 220ms var(--ease-soft);
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: var(--bg-cream);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  z-index: 200;
  font-size: 14px;
  transition: top 220ms var(--ease-soft);
}
.skip-link:focus { top: 16px; }

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

/* =========================================================
   Layout primitives
   ========================================================= */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-green);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow-on-dark { color: rgba(247, 242, 232, 0.78); }
.eyebrow-on-dark::before { background: rgba(247, 242, 232, 0.55); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--ink);
  margin: 0;
}

.h-xl { font-size: clamp(48px, 7.8vw, 116px); }
.h-lg { font-size: clamp(38px, 5.4vw, 76px); }
.h-md { font-size: clamp(30px, 3.6vw, 52px); }
.h-sm { font-size: clamp(24px, 2.4vw, 34px); }

.section-lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 20px 0 0;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(48px, 5vw, 88px);
}

@media (max-width: 860px) {
  .section-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }
}

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed;
  inset: 18px 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: transform 360ms var(--ease-soft);
}

.nav-inner {
  pointer-events: auto;
  position: relative;
  width: min(calc(100% - 32px), 1200px);
  display: flex;
  align-items: center;
  /* Brand pinned left edge, right cluster pinned right edge.
     Nav-links is positioned absolute-centered (see .nav-links rule below),
     so the links sit at the exact middle of the bar regardless of side widths. */
  justify-content: space-between;
  gap: clamp(20px, 2.4vw, 36px);
  padding: 10px 14px 10px 18px;
  background: rgba(247, 242, 232, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid var(--divider);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 18px 40px -28px rgba(27, 31, 28, 0.18);
  transition: background 320ms var(--ease-soft), box-shadow 320ms var(--ease-soft);
}
.nav.scrolled .nav-inner {
  background: rgba(247, 242, 232, 0.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 22px 50px -30px rgba(27, 31, 28, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent-green);
  letter-spacing: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.brand-name { display: none; }
@media (min-width: 720px) { .brand-name { display: inline; } }

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(18px, 1.8vw, 26px);
  font-size: clamp(13px, 1.15vw, 14px);
  color: var(--ink-soft);
  /* Absolute-centered: independent of brand width and right-cluster width.
     The links always sit at the exact horizontal middle of the bar. */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.nav-links a { position: relative; padding: 6px 0; transition: color 220ms var(--ease-soft); white-space: nowrap; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--accent-green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms var(--ease-soft);
}
.nav-links a:hover { color: var(--accent-green); }
.nav-links a:hover::after { transform: scaleX(1); }
/* Only show the central nav links when there is genuine room. Below this width the
   burger menu takes over, so the tight 980-1080px cramping range no longer exists. */
@media (min-width: 1080px) { .nav-links { display: inline-flex; } }

.nav-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Lang dropdown */
.lang-dropdown { position: relative; }
.lang-dropdown-trigger {
  appearance: none;
  background: rgba(27, 31, 28, 0.05);
  border: 1px solid var(--divider);
  color: var(--ink);
  padding: 7px 10px 7px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 220ms var(--ease-soft), border-color 220ms var(--ease-soft);
}
.lang-dropdown-trigger:hover {
  background: rgba(46, 90, 59, 0.08);
  border-color: rgba(46, 90, 59, 0.28);
}
.lang-dropdown-trigger .lang-chevron {
  display: inline-grid;
  place-items: center;
  width: 14px; height: 14px;
  transition: transform 280ms var(--ease-soft);
}
.lang-dropdown.is-open .lang-dropdown-trigger { background: var(--ink); color: var(--bg-cream); border-color: var(--ink); }
.lang-dropdown.is-open .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 160px;
  background: var(--bg-cream);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px -22px rgba(27, 31, 28, 0.35),
              0 1px 0 rgba(255, 255, 255, 0.6) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition: opacity 240ms var(--ease-soft),
              transform 280ms var(--ease-soft),
              visibility 240ms;
  z-index: 60;
}
.lang-dropdown.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.lang-menu li {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  transition: background 200ms var(--ease-soft), color 200ms var(--ease-soft);
}
.lang-menu li:hover { background: var(--bg-bone); color: var(--ink); }
.lang-menu li[aria-selected="true"] {
  background: rgba(46, 90, 59, 0.1);
  color: var(--accent-green);
}
.lang-menu .lang-code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.lang-menu .lang-name {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.005em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 260ms var(--ease-press),
              background 240ms var(--ease-soft),
              color 240ms var(--ease-soft),
              border-color 240ms var(--ease-soft),
              box-shadow 320ms var(--ease-soft);
  text-decoration: none;
  white-space: nowrap;
}
.btn .arrow {
  width: 18px; height: 18px;
  display: inline-grid; place-items: center;
  transition: transform 320ms var(--ease-soft);
}
.btn:hover .arrow { transform: translate(2px, -1px); }
.btn:active { transform: scale(0.985); }

.btn-primary {
  background: var(--accent-green);
  color: #F7F2E8;
}
.btn-primary:hover {
  background: var(--accent-green-deep);
  box-shadow: 0 14px 32px -20px var(--accent-green-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--divider-strong);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(27, 31, 28, 0.04);
}

.btn-glass {
  background: rgba(247, 242, 232, 0.16);
  color: var(--bg-cream);
  border-color: rgba(247, 242, 232, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-glass:hover {
  background: rgba(247, 242, 232, 0.26);
  border-color: rgba(247, 242, 232, 0.6);
}

.btn-compact {
  padding: 9px 16px 9px 12px;
  font-size: 13px;
  gap: 8px;
}
.btn-compact .cta-icon {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: rgba(247, 242, 232, 0.16);
  display: inline-grid;
  place-items: center;
}
.btn-compact .cta-icon svg { width: 12px; height: 12px; }
/* CTA text in the navbar collapses to icon-only on intermediate desktop widths
   to keep generous breathing room between links and the right-side cluster. */
@media (max-width: 1280px) {
  .btn-compact .cta-text { display: none; }
  .btn-compact { padding: 9px 12px; }
}
.btn-magnetic { will-change: transform; }

/* Mobile menu trigger */
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 320ms var(--ease-soft), opacity 220ms var(--ease-soft);
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 320ms var(--ease-soft);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1080px) { .menu-toggle { display: none; } }
@media (max-width: 1079px) { .nav-right .btn-primary { display: none; } }

.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(247, 242, 232, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: clamp(96px, 14vh, 140px) var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 340ms var(--ease-soft), visibility 340ms;
}
.menu-sheet[aria-hidden="false"] { opacity: 1; visibility: visible; }
.menu-sheet ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-display);
}
.menu-sheet li a {
  display: block;
  padding: 14px 0;
  font-size: clamp(28px, 7vw, 40px);
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--divider);
  transition: color 220ms var(--ease-soft), padding-left 280ms var(--ease-soft);
}
.menu-sheet li a:hover { color: var(--accent-green); padding-left: 8px; }
.menu-sheet .menu-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}
@media (min-width: 1080px) { .menu-sheet { display: none; } }

/* =========================================================
   HERO with full-bleed background
   ========================================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  padding-top: clamp(140px, 18vh, 200px);
  padding-bottom: clamp(80px, 12vh, 140px);
  background: var(--ink);
  color: var(--bg-cream);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.78) contrast(0.95) brightness(0.78);
  /* Subtle slow zoom for cinematic feel */
  animation: heroDrift 24s var(--ease-editorial) infinite alternate;
  will-change: transform;
}
@keyframes heroDrift {
  0%   { transform: scale(1.05) translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(27, 31, 28, 0.78) 0%, rgba(27, 31, 28, 0.55) 50%, rgba(27, 31, 28, 0.82) 100%),
    linear-gradient(115deg, rgba(33, 64, 39, 0.4) 0%, transparent 60%);
  pointer-events: none;
}
.hero-bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 30%, rgba(46, 90, 59, 0.28), transparent 55%),
    radial-gradient(circle at 88% 80%, rgba(184, 110, 80, 0.18), transparent 50%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.6;
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; transform: scale(1.05); }
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-copy {
  max-width: 760px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(24px, 4vh, 40px);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8.4vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--bg-cream);
  visibility: visible;
  opacity: 1;
}
.hero-title span { display: block; }
.hero-title em {
  font-style: italic;
  color: #B5D3BC;
  font-feature-settings: "ss02" on;
}
.hero-title .amp {
  display: inline;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent-terracota);
  font-weight: 400;
  margin: 0 0.08em;
}

.hero-tagline {
  margin: clamp(28px, 4vh, 44px) 0 0;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: rgba(247, 242, 232, 0.82);
  max-width: 52ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(32px, 4vh, 48px);
}

.hero-meta {
  margin-top: clamp(36px, 5vh, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding-top: 28px;
  border-top: 1px solid rgba(247, 242, 232, 0.16);
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: color 220ms var(--ease-soft);
}
.rating-badge:hover { color: var(--accent-green); }
.rating-badge .stars {
  display: inline-flex;
  gap: 2px;
  color: var(--accent-terracota);
}
.rating-badge .stars svg { width: 14px; height: 14px; }
.rating-badge .value {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.02em;
}
.rating-badge .label {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}
.rating-badge-on-dark { color: var(--bg-cream); }
.rating-badge-on-dark .label { color: rgba(247, 242, 232, 0.76); }
.rating-badge-on-dark:hover { color: #B5D3BC; }

/* Pulse promise */
.hero-promise {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(247, 242, 232, 0.78);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.hero-promise .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4DD37E;
  box-shadow: 0 0 0 4px rgba(77, 211, 126, 0.2),
              0 0 12px rgba(77, 211, 126, 0.7);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(77, 211, 126, 0.2),
                0 0 12px rgba(77, 211, 126, 0.65);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(77, 211, 126, 0),
                0 0 18px rgba(77, 211, 126, 0.45);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-promise .dot { animation: none; }
}

/* =========================================================
   STATS STRIP
   ========================================================= */
.stats {
  background: var(--bg-paper);
  border-bottom: 1px solid var(--divider);
  padding-top: clamp(56px, 6vw, 96px);
  padding-bottom: clamp(56px, 6vw, 96px);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(46, 90, 59, 0.06), transparent 50%),
    radial-gradient(ellipse at 85% 100%, rgba(184, 110, 80, 0.05), transparent 50%);
  pointer-events: none;
}

.stats-header {
  max-width: 720px;
  margin: 0 auto clamp(40px, 4vw, 64px);
  text-align: center;
}
.stats-header .eyebrow { justify-content: center; }
.stats-header .display { margin: 14px auto 0; max-width: 18ch; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--divider);
  position: relative;
}
.stats-grid::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--divider);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1200ms var(--ease-editorial);
}
.stats-grid.is-counted::after { transform: scaleX(1); }

@media (max-width: 960px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .stats-grid { grid-template-columns: 1fr; } }

.stat {
  padding: clamp(28px, 3vw, 48px) clamp(20px, 2.4vw, 32px);
  border-right: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.stat:last-child { border-right: 0; }
@media (max-width: 960px) {
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--divider); }
}
@media (max-width: 540px) {
  .stat { border-right: 0; border-bottom: 1px solid var(--divider); }
  .stat:last-child { border-bottom: 0; }
}

.stat-num { display: flex; align-items: baseline; gap: 10px; }
.stat-num .number {
  font-family: var(--font-display);
  font-size: clamp(60px, 6vw, 96px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" on, "lnum" on;
}
.stat-num .unit {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 6px;
}
.stat-label {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 36ch;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  background: var(--bg-bone);
  border-top: 1px solid var(--divider);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 34px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 320ms var(--ease-soft),
              background 320ms var(--ease-soft),
              transform 360ms var(--ease-soft),
              box-shadow 360ms var(--ease-soft);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(46, 90, 59, 0.10), transparent 55%);
  opacity: 0;
  transition: opacity 420ms var(--ease-soft);
  pointer-events: none;
  z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover {
  border-color: rgba(46, 90, 59, 0.45);
  background: #FFFDF6;
  transform: translateY(-3px);
  box-shadow: 0 22px 36px -28px rgba(46, 90, 59, 0.35);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-green-soft);
  display: grid;
  place-items: center;
  color: var(--accent-green);
  margin-bottom: 22px;
  transition: background 320ms var(--ease-soft),
              color 320ms var(--ease-soft),
              transform 360ms var(--ease-soft);
}
.service-icon svg { width: 20px; height: 20px; stroke-width: 1.3; }
.service-card:hover .service-icon {
  background: var(--accent-green);
  color: var(--bg-cream);
  transform: scale(1.04) rotate(-1deg);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 1.8vw, 28px);
  letter-spacing: -0.015em;
  font-weight: 400;
  margin: 0 0 10px;
  color: var(--ink);
}
.service-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.service-feature {
  grid-column: 1 / -1;
  background: var(--ink);
  color: var(--bg-cream);
  border-color: transparent;
  padding: clamp(28px, 3vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.service-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(184, 110, 80, 0.22), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(46, 90, 59, 0.35), transparent 55%);
  pointer-events: none;
  transition: opacity 400ms var(--ease-soft);
}
.service-feature:hover {
  transform: none;
  box-shadow: 0 24px 48px -32px rgba(46, 90, 59, 0.55);
  border-color: transparent;
  background: var(--ink);
}
.service-feature > * { position: relative; z-index: 1; }

.service-feature-left { display: flex; flex-direction: column; gap: 18px; }
.service-feature .service-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--bg-cream);
  width: max-content;
}
.service-feature .service-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--bg-cream);
  margin: 0;
}
.service-feature:hover .service-icon {
  background: var(--accent-terracota);
  color: var(--bg-cream);
  transform: scale(1.05) rotate(-2deg);
}
.service-feature h3 {
  font-size: clamp(40px, 4.4vw, 64px);
  color: var(--bg-cream);
  margin: 0;
  line-height: 0.98;
}
.service-feature-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: clamp(20px, 3vw, 40px);
}
.service-feature-right p {
  color: rgba(247, 242, 232, 0.78);
  font-size: 16px;
  max-width: 42ch;
  line-height: 1.55;
  margin: 0;
}
.service-feature-right .footnote {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(247, 242, 232, 0.5);
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 800px) {
  .service-feature { grid-template-columns: 1fr; gap: 20px; }
  .service-feature-right { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-left: 0; padding-top: 20px; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  background: var(--bg-cream);
  border-top: 1px solid var(--divider);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.person {
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 480ms var(--ease-soft),
              box-shadow 480ms var(--ease-soft),
              border-color 320ms var(--ease-soft);
  cursor: default;
}
.person:hover {
  transform: translateY(-6px);
  border-color: rgba(46, 90, 59, 0.35);
  box-shadow: 0 32px 64px -40px rgba(27, 31, 28, 0.45);
}

.person-portrait {
  aspect-ratio: 5 / 4;
  background: linear-gradient(180deg, var(--accent-green-soft), #DEE6DD);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.person-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(46, 90, 59, 0.20), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(184, 110, 80, 0.10), transparent 55%);
  transition: opacity 600ms var(--ease-soft), transform 800ms var(--ease-soft);
  opacity: 0.9;
}
.person:hover .person-portrait::before { opacity: 1; transform: scale(1.08); }
.person-portrait .initials {
  font-family: var(--font-display);
  font-size: clamp(96px, 11vw, 160px);
  font-style: italic;
  color: var(--accent-green);
  letter-spacing: -0.04em;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: transform 600ms var(--ease-soft), color 320ms var(--ease-soft);
}
.person:hover .person-portrait .initials {
  transform: translateY(-4px) scale(1.04);
  color: var(--accent-green-deep);
}
.portrait-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.32) 50%,
    transparent 65%);
  transform: translateX(-130%);
  transition: transform 1100ms var(--ease-editorial);
  pointer-events: none;
  z-index: 2;
}
.person:hover .portrait-sheen { transform: translateX(130%); }

.person-body {
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.person-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-green);
}
.person-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 400;
  color: var(--ink);
}
.person-bio {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.about-footnote {
  margin-top: clamp(40px, 4vw, 64px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
}

/* =========================================================
   PROCESS
   ========================================================= */
.process { background: var(--bg-bone); border-top: 1px solid var(--divider); }

.process-wrap { position: relative; }

.process-line {
  position: absolute;
  left: 14px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--divider);
  overflow: hidden;
  pointer-events: none;
}
.process-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-green), var(--accent-green-deep));
  transform: scaleY(0);
  transform-origin: top center;
}
@media (min-width: 860px) { .process-line { left: 22px; } }

.process-list { list-style: none; margin: 0; padding: 0; }

.process-item {
  display: grid;
  grid-template-columns: 28px 100px 1fr;
  gap: clamp(16px, 2.5vw, 48px);
  padding: clamp(28px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--divider);
  align-items: center;
  position: relative;
  transition: padding-left 320ms var(--ease-soft);
}
.process-item:last-child { border-bottom: 0; }
.process-item:hover { padding-left: 8px; }

.process-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--bg-cream);
  border: 1px solid var(--divider-strong);
  margin-left: 9px;
  position: relative;
  z-index: 2;
  transition: background 320ms var(--ease-soft),
              border-color 320ms var(--ease-soft),
              transform 320ms var(--ease-soft);
}
.process-item.is-active .process-dot,
.process-item:hover .process-dot {
  background: var(--accent-green);
  border-color: var(--accent-green);
  transform: scale(1.15);
}
@media (min-width: 860px) { .process-dot { margin-left: 17px; } }

.process-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 64px);
  font-style: italic;
  color: var(--accent-terracota);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: transform 480ms var(--ease-soft), color 320ms var(--ease-soft);
}
.process-item:hover .process-num {
  transform: translateX(2px);
  color: var(--accent-green);
}

.process-body { display: flex; flex-direction: column; gap: 8px; }
.process-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}
.process-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 56ch;
}
@media (max-width: 860px) {
  .process-item { grid-template-columns: 28px 1fr; }
  .process-num { grid-column: 2; font-size: 32px; margin-bottom: 4px; }
  .process-body { grid-column: 2; }
}

/* =========================================================
   TESTIMONIALS — premium reimagining
   ========================================================= */
.testimonials {
  background: var(--bg-bone);
  border-top: 1px solid var(--divider);
}

/* Outer frame: one continuous editorial block. Cards live INSIDE it with 0 gap and
   shared internal dividers. No orphan borders, no cream gaps showing through. */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 30px 60px -42px rgba(27, 31, 28, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
  position: relative;
}
/* Soft outer glow that breathes very slowly. Anchored to the frame so it doesn't move with scroll. */
.testimonials-grid::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(46, 90, 59, 0.05), transparent 40%),
    radial-gradient(ellipse at 80% 100%, rgba(184, 110, 80, 0.04), transparent 40%);
  z-index: 0;
}
@media (max-width: 1080px) { .testimonials-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial {
  background: var(--bg-paper);
  z-index: 1;
  /* Internal lines only. Shared between adjacent cards inside the same outer frame. */
  border-right: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  /* Asymmetric padding: more breathing room at the top where the quote mark sits,
     tighter at the bottom where the author block lives. Editorial rhythm. */
  padding: clamp(32px, 2.8vw, 44px) clamp(26px, 2.4vw, 38px) clamp(24px, 2.2vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background 420ms var(--ease-soft),
              z-index 0ms 420ms;
}
.testimonial::after {
  /* green accent line that slides in from left on hover */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-green);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 520ms var(--ease-editorial);
  z-index: 1;
}
.testimonial::before {
  /* warm radial wash that grows from top-right where the quote sits */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(46, 90, 59, 0.12), transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(184, 110, 80, 0.05), transparent 55%);
  opacity: 0;
  transition: opacity 520ms var(--ease-soft);
  pointer-events: none;
  z-index: 0;
}
.testimonial > * { position: relative; z-index: 2; }
.testimonial:hover {
  background: #FFFDF6;
  z-index: 3;
}
.testimonial:hover::after { transform: scaleY(1); }
.testimonial:hover::before { opacity: 1; }

/* Internal motion: the box stays put, the CONTENT comes alive on hover */
.testimonial blockquote,
.testimonial .stars,
.testimonial .testimonial-author {
  transition: transform 560ms var(--ease-editorial), color 360ms var(--ease-soft);
  will-change: transform;
}
.testimonial:hover blockquote { transform: translateY(-3px); }
.testimonial:hover .stars     { transform: translateY(-2px) rotate(-2deg); }
.testimonial:hover .testimonial-author { transform: translateY(-1px); }

/* Big serif quote mark — more confident, with spring-like motion on hover */
.quote-mark {
  position: absolute;
  top: -2px;
  right: 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(120px, 11vw, 168px);
  line-height: 1;
  color: rgba(46, 90, 59, 0.10);
  pointer-events: none;
  transition: color 520ms var(--ease-soft),
              transform 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
  font-feature-settings: "ss02" on;
}
.testimonial:hover .quote-mark {
  color: rgba(46, 90, 59, 0.24);
  transform: translate(-6px, 6px) rotate(-5deg) scale(1.08);
}

/* No more rigid min-height — let content size them naturally for editorial rhythm.
   The grid auto-rows still align cards in the same row to share a baseline. */
.testimonial.is-half { grid-column: span 3; }
.testimonial.is-mid  { grid-column: span 2; }

/* Strip the redundant outer-edge borders from cards that sit on the right column or bottom row.
   The outer frame already has its border. With our fixed 6-col layout: feature(4)+mid(2) | half(3)+half(3) | half(3)+half(3) */
.testimonials-grid .testimonial:nth-child(2),   /* mid (row 1 right) */
.testimonials-grid .testimonial:nth-child(4),   /* half (row 2 right) */
.testimonials-grid .testimonial:nth-child(6) {  /* half (row 3 right) */
  border-right: 0;
}
.testimonials-grid .testimonial:nth-child(5),
.testimonials-grid .testimonial:nth-child(6) {
  border-bottom: 0;
}
.testimonial.is-feature {
  grid-column: span 4;
  background: var(--ink);
  color: var(--bg-cream);
  border-color: transparent;
  padding: clamp(36px, 4vw, 56px);
}
.testimonial.is-feature::before {
  background: radial-gradient(circle at 90% 10%, rgba(46, 90, 59, 0.55), transparent 55%);
  opacity: 1;
}
.testimonial.is-feature::after { background: var(--accent-terracota); transform: scaleY(1); width: 3px; }
.testimonial.is-feature:hover { background: var(--ink); }
.testimonial.is-feature .quote-mark {
  color: rgba(247, 242, 232, 0.12);
  font-size: 160px;
  top: 0;
  right: 24px;
}
.testimonial.is-feature:hover .quote-mark { color: rgba(247, 242, 232, 0.2); }

@media (max-width: 1080px) {
  /* 4-col: feature spans full, then mid spans 4 below, half pairs span 2+2 */
  .testimonial.is-feature { grid-column: span 4; }
  .testimonial.is-mid  { grid-column: span 4; min-height: 180px; }
  .testimonial.is-half { grid-column: span 2; }
  /* Reset desktop nth-child edge rules and reapply for the new wrap order */
  .testimonials-grid .testimonial { border-right: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
  .testimonials-grid .testimonial:nth-child(2n+1) { border-right: 1px solid var(--divider); }
  .testimonials-grid .testimonial:nth-child(2n) { border-right: 0; }
  .testimonials-grid .testimonial:nth-child(1),
  .testimonials-grid .testimonial:nth-child(2) { border-right: 0; }
  .testimonials-grid .testimonial:nth-child(5),
  .testimonials-grid .testimonial:nth-child(6) { border-bottom: 0; }
}
@media (max-width: 720px) {
  /* 2-col: feature full-width, mid full-width, halves split 1+1 */
  .testimonial.is-feature { grid-column: span 2; }
  .testimonial.is-mid     { grid-column: span 2; }
  .testimonial.is-half    { grid-column: span 1; min-height: 200px; }
  .testimonials-grid .testimonial { border-right: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
  .testimonials-grid .testimonial:nth-child(1),
  .testimonials-grid .testimonial:nth-child(2) { border-right: 0; }
  .testimonials-grid .testimonial:nth-child(2n) { border-right: 0; }
  .testimonials-grid .testimonial:nth-child(5),
  .testimonials-grid .testimonial:nth-child(6) { border-bottom: 0; }
  .testimonial.is-feature .quote-mark { font-size: 110px; }
  .testimonial.is-feature blockquote { font-size: clamp(20px, 2.6vw, 28px); }
}
@media (max-width: 640px) {
  .testimonial.is-feature,
  .testimonial.is-mid,
  .testimonial.is-half { grid-column: 1; min-height: 0; }
  .testimonials-grid .testimonial { border-right: 0; border-bottom: 1px solid var(--divider); }
  .testimonials-grid .testimonial:last-child { border-bottom: 0; }
}

.testimonial .stars {
  display: inline-flex;
  gap: 2px;
  color: var(--accent-terracota);
}
.testimonial .stars svg { width: 14px; height: 14px; }

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}
.testimonial.is-feature blockquote {
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.25;
  color: var(--bg-cream);
}

.testimonial-author {
  margin-top: auto;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  position: relative;
}
.testimonial-author::before {
  /* fine divider above the author block. Starts narrow, expands on card hover. */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--divider-strong);
  transition: width 540ms var(--ease-editorial), background 320ms var(--ease-soft);
}
.testimonial:hover .testimonial-author::before {
  width: 64px;
  background: var(--accent-green);
}
.testimonial.is-feature .testimonial-author::before { background: rgba(247, 242, 232, 0.2); }
.testimonial.is-feature:hover .testimonial-author::before { background: var(--accent-terracota); }

.testimonial-author .monogram {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--accent-green);
  background: var(--accent-green-soft);
  border: 1px solid rgba(46, 90, 59, 0.18);
  transition: transform 480ms var(--ease-soft),
              background 320ms var(--ease-soft),
              color 320ms var(--ease-soft);
}
.testimonial:hover .monogram {
  transform: scale(1.05) rotate(-3deg);
  background: var(--accent-green);
  color: var(--bg-cream);
}
.testimonial.is-feature .monogram {
  background: rgba(247, 242, 232, 0.10);
  border-color: rgba(247, 242, 232, 0.22);
  color: var(--bg-cream);
}
.testimonial.is-feature:hover .monogram {
  background: var(--accent-terracota);
  color: var(--bg-cream);
}

.testimonial-author .author-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.testimonial-author .name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.testimonial.is-feature .testimonial-author .name { color: var(--bg-cream); }
.testimonial-author .context {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.testimonial.is-feature .testimonial-author .context { color: rgba(247, 242, 232, 0.55); }

.testimonials-cta {
  margin-top: clamp(36px, 4vw, 56px);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background: var(--bg-bone);
  border-top: 1px solid var(--divider);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
}
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-side,
.contact-form-wrap {
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 320ms var(--ease-soft),
              transform 360ms var(--ease-soft),
              box-shadow 360ms var(--ease-soft);
}
.contact-side:hover,
.contact-form-wrap:hover {
  border-color: rgba(46, 90, 59, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 28px 56px -36px rgba(46, 90, 59, 0.35);
}
.contact-side > *,
.contact-form-wrap > * { position: relative; z-index: 1; }

.contact-accent {
  position: absolute;
  top: -120px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(46, 90, 59, 0.18), transparent 65%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
  transition: opacity 600ms var(--ease-soft);
  opacity: 0.7;
}
.contact-side:hover .contact-accent,
.contact-form-wrap:hover .contact-accent { opacity: 1; }
.contact-accent-right {
  left: auto;
  right: -120px;
  top: auto;
  bottom: -120px;
  background: radial-gradient(circle, rgba(184, 110, 80, 0.15), transparent 65%);
}

.contact-map {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--divider);
  aspect-ratio: 16 / 11;
  margin-bottom: 28px;
  background: var(--bg-bone);
  position: relative;
  transition: border-color 320ms var(--ease-soft), box-shadow 360ms var(--ease-soft);
}
.contact-side:hover .contact-map {
  border-color: rgba(46, 90, 59, 0.4);
  box-shadow: 0 12px 28px -22px rgba(46, 90, 59, 0.5);
}
.contact-map iframe {
  width: 100%; height: 100%; border: 0;
  display: block;
  filter: saturate(0.85) contrast(0.95);
}

.contact-details { display: flex; flex-direction: column; gap: 22px; }

.contact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--divider);
  align-items: baseline;
}
.contact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.contact-row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.contact-row dd a { color: var(--ink); border-bottom: 1px solid transparent; transition: color 220ms var(--ease-soft), border-color 220ms var(--ease-soft); }
.contact-row dd a:hover { color: var(--accent-green); border-bottom-color: var(--accent-green); }
.contact-row dd .secondary { font-size: 13px; color: var(--ink-soft); display: block; margin-top: 4px; font-family: var(--font-mono); letter-spacing: 0.04em; }

/* Hours table: aligned day column + tabular value column */
.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(72px, max-content) 1fr;
  column-gap: clamp(12px, 2vw, 20px);
  row-gap: 4px;
  font-size: 13.5px;
  line-height: 1.4;
}
.hours-list li {
  display: contents;
}
.hours-list .hday {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
  align-self: center;
  padding: 4px 0;
}
.hours-list .hval {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" on, "lnum" on;
  align-self: center;
  padding: 4px 0;
  min-width: 0;
}
.hours-list li.closed .hval {
  color: var(--ink-mute);
  font-style: italic;
}

.contact-row dd .hours-online {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(46, 90, 59, 0.07);
  border: 1px solid rgba(46, 90, 59, 0.22);
  border-radius: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.contact-row dd .hours-online .ho-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4DD37E;
  box-shadow: 0 0 0 3px rgba(77, 211, 126, 0.18), 0 0 8px rgba(77, 211, 126, 0.55);
  flex-shrink: 0;
}
.contact-row dd .hours-online .ho-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.contact-row dd .hours-online .ho-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-green);
  line-height: 1.2;
}
.contact-row dd .hours-online .ho-detail {
  font-size: 13px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" on, "lnum" on;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--accent-green);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  width: max-content;
}
.contact-directions svg { width: 14px; height: 14px; }

/* form */
.contact-form-wrap { flex: 1; }
.contact-form-wrap h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.2vw, 34px);
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 6px;
}
.contact-form-wrap .form-subtitle {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.form { display: grid; gap: 18px; flex: 1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color 220ms var(--ease-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-cream);
  border: 1px solid var(--divider);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 240ms var(--ease-soft), background 240ms var(--ease-soft), box-shadow 280ms var(--ease-soft);
  font-family: inherit;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-mute);
  font-family: var(--font-sans);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  background: var(--bg-paper);
  box-shadow: 0 0 0 4px rgba(46, 90, 59, 0.12);
}
.field input:focus + label,
.field:focus-within label { color: var(--accent-green); }
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%234A524C' stroke-width='1.25' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.form-status {
  font-size: 13px;
  color: var(--ink-soft);
  min-height: 1.2em;
}
.form-status.is-success { color: var(--accent-green); }
.form-status.is-error { color: #B0413E; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ink);
  color: rgba(247, 242, 232, 0.78);
  padding: clamp(56px, 7vw, 96px) 0 32px;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(247, 242, 232, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.6fr;
  gap: clamp(28px, 3vw, 56px);
  margin-bottom: clamp(40px, 5vw, 72px);
}
/* Below 980px: all 3 cols in one row — still readable at 980-740px range */
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: clamp(18px, 2vw, 32px); } }
/* Below 640px: brand on top, then services + contact side-by-side, then they collapse */
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 440px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer .brand { color: var(--bg-cream); }
.footer .brand-mark {
  background: rgba(247, 242, 232, 0.06);
  border-color: rgba(247, 242, 232, 0.12);
  color: var(--bg-cream);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.55);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.footer-col ul a {
  color: rgba(247, 242, 232, 0.78);
  transition: color 220ms var(--ease-soft);
}
.footer-col ul a:hover { color: var(--bg-cream); }

.footer-brand p {
  margin: 14px 0 22px;
  max-width: 32ch;
  font-size: 14px;
  color: rgba(247, 242, 232, 0.6);
  line-height: 1.55;
}
.footer-brand h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.55);
  margin: 0 0 12px;
  font-weight: 500;
}

.social-links { display: inline-flex; gap: 10px; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 242, 232, 0.16);
  color: rgba(247, 242, 232, 0.7);
  transition: color 220ms var(--ease-soft), border-color 220ms var(--ease-soft), background 220ms var(--ease-soft);
}
.social-links a:hover {
  color: var(--bg-cream);
  border-color: rgba(247, 242, 232, 0.4);
  background: rgba(247, 242, 232, 0.04);
}
.social-links svg { width: 16px; height: 16px; }

/* Quick contact buttons */
.footer-quick .quick-actions { display: flex; flex-direction: column; gap: 10px; }
.quick-btn {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 16px 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(247, 242, 232, 0.12);
  background: rgba(247, 242, 232, 0.03);
  color: rgba(247, 242, 232, 0.78);
  transition: background 240ms var(--ease-soft),
              border-color 240ms var(--ease-soft),
              transform 320ms var(--ease-soft),
              color 240ms var(--ease-soft);
  text-decoration: none;
}
.quick-btn:hover {
  background: rgba(46, 90, 59, 0.18);
  border-color: rgba(46, 90, 59, 0.4);
  color: var(--bg-cream);
  transform: translateX(2px);
}
.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(46, 90, 59, 0.22);
  border: 1px solid rgba(46, 90, 59, 0.38);
  color: var(--bg-cream);
  transition: background 240ms var(--ease-soft), transform 360ms var(--ease-soft);
}
.quick-icon svg { width: 18px; height: 18px; stroke-width: 1.4; }
.quick-btn:hover .quick-icon {
  background: var(--accent-green);
  transform: scale(1.04) rotate(-2deg);
}
.quick-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quick-label .quick-action {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.55);
}
.quick-label .quick-detail {
  font-size: 14px;
  color: var(--bg-cream);
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-smallprint {
  border-top: 1px solid rgba(247, 242, 232, 0.08);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: rgba(247, 242, 232, 0.5);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.unobis-credit {
  color: var(--accent-green);
  position: relative;
  transition: color 220ms var(--ease-soft);
}
.unobis-credit::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-soft);
}
.unobis-credit:hover { color: #4A8E5F; }
.unobis-credit:hover::after { transform: scaleX(1); }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
[data-reveal] { opacity: 1; transform: none; }

.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 720ms var(--ease-editorial),
              transform 720ms var(--ease-editorial);
}
.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .stats-grid::after { transform: scaleX(1) !important; transition: none !important; }
  .process-line-fill { transform: scaleY(1) !important; transition: none !important; }
  .hero-bg img { animation: none !important; }
}

/* =========================================================
   UTILITIES
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
