/* ═══════════════════════════════════════════════════════════
   LINK Properties — Master Stylesheet
   SITE VERSION: 31 | linkproperties.es
   Rewritten for v23 — SEO + polish.
   consistent nav/footer, fixed section contrasts & mobile.
   ═══════════════════════════════════════════════════════════ */

:root {
  --paper:   #f8f6f2;
  --white:   #ffffff;
  --linen:   #ede9e2;
  --stone:   #d6d0c6;
  --warm:    #b8a898;
  --ink:     #1e1e1c;
  --mid:     #5a5650;
  --accent:  #8c6d52;   /* muted terracotta-brown — warm but quiet */
  --deep:    #232320;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* ───────────────────────────────────────────────────────────
   KEYFRAMES  (all in one place — v18 fix)
   ─────────────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes riseUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.1); }
}

@keyframes aboutPan {
  0%   { transform: scale(1.12) translate(4%, 2%); }
  33%  { transform: scale(1.15) translate(-3%, -1%); }
  66%  { transform: scale(1.12) translate(1%, 3%); }
  100% { transform: scale(1.12) translate(4%, 2%); }
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── NAV ─── */
nav, .nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 4rem;
  background: rgba(248,246,242,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--linen);
  animation: fadeIn 1s ease both;
}

/* Logo — unified markup for every page */
.logo { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.logo-mark { display: flex; align-items: center; }
.logo-mark svg { display: block; }
.logo-type { display: flex; flex-direction: column; }

.logo-name {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.32em;
  color: var(--ink);
  line-height: 1;
}

.logo-sub {
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--warm);
  margin-top: 3px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex; margin-left: auto; align-items: center; gap: 3rem;
  list-style: none;
}

.nav-menu a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-menu a:hover { color: var(--ink); }

.nav-cta {
  font-size: 0.72rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.14em !important;
  color: var(--accent) !important;
  border-bottom: 1px solid var(--stone);
  padding-bottom: 1px;
  transition: border-color 0.3s !important;
}

.nav-cta:hover { border-color: var(--accent) !important; color: var(--accent) !important; }

.nav-lang {
  border-left: 1px solid var(--stone);
  padding-left: 2rem;
  margin-left: 1rem;
  display: flex;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  align-items: center;
}
.nav-lang .active { color: var(--ink); font-weight: 500; }
.nav-lang .sep { color: var(--warm); }
.nav-lang a { color: var(--warm); text-decoration: none; transition: color 0.3s; }
.nav-lang a:hover { color: var(--ink); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 72px;
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem 5rem 7rem 5.5rem;
  position: relative;
}

.hero-kicker {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 2.2rem;
  animation: riseUp 0.9s 0.2s ease both;
}

.hero-h1 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(3rem, 4.2vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 2rem;
  animation: riseUp 0.9s 0.38s ease both;
}

.hero-h1 em { font-style: italic; }

.hero-body {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--mid);
  max-width: 400px;
  margin-bottom: 3rem;
  animation: riseUp 0.9s 0.54s ease both;
}

.hero-actions {
  display: flex; align-items: center; gap: 2.5rem;
  animation: riseUp 0.9s 0.68s ease both;
}

.btn-primary {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  border: none; cursor: pointer;
  padding: 0.9rem 2.2rem;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}

.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }

.btn-ghost {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  border-bottom: 1px solid var(--stone);
  padding-bottom: 1px;
  transition: color 0.3s, border-color 0.3s;
}

.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

.hero-stats {
  display: flex; gap: 3.5rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--linen);
  animation: riseUp 0.9s 0.82s ease both;
}

.stat-n {
  font-family: 'EB Garamond', serif;
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--ink);
  display: block; line-height: 1;
}

.stat-l {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm);
  display: block; margin-top: 0.35rem;
}

/* Hero right — photo panel */
.hero-right {
  background: #2a2e35;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}

.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(20,22,26,0.05) 0%,
    rgba(20,22,26,0.0) 35%,
    rgba(20,22,26,0.5) 75%,
    rgba(20,22,26,0.72) 100%
  );
}

/* Scroll hint */
.hero-scroll {
  position: absolute; top: 2.5rem; right: 2.5rem; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  animation: riseUp 1s 1.5s ease both;
}

.hero-scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.35));
  animation: scrollPulse 2.2s ease-in-out infinite;
}

.hero-scroll-label {
  font-size: 0.56rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); writing-mode: vertical-rl;
}

/* Featured property card (over hero photo) */
.hero-card {
  position: relative; z-index: 2;
  margin: 2rem;
  background: rgba(248,246,242,0.97);
  backdrop-filter: blur(12px);
  padding: 1.6rem 1.8rem;
  animation: riseUp 1s 1.1s ease both;
}

.hcard-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.6rem;
}

.hcard-loc {
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 400;
}

.hcard-badge {
  font-size: 0.57rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); background: var(--accent);
  padding: 0.22rem 0.6rem;
}

.hcard-name {
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem; color: var(--ink); line-height: 1.15;
}

/* ─── TICKER ─── */
.ticker {
  background: var(--deep);
  padding: 0.85rem 0; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.ticker-track {
  display: inline-flex;
  animation: ticker 45s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.ticker-item {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 0 3rem;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.28); font-weight: 300;
}

.ticker-item strong { color: rgba(255,255,255,0.55); font-weight: 400; }

.t-sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.15); }

/* ─── LAYOUT UTILS ─── */
.wrap      { padding: 8rem 5.5rem; }
.wrap-sm   { padding: 6rem 5.5rem; }
.wrap-dark { background: var(--deep); }
.wrap-linen{ background: var(--linen); }
.wrap-paper{ background: var(--paper); }
.wrap-white{ background: var(--white); }

.eyebrow {
  font-size: 0.65rem; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.2rem; display: block;
}

.eyebrow-light { color: rgba(255,255,255,0.35); }

.section-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  font-weight: 400; line-height: 1.18;
  color: var(--ink);
}

.section-title em { font-style: italic; }
.section-title.light { color: var(--white); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 4rem;
}

.text-link {
  font-size: 0.68rem; font-weight: 400; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--stone);
  padding-bottom: 1px;
  transition: border-color 0.3s;
  white-space: nowrap;
}

.text-link:hover { border-color: var(--accent); }

/* ─── ABOUT SECTION (homepage) ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 7rem;
  align-items: center;
}

.about-visual { position: relative; }

.about-img {
  width: 100%; aspect-ratio: 4/5;
  background: var(--deep); overflow: hidden; position: relative;
}

.about-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  animation: aboutPan 20s ease-in-out infinite;
}

.about-num-card {
  position: absolute; bottom: -2rem; right: -2rem;
  background: var(--white);
  padding: 1.6rem 2rem;
  border: 1px solid var(--linen);
  text-align: center; min-width: 148px;
}

.anc-n {
  font-family: 'EB Garamond', serif;
  font-size: 2.8rem; color: var(--accent); display: block; line-height: 1;
}

.anc-l { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--warm); margin-top: 0.3rem; display: block; }

/* Homepage about text — larger lede paragraph for typographic rank */
.about-text {
  font-family: 'EB Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--mid);
  margin: 1.5rem 0 2rem;
  max-width: 32em;
}

.about-text em { font-style: italic; color: var(--ink); }

.pillars { display: flex; flex-direction: column; gap: 0; margin-top: 1rem; }

.pillar {
  display: flex; gap: 1.8rem; align-items: flex-start;
  padding: 1.4rem 0;
  border-top: 1px solid var(--linen);
}

.pillar:last-child { border-bottom: 1px solid var(--linen); }

.pillar-n {
  font-family: 'EB Garamond', serif;
  font-size: 1.4rem; color: var(--stone);
  min-width: 2rem; line-height: 1; padding-top: 2px;
}

.pillar-title { font-size: 0.85rem; font-weight: 500; color: var(--ink); margin-bottom: 0.25rem; }
.pillar-body  { font-size: 0.8rem; line-height: 1.7; color: var(--mid); }

/* ─── HOMEPAGE SERVICES (redesigned for v18) ─── */
.svc-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.svc-card-home {
  background: var(--white);
  border: 1px solid var(--linen);
  padding: 2rem 1.8rem 1.8rem;
  position: relative;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
  display: flex; flex-direction: column;
  min-height: 200px;
}

.svc-card-home::before {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 2px; height: 0;
  background: var(--accent);
  transition: height 0.4s ease;
}

.svc-card-home:hover {
  border-color: var(--stone);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(30,30,28,0.07);
}

.svc-card-home:hover::before { height: 100%; }

.svc-card-num {
  font-family: 'EB Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--warm);
  line-height: 1;
  margin-bottom: 0.8rem;
  display: block;
  font-feature-settings: "lnum";
}

.svc-card-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.8rem;
}

.svc-card-body {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--mid);
}

/* ─── SERVICES PAGE GRID ─── */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--stone);
  border: 1px solid var(--stone);
  margin-top: 1rem;
}

.svc {
  background: var(--white); padding: 2.4rem 2.2rem;
  transition: background 0.3s;
  position: relative;
}

.svc:hover { background: var(--paper); }

.svc::after {
  content: ''; position: absolute; bottom: 0; left: 2.2rem; right: 2.2rem; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}

.svc:hover::after { transform: scaleX(1); }

.svc-n {
  font-family: 'EB Garamond', serif; font-size: 1.1rem;
  color: var(--stone); display: block; margin-bottom: 1.2rem;
}

.svc-title { font-size: 0.9rem; font-weight: 500; color: var(--ink); margin-bottom: 0.6rem; }

/* Footer logo: invert the dark stroke so the mark reads on dark bg */
footer .logo-mark svg path[stroke="#1e1e1c"] { stroke: rgba(255,255,255,0.88); }
footer .logo-mark svg path[stroke="#f8f6f2"] { stroke: #8c6d52; }
.svc-body  { font-size: 0.8rem; line-height: 1.75; color: var(--mid); }

/* Services PAGE cards (full detail) — distinct from homepage teaser cards */
.svc-card {
  background: var(--white);
  border: 1px solid var(--linen);
  padding: 2.4rem 2rem 2.2rem;
  position: relative;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
  display: flex; flex-direction: column;
}
.svc-card:hover {
  border-color: var(--stone);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(30,30,28,0.07);
}
.svc-card .svc-icon { margin-bottom: 1.4rem; }
.svc-card .svc-num {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: var(--warm);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}
.svc-card h2.svc-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.9rem;
}
.svc-card p.svc-body {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--mid);
  font-weight: 300;
}

/* ─── PROCESS (dark section) ─── */
.process-cols {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 3rem; margin-top: 4.5rem;
}

.step { position: relative; }

.step::before {
  content: attr(data-n);
  font-family: 'EB Garamond', serif;
  font-size: 2.4rem; font-weight: 400;
  color: rgba(255,255,255,0.35);
  position: static; display: block;
  line-height: 1; margin-bottom: 1rem;
  pointer-events: none;
}

.step-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem; color: var(--white);
  margin-bottom: 0.8rem;
}

.step-title::before {
  content: none;
}

.step-body { font-size: 0.8rem; line-height: 1.75; color: rgba(255,255,255,0.38); }

/* ─── TESTIMONIALS — editorial layout ─── */
.testi-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
  align-items: stretch;
}

.testi-main {
  background: var(--white);
  padding: 4rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.testi-main::before {
  content: '\201C';
  position: absolute;
  top: 1.5rem; left: 3rem;
  font-family: 'EB Garamond', serif;
  font-size: 6rem;
  line-height: 1;
  color: var(--linen);
  font-style: italic;
}

.testi-main-text {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.65rem;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.testi-main-rule { width: 32px; height: 1px; background: var(--accent); margin-bottom: 1.2rem; }
.testi-main-author {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  display: block;
  letter-spacing: 0.02em;
}
.testi-main-detail {
  font-size: 0.72rem;
  color: var(--warm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.35rem;
  display: block;
}

.testi-side {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--linen);
  border: 1px solid var(--linen);
}

.testi-side .tcard-sm {
  background: var(--white);
  padding: 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tcard-sm-text {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--mid);
  margin-bottom: 1rem;
}

.tcard-sm-rule { width: 20px; height: 1px; background: var(--stone); margin-bottom: 0.8rem; }

.tcard-sm-author {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink);
  display: block;
}
.tcard-sm-detail {
  font-size: 0.64rem;
  color: var(--warm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  display: block;
}

/* Legacy .tcard classes kept for backward compat if anything still uses them */
.tcard {
  background: var(--white); padding: 2.4rem 2.2rem;
  transition: background 0.3s;
}

.tcard:hover { background: var(--paper); }

.tcard-quote {
  font-family: 'EB Garamond', serif;
  font-size: 1.6rem; color: var(--stone); line-height: 1;
  margin-bottom: 1rem; display: block;
}

.tcard-text {
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: 1rem; line-height: 1.75; color: var(--mid);
  margin-bottom: 1.6rem;
}

.tcard-rule { width: 24px; height: 1px; background: var(--stone); margin-bottom: 1.2rem; }
.tcard-author { font-size: 0.78rem; font-weight: 500; color: var(--ink); display: block; }
.tcard-detail { font-size: 0.7rem; color: var(--warm); margin-top: 0.2rem; display: block; }

/* ─── REGISTER-INTEREST SECTION on homepage (fixed for v18) ─── */
.register-section {
  background: var(--linen);
  padding: 8rem 5.5rem;
}

.register-inner { max-width: 1100px; margin: 0 auto; }

.register-lead {
  color: var(--mid);
  max-width: 520px;
  line-height: 1.85;
  font-size: 0.92rem;
  margin-bottom: 3rem;
}

.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.register-form { display: flex; flex-direction: column; gap: 1rem; }

.register-form .form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

.register-form .field {
  display: flex; flex-direction: column; gap: 0.4rem;
}

.register-form label {
  font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mid); font-weight: 500;
}

.register-form input,
.register-form select,
.register-form textarea {
  background: var(--white);
  border: 1px solid var(--stone);
  color: var(--ink);
  padding: 0.85rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}

.register-form input:focus,
.register-form select:focus,
.register-form textarea:focus { border-color: var(--accent); }

.register-form input::placeholder,
.register-form textarea::placeholder { color: var(--warm); }

.register-form textarea { resize: vertical; min-height: 100px; }

.register-form button {
  align-self: flex-start;
  padding: 0.9rem 2.2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  border: none; cursor: pointer;
  transition: background 0.3s;
}

.register-form button:hover { background: var(--accent); }

.register-info {
  display: flex; flex-direction: column; gap: 2rem;
  padding-top: 0.5rem;
}

.register-info h4 {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.5rem;
  font-weight: 500;
}

.register-info p,
.register-info a {
  font-size: 0.88rem; color: var(--mid); line-height: 1.75;
  text-decoration: none;
}

.register-info a:hover { color: var(--accent); }

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--ink);
  padding: 7rem 5.5rem;
  display: grid; grid-template-columns: 1fr auto;
  gap: 6rem; align-items: center;
}

.cta-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  font-weight: 400; color: var(--white); line-height: 1.2;
}

.cta-title em { font-style: italic; }

.cta-sub {
  font-size: 0.87rem; line-height: 1.8;
  color: rgba(255,255,255,0.4); margin-top: 1rem; max-width: 400px;
}

.btn-light {
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink); background: var(--white);
  border: none; cursor: pointer; padding: 1rem 2.4rem;
  text-decoration: none; white-space: nowrap;
  transition: all 0.3s; display: inline-block;
}

.btn-light:hover { background: var(--linen); transform: translateY(-1px); }

/* Services page CTA variant — linen background for contrast against dark footer */
.cta-band-linen {
  background: var(--linen);
}
.cta-band-linen .cta-title { color: var(--ink); }
.cta-band-linen .cta-sub { color: var(--mid); }
.cta-band-linen .btn-primary { background: var(--ink); color: var(--white); }
.cta-band-linen .btn-primary:hover { background: var(--accent); }

/* ─── FOOTER (v18 — unified, properly spaced) ─── */
footer {
  background: var(--deep);
  padding: 5.5rem 5.5rem 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2.5rem;
}

footer .logo-name { color: rgba(255,255,255,0.85); }
footer .logo-sub  { color: rgba(255,255,255,0.35); }

.footer-tagline {
  font-size: 0.82rem; line-height: 1.8;
  color: rgba(255,255,255,0.35);
  margin-top: 1.4rem; max-width: 260px;
}

.fcol-h {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.4rem;
  display: block;
  font-weight: 500;
}

.fcol ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }

.fcol ul a {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.25s;
}

.fcol ul a:hover { color: var(--accent); }

.footer-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

.footer-legal { display: flex; gap: 2rem; }

.footer-legal a {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.25s;
}

.footer-legal a:hover { color: var(--accent); }

/* ─── SCROLL REVEAL ─── */
.r { opacity: 1; transform: none; }
.r.pending { opacity: 0; transform: translateY(18px); transition: opacity 0.75s ease, transform 0.75s ease; }
.r.pending.v { opacity: 1; transform: translateY(0); }
.r.v { opacity: 1; transform: none; }
.r.d1 { transition-delay: .1s; }
.r.d2 { transition-delay: .2s; }
.r.d3 { transition-delay: .3s; }

/* ─── JS PROPERTY CARDS ─── */
/* ─── PROPERTY CARDS — private listing style ─── */
.property-card {
  background: transparent;
  border: none;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--linen);
  margin-bottom: 1.2rem;
}

.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
  display: block;
}

.property-card:hover .card-img-wrap img { transform: scale(1.035); }

/* Image overlay — subtle dark gradient at bottom only, for location tag legibility */
.card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20,20,18,0.35) 0%,
    rgba(20,20,18,0) 40%
  );
  pointer-events: none;
}

/* Badge — only shown for non-available statuses (sold out, coming soon) */
.card-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(248,246,242,0.95);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.32rem 0.7rem;
  font-weight: 500;
  z-index: 2;
}

.card-badge.sold-out    { background: rgba(30,30,28,0.85); color: rgba(255,255,255,0.9); }
.card-badge.coming-soon { background: var(--accent); color: var(--white); }
/* Active listings: hide the default "Available" badge — it's clutter */
.card-badge:not(.sold-out):not(.coming-soon) { display: none; }

.card-location-tag {
  position: absolute; bottom: 1rem; left: 1rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  z-index: 2;
  padding: 0;
  background: none;
  backdrop-filter: none;
}

.card-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card-name {
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

.card-tagline {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  max-width: 90%;
}

.card-meta {
  display: flex;
  gap: 1.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--linen);
  align-items: baseline;
}

.card-meta-item {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--mid);
  font-weight: 300;
}
.card-meta-item strong {
  display: inline;
  font-size: 0.78rem;
  color: var(--ink);
  font-weight: 500;
  margin-right: 0.25rem;
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1rem;
  transition: gap 0.35s ease;
  font-weight: 500;
}

.property-card:hover .card-arrow { gap: 0.85rem; }

.img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--linen) 0%, var(--stone) 100%);
  color: var(--warm);
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  flex-direction: column; gap: 0.5rem;
}

.img-placeholder svg { opacity: 0.35; }

/* ─── ABOUT PAGE ─── */
.about-hero {
  min-height: 220px;
  background: var(--ink);
  display: flex; align-items: flex-end;
  padding: 0 5.5rem 3.5rem;
  margin-top: 72px;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #2a2420 0%, var(--ink) 100%);
}

.about-hero-content { position: relative; z-index: 1; }

.about-hero-eyebrow {
  font-size: 0.68rem; font-weight: 400; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; display: block;
}

.about-hero-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400; color: var(--white); line-height: 1.05;
}

.about-hero-title em { font-style: italic; }

.about-body {
  padding: 7rem 5.5rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 7rem;
  max-width: 1300px;
  margin: 0 auto;
}

.about-portrait-col { display: flex; flex-direction: column; align-items: flex-start; }

.portrait-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 200px;
  overflow: hidden;
  background: var(--linen);
  margin-bottom: 1.5rem;
}

.portrait-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(15%) contrast(1.05);
}

.portrait-name {
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem; font-weight: 400; color: var(--ink);
}

.portrait-title {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-top: 0.3rem; display: block;
}

.portrait-linkedin {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mid); text-decoration: none;
  border-bottom: 1px solid var(--stone); padding-bottom: 1px;
  margin-top: 1.2rem;
  transition: color 0.3s, border-color 0.3s;
}

.portrait-linkedin:hover { color: var(--accent); border-color: var(--accent); }

.about-text-col { padding-top: 0.5rem; max-width: 640px; }

.about-text-col h2 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  font-weight: 400; line-height: 1.15; color: var(--ink);
  margin-bottom: 2rem;
}

.about-text-col h2 em { font-style: italic; }

/* Nested h2 (used in privacy/terms body) */
.about-text-col h2:not(:first-child) {
  font-size: 1.2rem;
  font-weight: 500;
  font-family: 'Jost', sans-serif;
  color: var(--ink);
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

.about-text-col p {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem; font-weight: 300;
  line-height: 1.85; color: var(--mid);
  margin-bottom: 1.2rem;
}

.about-divider {
  width: 40px; height: 1px; background: var(--accent);
  margin: 3rem 0;
}

.values-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; margin-top: 1rem;
}

.value-item {
  padding: 2rem 0;
  border-top: 1px solid var(--linen);
}

.value-item:nth-child(odd) { padding-right: 3rem; }

.value-n {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem; color: var(--stone); display: block; margin-bottom: 0.6rem;
}

.value-title { font-size: 0.88rem; font-weight: 500; color: var(--ink); margin-bottom: 0.4rem; }
.value-body  { font-size: 0.78rem; line-height: 1.7; color: var(--mid); }

.about-cta-band {
  background: var(--linen);
  padding: 5rem 5.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 4rem;
}

.about-cta-band .btn-primary { background: var(--ink); color: var(--white); }

.about-cta-text h3 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400; color: var(--ink); line-height: 1.2;
}

.about-cta-text h3 em { font-style: italic; }

.about-cta-text p {
  font-size: 0.88rem; color: var(--mid); line-height: 1.8; margin-top: 0.75rem; max-width: 420px;
}

/* ─── CONTACT PAGE ─── */
.contact-hero {
  min-height: 220px;
  background: var(--ink);
  display: flex; align-items: flex-end;
  padding: 0 5.5rem 3.5rem;
  margin-top: 72px;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #2a2420 0%, var(--ink) 100%);
}

.contact-hero-content { position: relative; z-index: 1; }

.contact-hero-eyebrow {
  font-size: 0.68rem; font-weight: 400; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; display: block;
}

.contact-hero-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400; color: var(--white); line-height: 1.05;
}

.contact-hero-title em { font-style: italic; }

.contact-body {
  padding: 3.5rem 5.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info-block { display: flex; flex-direction: column; gap: 0; }

.contact-info-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 2.5rem;
}
.contact-info-title em { font-style: italic; }

.contact-detail { margin-bottom: 1.2rem; }
.contact-detail:last-of-type { margin-bottom: 0; }

.contact-detail h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.3rem; font-weight: 400; color: var(--ink); margin-bottom: 0.75rem;
}

.contact-detail p,
.contact-detail a {
  font-size: 0.88rem; font-weight: 300; color: var(--mid);
  line-height: 1.75; text-decoration: none;
}

.contact-detail a:hover { color: var(--accent); }

.contact-detail .contact-label {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 0.5rem;
}

.contact-divider {
  width: 40px; height: 1px; background: var(--linen); margin: 0;
}

.map-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--linen);
  position: relative;
  border: 1px solid var(--linen);
}

.map-wrap iframe,
.map-wrap svg,
.map-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  border: none; display: block;
}

.map-wrap a {
  display: block;
  width: 100%; height: 100%;
  position: relative;
}

.map-wrap a::after {
  content: 'Open in Google Maps ↗';
  position: absolute;
  bottom: 0.8rem; right: 0.8rem;
  background: rgba(248,246,242,0.92);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  transition: background 0.3s;
  pointer-events: none;
}

html[lang="es"] .map-wrap a::after {
  content: 'Ver en Google Maps ↗';
}

.map-wrap a:hover::after {
  background: var(--accent);
  color: var(--white);
}

.map-wrap a:hover img {
  transform: scale(1.02);
}

.map-wrap img {
  transition: transform 0.6s ease;
}

.contact-form-col h2 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  font-weight: 400; color: var(--ink); margin-bottom: 2.5rem; line-height: 1.15;
}

.contact-form-col h2 em { font-style: italic; }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field label {
  font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--warm); font-family: 'Jost', sans-serif;
}

.field input,
.field select,
.field textarea {
  background: var(--paper); border: 1px solid var(--linen);
  padding: 0.85rem 1rem; font-family: 'Jost', sans-serif;
  font-size: 0.88rem; font-weight: 300; color: var(--ink);
  outline: none; transition: border-color 0.3s; width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); }

.field textarea { resize: vertical; min-height: 120px; }

/* ─── NEW BUILDS PAGE ─── */
.page-hero {
  min-height: 32vh;
  display: flex; align-items: flex-end;
  background: var(--ink);
  padding: 0 5.5rem 4rem;
  margin-top: 72px;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #1a1714 0%, var(--ink) 100%);
  opacity: 0.97;
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero-eyebrow {
  font-size: 0.68rem; font-weight: 400; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; display: block;
}

.page-hero-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400; color: var(--white); line-height: 1.08;
}

.page-hero-title em { font-style: italic; }

.filter-bar {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  padding: 2rem 5.5rem 0;
  border-bottom: 1px solid var(--linen);
  background: var(--paper);
}

.filter-btn {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.6rem 1.4rem; border: 1px solid var(--stone);
  background: transparent; cursor: pointer; color: var(--mid);
  transition: all 0.2s; margin-bottom: -1px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--ink); color: var(--white); border-color: var(--ink);
}

/* ─── DETAIL PAGES ─── */
.detail-hero {
  height: 60vh; min-height: 400px;
  position: relative; overflow: hidden;
  background: var(--ink);
  display: flex; align-items: flex-end;
  margin-top: 72px;
}

.detail-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.65;
  filter: saturate(0.8);
}

.detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,30,28,0.85) 0%, rgba(30,30,28,0.1) 60%);
}

.detail-hero-content {
  position: relative; z-index: 2;
  padding: 0 5.5rem 4rem;
  color: var(--white);
}

.detail-breadcrumb {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.38); margin-bottom: 1rem;
  display: flex; gap: 0.5rem; align-items: center; font-family: 'Jost', sans-serif;
}

.detail-breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.3s; }
.detail-breadcrumb a:hover { color: var(--accent); }

.detail-hero-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 400; line-height: 1.05;
}

.detail-hero-tagline {
  color: rgba(255,255,255,0.55); margin-top: 0.6rem; font-size: 1rem;
  font-family: 'Jost', sans-serif; font-weight: 300;
}

.section { padding: 6rem 5.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.detail-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 5rem;
  align-items: start;
}

.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 3rem; text-decoration: none;
  border-bottom: 1px solid var(--stone); padding-bottom: 1px;
  transition: color 0.3s, border-color 0.3s; font-family: 'Jost', sans-serif;
}

.back-link:hover { color: var(--accent); border-color: var(--accent); }

.detail-description {
  font-family: 'Jost', sans-serif; font-size: 0.95rem; font-weight: 300;
  color: var(--mid); line-height: 1.95; margin-bottom: 3rem;
}

.detail-description p { margin-bottom: 1.4rem; }

.detail-features h3 {
  font-family: 'EB Garamond', serif; font-size: 1.6rem; font-weight: 400;
  color: var(--ink); margin-bottom: 1.5rem;
}

.features-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }

.features-list li {
  display: flex; align-items: center; gap: 0.85rem;
  font-family: 'Jost', sans-serif; font-size: 0.85rem; color: var(--mid); font-weight: 300;
}

.features-list li::before {
  content: ''; display: block; width: 20px; height: 1px;
  background: var(--accent); flex-shrink: 0;
}

/* Gallery */
.gallery { margin-top: 4rem; }
.gallery h3 { font-family: 'EB Garamond', serif; font-size: 1.6rem; font-weight: 400; color: var(--ink); margin-bottom: 1.5rem; }
.gallery-grid { display: flex; flex-direction: column; gap: 0.5rem; }

.gal-main {
  width: 100%; aspect-ratio: 16/9;
  overflow: hidden; background: var(--linen);
}

.gal-main img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: opacity 0.3s ease;
}

.gal-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.4rem;
}

.gal-thumb {
  aspect-ratio: 4/3; overflow: hidden;
  background: var(--linen); cursor: pointer;
  opacity: 0.6; transition: opacity 0.2s;
  border: 2px solid transparent;
}

.gal-thumb:hover { opacity: 0.85; }
.gal-thumb.active { opacity: 1; border-color: var(--accent); }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Sidebar */
.detail-sidebar { position: sticky; top: 7rem; }

.sidebar-card {
  background: var(--white); border: 1px solid var(--linen);
  padding: 2rem; margin-bottom: 1.5rem;
}

.sidebar-card h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.4rem; font-weight: 400;
  color: var(--ink); margin-bottom: 1.5rem;
}

.sidebar-meta { display: flex; flex-direction: column; gap: 0; margin-bottom: 1.5rem; }

.sidebar-meta-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.82rem; padding: 0.75rem 0;
  border-bottom: 1px solid var(--linen);
  font-family: 'Jost', sans-serif;
}

.sidebar-meta-row:last-child { border-bottom: none; }

.sidebar-meta-row .label {
  color: var(--warm); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}

.sidebar-meta-row .value { font-weight: 400; color: var(--ink); }

.sidebar-form { display: flex; flex-direction: column; gap: 0.75rem; }

.sidebar-form input,
.sidebar-form textarea {
  background: var(--paper); border: 1px solid var(--linen);
  padding: 0.8rem 1rem; font-family: 'Jost', sans-serif; font-size: 0.85rem;
  color: var(--ink); outline: none; width: 100%; font-weight: 300;
  transition: border-color 0.3s;
}

.sidebar-form input:focus,
.sidebar-form textarea:focus { border-color: var(--accent); }

.sidebar-form textarea { min-height: 80px; resize: vertical; }

.sidebar-form input::placeholder,
.sidebar-form textarea::placeholder { color: var(--warm); }

.btn.btn-primary,
button.btn-primary {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--white); background: var(--ink);
  border: none; cursor: pointer;
  text-decoration: none;
  transition: background 0.3s;
}

.btn.btn-primary:hover,
button.btn-primary:hover { background: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   MOBILE NAV
   ═══════════════════════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 300;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 250;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.nav-mobile-overlay.open { display: flex; }

.nav-mobile-overlay a {
  font-family: 'EB Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-mobile-overlay a:hover { color: var(--accent); }

.nav-mobile-overlay .mobile-lang {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-mobile-overlay .mobile-lang a {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  color: var(--mid);
}

.nav-mobile-overlay .mobile-cta {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--accent) !important;
  border-bottom: 1px solid var(--stone);
  padding-bottom: 2px;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE & RESPONSIVE STYLES
   Breakpoints: 900px (tablet), 480px (phone)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Nav */
  nav, .nav { padding: 1.2rem 1.5rem; }
  .nav-menu { display: none !important; }
  .nav-lang { display: none !important; }
  .nav-hamburger { display: flex !important; }

  /* Hero — stack vertically */
  .hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding-top: 64px;
  }

  .hero-left { padding: 3rem 1.5rem 2.5rem; order: 1; }
  .hero-right {
    order: 2;
    min-height: 70vw;
    max-height: 85vw;
    position: relative;
  }

  .hero-h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); margin-bottom: 1.2rem; }
  .hero-body { margin-bottom: 2rem; max-width: 100%; }
  .hero-actions { gap: 1.2rem; flex-wrap: wrap; }
  .hero-stats { gap: 1.2rem; margin-top: 2rem; padding-top: 1.5rem; flex-wrap: wrap; }
  .hero-scroll { display: none; }

  /* Ilana card on mobile — fix: pin to bottom, don't cover photo */
  .hero-card {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    margin: 0;
    padding: 1rem 1.2rem;
    max-width: calc(100% - 2rem);
  }
  .hcard-name { font-size: 1.2rem; }
  .hcard-top { margin-bottom: 0.4rem; }

  /* Sections */
  .wrap { padding: 4rem 1.5rem; }
  .wrap-sm { padding: 3rem 1.5rem; }
  .section { padding: 3.5rem 1.5rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 2.5rem; }

  /* Cards */
  #properties-grid { grid-template-columns: 1fr !important; }

  /* About grid */
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }

  /* Services — homepage */
  .svc-home-grid { grid-template-columns: 1fr; gap: 1rem; }
  .svc-card-home { min-height: auto; padding: 2rem 1.5rem; }
  .svc-card-num { font-size: 2.2rem; margin-bottom: 0.8rem; }

  /* Services — services page */
  .svc-grid { grid-template-columns: 1fr; gap: 1px; }

  /* Process */
  .process-cols { grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; }

  /* Testimonials — stack main + side, reduce padding */
  .testi-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .testi-main {
    padding: 2.5rem 1.75rem 2rem;
  }
  .testi-main::before {
    top: 0.5rem;
    left: 1.2rem;
    font-size: 4rem;
  }
  .testi-main-text { font-size: 1.2rem; }
  .testi-side {
    flex-direction: column;
  }
  .testi-side .tcard-sm { padding: 1.5rem 1.5rem; }

  /* Register Interest (homepage) */
  .register-section { padding: 4rem 1.5rem; }
  .register-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  /* CTA band */
  .cta-band { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 1.5rem; text-align: center; }
  .cta-sub { max-width: 100%; }

  /* Footer */
  footer { padding: 3.5rem 1.5rem 1.5rem; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .footer-bot { flex-direction: column; align-items: flex-start; gap: 1rem; }

  /* About page */
  .about-hero { padding: 0 1.5rem 2.5rem; margin-top: 64px; min-height: 220px; }
  .about-body { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 1.5rem; }
  .portrait-wrap { aspect-ratio: 1/1; max-width: 220px; }
  .values-grid { grid-template-columns: 1fr; }
  .value-item:nth-child(odd) { padding-right: 0; }
  .about-cta-band { flex-direction: column; padding: 3.5rem 1.5rem; gap: 2rem; align-items: flex-start; }

  /* Contact page */
  .contact-hero { padding: 0 1.5rem 2.5rem; margin-top: 64px; min-height: 220px; }
  .contact-body { grid-template-columns: 1fr; gap: 3.5rem; padding: 4rem 1.5rem; }
  .form-pair { grid-template-columns: 1fr; }

  /* Page hero (new-builds etc.) */
  .page-hero { padding: 0 1.5rem 2.5rem; margin-top: 64px; min-height: 28vh; }
  .filter-bar { padding: 1.5rem 1.5rem 0; }

  /* Detail pages */
  .detail-hero {
    height: 55vw;
    min-height: 280px;
    margin-top: 64px;
  }
  .detail-hero-content { padding: 0 1.5rem 2rem; }
  .detail-hero-title { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .detail-body { grid-template-columns: 1fr; gap: 2.5rem; }
  .detail-sidebar { position: static; }
  .gal-thumbs { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }

  /* Property card — mobile */
  .card-img-wrap { aspect-ratio: 3/4; }
  .card-name { font-size: 1.35rem; }
  .card-tagline { font-size: 0.8rem; max-width: 100%; }

  /* Hero stats — scale down numerals to fit on mobile without wrapping awkwardly */
  .stat-n { font-size: 2.2rem; }
  .stat-l { font-size: 0.6rem; }

  /* Homepage about — mobile (no absolute positioned num card on mobile) */
  .about-num-card {
    position: static;
    margin-top: 1.5rem;
    display: inline-block;
  }
  .about-text { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .hero-left { padding: 2.5rem 1.2rem 2rem; }
  .hero-h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-stats { gap: 1rem 1.5rem; }
  .stat-n { font-size: 1.9rem; }
  .stat-l { font-size: 0.58rem; }
  .process-cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .svc-home-grid { gap: 0.8rem; }
  .testi-main { padding: 2rem 1.25rem 1.75rem; }
  .testi-main::before { font-size: 3rem; left: 0.8rem; }
  .testi-main-text { font-size: 1.1rem; line-height: 1.5; }
  .card-name { font-size: 1.25rem; }
}
