/* ═══════════════════════════════════════════════════════
   SPADUNIT HOMES — GLOBAL STYLESHEET v3
   Mobile-first. Single source of truth.
═══════════════════════════════════════════════════════ */
:root {
  --navy:     #1a2e44;
  --navy-dk:  #0f1e2e;
  --gold:     #c9963c;
  --gold-lt:  #e8b96a;
  --cream:    #faf8f4;
  --warm:     #f5f0e8;
  --stone:    #e8e0d0;
  --stone-dk: #d4c9b5;
  --text:     #2c2c2c;
  --text-lt:  #555550;
  --muted:    #7a7265;
  --white:    #ffffff;
  --green:    #2a5c45;
  --wa:       #25D366;
  --wa-dk:    #1ebe5d;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', sans-serif;
  --r:         4px;
  --r-lg:      8px;
  --shadow:    0 4px 24px rgba(26,46,68,.10);
  --shadow-lg: 0 12px 48px rgba(26,46,68,.16);
  --trans:     all .3s cubic-bezier(.4,0,.2,1);
  --max-w:     1200px;
  --pad-x:     5%;
  --nav-h:     64px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; width: 100%; object-fit: cover; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button, input, select, textarea { font-family: var(--sans); }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x); height: var(--nav-h);
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,150,60,.15); transition: var(--trans);
}
nav.scrolled { background: rgba(255,255,255,.99); box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.nav-logo { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo .logo-img  { height: 2.4rem; width: auto !important; max-width: 180px; object-fit: contain !important; display: block !important; }
.nav-logo .logo-sub  { font-size: .62rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: .45rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { background: var(--navy) !important; color: var(--white) !important; padding: .45rem 1.1rem !important; border-radius: var(--r) !important; font-size: .73rem !important; letter-spacing: .08em !important; transition: var(--trans) !important; white-space: nowrap; }
.nav-cta:hover { background: var(--gold) !important; color: var(--navy) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; flex-shrink: 0; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--trans); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem 1.5rem; font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-radius: var(--r); cursor: pointer; transition: var(--trans); border: none; white-space: nowrap; line-height: 1; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,150,60,.35); }
.btn-navy   { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.btn-wa     { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.3); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--stone-dk); }
.btn-outline:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline-white:hover { border-color: var(--gold-lt); color: var(--gold-lt); }
.btn-sm { padding: .55rem 1rem; font-size: .73rem; }
.btn-lg { padding: .9rem 2rem; font-size: .85rem; }
.btn-full { width: 100%; }

/* LAYOUT */
.container  { max-width: var(--max-w); margin: 0 auto; }
.section    { padding: 4.5rem var(--pad-x); }
.section-sm { padding: 3rem var(--pad-x); }
.bg-warm  { background: var(--warm); }
.bg-navy  { background: var(--navy); }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }

/* TYPOGRAPHY */
.section-label { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .65rem; }
.section-title { font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.8rem); font-weight: 400; color: var(--navy); line-height: 1.15; margin-bottom: .85rem; }
.section-title em { font-style: italic; color: var(--gold); }
.section-sub { font-size: .9rem; color: var(--muted); max-width: 520px; line-height: 1.75; }
.section-head { margin-bottom: 2.5rem; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }

/* BREADCRUMB */
.breadcrumb { padding: .85rem var(--pad-x); background: var(--white); border-bottom: 1px solid var(--stone); font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; margin-top: var(--nav-h); flex-wrap: wrap; }
.breadcrumb a { color: var(--gold); transition: color .2s; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { color: var(--stone-dk); }

/* BADGES / TAGS */
.badge { display: inline-flex; align-items: center; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 2px; }
.badge-navy  { background: var(--navy);  color: var(--white); }
.badge-green { background: var(--green); color: var(--white); }
.badge-gold  { background: var(--gold);  color: var(--navy);  }
.tag { font-size: .7rem; font-weight: 500; background: var(--warm); color: var(--navy); padding: .22rem .65rem; border-radius: 20px; border: 1px solid var(--stone); display: inline-block; }

/* PROPERTY CARD */
.prop-card { background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: var(--trans); display: flex; flex-direction: column; }
.prop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.prop-img { position: relative; height: 200px; overflow: hidden; background: var(--stone); flex-shrink: 0; }
.prop-img img { height: 100%; transition: transform .5s ease; }
.prop-card:hover .prop-img img { transform: scale(1.04); }
.prop-img .badge { position: absolute; top: .75rem; left: .75rem; }
.prop-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.prop-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; color: var(--navy); margin-bottom: .2rem; }
.prop-tagline { font-size: .79rem; color: var(--muted); margin-bottom: .8rem; line-height: 1.5; }
.prop-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.prop-meta span { font-size: .74rem; font-weight: 500; color: var(--text-lt); display: flex; align-items: center; gap: .2rem; }
.prop-hr { height: 1px; background: var(--stone); margin-bottom: .8rem; }
.prop-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .9rem; }
.prop-price { font-size: .88rem; font-family: var(--serif); color: var(--navy); margin-bottom: .9rem; }
.prop-price strong { font-size: 1.05rem; }
.prop-price .per { font-size: .73rem; font-weight: 400; color: var(--muted); }
.prop-ctas { margin-top: auto; display: flex; gap: .5rem; }
.prop-ctas .btn { flex: 1; }

/* AMENITY GRID */
.amenity-section { margin-bottom: 1.75rem; }
.amenity-section-title { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: .8rem; padding-bottom: .4rem; border-bottom: 2px solid var(--gold); }
.amenity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem; }
.amenity-item { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--text); background: var(--warm); padding: .45rem .7rem; border-radius: var(--r); border: 1px solid var(--stone); line-height: 1.3; }
.amenity-item .ai { font-size: .9rem; flex-shrink: 0; }

/* LOCATION */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.loc-map { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; background: var(--stone); }
.loc-map iframe { width: 100%; height: 100%; border: none; display: block; }
.loc-map-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #d4c9b8 0%, #c0b4a0 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; }
.loc-map-placeholder .map-icon { font-size: 2.5rem; }
.loc-map-placeholder span { font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); opacity: .6; }
.loc-points { display: flex; flex-direction: column; gap: .7rem; }
.loc-item { display: flex; align-items: flex-start; gap: .8rem; padding: .9rem 1.1rem; background: var(--white); border: 1px solid var(--stone); border-radius: var(--r); transition: var(--trans); }
.loc-item:hover { border-color: var(--gold); transform: translateX(3px); }
.loc-icon { font-size: 1.1rem; margin-top: .1rem; flex-shrink: 0; }
.loc-label { font-weight: 600; font-size: .84rem; color: var(--navy); margin-bottom: .15rem; }
.loc-dist  { font-size: .77rem; color: var(--muted); line-height: 1.4; }

/* IDEAL FOR */
.ideal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.ideal-card { text-align: center; padding: 1.3rem .9rem; background: var(--white); border: 1px solid var(--stone); border-radius: var(--r); transition: var(--trans); }
.ideal-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.ideal-icon { font-size: 1.8rem; margin-bottom: .5rem; }
.ideal-label { font-size: .8rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.ideal-desc { font-size: .74rem; color: var(--muted); margin-top: .35rem; line-height: 1.4; }

/* BOOKING MODAL */
.bk-overlay { display: none; position: fixed; inset: 0; z-index: 900; background: rgba(15,30,46,.65); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 1rem; }
.bk-overlay.open { display: flex; }
.bk-modal { background: var(--white); border-radius: var(--r-lg); width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: modalIn .25s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.bk-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 1.3rem 1.4rem 1rem; border-bottom: 1px solid var(--stone); }
.bk-header h3 { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); font-weight: 500; }
.bk-header .bk-prop { font-size: .72rem; color: var(--muted); margin-top: .2rem; }
.bk-close { background: none; border: none; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 1.1rem; transition: var(--trans); flex-shrink: 0; margin-top: -.1rem; }
.bk-close:hover { background: var(--warm); color: var(--navy); }
.bk-body { padding: 1.3rem 1.4rem; }
.bk-note { font-size: .77rem; color: var(--muted); line-height: 1.6; background: var(--warm); border-radius: var(--r); padding: .65rem .85rem; margin-bottom: 1.1rem; border-left: 3px solid var(--gold); }
.form-group { margin-bottom: .85rem; }
.form-group label { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: .32rem; }
.form-group input, .form-group select { width: 100%; padding: .62rem .82rem; border: 1.5px solid var(--stone); border-radius: var(--r); font-size: .86rem; color: var(--text); background: var(--cream); transition: border-color .2s, box-shadow .2s; outline: none; }
.form-group input:focus, .form-group select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,150,60,.12); background: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.bk-submit { width: 100%; margin-top: .5rem; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem; background: var(--wa); color: var(--white); border: none; border-radius: var(--r); font-family: var(--sans); font-size: .84rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: var(--trans); }
.bk-submit:hover { background: var(--wa-dk); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,211,102,.3); }
.bk-disclaimer { font-size: .69rem; color: var(--muted); text-align: center; margin-top: .7rem; line-height: 1.5; }
.bk-error { font-size: .77rem; color: #c0392b; background: #fff0f0; border: 1px solid #f5c6cb; border-radius: var(--r); padding: .5rem .75rem; margin-top: .5rem; display: none; }

/* CTA BANNER */
.cta-banner { background: linear-gradient(135deg, #1a2e44 0%, #1e4030 100%); padding: 4rem var(--pad-x); text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(201,150,60,.15) 0%, transparent 50%), radial-gradient(circle at 80% 50%, rgba(42,92,69,.15) 0%, transparent 50%); }
.cta-banner .container { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-banner .section-label { color: var(--gold-lt); }
.cta-banner .section-title { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,.68); font-size: .9rem; line-height: 1.75; margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }

/* PROPERTY DETAIL PAGE */
.prop-hero { margin-top: var(--nav-h); background: var(--warm); }
.prop-hero-img { height: 380px; overflow: hidden; background: var(--stone); display: flex; align-items: center; justify-content: center; }
.img-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; color: rgba(255,255,255,.7); }
.img-placeholder .ph-icon { font-size: 2.5rem; }
.img-placeholder p { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.prop-hero-body { max-width: var(--max-w); margin: 0 auto; padding: 2rem var(--pad-x); }
.prop-hero-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1.2rem; }
.prop-hero-title { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 400; color: var(--navy); margin: .4rem 0 .6rem; }
.prop-hero-title em { font-style: italic; color: var(--gold); }
.prop-hero-meta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }
.prop-hero-meta span { font-size: .78rem; font-weight: 500; color: var(--text-lt); display: flex; align-items: center; gap: .25rem; }
.prop-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; max-width: var(--max-w); margin: 0 auto; padding: 2.5rem var(--pad-x); }
.prop-sidebar { position: sticky; top: calc(var(--nav-h) + 1rem); }
.sidebar-box { background: var(--white); border: 1px solid var(--stone); border-radius: var(--r-lg); padding: 1.4rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.price-from { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; color: var(--navy); margin-bottom: .15rem; }
.price-from span { font-size: .85rem; font-weight: 400; color: var(--muted); }
.calendar-box { background: var(--warm); border: 1px solid var(--stone); border-radius: var(--r); padding: 1rem; margin-top: 1rem; }
.calendar-box p { font-size: .77rem; color: var(--muted); line-height: 1.6; }
.calendar-box a { color: var(--gold); font-weight: 600; }

/* FLOATING WA */
.wa-float { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 400; width: 52px; height: 52px; border-radius: 50%; background: var(--wa); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.45); transition: var(--trans); cursor: pointer; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); }
.wa-float svg { width: 26px; height: 26px; fill: white; }

/* FOOTER */
footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 3.5rem var(--pad-x) 1.75rem; }
.footer-grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand .logo-img  { height: 2rem; width: auto !important; max-width: 160px; object-fit: contain !important; display: block !important; margin-bottom: .5rem; opacity: .85; }
.footer-brand .logo-sub { font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
footer p { font-size: .82rem; line-height: 1.75; max-width: 280px; }
.footer-heading { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { font-size: .81rem; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.4rem; display: flex; justify-content: space-between; align-items: center; font-size: .74rem; flex-wrap: wrap; gap: .5rem; }
.footer-bottom a { color: var(--gold); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: .08s; }
.rd2 { transition-delay: .16s; }
.rd3 { transition-delay: .24s; }
.rd4 { transition-delay: .32s; }
.rd5 { transition-delay: .40s; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .loc-grid { grid-template-columns: 1fr; gap: 2rem; }
  .loc-map  { aspect-ratio: 16/9; }
  .prop-layout { grid-template-columns: 1fr; }
  .prop-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 1rem var(--pad-x) 1.5rem; gap: 0; border-bottom: 2px solid var(--stone); box-shadow: 0 8px 24px rgba(0,0,0,.1); z-index: 499; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--stone); font-size: .85rem; }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-cta { margin-top: .6rem !important; text-align: center !important; display: block !important; }
  .hamburger { display: flex; }
}
@media (max-width: 640px) {
  .section { padding: 3.5rem var(--pad-x); }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { text-align: center; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  footer p { max-width: 100%; }
  .prop-hero-img { height: 240px; }
  .bk-modal { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 95vh; }
  .bk-overlay { align-items: flex-end; padding: 0; }
  .amenity-grid { grid-template-columns: 1fr 1fr; }
  .ideal-grid   { grid-template-columns: 1fr 1fr; }
  .prop-ctas .btn { font-size: .69rem; padding: .52rem .75rem; }
}
@media (max-width: 380px) {
  .prop-ctas { flex-direction: column; }
  .prop-ctas .btn { width: 100%; }
  .amenity-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
