/* ===== AGUA Real Estate — shared design system ===== */
:root{
  --ink:#141210; --ink2:#221f1b; --ivory:#f6f3ee; --cream:#efeae1;
  --grey:#6b655c; --soft:#9a938a; --line:#e6e0d5; --white:#ffffff;
  --sea:#33636c; --sea-dark:#264a51;
  --nav-h:80px;
  --serif:'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{ font-family:var(--sans); font-weight:300; color:var(--ink); background:var(--white);
  -webkit-font-smoothing:antialiased; overflow-x:hidden; -webkit-tap-highlight-color:transparent; line-height:1.6; }
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
.container{ max-width:1220px; margin:0 auto; padding:0 6vw; }
.container-narrow{ max-width:820px; margin:0 auto; padding:0 6vw; }

/* headings */
h1,h2,h3,.display{ font-family:var(--serif); font-weight:500; letter-spacing:.005em; }
h1{ font-weight:500; font-size:clamp(2.7rem,6vw,5rem); line-height:1.04; }
h2{ font-weight:500; font-size:clamp(2rem,4.2vw,3.4rem); line-height:1.1; }
h3{ font-weight:500; font-size:clamp(1.3rem,2.4vw,1.7rem); line-height:1.2; }
p{ font-size:1rem; line-height:1.85; color:var(--grey); font-weight:300; }
.lead{ font-size:1.06rem; line-height:1.9; color:var(--grey); }
.eyebrow{ font-family:var(--sans); font-size:.68rem; font-weight:500; letter-spacing:.34em;
  text-transform:uppercase; color:var(--soft); display:inline-block; }
.serif-accent{ font-family:var(--serif); font-style:italic; }

/* buttons */
.btn{ display:inline-block; font-family:var(--sans); font-size:.68rem; font-weight:500;
  letter-spacing:.24em; text-transform:uppercase; padding:1.05rem 2.3rem; cursor:pointer;
  border:1px solid transparent; border-radius:999px; transition:all .35s cubic-bezier(.34,1.4,.64,1); }
.btn:active{ transform:scale(.96); }
.btn-solid{ background:var(--ink); color:var(--white); }
.btn-solid:hover{ background:var(--sea); }
.btn-light{ background:var(--white); color:var(--ink); }
.btn-light:hover{ background:var(--ink); color:var(--white); }
.btn-ghost{ border-color:rgba(255,255,255,.6); color:var(--white); }
.btn-ghost:hover{ background:var(--white); color:var(--ink); }
.btn-outline{ border-color:var(--ink); color:var(--ink); }
.btn-outline:hover{ background:var(--ink); color:var(--white); }
.text-link{ font-size:.68rem; font-weight:500; letter-spacing:.24em; text-transform:uppercase;
  padding-bottom:.5rem; border-bottom:1px solid var(--ink); transition:color .3s,border-color .3s; }
.text-link:hover{ color:var(--sea); border-color:var(--sea); }

/* nav */
.nav{ position:fixed; top:0; left:0; right:0; z-index:260; height:var(--nav-h);
  transition:background .45s ease, box-shadow .45s ease; }
/* when the mobile menu is open, keep the header (burger) on top and readable on the ivory overlay */
.nav.menu-open{ background:transparent; box-shadow:none; }
.nav.menu-open .brand .brand-white{ opacity:0; }
.nav.menu-open .brand .brand-dark{ opacity:1; }
.nav-inner{ height:100%; display:flex; align-items:center; justify-content:space-between; padding:0 6vw; }
.brand{ position:relative; display:block; height:34px; }
.brand img{ height:34px; width:auto; transition:opacity .4s ease; }
.brand .brand-dark{ position:absolute; inset:0; opacity:0; }
.nav.scrolled .brand .brand-white{ opacity:0; }
.nav.scrolled .brand .brand-dark{ opacity:1; }
.nav-links{ display:flex; align-items:center; gap:2.4rem; }
.nav-links a.nl{ font-size:.7rem; font-weight:400; letter-spacing:.2em; text-transform:uppercase;
  color:rgba(255,255,255,.9); transition:color .3s; }
.nav-links a.nl:hover{ color:#fff; }
.nav.scrolled{ background:rgba(255,255,255,.96); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); box-shadow:0 1px 0 var(--line); }
.nav.scrolled a.nl{ color:var(--ink); }
.nav.scrolled a.nl:hover{ color:var(--sea); }
.nav-cta{ padding:.72rem 1.6rem; }
.nav.scrolled .nav-cta.btn-ghost{ border-color:var(--ink); color:var(--ink); }
.nav.scrolled .nav-cta.btn-ghost:hover{ background:var(--ink); color:#fff; }
/* solid-header pages (no hero image behind nav) */
.nav.solid{ background:#fff; box-shadow:0 1px 0 var(--line); }
.nav.solid .brand .brand-white{ opacity:0; }
.nav.solid .brand .brand-dark{ opacity:1; }
.nav.solid a.nl{ color:var(--ink); }
.nav.solid .nav-cta.btn-ghost{ border-color:var(--ink); color:var(--ink); }
@media(max-width:860px){ .nav-links a.nl,.nav-links .nav-cta{ display:none; } }

.burger{ display:none; width:44px; height:44px; border:none; background:transparent; cursor:pointer; position:relative; z-index:320; }
.burger span{ display:block; width:24px; height:1.5px; background:#fff; margin:6px auto; transition:.4s cubic-bezier(.34,1.4,.64,1); }
.nav.scrolled .burger span,.nav.solid .burger span,.nav.menu-open .burger span{ background:var(--ink); }
.nav.menu-open .burger span:nth-child(1){ transform:translateY(7.5px) rotate(45deg); }
.nav.menu-open .burger span:nth-child(2){ opacity:0; }
.nav.menu-open .burger span:nth-child(3){ transform:translateY(-7.5px) rotate(-45deg); }
@media(max-width:860px){ .burger{ display:block; } }
.mobile-menu{ position:fixed; inset:0; z-index:250; background:var(--ivory);
  display:flex; flex-direction:column; justify-content:center; align-items:center; gap:1.9rem;
  opacity:0; visibility:hidden; transform:translateY(-3%); transition:opacity .45s,transform .55s cubic-bezier(.22,1.2,.36,1),visibility .45s; }
.mobile-menu.open{ opacity:1; visibility:visible; transform:none; }
.mobile-menu a{ font-family:var(--serif); font-size:1.8rem; color:var(--ink); }
.mobile-menu a.btn{ font-family:var(--sans); font-size:.7rem; margin-top:.6rem; }
.mobile-menu a.btn-solid{ color:var(--white); }
.mobile-menu a.btn-solid:hover{ color:var(--white); }
body.menu-locked{ overflow:hidden; }
body.menu-locked .wa-float{ display:none; }

/* floating WhatsApp button */
.wa-float{ position:fixed; right:18px; bottom:18px; z-index:300; width:54px; height:54px;
  border-radius:50%; background:#25D366; display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 20px rgba(0,0,0,.22); transition:transform .25s, box-shadow .25s; }
.wa-float:hover{ transform:scale(1.06); box-shadow:0 8px 26px rgba(0,0,0,.28); }
.wa-float svg{ width:28px; height:28px; display:block; }
@media(max-width:600px){ .wa-float{ width:50px; height:50px; right:14px; bottom:14px; } .wa-float svg{ width:26px; height:26px; } }

/* hero */
.hero{ position:relative; min-height:100svh; display:flex; align-items:flex-end; overflow:hidden; background:var(--ink); }
.hero.short{ min-height:78svh; }
.hero>img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero::after{ content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(15,13,11,.52) 0%, rgba(15,13,11,.16) 38%, rgba(15,13,11,.74) 100%); }
.hero-inner{ position:relative; z-index:2; width:100%; padding:0 6vw 11vh; }
.hero .eyebrow{ color:rgba(255,255,255,.85); opacity:0; animation:rise 1.1s .2s ease forwards; }
.hero h1{ color:#fff; max-width:16ch; margin:1.5rem 0 1.6rem; opacity:0; animation:rise 1.2s .45s ease forwards; }
.hero .hero-sub{ color:rgba(255,255,255,.9); font-size:1.08rem; font-weight:300; max-width:46ch; margin-bottom:2.4rem; opacity:0; animation:rise 1.2s .7s ease forwards; }
.hero-actions{ display:flex; gap:1rem; flex-wrap:wrap; opacity:0; animation:rise 1.2s .95s ease forwards; }
@keyframes rise{ from{ opacity:0; transform:translateY(28px);} to{ opacity:1; transform:none;} }

/* reveal */
.reveal{ opacity:0; transform:translateY(34px); transition:opacity .9s ease, transform .9s cubic-bezier(.22,1.2,.36,1); }
.reveal.visible{ opacity:1; transform:none; }
@media(prefers-reduced-motion:reduce){ .reveal{ transition:none; opacity:1; transform:none; } .hero *{ animation:none!important; opacity:1!important; } }

/* statement */
.statement{ padding:8.5rem 0; text-align:center; }
.statement.on-ivory{ background:var(--ivory); }
.statement .big{ font-family:var(--serif); font-weight:500; font-size:clamp(1.7rem,3.4vw,2.7rem);
  line-height:1.42; max-width:34ch; margin:1.4rem auto 0; color:var(--ink); }
@media(min-width:900px){ .statement .big{ max-width:900px; } }
.statement .big em{ font-style:italic; color:var(--sea); }
.statement p.sub{ max-width:56ch; margin:1.8rem auto 0; }

/* split image + text */
.split{ padding:6.5rem 0; }
.split.on-ivory{ background:var(--ivory); }
.split-grid{ display:grid; grid-template-columns:1.05fr .95fr; align-items:center; gap:clamp(2.5rem,6vw,6rem); }
.split-grid.rev{ direction:rtl; }
.split-grid.rev>*{ direction:ltr; }
.split-img{ overflow:hidden; border-radius:14px; }
.split-img img{ width:100%; aspect-ratio:4/5; object-fit:cover; transition:transform 1.4s ease; }
.split-img.wide img{ aspect-ratio:4/3; }
.split-img:hover img{ transform:scale(1.05); }
.split h2{ margin:1.1rem 0 1.4rem; }
.split .lead+.lead{ margin-top:1.1rem; }
.split .actions{ margin-top:2.4rem; display:flex; gap:1rem; flex-wrap:wrap; align-items:center; }
@media(max-width:860px){ .split-grid,.split-grid.rev{ grid-template-columns:1fr; gap:2.4rem; } }

/* dual cards (buying/selling on home) */
.duo{ padding:6rem 0; }
.duo-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1.6rem; }
.duo-card{ position:relative; border-radius:14px; overflow:hidden; min-height:460px; display:flex; align-items:flex-end; }
.duo-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform 1.4s ease; }
.duo-card::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg,rgba(15,13,11,.05),rgba(15,13,11,.68)); }
.duo-card:hover img{ transform:scale(1.05); }
.duo-card .duo-body{ position:relative; z-index:2; padding:2.6rem; color:#fff; }
.duo-card .duo-body h3{ color:#fff; font-size:1.9rem; }
.duo-card .duo-body p{ color:rgba(255,255,255,.86); margin:.7rem 0 1.4rem; max-width:34ch; }
@media(max-width:760px){ .duo-grid{ grid-template-columns:1fr; } }

/* process steps */
.steps{ padding:6.5rem 0; }
.steps.on-ivory{ background:var(--ivory); }
.steps-head{ max-width:640px; margin:0 auto 4rem; text-align:center; }
.steps-list{ display:grid; gap:0; max-width:900px; margin:0 auto; }
.step{ display:grid; grid-template-columns:auto 1fr; gap:2rem; padding:2.2rem 0; border-top:1px solid var(--line); }
.step:last-child{ border-bottom:1px solid var(--line); }
.step .num{ font-family:var(--serif); font-size:2.2rem; color:var(--sea); line-height:1; min-width:2.4ch; }
.step h3{ margin-bottom:.5rem; }
.step p{ max-width:60ch; }

/* value cards (why buy / why sell) */
.values{ padding:6.5rem 0; }
.values.on-ivory{ background:var(--ivory); }
.values-head{ max-width:640px; margin:0 auto 3.4rem; text-align:center; }
.values-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.6rem; }
.value{ background:var(--white); border:1px solid var(--line); border-radius:14px; padding:2.8rem 2.1rem; text-align:center; transition:box-shadow .4s,transform .4s cubic-bezier(.22,1.2,.36,1); }
.values.on-ivory .value{ background:var(--white); }
.value:hover{ box-shadow:0 22px 55px rgba(20,18,16,.07); transform:translateY(-4px); }
.value .vnum{ font-family:var(--serif); font-style:italic; font-size:1.3rem; color:var(--sea); }
.value h3{ font-size:1.25rem; margin:.7rem 0 .7rem; }
.value p{ font-size:.94rem; }
@media(max-width:860px){ .values-grid{ grid-template-columns:1fr; } }

/* stats band */
.stats{ background:var(--ink); color:#fff; padding:5rem 0; }
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:2rem; text-align:center; }
.stat .n{ font-family:var(--serif); font-size:clamp(2.4rem,4vw,3.4rem); color:#fff; line-height:1; }
.stat .l{ display:block; margin-top:.7rem; font-size:.68rem; letter-spacing:.22em; text-transform:uppercase; color:rgba(255,255,255,.55); }
@media(max-width:760px){ .stats-grid{ grid-template-columns:1fr 1fr; gap:2.6rem 1rem; } }

/* facts / cost tables */
.facts{ padding:5.5rem 0; }
.fact-row{ display:grid; grid-template-columns:1fr auto; gap:1.4rem; padding:1.1rem 0; border-bottom:1px solid var(--line); font-size:.98rem; }
.fact-row .k{ color:var(--ink); }
.fact-row .v{ color:var(--sea); font-weight:400; white-space:nowrap; }
.note-card{ background:var(--ivory); border-radius:14px; padding:2.2rem 2.4rem; margin-top:2.4rem; }
.note-card h3{ font-size:1.25rem; margin-bottom:.6rem; }

/* testimonials */
.testi{ padding:7rem 0; background:var(--white); }
.testi-head{ text-align:center; margin-bottom:3.4rem; }
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.6rem; }
.quote{ background:var(--white); border:1px solid var(--line); border-radius:14px; padding:2.6rem 2.2rem; }
.quote p{ font-family:var(--serif); font-style:italic; font-size:1.2rem; line-height:1.55; color:var(--ink); }
.quote .who{ margin-top:1.6rem; font-family:var(--sans); font-size:.68rem; letter-spacing:.18em; text-transform:uppercase; color:var(--soft); }
@media(max-width:860px){ .testi-grid{ grid-template-columns:1fr; } }

/* cta band */
.cta{ position:relative; padding:8rem 0; text-align:center; overflow:hidden; background:var(--ink); }
.cta>img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.28; }
.cta::after{ content:''; position:absolute; inset:0; background:rgba(15,13,11,.4); }
.cta-inner{ position:relative; z-index:2; }
.cta h2{ color:#fff; max-width:20ch; margin:1rem auto 2.2rem; }
.cta .eyebrow{ color:rgba(255,255,255,.8); }

/* page intro (guide pages) */
.prose{ padding:5rem 0 2rem; }
.prose h2{ margin:3rem 0 1.2rem; }
.prose h3{ margin:2.2rem 0 .8rem; }
.prose p{ margin-bottom:1.1rem; }
.prose ul{ list-style:none; margin:0 0 1.4rem; }
.prose li{ position:relative; padding-left:1.4rem; margin-bottom:.6rem; color:var(--grey); font-weight:300; }
.prose li::before{ content:''; position:absolute; left:0; top:.72em; width:5px; height:5px; border-radius:50%; background:var(--sea); }
.pull{ font-family:var(--serif); font-style:italic; font-size:clamp(1.4rem,2.6vw,2rem); line-height:1.4; color:var(--ink); border-left:2px solid var(--sea); padding:.3rem 0 .3rem 1.6rem; margin:2.6rem 0; }

/* contact form */
.form-wrap{ padding:6rem 0; }
.enquiry-grid{ display:grid; grid-template-columns:5fr 7fr; gap:clamp(2.5rem,6vw,6rem); }
@media(max-width:900px){ .enquiry-grid{ grid-template-columns:1fr; } }
.contact-alt{ margin-top:2.4rem; font-size:.9rem; color:var(--grey); line-height:2.1; }
.contact-alt a{ border-bottom:1px solid var(--line); }
.contact-alt a:hover{ color:var(--sea); border-color:var(--sea); }
form.aform{ display:grid; grid-template-columns:1fr 1fr; gap:1.8rem 1.5rem; }
.field{ display:flex; flex-direction:column; }
.field.full{ grid-column:1/-1; }
.field label{ font-size:.6rem; font-weight:500; letter-spacing:.24em; text-transform:uppercase; color:var(--soft); margin-bottom:.6rem; }
.field input,.field select,.field textarea{ font-family:var(--sans); font-weight:300; font-size:.95rem; color:var(--ink);
  background:transparent; border:none; border-bottom:1px solid var(--line); padding:.7rem 0; outline:none; border-radius:0; resize:none; transition:border-color .35s; -webkit-appearance:none; appearance:none; }
.field select{ cursor:pointer; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239a938a' fill='none'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right .2rem center; }
.field input:focus,.field select:focus,.field textarea:focus{ border-color:var(--ink); }
.phone-row{ display:flex; gap:1rem; align-items:flex-end; }
.phone-row input[type=tel]{ flex:1; }
.prefix-combo{ position:relative; width:140px; flex:none; }
.prefix-btn{ width:100%; text-align:left; background:transparent; border:none; border-bottom:1px solid var(--line); padding:.7rem 0; font-family:var(--sans); font-weight:300; font-size:.95rem; color:var(--soft); cursor:pointer; transition:border-color .35s; }
.prefix-btn.selected{ color:var(--ink); }
.prefix-btn.field-invalid{ border-color:#b3261e; color:#b3261e; }
.prefix-btn:focus{ outline:none; border-color:var(--ink); }
.prefix-panel{ display:none; position:absolute; z-index:60; top:calc(100% + 8px); left:0; width:290px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 18px 50px rgba(0,0,0,.14); overflow:hidden; }
.prefix-panel.open{ display:block; }
.prefix-search{ width:100%; border:none; border-bottom:1px solid var(--line); padding:.8rem 1rem; font-family:var(--sans); font-size:16px; font-weight:300; outline:none; }
.prefix-list{ list-style:none; max-height:240px; overflow-y:auto; margin:0; padding:.3rem 0; }
.prefix-list li{ padding:.55rem 1rem; font-size:.85rem; cursor:pointer; display:flex; justify-content:space-between; gap:1rem; }
.prefix-list li:hover{ background:var(--ivory); }
.prefix-list li .dial{ color:var(--soft); }
.form-error{ display:none; grid-column:1/-1; color:#b3261e; font-size:.8rem; line-height:1.6; margin-top:-.4rem; }
.privacy-note{ grid-column:1/-1; font-size:.66rem; color:var(--soft); line-height:1.9; }
form.aform .btn{ grid-column:1/-1; justify-self:start; border:none; }
.form-status{ display:none; grid-column:1/-1; font-size:1rem; line-height:1.9; color:var(--ink); padding:1rem 0; }
.form-status strong{ font-weight:500; }
@media(max-width:600px){ form.aform{ grid-template-columns:1fr; } .field input,.field select,.field textarea,.prefix-search{ font-size:16px; } form.aform .btn{ justify-self:stretch; } }

/* footer */
footer{ background:var(--ink); color:rgba(255,255,255,.72); padding:5.5rem 0 2.6rem; }
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:2.6rem; margin-bottom:4rem; }
@media(max-width:860px){ .footer-grid{ grid-template-columns:1fr 1fr; gap:2.6rem; } }
@media(max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-brand img{ height:34px; width:auto; margin-bottom:1.4rem; }
.footer-brand p{ font-size:.86rem; line-height:1.9; color:rgba(255,255,255,.5); max-width:34ch; }
.footer-brand .water{ font-family:var(--serif); font-style:italic; color:rgba(255,255,255,.66); margin-top:1rem; font-size:.98rem; }
footer h4{ font-size:.6rem; font-weight:500; letter-spacing:.26em; text-transform:uppercase; color:rgba(255,255,255,.42); margin-bottom:1.3rem; }
footer ul{ list-style:none; }
footer li{ margin-bottom:.8rem; }
footer li a{ font-size:.85rem; color:rgba(255,255,255,.72); transition:color .3s; }
footer li a:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.1); padding-top:2rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem; font-size:.64rem; letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.35); }
.footer-bottom a{ color:rgba(255,255,255,.35); }
.footer-bottom a:hover{ color:#fff; }
