/* ==========================================================================
   SINAI PAZ REAL ESTATE — Design System
   Brand: charcoal-dominant, warm ivory, signature sage. Editorial luxury.
   "Build the Life You Moved to Texas For."
   Fonts: Cormorant Garamond (display) · Manrope (body/UI) · Inter (data)
   ========================================================================== */

/* ---------- Design tokens ------------------------------------------------- */
:root {
  /* Brand palette — logo sheet (#7A8672 olive, #AEB8A8 sage, #F2EEE8 cream,
     #D7CEC2 taupe) + website proportions from the brand direction PDF */
  --charcoal:      #2F3437;   /* 45% — primary (website charcoal per PDF) */
  --charcoal-soft: #3D4447;
  --ivory:         #F8F6F2;   /* 30% — backgrounds */
  --ivory-deep:    #F2EEE8;   /* brand cream (logo sheet) */
  --sage:          #8D9B87;   /* 15% — signature / interactive */
  --sage-deep:     #7A8672;   /* brand olive (logo wordmark color) */
  --olive:         #7A8672;   /* alias — logo olive */
  --sage-light:    #AEB8A8;   /* brand light sage (logo sheet) */
  --sage-tint:     #E7EBE3;
  --blush:         #DCC7C2;   /*  7% — subtle warmth accent */
  --blush-tint:    #F3EAE7;
  --sand:          #D7CEC2;   /*  3% — brand taupe (logo sheet) */
  --forest:        #5E6C5B;   /* success / closing accents */
  --stone:         #A7A6A2;   /* secondary text / borders */

  /* Semantic */
  --bg:            var(--ivory);
  --surface:       #FFFFFF;
  --ink:           var(--charcoal);
  --ink-2:         #55605C;
  --ink-3:         var(--stone);
  --line:          #E4DFD6;
  --line-strong:   #D6CFC3;

  /* Typography */
  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-data:    "Inter", var(--f-body);

  /* Fluid type scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-3:  clamp(2.1rem, 1.7rem + 2vw, 3.2rem);
  --step-4:  clamp(2.8rem, 2rem + 4vw, 5rem);
  --step-5:  clamp(3.4rem, 2.2rem + 6vw, 6.5rem);

  /* Space */
  --sp-1: 0.5rem; --sp-2: 1rem; --sp-3: 1.5rem; --sp-4: 2rem;
  --sp-5: 3rem;  --sp-6: 4.5rem; --sp-7: 6.5rem; --sp-8: 9rem;

  /* Radii / shadow / motion */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(47,52,55,.06);
  --shadow-md: 0 14px 40px -18px rgba(47,52,55,.28);
  --shadow-lg: 0 40px 80px -30px rgba(47,52,55,.35);
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .6s;

  --container: 1200px;
  --container-wide: 1360px;
  --nav-h: 78px;
}

/* ---------- Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.06; color: var(--ink); letter-spacing: .002em; }
.display   { font-size: var(--step-5); font-weight: 500; line-height: 1.0; }
h1, .h1    { font-size: var(--step-4); }
h2, .h2    { font-size: var(--step-3); }
h3, .h3    { font-size: var(--step-2); }
h4, .h4    { font-size: var(--step-1); font-family: var(--f-body); font-weight: 700; letter-spacing: -.01em; }
p { color: var(--ink-2); }
.lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); font-weight: 400; }

.eyebrow {
  font-family: var(--f-body); font-size: .74rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--sage-deep);
  display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--sage); display: inline-block; }
.eyebrow.center::after { content: ""; width: 30px; height: 1px; background: var(--sage); display: inline-block; }

.script { font-family: var(--f-display); font-style: italic; font-weight: 500; color: var(--sage-deep); }
.text-sage { color: var(--sage-deep); }
.serif-em { font-family: var(--f-display); font-style: italic; font-weight: 500; }

/* ---------- Layout -------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.container-wide { max-width: var(--container-wide); }
.section { padding-block: clamp(3.5rem, 8vw, var(--sp-8)); }
.section-tight { padding-block: clamp(2.5rem, 5vw, var(--sp-6)); }
.bg-ivory { background: var(--ivory); }
.bg-ivory-deep { background: var(--ivory-deep); }
.bg-surface { background: var(--surface); }
.bg-charcoal { background: var(--charcoal); color: var(--ivory); }
.bg-charcoal h1, .bg-charcoal h2, .bg-charcoal h3, .bg-charcoal h4 { color: #fff; }
.bg-charcoal p { color: rgba(248,246,242,.72); }
.bg-sage-tint { background: var(--sage-tint); }
.bg-sand { background: var(--sand); }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 { margin-bottom: 1rem; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  --_bg: var(--charcoal); --_fg: #fff; --_bd: var(--charcoal);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--f-body); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: .95em 1.7em; border-radius: var(--r-pill);
  background: var(--_bg); color: var(--_fg); border: 1.5px solid var(--_bd);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              transform .25s var(--ease), box-shadow .3s var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--sage); border-color: var(--sage); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn .btn-arrow { transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-outline { --_bg: transparent; --_fg: var(--charcoal); --_bd: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.btn-sage { --_bg: var(--sage); --_fg: #fff; --_bd: var(--sage); }
.btn-sage:hover { background: var(--charcoal); border-color: var(--charcoal); }
.btn-ghost { --_bg: transparent; --_fg: var(--ivory); --_bd: rgba(248,246,242,.35); }
.btn-ghost:hover { background: var(--ivory); border-color: var(--ivory); color: var(--charcoal); }
.btn-lg { padding: 1.1em 2.1em; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .92rem; color: var(--sage-deep); }
.link-arrow .btn-arrow { transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--charcoal); }
.link-arrow:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Brand logo (real Sinai Paz artwork) --------------------------- */
.brandmark { display: inline-flex; align-items: center; gap: .65rem; }
.brandmark .logo-mark {
  width: 46px; height: 33px; flex: none;
  background: url("../img/brand/logo-submark.png") center/contain no-repeat;
}
.brandmark .wordmark { display: flex; flex-direction: column; line-height: 1; }
.brandmark .wm-name { font-family: var(--f-display); font-size: 1.32rem; font-weight: 600; letter-spacing: .22em; color: var(--olive); }
.brandmark .wm-sub  { font-family: var(--f-body); font-size: .52rem; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: var(--sage-deep); margin-top: 3px; padding-left: .12em; }
/* on dark surfaces — ivory reversed mark */
.on-dark .wm-name, .bg-charcoal .brandmark .wm-name { color: #fff; }
.on-dark .wm-sub, .bg-charcoal .brandmark .wm-sub { color: var(--sand); }
.on-dark .logo-mark, .bg-charcoal .brandmark .logo-mark { background-image: url("../img/brand/logo-submark-ivory.png"); }
/* footer full lockup */
.f-logo img { width: min(230px, 64vw); height: auto; }

/* ---------- Navigation ---------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), height var(--dur) var(--ease);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav.scrolled { background: rgba(248,246,242,.86); backdrop-filter: saturate(140%) blur(16px); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); height: 66px; }
/* transparent-over-hero state */
.nav.on-hero:not(.scrolled) .wm-name { color: #fff; }
.nav.on-hero:not(.scrolled) .wm-sub { color: var(--sand); }
.nav.on-hero:not(.scrolled) .logo-mark { background-image: url("../img/brand/logo-submark-ivory.png"); }
.nav.on-hero:not(.scrolled) .nav-links a { color: rgba(255,255,255,.9); }
.nav.on-hero:not(.scrolled) .nav-links a:hover { color: #fff; }
.nav.on-hero:not(.scrolled) .nav-lang { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.35); }
.nav.on-hero:not(.scrolled) .nav-toggle span { background: #fff; }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav-links a { font-size: .9rem; font-weight: 600; color: var(--ink); letter-spacing: .01em; position: relative; padding: .3em 0; transition: color .3s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: var(--sage); transition: width .3s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--sage-deep); }

.nav-right { display: flex; align-items: center; gap: 1.1rem; }
.nav-lang {
  display: inline-flex; align-items: center; gap: .3rem; font-family: var(--f-data);
  font-size: .74rem; font-weight: 600; letter-spacing: .06em; color: var(--ink-2);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: .35rem .7rem;
  transition: all .3s var(--ease);
}
.nav-lang:hover { border-color: var(--sage); color: var(--sage-deep); }
.nav-lang .lang-active { color: var(--sage-deep); }

.nav-toggle { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s var(--ease); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column;
  background: var(--ivory); padding: calc(var(--nav-h) + 1.5rem) clamp(1.5rem,7vw,3rem) 2.5rem;
  transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
  overflow-y: auto;
}
.nav-open .mobile-menu { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a.m-link { font-family: var(--f-display); font-size: 2rem; font-weight: 500; padding: .5rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.mobile-menu a.m-link:hover { color: var(--sage-deep); padding-left: .5rem; transition: padding .3s var(--ease); }
.mobile-menu .m-actions { margin-top: auto; padding-top: 2rem; display: grid; gap: .8rem; }

/* ---------- Hero ---------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,33,35,.35) 0%, rgba(29,33,35,.12) 38%, rgba(29,33,35,.55) 78%, rgba(29,33,35,.82) 100%);
}
/* Designed placeholder when no photo/video yet */
.hero-placeholder {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(141,155,135,.42), transparent 55%),
    radial-gradient(90% 80% at 10% 90%, rgba(220,199,194,.30), transparent 60%),
    linear-gradient(160deg, #40474A 0%, #2F3437 55%, #262B2D 100%);
}
.hero-placeholder .grain { position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
.hero-placeholder .branch { position: absolute; right: 2%; top: 10%; width: min(38vw, 480px); opacity: .14; transform: rotate(6deg); }

.hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(3rem, 8vh, 7rem); padding-top: calc(var(--nav-h) + 2rem); }
.hero-eyebrow { color: var(--sand); letter-spacing: .3em; }
.hero-eyebrow::before { background: var(--sand); }
.hero h1 { color: #fff; max-width: 16ch; margin: 1.2rem 0 1.4rem; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero .hero-sub { max-width: 54ch; color: rgba(255,255,255,.9); font-size: var(--step-1); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .5rem; color: rgba(255,255,255,.7); font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; }
.hero-scroll .mouse { width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 12px; position: relative; }
.hero-scroll .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 6px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%,0); } 30% { opacity: 1; } 60% { opacity: 1; transform: translate(-50%,9px); } 100% { opacity: 0; transform: translate(-50%,12px); } }

/* Quick-path band under hero */
.pathband { position: relative; z-index: 3; margin-top: -3.5rem; }
.pathband-inner { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(1.2rem,3vw,2rem); display: grid; grid-template-columns: repeat(4,1fr); gap: .5rem; }
.pathband h3 { grid-column: 1/-1; text-align: center; font-size: 1.1rem; font-family: var(--f-body); font-weight: 700; color: var(--ink-2); margin-bottom: .4rem; letter-spacing: .01em; }
.path-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; padding: 1.4rem 1rem; border-radius: var(--r-md); transition: background .3s var(--ease), transform .3s var(--ease); }
.path-card:hover { background: var(--sage-tint); transform: translateY(-3px); }
.path-card .pc-icon { width: 46px; height: 46px; color: var(--sage-deep); }
.path-card .pc-title { font-weight: 700; font-size: 1rem; color: var(--ink); }
.path-card .pc-sub { font-size: .82rem; color: var(--ink-3); }
@media (max-width: 780px) { .pathband-inner { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 420px) { .pathband-inner { grid-template-columns: 1fr; } }

/* ---------- Media / image treatment -------------------------------------- */
.media { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--ivory-deep); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.media:hover img { transform: scale(1.04); }
.media-tall { aspect-ratio: 3/4; }
.media-wide { aspect-ratio: 16/10; }
.media-square { aspect-ratio: 1/1; }

/* Elegant photo placeholder */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background:
    radial-gradient(90% 70% at 75% 20%, rgba(141,155,135,.28), transparent 60%),
    linear-gradient(150deg, #EEEAE2 0%, #E3DED4 60%, #D9CCBC 100%);
  display: flex; align-items: center; justify-content: center;
}
.ph::before { content: ""; position: absolute; inset: 0; opacity: .4; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E"); }
.ph-label { position: relative; z-index: 1; font-family: var(--f-data); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-deep); text-align: center; padding: .6rem 1rem; opacity: .8; }
.ph .ph-branch { position: absolute; z-index: 0; width: 46%; max-width: 240px; opacity: .3; }
.ph.dark { background: linear-gradient(150deg,#3A4143,#2F3437); }
.ph.dark .ph-label { color: var(--sand); }
.ph.dark .ph-branch { opacity: .22; }

/* ---------- Cards --------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card-body { padding: clamp(1.3rem, 2vw, 1.8rem); }
.card-body h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.card .card-media { aspect-ratio: 4/3; }

/* Lifestyle path cards (image + overlay label) */
.lifecard { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.lifecard .ph, .lifecard .media { position: absolute; inset: 0; border-radius: 0; z-index: -1; }
.lifecard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(29,33,35,.75) 100%); }
.lifecard .lc-body { padding: 1.5rem; width: 100%; }
.lifecard .lc-icon { width: 34px; height: 34px; color: #fff; margin-bottom: .6rem; opacity: .95; }
.lifecard h3 { color: #fff; font-size: 1.5rem; margin-bottom: .2rem; }
.lifecard p { color: rgba(255,255,255,.82); font-size: .88rem; }
.lifecard .lc-more { margin-top: .8rem; font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--sand); opacity: 0; transform: translateY(6px); transition: all .35s var(--ease); }
.lifecard:hover .lc-more { opacity: 1; transform: translateY(0); }
.lifecard:hover .media img { transform: scale(1.06); }
.lifecard.tall { min-height: 420px; }

/* Feature (icon) tiles */
.feature { padding: 1.6rem 0; }
.feature .ft-icon { width: 44px; height: 44px; color: var(--sage-deep); margin-bottom: 1rem; }
.feature h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.feature p { font-size: .95rem; }

/* ---------- Roadmap / steps ---------------------------------------------- */
.roadmap { counter-reset: step; display: grid; gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.roadmap.grid-6 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .roadmap.grid-6 { grid-template-columns: 1fr; } }
.rm-step { counter-increment: step; background: var(--surface); padding: 1.8rem; position: relative; transition: background .3s var(--ease); }
.rm-step:hover { background: var(--sage-tint); }
.rm-step .rm-num { font-family: var(--f-display); font-size: 2.4rem; color: var(--sage); line-height: 1; }
.rm-step .rm-num::before { content: "0" counter(step); }
.rm-step h3 { font-size: 1.25rem; margin: .5rem 0 .3rem; }
.rm-step p { font-size: .88rem; }

/* ---------- Testimonials / reviews ---------------------------------------- */
.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem,3vw,2.4rem); position: relative; }
.quote-card .q-mark { font-family: var(--f-display); font-size: 4rem; line-height: .5; color: var(--sage); opacity: .5; height: 2rem; }
.quote-card blockquote { font-family: var(--f-display); font-size: clamp(1.3rem,2.2vw,1.7rem); font-style: italic; line-height: 1.4; color: var(--ink); margin: .5rem 0 1.5rem; }
.quote-card .q-author { display: flex; align-items: center; gap: .8rem; }
.quote-card .q-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sage-tint); display: grid; place-items: center; font-family: var(--f-display); font-size: 1.1rem; color: var(--sage-deep); flex: none; }
.quote-card .q-name { font-weight: 700; font-size: .92rem; color: var(--ink); }
.quote-card .q-meta { font-size: .8rem; color: var(--ink-3); }
.stars { color: var(--sage); letter-spacing: .1em; font-size: .95rem; }

/* Reviews placeholder / Google embed slot */
.reviews-slot { border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: 2rem; text-align: center; background: var(--ivory-deep); }
.reviews-slot .rs-badge { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .85rem; color: var(--ink-2); }

/* ---------- Stat row ------------------------------------------------------ */
.stat { text-align: center; }
.stat .stat-num { font-family: var(--f-data); font-weight: 700; font-size: clamp(2rem,4vw,3rem); color: var(--ink); letter-spacing: -.02em; }
.bg-charcoal .stat .stat-num { color: #fff; }
.stat .stat-label { font-size: .82rem; color: var(--ink-3); letter-spacing: .04em; }

/* ---------- Neighborhood cards ------------------------------------------- */
.hood { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.hood .ph, .hood .media { position: absolute; inset: 0; border-radius: 0; z-index: -1; }
.hood::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(29,33,35,.15) 40%, rgba(29,33,35,.85) 100%); }
.hood .hd-body { padding: 1.6rem; width: 100%; }
.hood .hd-name { font-family: var(--f-display); font-size: 1.7rem; color: #fff; }
.hood .hd-tag { font-size: .82rem; color: var(--sand); letter-spacing: .04em; }
.hood .hd-meta { display: flex; gap: 1.2rem; margin-top: .9rem; font-size: .78rem; color: rgba(255,255,255,.8); flex-wrap: wrap; }
.hood .hd-meta b { color: #fff; font-weight: 700; }

/* ---------- Forms --------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.field .req { color: var(--sage-deep); }
.input, .select, .textarea {
  font-family: var(--f-body); font-size: .95rem; color: var(--ink);
  padding: .85rem 1rem; background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm); width: 100%; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(141,155,135,.15); }
.textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .78rem; color: var(--ink-3); margin-top: .6rem; }
.chip-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-size: .85rem; font-weight: 600; padding: .5rem .9rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); color: var(--ink-2); transition: all .25s var(--ease); }
.chip:hover { border-color: var(--sage); color: var(--sage-deep); }
.chip.active { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.form-success { text-align: center; padding: 2rem 1rem; }
.form-success .fs-icon { width: 56px; height: 56px; margin: 0 auto 1rem; color: var(--forest); }

/* ---------- Calculator ---------------------------------------------------- */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem,3vw,2.4rem); box-shadow: var(--shadow-sm); }
.calc-result { background: var(--charcoal); color: #fff; border-radius: var(--r-md); padding: 1.6rem; text-align: center; }
.calc-result .cr-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); }
.calc-result .cr-value { font-family: var(--f-data); font-weight: 700; font-size: clamp(2rem,5vw,2.8rem); color: #fff; margin: .3rem 0; }
.calc-result .cr-break { font-size: .82rem; color: rgba(248,246,242,.65); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--line-strong); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sage); border: 3px solid #fff; box-shadow: var(--shadow-sm); cursor: pointer; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--sage); border: 3px solid #fff; cursor: pointer; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.range-head .rh-val { font-family: var(--f-data); font-weight: 700; color: var(--ink); }
/* typed value paired with each slider */
.rh-input { display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--f-data); font-weight: 700; color: var(--ink); }
.rh-input input {
  width: 6ch; font: inherit; color: inherit; text-align: right;
  background: transparent; border: none; border-bottom: 1.5px solid var(--line-strong);
  border-radius: 0; padding: 0 2px; transition: border-color .25s var(--ease);
}
.rh-input input:focus { outline: none; border-bottom-color: var(--sage-deep); }
.rh-input input::-webkit-outer-spin-button, .rh-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rh-input input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* ---------- Concierge (AI assistant) ------------------------------------- */
.concierge-fab {
  position: fixed; right: clamp(1rem,3vw,1.6rem); bottom: clamp(1rem,3vw,1.6rem); z-index: 90;
  display: flex; align-items: center; gap: .6rem; padding: .7rem .7rem; padding-right: 1.1rem;
  background: var(--charcoal); color: #fff; border-radius: var(--r-pill); box-shadow: var(--shadow-lg);
  transition: transform .3s var(--ease), background .3s var(--ease); cursor: pointer;
}
.concierge-fab:hover { transform: translateY(-3px); background: var(--sage-deep); }
.concierge-fab .cf-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; flex: none; }
.concierge-fab .cf-avatar svg { width: 22px; height: 22px; color: #fff; }
.concierge-fab .cf-text { font-size: .88rem; font-weight: 600; }
.concierge-fab .cf-pulse { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; }
.concierge-fab .cf-pulse::before, .concierge-fab .cf-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--blush); }
.concierge-fab .cf-pulse::after { animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
@media (max-width: 560px) { .concierge-fab .cf-text { display: none; } .concierge-fab { padding-right: .7rem; } }

.concierge-panel {
  position: fixed; right: clamp(1rem,3vw,1.6rem); bottom: clamp(1rem,3vw,1.6rem); z-index: 95;
  width: min(400px, calc(100vw - 2rem)); height: min(620px, calc(100svh - 2rem));
  background: var(--ivory); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(20px) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), opacity .35s var(--ease);
}
.concierge-open .concierge-panel { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.concierge-open .concierge-fab { transform: translateY(20px) scale(.9); opacity: 0; pointer-events: none; }
.cp-head { background: var(--charcoal); color: #fff; padding: 1.1rem 1.2rem; display: flex; align-items: center; gap: .8rem; }
.cp-head .cp-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; flex: none; }
.cp-head .cp-avatar svg { width: 22px; height: 22px; color: #fff; }
.cp-head .cp-name { font-weight: 700; font-size: .95rem; }
.cp-head .cp-status { font-size: .74rem; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: .35rem; }
.cp-head .cp-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8FBF8A; }
.cp-close { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.8); transition: background .25s; }
.cp-close:hover { background: rgba(255,255,255,.12); }
.cp-body { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: .8rem; scroll-behavior: smooth; }
.msg { max-width: 84%; padding: .8rem 1rem; border-radius: var(--r-md); font-size: .9rem; line-height: 1.5; animation: msgIn .4s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.msg.bot { background: var(--surface); border: 1px solid var(--line); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--charcoal); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.bot p { color: var(--ink); margin: 0; }
.cp-typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.cp-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); animation: typing 1.2s infinite; }
.cp-typing span:nth-child(2) { animation-delay: .18s; } .cp-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.cp-quick { display: flex; flex-wrap: wrap; gap: .5rem; align-self: flex-start; max-width: 100%; }
.cp-quick button { font-size: .84rem; font-weight: 600; padding: .55rem .9rem; background: var(--sage-tint); border: 1px solid transparent; border-radius: var(--r-pill); color: var(--sage-deep); transition: all .25s var(--ease); }
.cp-quick button:hover { background: var(--sage); color: #fff; }
.cp-foot { padding: .8rem 1rem 1rem; border-top: 1px solid var(--line); background: var(--ivory); }
.cp-inputrow { display: flex; gap: .5rem; align-items: center; }
.cp-inputrow input { flex: 1; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); padding: .7rem 1rem; font-size: .9rem; background: #fff; }
.cp-inputrow input:focus { outline: none; border-color: var(--sage); }
.cp-send { width: 42px; height: 42px; border-radius: 50%; background: var(--charcoal); color: #fff; display: grid; place-items: center; flex: none; transition: background .25s; }
.cp-send:hover { background: var(--sage-deep); }
.cp-disclaimer { font-size: .66rem; color: var(--ink-3); text-align: center; margin-top: .6rem; }

/* ---------- Floating contact actions ------------------------------------- */
.float-actions { position: fixed; left: clamp(1rem,3vw,1.6rem); bottom: clamp(1rem,3vw,1.6rem); z-index: 89; display: flex; flex-direction: column; gap: .7rem; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-md); transition: transform .3s var(--ease); color: #fff; position: relative; }
.float-btn:hover { transform: scale(1.08); }
.float-btn svg { width: 26px; height: 26px; }
.float-btn.sms { background: var(--sage-deep); }
.float-btn.call { background: var(--charcoal); }
.float-btn .fb-tip { position: absolute; left: 62px; white-space: nowrap; background: var(--charcoal); color: #fff; font-size: .78rem; font-weight: 600; padding: .4rem .7rem; border-radius: var(--r-sm); opacity: 0; pointer-events: none; transform: translateX(-6px); transition: all .25s var(--ease); }
.float-btn:hover .fb-tip { opacity: 1; transform: translateX(0); }
@media (max-width: 560px) { .float-actions { flex-direction: row; } }

/* ---------- CTA band ------------------------------------------------------ */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--charcoal); color: #fff; padding: clamp(2.5rem,6vw,5rem); text-align: center; isolation: isolate; }
.cta-band .cta-branch { position: absolute; z-index: -1; opacity: .12; }
.cta-band .cta-branch.a { top: -6%; left: -3%; width: 300px; transform: rotate(-18deg); }
.cta-band .cta-branch.b { bottom: -8%; right: -3%; width: 340px; transform: rotate(155deg); }
.cta-band h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta-band p { color: rgba(248,246,242,.8); max-width: 52ch; margin: 1rem auto 2rem; }
.cta-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer -------------------------------------------------------- */
.footer { background: var(--charcoal); color: rgba(248,246,242,.7); padding-top: clamp(3rem,6vw,5rem); }
.footer a { color: rgba(248,246,242,.7); transition: color .25s var(--ease); }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-family: var(--f-body); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer .f-links { display: grid; gap: .6rem; font-size: .92rem; }
.footer .f-brand p { color: rgba(248,246,242,.6); font-size: .92rem; max-width: 34ch; margin-top: 1rem; }
.footer .f-tagline { font-family: var(--f-display); font-style: italic; font-size: 1.15rem; color: var(--sand); margin-top: 1.2rem; }
.footer .f-social { display: flex; gap: .7rem; margin-top: 1.3rem; }
.footer .f-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(248,246,242,.2); display: grid; place-items: center; }
.footer .f-social a:hover { background: var(--sage); border-color: var(--sage); color: #fff; }
.footer .f-newsletter input { width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(248,246,242,.2); border-radius: var(--r-pill); padding: .75rem 1rem; color: #fff; font-size: .9rem; }
.footer .f-newsletter input::placeholder { color: rgba(248,246,242,.45); }
.footer-bottom { border-top: 1px solid rgba(248,246,242,.12); padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: rgba(248,246,242,.5); }
.footer-bottom .fb-legal { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-disclaim { font-size: .72rem; color: rgba(248,246,242,.4); line-height: 1.6; padding-bottom: 2rem; max-width: 90ch; }

/* ---------- Modal --------------------------------------------------------- */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(29,33,35,.55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal { background: var(--ivory); border-radius: var(--r-lg); width: min(560px, 100%); max-height: 90svh; overflow-y: auto; box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); transition: transform .4s var(--ease); }
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-head { padding: 1.6rem 1.8rem 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.modal-head .eyebrow { margin-bottom: .5rem; }
.modal-head h3 { font-size: 1.7rem; }
.modal-close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); flex: none; transition: background .25s; }
.modal-close:hover { background: var(--sand); }
.modal-body { padding: 1.2rem 1.8rem 1.8rem; }

/* ---------- Reveal animation --------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

/* ---------- Utilities ----------------------------------------------------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}
.maxw-60 { max-width: 60ch; } .maxw-50 { max-width: 50ch; } .maxw-40 { max-width: 40ch; }
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: 1rem; } .wrap { flex-wrap: wrap; }
.hide-mobile { } @media (max-width: 640px) { .hide-mobile { display: none !important; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split.narrow-left { grid-template-columns: .85fr 1.15fr; }
.split.narrow-right { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 860px) { .split, .split.narrow-left, .split.narrow-right { grid-template-columns: 1fr; } }
.sticky-media { position: sticky; top: calc(var(--nav-h) + 1rem); }
.pill-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-deep); background: var(--sage-tint); padding: .35rem .8rem; border-radius: var(--r-pill); }
.badge-accred { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: .5rem .9rem; border-radius: var(--r-pill); }

/* i18n: elements toggle via [data-lang] on <html> */
[data-i18n-es] { }

/* ==========================================================================
   MOTION LAYER — quiet-luxury micro-interactions (auto-disabled for
   prefers-reduced-motion via the global reduce rule at the top of this file)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* thin sage progress bar along the very top */
  .scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 400;
    background: linear-gradient(90deg, var(--sage) 0%, var(--sage-deep) 100%);
    border-radius: 0 2px 2px 0; pointer-events: none;
  }

  /* hero branch: slow ambient drift (transform) + JS parallax (translate) */
  .hero-placeholder .branch { animation: branchDrift 16s ease-in-out infinite alternate; will-change: transform, translate; }
  @keyframes branchDrift {
    from { transform: rotate(6deg) translateY(0) scale(1); }
    to   { transform: rotate(4deg) translateY(-16px) scale(1.03); }
  }

  /* CTA band branches breathe gently */
  @keyframes floatY { from { translate: 0 0; } to { translate: 0 -12px; } }
  .cta-band .cta-branch.a { animation: floatY 9s ease-in-out infinite alternate; }
  .cta-band .cta-branch.b { animation: floatY 12s ease-in-out infinite alternate-reverse; }

  /* imagery: slow zoom when its card (or the media itself) is hovered */
  .card:hover .media img, .media:hover img { transform: scale(1.05); }
  .ph .ph-branch { transition: transform .9s var(--ease), opacity .9s var(--ease); }
  .card:hover .ph-branch, .ph:hover .ph-branch { transform: scale(1.07) rotate(-2deg); opacity: .42; }

  /* tiles & cards: lift with a touch more life */
  .quote-card, .feature { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
  .quote-card:hover, .feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
  .path-card:hover { transform: translateY(-5px) scale(1.015); }
  .path-card .pc-icon { transition: transform .4s var(--ease); }
  .path-card:hover .pc-icon { transform: translateY(-3px) scale(1.1); }
  .feature .ft-icon { transition: transform .5s var(--ease); }
  .feature:hover .ft-icon { transform: translateY(-4px) scale(1.06); }

}
