/* Silversands Residence — independent static rebuild */

:root{
  --dark: #232622;
  --cream: #F7F3EB;
  --white: #FFFFFF;
  --gold: #C9A24E;
  --gold-dark: #A9853A;
  --text: #232622;
  --muted: #6E6D63;
  --border: #E4DECF;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Jost', Arial, sans-serif;
  --max: 1200px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family: var(--serif); font-weight:600; margin:0 0 .5em; line-height:1.15; text-transform:uppercase; letter-spacing:.01em; }
p{ margin:0 0 1em; }
ul{ list-style:none; margin:0; padding:0; }

.container{ max-width: var(--max); margin:0 auto; padding:0 24px; }

.eyebrow{
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--gold-dark);
  font-weight:500;
  margin:0 0 .8em;
}
.eyebrow-light{ color: var(--gold); }
.eyebrow.center{ text-align:center; }

.body-copy{ color: var(--muted); max-width: 46ch; }
.body-copy-light{ color: rgba(255,255,255,.72); }

/* Buttons */
.btn{
  display:inline-block;
  padding: .95em 2em;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--sans);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight:600;
  border:none;
  border-radius: 2px;
  cursor:pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover{ background: var(--gold-dark); transform: translateY(-1px); }
.btn-block{ width:100%; text-align:center; }

.text-link{
  display:inline-flex;
  align-items:center;
  gap:.4em;
  text-transform: uppercase;
  letter-spacing:.1em;
  font-size:.78rem;
  font-weight:600;
  color: var(--gold-dark);
  border-bottom: 1px solid currentColor;
  padding-bottom:.2em;
}

/* Header */
.site-header{
  position: sticky; top:0; z-index:100;
  background: var(--dark);
  color: var(--white);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 24px;
  gap: 24px;
}
.logo{ display:flex; flex-direction:column; line-height:1; }
.logo-img{ height:38px; width:auto; display:block; }
.logo-main{
  font-family: var(--serif); font-size:1.15rem; letter-spacing:.12em;
  color: var(--white);
}
.logo-sub{
  font-size:.6rem; letter-spacing:.25em; color: var(--gold); margin-top:4px;
}
.main-nav{ display:flex; gap:32px; flex:1; justify-content:center; }
.main-nav a{
  font-size:.8rem; text-transform:uppercase; letter-spacing:.1em; font-weight:500;
  color: rgba(255,255,255,.85);
  transition: color .2s;
}
.main-nav a:hover{ color: var(--gold); }
.header-cta{ flex-shrink:0; padding:.75em 1.6em; }

.nav-toggle{
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; cursor:pointer; padding:8px;
}
.nav-toggle span{ width:24px; height:2px; background:#fff; display:block; }

/* Hero */
.hero{ position:relative; color:#fff; overflow:hidden; }
.hero-media{ height: 78vh; min-height:520px; max-height:820px; }
.hero-media img, .hero-media video{ width:100%; height:100%; object-fit:cover; }
.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,22,18,.55) 0%, rgba(20,22,18,.25) 40%, rgba(20,22,18,.7) 100%);
}
.hero-content{
  position:absolute; left:50%; bottom:45%; transform:translateX(-50%);
  width:100%; text-align:left;
}
.hero-content h1{
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color:#fff;
  margin-bottom:.3em;
}
.hero-copy{ max-width:44ch; color:rgba(255,255,255,.88); margin-bottom:1.6em; }

/* Overview */
.overview{ background: var(--cream); padding: 90px 0; }
.overview-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:64px; align-items:start; }
.overview-text h2{ font-size:2rem; }
.stats-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.stat{ display:flex; align-items:center; gap:14px; }
.stat-icon{ width:34px; height:34px; object-fit:contain; flex-shrink:0; }
.stat strong{ display:block; font-family:var(--serif); font-size:1.15rem; }
.stat span{ display:block; font-size:.78rem; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }

/* Residences */
.residences{ padding: 100px 0 60px; }
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head h2{ font-size:2.2rem; }
.residence-cards{ display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.residence-card{
  background: var(--cream);
  border-radius: 18px;
  overflow:hidden;
  display:flex; flex-direction:column;
}
.residence-image{ aspect-ratio: 4/3; overflow:hidden; }
.residence-image img{ width:100%; height:100%; object-fit:cover; }
.residence-info{ padding: 32px; }
.residence-info h3{ font-size:1.5rem; margin-bottom:.6em; }
.pill-list{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:1.6em; }
.pill-list li{
  background:#fff; border:1px solid var(--border);
  padding:.5em 1.1em; border-radius:999px; font-size:.78rem; font-weight:500;
}

/* Floorplans */
.floorplans{ padding: 60px 0 100px; background:#fff; }
.floorplan-grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; margin-top:24px; }
.floorplan-col h3{ font-size:1.3rem; }
.floorplan-col img{ border:1px solid var(--border); border-radius:8px; margin-top:16px; }
.floorplan-cta{ text-align:center; margin-top:56px; }

/* Lot selection */
.lot-selection{ background: var(--dark); color:#fff; padding: 0; overflow:hidden; }
.lot-grid{
  display:grid;
  grid-template-columns: minmax(0,480px) 1fr;
  gap:56px;
  align-items:stretch;
}
.lot-info{
  padding: 64px 40px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.lot-info h2{ color:#fff; font-size:2.1rem; }
.legend-title{ text-transform:uppercase; letter-spacing:.1em; font-size:.75rem; color:rgba(255,255,255,.6); margin-bottom:.7em; }
.legend{ display:flex; flex-wrap:wrap; gap:18px; margin-bottom:36px; }
.legend li{ display:flex; align-items:center; gap:8px; font-size:.85rem; }
.dot{ width:10px; height:10px; border-radius:50%; display:inline-block; }
.dot-available{ background:#3FBF5F; }
.dot-reserved{ background:#F0A93A; }
.dot-sold{ background:#F0554A; }
.dot-future{ background:#AFAFA8; }
.lot-cta-box{
  background: rgba(201,162,78,.06);
  border:1px solid rgba(201,162,78,.4);
  border-radius:10px;
  padding:36px 32px;
  text-align:center;
}
.lot-cta-box h4{ color: var(--gold); font-size:1.25rem; }
.lot-cta-box p{ color:rgba(255,255,255,.7); font-size:.92rem; }
.lot-cta-box .btn{ margin: 10px 0 16px; border:1px solid rgba(255,255,255,.35); }
.fine-print{ font-size:.75rem; color:rgba(255,255,255,.5); margin:0; }
.lot-image{ position:relative; height:100%; min-height:360px; overflow:hidden; }
.lot-image img{ width:100%; height:100%; object-fit:cover; display:block; }
.lot-dots{ position:absolute; inset:0; }
.lot-dot{
  position:absolute;
  left:var(--x, 50%); top:var(--y, 50%);
  width:9px; height:9px; margin:-4.5px 0 0 -4.5px;
  border-radius:50%;
  background:#3FBF5F;
  box-shadow: 0 0 0 2px rgba(255,255,255,.85);
  opacity:0;
  border:none; padding:0; cursor:pointer; -webkit-appearance:none; appearance:none;
  transition: opacity .3s ease, transform .15s ease, box-shadow .15s ease;
}
.lot-dot::before{
  /* invisible larger hit area, easier to click/tap than the 9px dot */
  content:"";
  position:absolute; inset:-10px;
}
.lot-dot[style*="--x"]{ opacity:1; }
.lot-dot:hover, .lot-dot.active{
  transform: scale(1.6);
  box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(63,191,95,.35);
}
.lot-dot:focus-visible{ outline:2px solid var(--gold); outline-offset:6px; }
.lot-dot::after{
  content:"";
  position:absolute; inset:0;
  border-radius:50%;
  background:#3FBF5F;
  animation: dot-breathe 2.2s ease-out infinite;
  animation-delay: var(--d, 0s);
  pointer-events:none;
}
@keyframes dot-breathe{
  0%   { transform:scale(1);   opacity:.75; }
  70%  { transform:scale(4.5); opacity:0; }
  100% { transform:scale(4.5); opacity:0; }
}

/* Lot popup — appears above a clicked dot */
.lot-popup{
  position:fixed;
  width:250px;
  background: var(--dark);
  border:1px solid rgba(201,162,78,.4);
  border-radius:12px;
  padding:18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  z-index:200;
  color:#fff;
  transform: translate(-50%, calc(-100% - 14px));
  animation: popup-in .16s ease-out;
}
.lot-popup::after{
  content:"";
  position:absolute; left:50%; bottom:-7px;
  transform:translateX(-50%) rotate(45deg);
  width:12px; height:12px;
  background:var(--dark);
  border-right:1px solid rgba(201,162,78,.4);
  border-bottom:1px solid rgba(201,162,78,.4);
}
.lot-popup.below{ transform:translate(-50%, 14px); }
.lot-popup.below::after{
  top:-7px; bottom:auto;
  border-right:none; border-bottom:none;
  border-left:1px solid rgba(201,162,78,.4);
  border-top:1px solid rgba(201,162,78,.4);
}
@keyframes popup-in{
  from{ opacity:0; transform:translate(-50%, calc(-100% - 4px)) scale(.95); }
  to  { opacity:1; transform:translate(-50%, calc(-100% - 14px)) scale(1); }
}
.lot-popup-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:10px; }
.lot-popup-head h4{ font-family:var(--serif); font-size:1.2rem; color:#fff; margin:0; text-transform:uppercase; }
.lot-popup-status{ display:block; font-size:.68rem; letter-spacing:.08em; text-transform:uppercase; color:#3FBF5F; margin-top:3px; }
.lot-popup-close{
  background:none; border:none; color:rgba(255,255,255,.5);
  cursor:pointer; font-size:1.2rem; line-height:1; padding:2px;
}
.lot-popup-close:hover{ color:#fff; }
.lot-popup-details{
  display:grid; grid-template-columns:1fr 1fr;
  gap:10px 12px; font-size:.82rem; color:rgba(255,255,255,.9);
  margin:0 0 14px;
}
.lot-popup-details span{
  display:block; color:rgba(255,255,255,.5);
  font-size:.66rem; text-transform:uppercase; letter-spacing:.05em; margin-bottom:2px;
}
.lot-popup-cta{
  width:100%; background:var(--gold); color:var(--dark);
  border:none; border-radius:6px; padding:.8em 1em;
  font-size:.78rem; font-weight:600; text-transform:uppercase; letter-spacing:.08em;
  cursor:pointer; transition:background .2s ease;
}
.lot-popup-cta:hover{ background:var(--gold-dark); }

/* Lot registration modal — "interest-card" treatment, matched to the
   masterplan.html reference exactly (dark gradient card, inset double
   border, gold placeholder-style fields, translucent gold CTA). */
.modal-overlay{
  position:fixed; inset:0; z-index:300;
  background:rgba(0,0,0,.7);
  display:flex; align-items:center; justify-content:center;
  padding:16px;
}
.modal-overlay[hidden]{ display:none; }

.interest-card{
  position:relative;
  width:100%; max-width:560px;
  padding:28px 32px;
  color:#e8e4df;
  background:
    radial-gradient(120% 140% at 10% 0%, rgba(192,150,99,.12), rgba(0,0,0,0) 60%),
    radial-gradient(120% 140% at 100% 20%, rgba(192,150,99,.08), rgba(0,0,0,0) 55%),
    rgba(14,16,14,.96);
  border:1px solid rgba(192,150,99,.38);
  border-radius:22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.7), inset 0 0 0 1px rgba(192,150,99,.18);
  animation: modal-in .18s ease-out;
}
.interest-card::before{
  content:"";
  position:absolute; inset:10px;
  border-radius:16px;
  border:1px solid rgba(192,150,99,.22);
  pointer-events:none;
  opacity:.9;
}
@keyframes modal-in{
  from{ opacity:0; transform:scale(.97) translateY(6px); }
  to  { opacity:1; transform:scale(1) translateY(0); }
}

.modal-head{ position:relative; display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.modal-title{
  font-family:'Cormorant Garamond', Georgia, serif;
  font-size:1.9rem;
  color:#c09663;
  letter-spacing:.1em;
  text-transform:uppercase;
  line-height:1.08;
  margin:0;
}
.modal-subtitle{ margin:12px 0 0; font-size:.92rem; color:#b7b1a9; line-height:1.6; }
.modal-close{
  position:relative; flex-shrink:0;
  background:none; border:none;
  font-size:1.5rem; line-height:1;
  color:#9b948b; cursor:pointer; padding:4px;
}
.modal-close:hover{ color:#fff; }

.modal-form{ position:relative; margin-top:22px; display:flex; flex-direction:column; gap:14px; }
.interest-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }

/* Honeypot spam trap — hidden from sighted users and screen readers,
   but visible to most bots that blindly fill every field. */
.hp-field{
  position:absolute; left:-9999px; top:-9999px;
  width:1px; height:1px; opacity:0;
  pointer-events:none;
}

.interest-field{
  width:100%;
  font-family:var(--sans);
  font-size:.92rem;
  background:rgba(11,12,11,.45);
  border:1px solid rgba(192,150,99,.55);
  color:#e8e4df;
  border-radius:12px;
  padding:12px 14px;
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.interest-field::placeholder{ color:rgba(232,228,223,.55); }
.interest-field:focus{
  border-color: rgba(212,184,150,.9);
  box-shadow: 0 0 0 3px rgba(192,150,99,.18);
  background: rgba(11,12,11,.62);
}
.interest-select{
  appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c09663' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position: right 14px center;
  padding-right:40px;
}
.interest-cta{
  width:100%; margin-top:4px;
  background:rgba(192,150,99,.75);
  border:2px solid rgba(240,236,228,.85);
  color:#fff;
  border-radius:12px;
  padding:14px 16px;
  font-family:var(--sans);
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  cursor:pointer;
  transition: transform .15s ease, filter .15s ease;
}
.interest-cta:hover{ filter:brightness(1.06); transform:translateY(-1px); }
.interest-cta:active{ transform:translateY(0); }

.interest-card .form-status{ text-align:center; color:#4ade80; margin-top:14px; }

/* Lifestyle */
.lifestyle{ padding: 100px 0 0; background:#fff; }
.lifestyle-strip{
  display:grid; grid-template-columns: repeat(6,1fr);
}
.lifestyle-strip figure{ position:relative; margin:0; aspect-ratio: 3/4; overflow:hidden; }
.lifestyle-strip img{ width:100%; height:100%; object-fit:cover; }
.lifestyle-strip figcaption{
  position:absolute; left:0; right:0; bottom:0;
  padding: 20px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,.65), transparent);
  color:#fff; font-size:.72rem; text-transform:uppercase; letter-spacing:.08em;
}
.lifestyle-strip figcaption strong{ display:block; font-family:var(--serif); font-size:1.1rem; text-transform:none; letter-spacing:0; }

.lifestyle-grid{
  display:grid;
  grid-template-columns: 1.1fr .7fr;
  grid-template-rows:auto auto;
  gap: 40px 56px;
  padding: 64px 0 100px;
}
.lifestyle-text h2{ font-size:2.1rem; }
.lifestyle-stats{ display:flex; flex-direction:column; gap:28px; justify-content:center; }
.lifestyle-map{ grid-column: 2; grid-row: 1 / 3; position:relative; min-height:340px; }
.lifestyle-map img{ border-radius:14px; border:1px solid var(--border); width:100%; }
.lifestyle-map iframe{
  width:100%; height:100%; min-height:340px;
  border-radius:14px; border:1px solid var(--border);
}
.map-directions{
  position:absolute; right:14px; bottom:14px;
  background:#fff; color:var(--text);
  padding:.6em 1.2em; border-radius:999px;
  font-size:.78rem; font-weight:600; text-transform:uppercase; letter-spacing:.06em;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.map-directions:hover{ background: var(--gold); }

/* Register / CTA */
.register{ background: var(--dark); color:#fff; padding:100px 0; }
.register-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap:56px; align-items:start; }
.register-text h2{ color:#fff; font-size:2.2rem; }
.register-card{ max-width:none; }
.form-status{ font-size:.85rem; min-height:1.2em; color: var(--gold-dark); font-weight:600; }

/* Footer */
.site-footer{ background: var(--dark); color: rgba(255,255,255,.7); padding: 56px 0 0; }
.footer-inner{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:24px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-links{ display:flex; gap:28px; }
.footer-links a{ font-size:.8rem; text-transform:uppercase; letter-spacing:.06em; }
.footer-links a:hover{ color: var(--gold); }
.footer-email{ font-size:.85rem; }
.footer-bottom{ padding: 20px 0; text-align:center; font-size:.75rem; }

/* Responsive */
@media (max-width: 980px){
  .overview-grid, .lot-grid, .register-grid{ grid-template-columns:1fr; }
  .residence-cards, .floorplan-grid{ grid-template-columns:1fr; }
  .lifestyle-grid{ grid-template-columns:1fr; }
  .lifestyle-map{ grid-column:1; grid-row:auto; }
  .lifestyle-strip{ grid-template-columns: repeat(3,1fr); }
  .lot-info{ padding: 80px 24px; }
  .lot-image{ min-height: 320px; }
  .main-nav{ display:none; }
  .header-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .site-header.open .main-nav{
    display:flex; flex-direction:column; position:absolute; top:100%; left:0; right:0;
    background:var(--dark); padding:24px; gap:6px;
  }
  .site-header.open .main-nav a{ padding:12px 4px; display:block; }
  .site-header.open .header-cta{ display:inline-block; margin: 0 24px 24px; }
}
@media (max-width: 600px){
  .lifestyle-strip{ grid-template-columns: repeat(2,1fr); }
  .interest-row{ grid-template-columns:1fr; }
  .header-inner{ padding:14px 20px; }
  .interest-card{ padding:24px 20px; }
  .hero-content{ bottom:10%; }
  .hero-content h1{ font-size: clamp(2.2rem, 9vw, 2.8rem); }
}
