﻿*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ivory: #f5f0e8; --sand: #e8dcc8; --sand-dark: #d4c4a8;
  --terracotta: #c4693a; --terra-dark: #a8542a;
  --deep: #1a1410; --mid: #5c4a3a;
  --azul: #2b5c8a; --azul-light: #4a80b0; --white: #fdfaf5;
  --px: clamp(20px, 5vw, 64px);
  --shadow-soft: 0 6px 24px rgba(26, 20, 16, 0.08);
  --shadow-lift: 0 18px 48px rgba(26, 20, 16, 0.18);
}
html { scroll-behavior: smooth; background: var(--deep); }
body { font-family: 'Jost', sans-serif; background: var(--ivory); color: var(--deep); overflow-x: hidden; min-height: 100vh; }
body.legal { background: var(--ivory); }

/* FOCUS STATES (accessibility) */
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 2px; }
button:focus-visible, a:focus-visible { outline-offset: 4px; }

/* SCROLL PROGRESS BAR */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, var(--terracotta), var(--azul)); z-index: 200; transition: width 0.05s linear; }

/* PAGE LOADER */
.loader { position: fixed; inset: 0; background: var(--deep); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.7s ease, visibility 0.7s ease; }
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 300; letter-spacing: 0.3em; color: var(--white); animation: pulse 2s ease-in-out infinite; }
.loader-mark span { display: block; font-size: 0.6rem; letter-spacing: 0.4em; color: rgba(245,240,232,0.5); margin-top: 6px; font-family: 'Jost', sans-serif; }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }


/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 20px var(--px); transition: background 0.4s, padding 0.4s, box-shadow 0.4s; }
nav.scrolled { background: rgba(245,240,232,0.97); backdrop-filter: blur(12px); padding: 14px var(--px); box-shadow: 0 1px 0 rgba(92,74,58,0.12); }
.nav-logo-text { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 300; letter-spacing: 0.14em; color: white; text-decoration: none; transition: color 0.4s; line-height: 1.1; }
.nav-logo-sub { display: block; font-size: 0.55rem; letter-spacing: 0.28em; text-transform: uppercase; font-family: 'Jost', sans-serif; font-weight: 300; color: rgba(255,255,255,0.65); transition: color 0.4s; }
nav.scrolled .nav-logo-sub { color: var(--mid); }
nav.scrolled .nav-logo-text { color: var(--deep); }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { font-size: 0.75rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.82); text-decoration: none; transition: color 0.3s; position: relative; }
.nav-links a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--terracotta); transition: width 0.3s ease; }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
nav.scrolled .nav-links a { color: var(--mid); }
.nav-links a:hover { color: var(--terracotta) !important; }
.nav-cta { background: var(--terracotta) !important; border: 1px solid var(--terracotta) !important; padding: 11px 26px !important; color: white !important; font-weight: 500 !important; box-shadow: 0 4px 14px rgba(196,105,58,0.35); transition: background 0.3s, transform 0.3s, box-shadow 0.3s !important; white-space: nowrap; }
.nav-cta::after { display: none !important; }
nav.scrolled .nav-cta { background: var(--terracotta) !important; border-color: var(--terracotta) !important; color: white !important; }
.nav-cta:hover { background: var(--terra-dark) !important; border-color: var(--terra-dark) !important; color: white !important; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(196,105,58,0.5); }
.nav-links a.nav-cta:hover { color: white !important; }
.lang-toggle { display: inline-flex; gap: 4px; margin-left: 14px; font-size: 0.7rem; letter-spacing: 0.18em; }
.lang-toggle button { background: transparent; border: none; color: rgba(255,255,255,0.7); cursor: pointer; font-family: 'Jost', sans-serif; padding: 4px 6px; transition: color 0.3s; font-weight: 400; }
.lang-toggle button.active { color: var(--terracotta); border-bottom: 1px solid var(--terracotta); }
nav.scrolled .lang-toggle button { color: var(--mid); }
nav.scrolled .lang-toggle button.active { color: var(--terracotta); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: white; transition: background 0.4s, transform 0.3s, opacity 0.3s; }
nav.scrolled .hamburger span { background: var(--deep); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--deep); z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 36px; opacity: 0; transition: opacity 0.4s ease; }
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu a { font-size: 1.5rem; font-family: 'Cormorant Garamond', serif; font-weight: 300; color: var(--white); text-decoration: none; letter-spacing: 0.1em; transition: color 0.3s, transform 0.3s; opacity: 0; transform: translateY(20px); }
.mobile-menu.open a { animation: slideUp 0.5s ease forwards; }
.mobile-menu.open a:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { animation-delay: 0.18s; }
.mobile-menu.open a:nth-child(3) { animation-delay: 0.26s; }
.mobile-menu.open a:nth-child(4) { animation-delay: 0.34s; }
.mobile-menu.open a:nth-child(5) { animation-delay: 0.42s; }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
.mobile-menu a:hover { color: var(--terracotta); }
.mobile-menu .m-cta { border: 1px solid var(--terracotta); padding: 14px 40px; font-family: 'Jost', sans-serif; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terracotta) !important; }

/* HERO with Ken Burns crossfade */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: flex-end; padding: 0 var(--px) clamp(60px, 10vw, 90px); overflow: hidden; }
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; background-position: center; background-size: cover; background-repeat: no-repeat; animation: kenburns 24s ease-in-out infinite; will-change: transform, opacity; }
.hero-slide.s1 { background-image: linear-gradient(160deg, rgba(26,20,16,0.55) 0%, rgba(26,20,16,0.25) 50%, rgba(26,20,16,0.55) 100%), url('../images/hero.jpg'); animation: kenburnsCross 24s ease-in-out infinite; animation-delay: 0s; }
.hero-slide.s2 { background-image: linear-gradient(160deg, rgba(26,20,16,0.55) 0%, rgba(26,20,16,0.25) 50%, rgba(26,20,16,0.55) 100%), url('../images/hero2.jpg'); animation: kenburnsCross 24s ease-in-out infinite; animation-delay: -16s; }
.hero-slide.s3 { background-image: linear-gradient(160deg, rgba(26,20,16,0.55) 0%, rgba(26,20,16,0.25) 50%, rgba(26,20,16,0.55) 100%), url('../images/hero3.jpg'); animation: kenburnsCross 24s ease-in-out infinite; animation-delay: -8s; }
@keyframes kenburnsCross {
  0%   { opacity: 0; transform: scale(1.0); }
  10%  { opacity: 1; }
  33%  { opacity: 1; transform: scale(1.08); }
  43%  { opacity: 0; transform: scale(1.10); }
  100% { opacity: 0; transform: scale(1.10); }
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,14,10,0.85) 0%, transparent 60%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 820px; opacity: 0; transform: translateY(32px); animation: fadeUp 1.2s 0.5s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow { font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-weight: 500; }
.hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.4rem, 7vw, 5.6rem); font-weight: 300; line-height: 1.07; color: var(--white); margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--sand); }
.hero-sub { font-size: clamp(0.88rem, 2vw, 1.02rem); font-weight: 300; line-height: 1.75; color: rgba(245,240,232,0.85); max-width: 500px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* Scroll-down indicator */
.scroll-indicator { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(245,240,232,0.6); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; animation: bobUp 2s ease-in-out infinite; }
.scroll-indicator-line { width: 1px; height: 32px; background: linear-gradient(to bottom, transparent, rgba(245,240,232,0.6)); }
@keyframes bobUp { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* MAGNETIC BUTTONS */
.btn-primary { display: inline-block; background: var(--terracotta); color: white; padding: 14px 32px; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; font-family: 'Jost', sans-serif; font-weight: 400; border: none; cursor: pointer; transition: background 0.3s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s; position: relative; overflow: hidden; will-change: transform; }
.btn-primary::before { content: ''; position: absolute; inset: 0; background: var(--terra-dark); transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); z-index: 0; }
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(196,105,58,0.4); }
.btn-primary span { position: relative; z-index: 1; display: inline-block; }
.hero-actions .btn-primary { max-width: 260px; white-space: normal; text-align: center; line-height: 1.4; }
.btn-ghost { display: inline-block; color: rgba(245,240,232,0.85); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; font-family: 'Jost', sans-serif; font-weight: 300; border-bottom: 1px solid rgba(245,240,232,0.4); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: transform; }
.btn-ghost:hover { color: white; border-color: white; }

/* TRUST BAR */
.trust-bar { background: var(--azul); color: var(--white); display: flex; flex-wrap: wrap; }
.trust-quote { width: 100%; padding: 28px var(--px); font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-style: italic; font-weight: 300; color: rgba(245,240,232,0.88); line-height: 1.55; border-bottom: 1px solid rgba(255,255,255,0.12); }
.trust-stats { display: flex; flex-wrap: wrap; width: 100%; }
.trust-stat { flex: 1; min-width: 80px; padding: 22px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,0.12); display: flex; flex-direction: column; justify-content: center; }
.trust-stat:last-child { border-right: none; }
.trust-stat strong { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 300; color: var(--sand); display: block; line-height: 1; }
.trust-stat small { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.55; margin-top: 5px; display: block; }

/* SHARED */
.section-label { font-size: 0.65rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 10px; font-weight: 400; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.7rem, 4vw, 3rem); font-weight: 300; line-height: 1.12; color: var(--deep); margin-bottom: 14px; }
.section-title em { font-style: italic; }
.section-body { font-size: 0.93rem; font-weight: 300; line-height: 1.7; color: var(--mid); }

/* WHY */
.why { background: var(--white); padding: clamp(36px,4vw,60px) var(--px); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.why-image {
  height: 400px;
  background: url('../images/why-alhambra.jpg') center/cover no-repeat;
  position: relative; overflow: hidden;
}
.why-points { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.why-point { display: flex; gap: 18px; align-items: flex-start; }
.why-point-icon { width: 44px; height: 44px; flex-shrink: 0; background: var(--ivory); display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 400; color: var(--terracotta); transition: background 0.3s, color 0.3s, transform 0.3s; letter-spacing: 0; }
.why-point:hover .why-point-icon { background: var(--terracotta); color: white; transform: rotate(-4deg); }
.why-point-text h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 400; color: var(--deep); margin-bottom: 4px; }
.why-point-text p { font-size: 0.85rem; font-weight: 300; line-height: 1.7; color: var(--mid); }

/* TIERS */
.services { background: var(--ivory); padding: clamp(28px,3vw,48px) var(--px); }
.services .section-title { font-size: clamp(1.3rem, 2.8vw, 2.2rem); margin-bottom: 8px; }
.tiers { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; margin-top: 18px; border: 1px solid var(--sand); }
.tier { padding: 20px 18px 24px; border-right: 1px solid var(--sand); position: relative; overflow: hidden; transition: background 0.4s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s; display: flex; flex-direction: column; }
.tier:last-child { border-right: none; }
.tier::after { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--terracotta); transform:scaleX(0); transform-origin:left; transition:transform 0.4s; }
.tier:hover { background: var(--white); transform: translateY(-8px); box-shadow: var(--shadow-lift); z-index: 2; }
.tier:hover::after { transform: scaleX(1); }
.tier-num { font-family: 'Cormorant Garamond', serif; font-size: 0.82rem; color: var(--terracotta); letter-spacing: 0.12em; margin-bottom: 14px; }
.tier h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 400; color: var(--deep); line-height: 1.2; margin-bottom: 8px; }
.tier-price { font-size: 0.76rem; color: var(--azul); margin-bottom: 18px; border-bottom: 1px solid var(--sand); padding-bottom: 16px; }
.tier ul { list-style: none; flex: 1; }
.tier ul li { font-size: 0.83rem; font-weight: 300; line-height: 1.6; color: var(--mid); padding: 5px 0; border-bottom: 1px solid var(--sand); display: flex; gap: 8px; align-items: flex-start; }
.tier ul li::before { content:'·'; color:var(--terracotta); flex-shrink:0; font-size:1rem; margin-top:0; }
.tier-client { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--sand); font-size: 0.73rem; font-weight: 300; color: var(--mid); font-style: italic; line-height: 1.5; }
.tier-cta { display: block; text-align: center; margin-top: 18px; padding: 12px 0; border: 1px solid var(--terracotta); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: white; background: var(--terracotta); font-family: 'Jost', sans-serif; transition: background 0.3s; }
.tier-cta:hover { background: var(--terra-dark); }

/* FEATURED PROPERTIES carousel */
.featured-section { background: var(--white); padding: clamp(36px,4vw,60px) var(--px); }
.featured-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.featured-controls { display: flex; gap: 12px; }
.feat-btn { width: 44px; height: 44px; border: 1px solid var(--sand-dark); background: transparent; cursor: pointer; font-size: 1.2rem; color: var(--mid); transition: all 0.3s; display: flex; align-items: center; justify-content: center; }
.feat-btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: white; }
.feat-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.featured-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 0 28px; -ms-overflow-style: none; scrollbar-width: none; }
.featured-track::-webkit-scrollbar { display: none; }
.prop-card { flex: 0 0 360px; scroll-snap-align: start; background: var(--ivory); border: 1px solid var(--sand); transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.4s; cursor: pointer; }
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.prop-image { width: 100%; height: 200px; overflow: hidden; position: relative; }
.prop-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2,0.8,0.2,1); }
.prop-card:hover .prop-image img { transform: scale(1.06); }
.prop-tag { position: absolute; top: 14px; left: 14px; background: var(--terracotta); color: white; padding: 5px 12px; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; }
.prop-info { padding: 22px 24px 26px; }
.prop-location { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mid); margin-bottom: 6px; }
.prop-title { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 400; color: var(--deep); margin-bottom: 14px; }
.prop-price { font-size: 1.05rem; color: var(--azul); font-weight: 500; margin-bottom: 14px; }
.prop-meta { display: flex; gap: 16px; font-size: 0.78rem; color: var(--mid); border-top: 1px solid var(--sand); padding-top: 14px; }
.prop-meta span { display: flex; align-items: center; gap: 4px; }

/* LOCATIONS — 3D tilt cards */
.locations { background: var(--deep); padding: clamp(28px,3vw,48px) var(--px); }
.locations .section-title { color: var(--white); }
.locations .section-body { color: rgba(245,240,232,0.55); }
.loc-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; margin-top: 24px; height: 440px; }
.loc-card { position: relative; overflow: hidden; cursor: pointer; transform-style: preserve-3d; transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1); will-change: transform; }
.loc-card:first-child { grid-row: 1 / 3; }
.loc-bg { width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1); }
.loc-card:hover .loc-bg { transform: scale(1.08); }
.loc-bg-marbella { background: url('../images/loc-marbella.jpg') center/cover no-repeat; }
.loc-bg-seville  { background: url('../images/loc-seville.jpg') center/cover no-repeat; }
.loc-bg-malaga   { background: url('../images/loc-malaga.jpg') center/cover no-repeat; }
.loc-bg-granada  { background: url('../images/loc-granada.jpg') center/cover no-repeat; }
.loc-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 22px 20px; background: linear-gradient(to top, rgba(26,20,16,0.92) 0%, transparent 100%); transform: translateZ(20px); }
.loc-info h4 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.2rem,2.5vw,1.6rem); font-weight: 300; color: white; margin-bottom: 3px; }
.loc-info p { font-size: 0.68rem; letter-spacing: 0.08em; color: rgba(245,240,232,0.6); }
.loc-card:first-child .loc-info h4 { font-size: clamp(1.4rem,3vw,2.1rem); }
.loc-card::after { content: '→'; position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; background: rgba(245,240,232,0.1); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; color: white; opacity: 0; transform: translateX(-8px) translateZ(20px); transition: opacity 0.3s, transform 0.3s; }
.loc-card:hover::after { opacity: 1; transform: translateX(0) translateZ(20px); }

/* PROCESS */
.process { background: var(--white); padding: clamp(28px,3vw,48px) var(--px); position: relative; }
.process-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; margin-top: 24px; }
.process-step { padding: 0 24px 0 0; border-right: 1px solid var(--sand); position: relative; transition: transform 0.4s; }
.process-step:hover { transform: translateY(-4px); }
.process-step:first-child { padding-left: 0; }
.process-step:last-child { border-right: none; }
.process-step:not(:first-child) { padding-left: 24px; }
.step-n { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 300; color: var(--sand); line-height: 1; display: block; margin-bottom: 14px; transition: color 0.3s; }
.process-step:hover .step-n { color: var(--terracotta); }
.process-step h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 400; color: var(--deep); margin-bottom: 8px; }
.process-step p { font-size: 0.83rem; font-weight: 300; line-height: 1.7; color: var(--mid); }

/* TESTIMONIALS */
.testimonials { background: var(--ivory); padding: clamp(28px,3vw,48px) var(--px); }
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 24px; }
.testi-card { background: var(--white); padding: 26px 24px; border-bottom: 3px solid transparent; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; }
.testi-card:hover { border-color: var(--terracotta); transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.testi-stars { color: var(--terracotta); font-size: 0.82rem; margin-bottom: 16px; letter-spacing: 3px; }
.testi-card blockquote { font-family: 'Cormorant Garamond', serif; font-size: 1.08rem; font-style: italic; font-weight: 300; color: var(--deep); line-height: 1.55; margin-bottom: 20px; }
.testi-author { display: flex; gap: 12px; align-items: center; }
.author-dot { width: 30px; height: 1px; background: var(--terracotta); flex-shrink: 0; }
.testi-author strong { display: block; font-size: 0.82rem; font-weight: 400; color: var(--deep); }
.testi-author span { font-size: 0.7rem; color: var(--mid); }

/* GALLERY */
.gallery-header { background: var(--ivory); padding: clamp(28px,3vw,48px) var(--px) 20px; }
.gallery { background: var(--ivory); padding: 0 var(--px) clamp(28px,3vw,48px); }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: 240px 210px; gap: 14px; }
.gallery-item { overflow: hidden; position: relative; cursor: pointer; }
.gallery-item:nth-child(1) { grid-column:1/2; grid-row:1/2; }
.gallery-item:nth-child(2) { grid-column:2/4; grid-row:1/2; }
.gallery-item:nth-child(3) { grid-column:1/3; grid-row:2/3; }
.gallery-item:nth-child(4) { grid-column:3/4; grid-row:2/3; }
.gallery-tile { width:100%; height:100%; transition:transform 0.6s cubic-bezier(0.2,0.8,0.2,1); position: relative; display: flex; align-items: center; justify-content: center; }
.gallery-item:hover .gallery-tile { transform: scale(1.06); }
.gallery-item::after { content: '+'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); width: 60px; height: 60px; background: rgba(196,105,58,0.92); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 300; transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1); z-index: 3; }
.gallery-item:hover::after { transform: translate(-50%, -50%) scale(1); }
.g1 { background: url('../images/gallery-villa.jpg') center/cover no-repeat; }
.g2 { background: url('../images/gallery-granada.jpg') center/cover no-repeat; }
.g3 { background: url('../images/gallery-zahara.jpg') center/cover no-repeat; }
.g4 { background: url('../images/gallery-seville-plaza.jpg') center/cover no-repeat; }
.gallery-tile-label { position: absolute; bottom: 16px; left: 16px; padding: 6px 12px; background: rgba(26,20,16,0.55); font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; font-style: italic; font-weight: 300; color: #f5f0e8; letter-spacing: 0.06em; z-index: 2; }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; background: rgba(26,20,16,0.95); z-index: 9000; display: none; align-items: center; justify-content: center; padding: 40px; opacity: 0; transition: opacity 0.3s; }
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 24px; right: 24px; background: transparent; border: 1px solid rgba(245,240,232,0.4); color: white; width: 48px; height: 48px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s; }
.lightbox-close:hover { background: var(--terracotta); border-color: var(--terracotta); }

/* LEAD MAGNET */
.lead-magnet { background: var(--azul); padding: clamp(36px,4vw,60px) var(--px); display: flex; align-items: center; gap: 50px; justify-content: space-between; flex-wrap: wrap; position: relative; overflow: hidden; }
.lead-magnet::before { content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(245,240,232,0.08), transparent 70%); pointer-events: none; }
.lm-text .section-label { color: var(--sand); }
.lm-text h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem,3vw,2.5rem); font-weight: 300; color: var(--white); line-height: 1.2; margin-bottom: 12px; position: relative; }
.lm-text p { font-size: 0.9rem; font-weight: 300; color: rgba(245,240,232,0.65); position: relative; }
.lm-form { display: flex; flex-wrap: wrap; gap: 0; width: 100%; max-width: 480px; position: relative; }
.lm-form input { padding: 15px 20px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); font-family: 'Jost', sans-serif; font-size: 0.88rem; color: white; flex: 1; min-width: 180px; outline: none; transition: border-color 0.3s, background 0.3s; }
.lm-form input:focus { border-color: var(--sand); background: rgba(255,255,255,0.15); }
.lm-form input::placeholder { color: rgba(255,255,255,0.4); }

/* CONTACT */
.contact { background: var(--white); padding: clamp(28px,3vw,48px) var(--px); display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: clamp(28px,5vw,60px); align-items: start; }
.contact .section-title { font-size: clamp(1.2rem, 2.5vw, 2rem); margin-bottom: 10px; }
.contact-form { background: var(--ivory); padding: clamp(22px,3vw,36px) clamp(20px,3vw,38px); border: 1px solid var(--sand); }
.contact-form h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 400; color: var(--deep); margin-bottom: 18px; }
.form-row { margin-bottom: 11px; }
.form-row label { display: block; font-size: 0.63rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mid); margin-bottom: 5px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 8px 12px; border: 1px solid var(--sand); background: var(--white); font-family: 'Jost', sans-serif; font-size: 0.85rem; font-weight: 300; color: var(--deep); outline: none; transition: border-color 0.3s, box-shadow 0.3s; appearance: none; -webkit-appearance: none; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(43,92,138,0.1); }
.form-row textarea { height: 72px; resize: none; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .btn-primary { width: 100%; text-align: center; }
.contact-details { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 24px; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; transition: transform 0.3s; }
.contact-detail:hover { transform: translateX(4px); }
.detail-icon { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--sand); display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all 0.3s; }
.contact-detail:hover .detail-icon { background: var(--terracotta); border-color: var(--terracotta); color: white; }
.detail-text strong { display: block; font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid); margin-bottom: 2px; }
.detail-text span, .detail-text a { font-size: 0.88rem; font-weight: 300; color: var(--deep); text-decoration: none; transition: color 0.3s; }
.detail-text a:hover { color: var(--terracotta); }
.contact-promise { background: var(--azul); padding: 18px 22px; font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; font-style: italic; font-weight: 300; color: rgba(245,240,232,0.85); line-height: 1.5; }

/* FOOTER */
footer { background: var(--deep); padding: clamp(50px,8vw,72px) var(--px) 36px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 30px; }
.footer-brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 300; letter-spacing: 0.1em; color: var(--white); display: block; margin-bottom: 14px; }
.footer-brand p { font-size: 0.83rem; font-weight: 300; line-height: 1.75; color: rgba(245,240,232,0.38); max-width: 240px; }
.footer-col h5 { font-size: 0.63rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 0.85rem; font-weight: 300; color: rgba(245,240,232,0.42); text-decoration: none; transition: color 0.3s, padding-left 0.3s; }
.footer-col a:hover { color: var(--white); padding-left: 6px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 0.7rem; color: rgba(245,240,232,0.22); }
.footer-legal-links { text-align: center; }
.footer-legal-links a { color: rgba(245,240,232,0.42); text-decoration: none; font-size: 0.7rem; transition: color 0.3s; }
.footer-legal-links a:hover { color: var(--white); }
.insight-card-link { display: block; text-decoration: none; color: inherit; height: 100%; }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 24px; left: 24px; right: 24px; max-width: 580px; margin: 0 auto; background: var(--white); border: 1px solid var(--sand); padding: 22px 26px; box-shadow: 0 12px 40px rgba(0,0,0,0.15); z-index: 95; display: none; align-items: flex-start; gap: 18px; flex-wrap: wrap; opacity: 0; transition: opacity 0.4s, transform 0.4s; transform: translateY(20px); }
.cookie-banner.show { display: flex; opacity: 1; transform: translateY(0); }
.cookie-banner p { font-size: 0.82rem; line-height: 1.6; color: var(--mid); flex: 1; min-width: 240px; font-weight: 300; }
.cookie-banner p a { color: var(--terracotta); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; }
.cookie-btn { font-family: 'Jost', sans-serif; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 10px 18px; cursor: pointer; border: 1px solid var(--sand-dark); background: transparent; color: var(--mid); transition: all 0.3s; }
.cookie-btn.accept { background: var(--terracotta); border-color: var(--terracotta); color: white; }
.cookie-btn:hover { background: var(--deep); border-color: var(--deep); color: white; }
.cookie-btn.accept:hover { background: var(--terra-dark); border-color: var(--terra-dark); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.85s ease, transform 0.85s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1{transition-delay:.10s} .d2{transition-delay:.20s} .d3{transition-delay:.30s} .d4{transition-delay:.40s} .d5{transition-delay:.50s}

@media(max-width:1024px){
  /* Tiers: 3-col on large tablet */
  .tiers { grid-template-columns: repeat(3,1fr); }
  .tier:nth-child(3) { border-right: none; }
  .tier:nth-child(1),.tier:nth-child(2),.tier:nth-child(3) { border-bottom: 1px solid var(--sand); }
  .why-grid { gap: 40px; }
  .why-image { height: 420px; }
  /* Locations: 2-col */
  .loc-grid { grid-template-columns: 1fr 1fr; height: auto; }
  .loc-card:first-child { grid-row: auto; grid-column: 1/3; height: 260px; }
  .loc-card { height: 200px; }
  /* Process: 3-col */
  .process-grid { grid-template-columns: repeat(3,1fr); }
  .process-step:nth-child(3) { border-right: none; }
  .process-step:nth-child(4) { padding-left: 0; border-right: 1px solid var(--sand); padding-top: 28px; border-top: 1px solid var(--sand); margin-top: 28px; }
  .process-step:nth-child(5) { border-right: none; padding-top: 28px; border-top: 1px solid var(--sand); margin-top: 28px; }
  /* Contact stays 2-col at tablet — only collapse at mobile */
  .footer-top { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-rows: 240px 200px; }
}
@media(max-width:900px){
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  /* Tiers: 2-col at hamburger breakpoint */
  .tiers { grid-template-columns: repeat(2,1fr); }
  .tier:nth-child(3) { border-right: 1px solid var(--sand); }
  .tier:nth-child(2) { border-right: none; }
  .tier:nth-child(1),.tier:nth-child(2) { border-bottom: 1px solid var(--sand); }
  .tier:nth-child(3),.tier:nth-child(4) { border-bottom: 1px solid var(--sand); }
  .tier:nth-child(4) { border-right: none; }
  /* Process: 2-col */
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .process-step:nth-child(2) { border-right: none; }
  .process-step:nth-child(3) { border-right: 1px solid var(--sand); padding-top: 28px; border-top: 1px solid var(--sand); margin-top: 28px; }
  .process-step:nth-child(4) { border-right: none; border-top: 1px solid var(--sand); margin-top: 28px; padding-top: 28px; }
  .process-step:nth-child(5) { border-top: 1px solid var(--sand); margin-top: 28px; padding-top: 28px; border-right: none; }
  /* Testimonials: 2-col */
  .testi-grid { grid-template-columns: repeat(2,1fr); }
  .testi-grid > :last-child { grid-column: span 2; }
}
@media(max-width:680px){
  .lang-toggle { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
  .trust-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .trust-stat { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .trust-stat:nth-child(2n) { border-right: none; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-image { height: 240px; }
  /* Tiers: single col on small mobile */
  .tiers { grid-template-columns: 1fr; border: none; gap: 12px; }
  .tier { border: 1px solid var(--sand) !important; padding: 28px 22px 32px; }
  .loc-grid { grid-template-columns: 1fr; height: auto; }
  .loc-card:first-child { grid-column: auto; grid-row: auto; }
  .loc-card { height: 180px; }
  /* Process: single col */
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: none !important; padding: 0 0 22px !important; border-bottom: 1px solid var(--sand); margin-top: 0 !important; padding-top: 0 !important; }
  .process-step:last-child { border-bottom: none; }
  /* Testimonials: single col */
  .testi-grid { grid-template-columns: 1fr; }
  .testi-grid > :last-child { grid-column: auto; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 150px 150px; }
  .gallery-item,.gallery-item:nth-child(1),.gallery-item:nth-child(2),.gallery-item:nth-child(3),.gallery-item:nth-child(4) { grid-column: auto; grid-row: auto; }
  .lead-magnet { flex-direction: column; gap: 24px; }
  .lm-form { flex-direction: column; }
  .lm-form .btn-primary { width: 100%; }
  /* Contact: single col only on mobile */
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .form-2col { grid-template-columns: 1fr; }
  /* Market stats: keep 2-col on mobile */
  .stats-grid { grid-template-columns: repeat(2,1fr) !important; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--sand); }
  .stat-cell:nth-child(odd) { border-right: 1px solid var(--sand) !important; }
  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .prop-card { flex: 0 0 265px; }
  .featured-controls { display: none; }
  /* Neighborhoods: smaller chips */
  .nb-chip { padding: 8px 14px; font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-slide { animation: none !important; opacity: 1 !important; }
  .hero-slide.s2, .hero-slide.s3 { display: none; }
}

/* MARQUEE TICKER STRIP */
.marquee { background: var(--deep); color: var(--ivory); overflow: hidden; padding: 14px 0; border-bottom: 1px solid rgba(245,240,232,0.08); max-width: 100vw; }
.marquee-track { display: flex; gap: 60px; white-space: nowrap; animation: marquee 38s linear infinite; will-change: transform; width: max-content; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-style: italic; font-weight: 300; letter-spacing: 0.02em; color: rgba(245,240,232,0.85); display: flex; align-items: center; gap: 60px; }
.marquee-item::after { content: '✦'; color: var(--terracotta); font-size: 0.7rem; font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* AS FEATURED IN */
.press { background: var(--ivory); padding: clamp(40px,5vw,60px) var(--px); border-bottom: 1px solid var(--sand); }
.press-label { text-align: center; font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--mid); margin-bottom: 22px; }
.press-logos { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); justify-content: center; align-items: center; }
.press-logo { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(1rem, 1.6vw, 1.4rem); color: var(--mid); letter-spacing: 0.03em; opacity: 0.55; transition: opacity 0.3s, color 0.3s; cursor: default; font-style: italic; }
.press-logo.bold { font-style: normal; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.press-logo:hover { opacity: 1; color: var(--terracotta); }

/* MARKET STATS DASHBOARD */
.market-stats { background: var(--white); padding: clamp(44px,5vw,76px) var(--px); }
.stats-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.stats-head .section-label { color: var(--terracotta); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--sand); }
.stat-cell { padding: 38px 28px 36px; text-align: center; border-right: 1px solid var(--sand); position: relative; transition: background 0.3s; }
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: var(--ivory); }
.stat-cell-region { font-size: 0.65rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 14px; }
.stat-cell-value { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 300; color: var(--deep); line-height: 1.1; margin-bottom: 6px; }
.stat-cell-value .currency { font-size: 0.65em; vertical-align: super; color: var(--mid); margin-right: 2px; }
.stat-cell-label { font-size: 0.7rem; color: var(--mid); margin-bottom: 18px; }
.stat-cell-trend { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; padding: 3px 10px; background: rgba(43,138,93,0.12); color: #2b8a5d; font-weight: 500; }
.stat-cell-trend.down { background: rgba(196,69,58,0.12); color: #c4453a; }

/* SVG CURVED DIVIDERS */
.divider-svg { display: block; width: 100%; height: 60px; margin: 0; line-height: 0; }
.divider-svg path { transition: fill 0.3s; }

/* FAQ ACCORDION */
.faq { background: var(--ivory); padding: clamp(44px,5vw,76px) var(--px); }
.faq-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--sand); }
.faq-item:first-child { border-top: 1px solid var(--sand); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 15px 0; cursor: pointer; font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 400; color: var(--deep); transition: color 0.3s; background: transparent; border: none; width: 100%; text-align: left; }
.faq-q:hover { color: var(--terracotta); }
.faq-q-icon { width: 32px; height: 32px; flex-shrink: 0; border: 1px solid var(--sand-dark); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--terracotta); transition: transform 0.3s ease, background 0.3s, color 0.3s; font-weight: 300; }
.faq-item.open .faq-q-icon { transform: rotate(45deg); background: var(--terracotta); color: white; border-color: var(--terracotta); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 0 24px; font-size: 0.92rem; line-height: 1.8; color: var(--mid); font-weight: 300; }

/* WHATSAPP FLOATING BUBBLE */
.whatsapp-bubble { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; background: #25D366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 8px 24px rgba(37,211,102,0.4); z-index: 90; transition: transform 0.3s, box-shadow 0.3s; }
.whatsapp-bubble:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 32px rgba(37,211,102,0.55); }
.whatsapp-bubble svg { width: 28px; height: 28px; fill: white; }
.whatsapp-bubble::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: rgba(37,211,102,0.4); animation: wpRipple 2s ease-out infinite; z-index: -1; }
@keyframes wpRipple { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.6); opacity: 0; } }
body.cookie-active .whatsapp-bubble { bottom: 200px; }
@media (min-width: 681px) { body.cookie-active .whatsapp-bubble { bottom: 24px; } }

/* CURRENCY SELECTOR */
.currency-toggle { display: inline-flex; gap: 2px; margin-left: 14px; font-size: 0.7rem; }
.currency-toggle button { background: transparent; border: none; color: rgba(255,255,255,0.55); cursor: pointer; font-family: 'Jost', sans-serif; padding: 4px 6px; transition: color 0.3s; font-weight: 400; }
.currency-toggle button.active { color: var(--terracotta); }
nav.scrolled .currency-toggle button { color: rgba(92,74,58,0.5); }
nav.scrolled .currency-toggle button.active { color: var(--terracotta); }

/* NEIGHBORHOOD CHIPS */
.neighborhoods { background: var(--ivory); padding: clamp(36px,4vw,60px) var(--px); }
.nb-head { text-align: center; max-width: 700px; margin: 0 auto 38px; }
.nb-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1000px; margin: 0 auto; }
.nb-chip { padding: 10px 20px; background: var(--white); border: 1px solid var(--sand-dark); font-size: 0.78rem; color: var(--mid); cursor: pointer; transition: all 0.3s; font-family: 'Jost', sans-serif; font-weight: 300; letter-spacing: 0.03em; }
.nb-chip:hover { background: var(--terracotta); border-color: var(--terracotta); color: white; transform: translateY(-2px); }
.nb-chip-region { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terracotta); display: block; margin-bottom: 2px; }
.nb-chip:hover .nb-chip-region { color: white; }

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--sand); }
}
@media (max-width: 680px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: none !important; border-bottom: 1px solid var(--sand); }
  .stat-cell:last-child { border-bottom: none; }
  .currency-toggle { display: none; }
  .marquee-item { font-size: 0.85rem; }
}

/* TEAM */
.team { background: var(--white); padding: clamp(44px,5vw,76px) var(--px); }
.team-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1300px; margin: 0 auto; }
.team-card { text-align: center; cursor: pointer; transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1); }
.team-card:hover { transform: translateY(-6px); }
.team-photo { width: 100%; aspect-ratio: 3/4; overflow: hidden; margin-bottom: 16px; position: relative; background: var(--ivory); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2,0.8,0.2,1); filter: grayscale(20%); }
.team-card:hover .team-photo img { transform: scale(1.06); filter: grayscale(0%); }
.team-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(26,20,16,0.25)); pointer-events: none; }
.team-name { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 400; color: var(--deep); margin-bottom: 2px; }
.team-role { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 8px; }
.team-bio { font-size: 0.82rem; line-height: 1.6; color: var(--mid); font-weight: 300; padding: 0 8px; }

/* INSIGHTS / BLOG */
.insights { background: var(--ivory); padding: clamp(28px,3vw,48px) var(--px); }
.insights-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; max-width: 1300px; margin-left: auto; margin-right: auto; }
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1300px; margin: 0 auto; }
.insight-card { background: var(--white); cursor: pointer; transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.4s; display: flex; flex-direction: column; }
.insight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.insight-image { width: 100%; height: 180px; overflow: hidden; }
.insight-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2,0.8,0.2,1); }
.insight-card:hover .insight-image img { transform: scale(1.06); }
.insight-info { padding: 18px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.insight-meta { font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 10px; display: flex; gap: 12px; align-items: center; }
.insight-meta::after { content: ''; flex: 1; height: 1px; background: var(--sand); }
.insight-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400; color: var(--deep); margin-bottom: 12px; line-height: 1.25; }
.insight-excerpt { font-size: 0.88rem; line-height: 1.7; color: var(--mid); font-weight: 300; flex: 1; margin-bottom: 14px; }
.insight-readmore { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terracotta); display: inline-flex; align-items: center; gap: 6px; transition: gap 0.3s; }
.insight-card:hover .insight-readmore { gap: 12px; }

/* NEWSLETTER */
.newsletter { background: var(--deep); padding: clamp(36px,4vw,60px) var(--px); text-align: center; border-top: 1px solid rgba(245,240,232,0.06); }
.newsletter h3 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 300; color: var(--white); margin-bottom: 10px; }
.newsletter p { font-size: 0.92rem; color: rgba(245,240,232,0.55); margin-bottom: 28px; max-width: 540px; margin-left: auto; margin-right: auto; font-weight: 300; }
.newsletter-form { display: flex; max-width: 480px; margin: 0 auto; gap: 0; }
.newsletter-form input { flex: 1; padding: 15px 20px; border: 1px solid rgba(245,240,232,0.18); background: rgba(245,240,232,0.06); color: white; font-family: 'Jost', sans-serif; font-size: 0.88rem; outline: none; transition: border-color 0.3s; }
.newsletter-form input:focus { border-color: var(--sand); }
.newsletter-form input::placeholder { color: rgba(245,240,232,0.4); }
.newsletter-form button { padding: 15px 28px; background: var(--terracotta); border: 1px solid var(--terracotta); color: white; font-family: 'Jost', sans-serif; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; transition: background 0.3s; font-weight: 500; }
.newsletter-form button:hover { background: var(--terra-dark); border-color: var(--terra-dark); }

/* SOCIAL */
.social-row { display: flex; gap: 14px; margin-top: 18px; }
.social-row a { width: 36px; height: 36px; border: 1px solid rgba(245,240,232,0.18); display: flex; align-items: center; justify-content: center; transition: background 0.3s, border-color 0.3s, transform 0.3s; }
.social-row a:hover { background: var(--terracotta); border-color: var(--terracotta); transform: translateY(-2px); }
.social-row svg { width: 16px; height: 16px; fill: rgba(245,240,232,0.55); transition: fill 0.3s; }
.social-row a:hover svg { fill: white; }

/* SVG SECTION DIVIDERS */
.section-divider { display: block; width: 100%; height: 60px; line-height: 0; margin-top: -1px; }
.section-divider svg { width: 100%; height: 100%; display: block; }

/* TABS for Featured Properties */
.featured-tabs { display: inline-flex; gap: 0; border: 1px solid var(--sand-dark); margin-bottom: 28px; }
.featured-tab { padding: 10px 22px; background: transparent; border: none; font-family: 'Jost', sans-serif; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid); cursor: pointer; transition: background 0.3s, color 0.3s; }
.featured-tab.active { background: var(--terracotta); color: white; }
.featured-tab:not(.active):hover { color: var(--terracotta); }

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-grid > :last-child { grid-column: span 2; }
}
@media (max-width: 680px) {
  .team-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .insights-grid { grid-template-columns: 1fr; }
  .insights-grid > :last-child { grid-column: auto; }
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form button { width: 100%; }
}

/* ROI CALCULATOR */
.calc-section { background: var(--deep); padding: clamp(44px,5vw,76px) clamp(24px,8vw,140px); }
.calc-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,90px); align-items: start; max-width: 1500px; margin: 0 auto; }
.calc-copy .section-label { color: var(--terracotta); }
.calc-copy .section-title { color: #fff; }
.calc-copy .section-title em { color: var(--terracotta); }
.calc-copy p { color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.75; margin-top: 16px; }

.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.calc-preset-label { width: 100%; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 2px; }
.calc-preset-btn { padding: 8px 18px; border: 1px solid rgba(255,255,255,0.2); background: transparent; color: rgba(255,255,255,0.75); font-family: 'Jost', sans-serif; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: background 0.25s, border-color 0.25s, color 0.25s; }
.calc-preset-btn:hover, .calc-preset-btn.active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }

.calc-widget { background: #fff; padding: 36px; }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.calc-field { display: flex; flex-direction: column; gap: 5px; }
.calc-field label { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mid); }
.calc-field input { width: 100%; padding: 10px 12px; border: 1px solid var(--sand); background: var(--ivory); font-family: 'Jost', sans-serif; font-size: 0.95rem; color: var(--deep); outline: none; transition: border-color 0.2s; box-sizing: border-box; }
.calc-field input:focus { border-color: var(--terracotta); }

.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--sand); border: 1px solid var(--sand); margin-bottom: 24px; }
.calc-result-cell { background: var(--ivory); padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.calc-result-cell span { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); }
.calc-result-cell strong { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 400; color: var(--deep); }
.calc-result-cell.highlight { background: var(--deep); }
.calc-result-cell.highlight span { color: rgba(255,255,255,0.6); }
.calc-result-cell.highlight strong { color: var(--terracotta); }

.calc-cta { display: inline-block; width: auto; min-width: 260px; }

@media (max-width: 900px) {
  .calc-inner { grid-template-columns: 1fr; }
  .calc-widget { padding: 28px 22px; }
}
@media (max-width: 480px) {
  .calc-inputs { grid-template-columns: 1fr; }
  .calc-results { grid-template-columns: 1fr; }
}

/* TESTIMONIAL OUTCOMES */
.testi-outcome { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.testi-flag { font-size: 1.2rem; line-height: 1; }
.testi-outcome-tag { display: inline-block; padding: 4px 12px; background: rgba(180,100,60,0.1); border: 1px solid rgba(180,100,60,0.25); color: var(--terracotta); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* OFF-MARKET SECTION */
.offmarket { background: var(--ivory); padding: clamp(44px,5vw,76px) clamp(24px,8vw,140px); border-top: 1px solid var(--sand); }
.offmarket-inner { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: 1fr 480px; gap: clamp(40px,6vw,90px); align-items: center; }
.offmarket-copy .section-label { }
.offmarket-copy .section-title em { color: var(--terracotta); font-style: italic; }
.offmarket-copy p { font-size: 0.95rem; color: var(--mid); line-height: 1.8; margin-top: 16px; }
.offmarket-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--sand); margin-top: 32px; }
.offmarket-stat { padding: 22px 20px; border-right: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.offmarket-stat:nth-child(even) { border-right: none; }
.offmarket-stat:nth-child(3), .offmarket-stat:nth-child(4) { border-bottom: none; }
.offmarket-stat strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 400; color: var(--deep); line-height: 1; }
.offmarket-stat span { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); margin-top: 4px; display: block; }
.offmarket-form-wrap { background: var(--deep); padding: 40px 36px; }
.offmarket-form-wrap h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 300; color: #fff; margin-bottom: 6px; }
.offmarket-form-wrap p { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 24px; line-height: 1.6; }
.offmarket-form { display: flex; flex-direction: column; gap: 12px; }
.offmarket-form input, .offmarket-form select { width: 100%; padding: 12px 14px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: #fff; font-family: 'Jost', sans-serif; font-size: 0.9rem; outline: none; transition: border-color 0.2s; box-sizing: border-box; -webkit-appearance: none; }
.offmarket-form input::placeholder { color: rgba(255,255,255,0.35); }
.offmarket-form input:focus, .offmarket-form select:focus { border-color: var(--terracotta); }
.offmarket-form select option { background: var(--deep); color: #fff; }
.offmarket-form .btn-primary { border: none; cursor: pointer; width: 100%; text-align: center; margin-top: 4px; }
.offmarket-note { font-size: 0.68rem !important; color: rgba(255,255,255,0.3) !important; text-align: center; margin-top: 8px !important; margin-bottom: 0 !important; }

@media (max-width: 900px) {
  .offmarket-inner { grid-template-columns: 1fr; }
  .offmarket-form-wrap { padding: 32px 24px; }
}

/* LEGAL PAGES */
.legal { padding: clamp(36px, 5vw, 70px) clamp(24px, 8vw, 140px); max-width: 1500px; margin: 0 auto; line-height: 1.75; font-weight: 300; min-height: 100vh; }
.legal a { color: var(--azul); }
.legal a:hover { color: var(--terracotta); }
.legal h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 300; margin-bottom: 8px; }
.legal h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 400; margin: 36px 0 12px; color: var(--deep); }
.legal p, .legal li { font-size: 0.95rem; color: var(--mid); margin-bottom: 12px; }
.legal ul { padding-left: 24px; margin-bottom: 12px; }
.legal .meta { font-size: 0.8rem; color: var(--mid); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 32px; }
.legal .back { display: inline-block; margin-top: 40px; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terracotta); text-decoration: none; border-bottom: 1px solid var(--terracotta); padding-bottom: 2px; }

/* ═══════════════════════════════════════════════════════════════
   MOBILE REDESIGN — refined, editorial, touch-first
   ═══════════════════════════════════════════════════════════════ */

/* Sticky bottom mobile CTA bar — hidden on desktop */
.mobile-cta-bar { display: none; }

@media (max-width: 768px) {
  /* ── Base typography & rhythm ── */
  :root { --px: 22px; }
  body { font-size: 15px; }

  /* ── NAV: floating glass pill on scroll ── */
  nav { padding: 14px 18px; }
  nav.scrolled { padding: 10px 18px; background: rgba(245,240,232,0.95); backdrop-filter: blur(20px) saturate(140%); }
  .nav-logo-text { font-size: 1.15rem; letter-spacing: 0.18em; }
  .nav-logo-sub { font-size: 0.5rem; letter-spacing: 0.32em; }
  .hamburger { padding: 8px; }
  .hamburger span { width: 22px; height: 1.5px; background: white; transition: all 0.35s cubic-bezier(0.65,0,0.35,1); }
  nav.scrolled .hamburger span { background: var(--deep); }

  /* ── MOBILE MENU: full-screen with blur + staggered links ── */
  .mobile-menu { background: linear-gradient(180deg, rgba(20,14,10,0.98) 0%, rgba(26,20,16,0.99) 100%); backdrop-filter: blur(20px); padding: 100px 32px 40px; justify-content: flex-start; gap: 0; }
  .mobile-menu::before { content: 'AZUL'; position: absolute; top: 22px; left: 32px; font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; letter-spacing: 0.18em; color: rgba(245,240,232,0.4); }
  .mobile-menu::after { content: 'Andalusia'; position: absolute; bottom: 36px; right: 32px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 5rem; color: rgba(196,105,58,0.08); pointer-events: none; line-height: 1; }
  .mobile-menu a { font-size: 2.2rem; font-weight: 300; letter-spacing: 0.02em; text-align: left; width: 100%; padding: 18px 0; border-bottom: 1px solid rgba(245,240,232,0.06); color: var(--white); position: relative; }
  .mobile-menu a::before { content: ''; position: absolute; left: -32px; top: 50%; width: 0; height: 1px; background: var(--terracotta); transition: width 0.4s; }
  .mobile-menu a:hover::before, .mobile-menu a:active::before { width: 22px; }
  .mobile-menu .m-cta { background: var(--terracotta); color: white !important; border: none; padding: 18px 32px; margin-top: 24px; font-size: 0.78rem; letter-spacing: 0.24em; text-align: center; align-self: stretch; box-shadow: 0 12px 32px rgba(196,105,58,0.4); }

  /* ── HERO: tighter, editorial ── */
  .hero { min-height: 92vh; padding-bottom: 100px; align-items: flex-end; }
  .hero-overlay { background: linear-gradient(to top, rgba(20,14,10,0.92) 0%, rgba(20,14,10,0.4) 50%, rgba(20,14,10,0.6) 100%); }
  .hero-content { padding-right: 0; }
  .hero-eyebrow { font-size: 0.6rem; letter-spacing: 0.32em; margin-bottom: 14px; opacity: 0.85; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.6rem) !important; line-height: 1.02; margin-bottom: 18px; letter-spacing: -0.01em; }
  .hero h1 em { display: block; }
  .hero-tagline, .hero p { font-size: 0.95rem; line-height: 1.6; max-width: 32ch; }
  .hero-actions { gap: 14px; margin-top: 28px; }
  .scroll-indicator { display: none; }

  /* ── MARQUEE ── */
  .marquee { padding: 10px 0; }
  .marquee-item { font-size: 0.82rem; gap: 36px; }
  .marquee-track { gap: 36px; animation-duration: 30s; }

  /* ── PRESS strip ── */
  .press { padding: 26px var(--px); }
  .press-logos { gap: 20px; }
  .press-logo { font-size: 0.95rem; }

  /* ── Section title sizing on mobile ── */
  .section-title { font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.08; }
  .services .section-title, .contact .section-title { font-size: clamp(1.6rem, 6.5vw, 2.2rem); }

  /* ── WHY: stacked with image first, refined image frame ── */
  .why { padding: 36px var(--px); }
  .why-grid { grid-template-columns: 1fr; gap: 24px; }
  .why-image { height: 220px; order: -1; box-shadow: 0 24px 48px -16px rgba(26,20,16,0.35); }
  .why-points { gap: 12px; margin-top: 16px; }
  .why-point { padding: 14px 16px; background: var(--ivory); border-left: 2px solid var(--terracotta); }
  .why-point-icon { width: 36px; height: 36px; font-size: 1rem; background: white; }
  .why-point-text h4 { font-size: 1.05rem; }
  .why-point-text p { font-size: 0.83rem; }

  /* ── SERVICES (TIERS): horizontal swipe carousel — much more engaging ── */
  .services { padding: 36px 0; }
  .services > .section-label, .services > .section-title, .services > .section-body { padding: 0 var(--px); }
  .tiers { display: flex !important; grid-template-columns: none; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px !important; padding: 8px var(--px) 16px; border: none !important; margin-top: 18px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tiers::-webkit-scrollbar { display: none; }
  .tier { flex: 0 0 78%; scroll-snap-align: start; border: 1px solid var(--sand) !important; background: var(--white); padding: 22px 20px 26px !important; border-radius: 4px; box-shadow: 0 12px 28px -16px rgba(26,20,16,0.18); }
  .tier::after { display: none; }
  .tier:hover { transform: none; box-shadow: 0 12px 28px -16px rgba(26,20,16,0.18); }
  .tier-num { font-size: 0.72rem; }
  .tier h3 { font-size: 1.18rem; }
  .tier ul li { font-size: 0.82rem; padding: 6px 0; }
  /* swipe hint */
  .services::after { content: '← swipe →'; display: block; text-align: center; margin-top: 8px; font-size: 0.62rem; letter-spacing: 0.3em; color: var(--mid); opacity: 0.55; text-transform: uppercase; }

  /* ── FEATURED PROPERTIES: tightened cards ── */
  .featured-section { padding: 36px 0; }
  .featured-section > .featured-head { padding: 0 var(--px); margin-bottom: 16px; }
  .featured-track { padding: 4px var(--px) 22px; gap: 14px; }
  .prop-card { flex: 0 0 78%; border-radius: 4px; box-shadow: 0 12px 28px -16px rgba(26,20,16,0.18); }
  .prop-image { height: 200px; }
  .featured-controls { display: none; }

  /* ── LOCATIONS: hero card on top + 2x2 stacked grid ── */
  .locations { padding: 36px var(--px); }
  .loc-grid { grid-template-columns: 1fr 1fr !important; grid-template-rows: 240px 160px 160px !important; gap: 10px; height: auto; margin-top: 20px; }
  .loc-card:first-child { grid-column: 1/3; grid-row: 1/2; }
  .loc-card { border-radius: 4px; }
  .loc-info { padding: 14px 14px; }
  .loc-info h4 { font-size: 1.05rem !important; }
  .loc-info p { font-size: 0.62rem; }
  .loc-card:first-child .loc-info h4 { font-size: 1.5rem !important; }

  /* ── NEIGHBORHOODS chips ── */
  .nb-chip { padding: 9px 16px; font-size: 0.7rem; }

  /* ── PROCESS: vertical timeline with connecting line ── */
  .process { padding: 36px var(--px); }
  .process-grid { grid-template-columns: 1fr; gap: 0; margin-top: 20px; position: relative; }
  .process-grid::before { content: ''; position: absolute; left: 22px; top: 16px; bottom: 16px; width: 1px; background: linear-gradient(to bottom, var(--terracotta) 0%, var(--sand) 100%); }
  .process-step { padding: 20px 0 20px 56px !important; border-right: none !important; border-bottom: none !important; margin-top: 0 !important; padding-top: 20px !important; position: relative; }
  .process-step::before { content: ''; position: absolute; left: 16px; top: 28px; width: 13px; height: 13px; border-radius: 50%; background: var(--terracotta); border: 3px solid var(--ivory); box-shadow: 0 0 0 1px var(--sand); z-index: 1; }
  .step-n { font-size: 1.6rem; margin-bottom: 6px; color: var(--terracotta); }
  .process-step h3 { font-size: 1.05rem; }
  .process-step p { font-size: 0.82rem; }

  /* ── MARKET STATS ── */
  .market-stats { padding: 36px var(--px); }
  .stats-grid { grid-template-columns: repeat(2,1fr) !important; gap: 0; }
  .stat-cell { padding: 18px 14px; }

  /* ── ROI CALC ── */
  .calc-section { padding: 36px var(--px); }
  .calc-inner { grid-template-columns: 1fr !important; gap: 28px; }
  .calc-inputs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .calc-results { grid-template-columns: 1fr 1fr; }
  .calc-preset-btn { font-size: 0.7rem; padding: 10px 12px; }

  /* ── TESTIMONIALS: single column with elegant cards ── */
  .testimonials { padding: 36px var(--px); }
  .testi-grid { grid-template-columns: 1fr !important; gap: 14px; margin-top: 20px; }
  .testi-grid > :last-child { grid-column: auto; }
  .testi-card { padding: 22px 20px; border-radius: 4px; }
  .testi-card blockquote { font-size: 1rem; }

  /* ── INSIGHTS / BLOG: stacked cards with image bleed ── */
  .insights { padding: 36px var(--px); }
  .insights-grid { grid-template-columns: 1fr !important; gap: 20px; }
  .insights-grid > :last-child { grid-column: auto !important; }
  .insight-card { border-radius: 4px; overflow: hidden; box-shadow: 0 12px 28px -16px rgba(26,20,16,0.2); }
  .insight-image { height: 200px; }
  .insight-info { padding: 18px 20px 22px; }
  .insight-title { font-size: 1.15rem; }

  /* ── GALLERY: stacked masonry feel ── */
  .gallery-header { padding: 36px var(--px) 16px; }
  .gallery { padding: 0 var(--px) 36px; }
  .gallery-grid { grid-template-columns: 1fr 1fr !important; grid-template-rows: 180px 140px 180px !important; gap: 8px; }
  .gallery-item:nth-child(1) { grid-column: 1/3 !important; grid-row: 1/2 !important; }
  .gallery-item:nth-child(2) { grid-column: 1/2 !important; grid-row: 2/3 !important; }
  .gallery-item:nth-child(3) { grid-column: 2/3 !important; grid-row: 2/3 !important; }
  .gallery-item:nth-child(4) { grid-column: 1/3 !important; grid-row: 3/4 !important; }
  .gallery-tile-label { font-size: 0.85rem; padding: 5px 10px; }

  /* ── OFF-MARKET ── */
  .offmarket { padding: 36px var(--px); }
  .offmarket-inner { grid-template-columns: 1fr; gap: 24px; }
  .offmarket-form-wrap { padding: 24px 22px; border-radius: 4px; }

  /* ── LEAD MAGNET ── */
  .lead-magnet { padding: 28px 22px; flex-direction: column; gap: 18px; border-radius: 4px; }

  /* ── CONTACT: clean stacked form ── */
  .contact { padding: 36px var(--px); grid-template-columns: 1fr; gap: 28px; }
  .contact .section-title { font-size: clamp(1.6rem, 6.5vw, 2.2rem); }
  .contact-form { padding: 22px 20px; border-radius: 4px; }
  .contact-form h3 { font-size: 1.3rem; margin-bottom: 14px; }
  .form-row { margin-bottom: 12px; }
  .form-row input, .form-row select, .form-row textarea { padding: 12px 14px; font-size: 16px; /* prevents iOS zoom */ }
  .form-2col { grid-template-columns: 1fr; gap: 12px; }
  .contact-details { gap: 14px; }
  .contact-detail { padding: 10px 0; }
  .detail-icon { width: 38px; height: 38px; }
  .contact-promise { padding: 18px 20px; font-size: 0.9rem; border-radius: 4px; }

  /* ── FAQ ── */
  .faq { padding: 36px var(--px); }
  .faq-q { font-size: 1.02rem; padding: 13px 0; }
  .faq-a { font-size: 0.88rem; }

  /* ── NEWSLETTER ── */
  .newsletter { padding: 30px var(--px); }
  .news-form { flex-direction: column; gap: 10px; }
  .news-form input, .news-form .btn-primary { width: 100%; }

  /* ── FOOTER ── */
  footer { padding: 40px var(--px) 100px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; margin-bottom: 22px; }
  .footer-col h5 { margin-bottom: 12px; }
  .footer-col li { margin-bottom: 7px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* ── WhatsApp bubble: smaller, raised above CTA bar ── */
  .whatsapp-bubble { width: 52px !important; height: 52px !important; bottom: 86px !important; right: 16px !important; }
  .whatsapp-bubble svg { width: 26px !important; height: 26px !important; }

  /* ── STICKY MOBILE CTA BAR ── */
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(20,14,10,0.96);
    backdrop-filter: blur(16px) saturate(140%);
    border-top: 1px solid rgba(245,240,232,0.08);
    gap: 10px;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.25);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.65,0,0.35,1);
  }
  body.scrolled-past-hero .mobile-cta-bar { transform: translateY(0); }
  .m-cta-call {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--terra-dark) 100%);
    color: white;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: 2px;
    box-shadow: 0 4px 16px rgba(196,105,58,0.4);
    transition: transform 0.2s;
  }
  .m-cta-call:active { transform: scale(0.97); }
  .m-cta-icon { font-size: 0.85rem; opacity: 0.9; }
  .m-cta-wa {
    width: 50px; height: 50px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #25d366;
    border-radius: 2px;
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
    transition: transform 0.2s;
  }
  .m-cta-wa:active { transform: scale(0.95); }
  .m-cta-wa svg { width: 24px; height: 24px; fill: white; }

  /* ── COOKIE BANNER on mobile ── */
  .cookie-banner { left: 12px; right: 12px; bottom: 80px; padding: 16px 18px; }
  body.cookie-active .mobile-cta-bar { bottom: 90px; }
}

/* Smaller phones (≤380px) */
@media (max-width: 380px) {
  :root { --px: 18px; }
  .hero h1 { font-size: 2.1rem !important; }
  .section-title { font-size: 1.55rem; }
  .tier, .prop-card { flex: 0 0 84%; }
  .nav-cta { padding: 9px 18px !important; font-size: 0.7rem !important; }
}
