/* Formline Properties - Shared Styles */
/* ===== DESIGN SYSTEM ===== */
:root {
  /* Official Formline Brand Colours - from FL_Logo.pdf */
  --ink:      #1C1C1C;
  --ink-soft: #333333;
  --teal:     #38A6A6;
  --teal-lt:  #93BBBF;
  --teal-dk:  #4193A6;
  --sand:     #D9CEBA;
  --cream:    #F2E6D0;
  --stone:    #F2E6D0;
  --stone-md: #E8DBC8;
  --stone-dk: #D9CEBA;
  --sage:     #1C2B1E;
  --sage-lt:  #263829;
  --white:    #FDFAF6;
  --mist:     #7A8A8B;
  --gold:     #38A6A6;
  --gold-lt:  #93BBBF;
  --gold-dk:  #4193A6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  cursor: none;
}

/* ── Custom Cursor ── */
#cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: multiply;
}
#cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease-out, width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0.5;
}
body:hover #cursor { opacity: 1; }
a:hover ~ #cursor, button:hover ~ #cursor { width: 18px; height: 18px; }

/* ── Typography ── */
.f-display  { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 400; }
.f-serif    { font-family: 'Cormorant', Georgia, serif; font-weight: 300; }
.f-body     { font-family: 'Outfit', sans-serif; }
.label      { font-family: 'Outfit', sans-serif; font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 500; }

/* ── Navbar ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 28px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding 0.4s, background 0.4s, backdrop-filter 0.4s;
}
#nav.compact {
  padding: 16px 48px;
  background: rgba(20,20,20,0.94);
  backdrop-filter: blur(16px);
}
.nav-logo-mark {
  display: flex; flex-direction: column; align-items: flex-start;
  text-decoration: none;
}
.nav-logo-mark .wordmark {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.05rem; letter-spacing: 0.22em;
  color: #fff; text-transform: uppercase; font-weight: 400;
  line-height: 1;
}
.nav-logo-mark .tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 0.52rem; letter-spacing: 0.28em;
  color: var(--gold-lt); text-transform: uppercase; font-weight: 400;
  margin-top: 4px;
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); text-decoration: none;
  transition: color 0.25s; font-weight: 400; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--gold);
  color: var(--gold); padding: 10px 22px; font-family: 'Outfit', sans-serif;
  cursor: pointer; transition: all 0.3s; font-weight: 500;
}
.nav-cta:hover { background: var(--gold); color: var(--ink); }
#hamburger { display: none; background: none; border: none; cursor: pointer; }

/* ── Mobile nav ── */
#mob-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--ink); padding: 100px 48px 48px;
  flex-direction: column; gap: 32px;
}
#mob-menu.open { display: flex; }
.mob-link {
  font-family: 'Libre Baskerville', serif; font-size: 2rem;
  color: rgba(255,255,255,0.7); text-decoration: none;
  transition: color 0.2s;
}
.mob-link:hover { color: var(--gold-lt); }

/* ── Hero ── */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-reel {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.72) 100%),
    url('../images/villa-4br-pool-evening.webp') center/cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 14s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.0); } }

.hero-content {
  position: relative; z-index: 2;
  padding: 0 48px 80px;
  width: 100%;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
}
.hero-eyebrow span { font-family: 'Outfit'; font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-lt); font-weight: 400; }
.hero-line { width: 40px; height: 1px; background: var(--gold); }

.hero-h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(3.2rem, 7.5vw, 7.5rem);
  color: #fff; line-height: 0.95;
  font-weight: 400; letter-spacing: -0.01em;
  margin-bottom: 36px;
}
.hero-h1 em { font-style: italic; color: var(--gold-lt); }

.hero-sub {
  font-family: 'Outfit'; font-size: 0.82rem; color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em; line-height: 1.9; max-width: 420px;
  font-weight: 300; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Scrolling ticker ── */
.ticker-wrap {
  background: var(--gold); padding: 14px 0; overflow: hidden;
  position: relative; z-index: 3;
}
.ticker {
  display: flex; gap: 0; white-space: nowrap;
  animation: tickerScroll 28s linear infinite;
}
.ticker span {
  font-family: 'Outfit'; font-size: 0.6rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--ink); padding: 0 40px;
  font-weight: 500;
}
.ticker-dot { color: var(--ink); opacity: 0.4; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Sections ── */
.section-pad { padding: 120px 48px; }
.section-pad-sm { padding: 80px 48px; }
.max-w { max-width: 1280px; margin: 0 auto; }

/* ── Section intro ── */
.s-eyebrow { font-family: 'Outfit'; font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 16px; }
.s-title { font-family: 'Libre Baskerville', serif; font-weight: 400; line-height: 1.1; color: var(--ink); }
.s-title em { font-style: italic; }
.s-rule { width: 48px; height: 1px; background: var(--gold); margin: 24px 0; }
.s-body { font-family: 'Outfit'; font-size: 0.85rem; color: var(--mist); line-height: 1.9; font-weight: 300; }

/* ── Split layouts ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.split-3-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 80px; align-items: center; }
.split-2-3 { display: grid; grid-template-columns: 2fr 3fr; gap: 80px; align-items: center; }

/* ── Image ── */
.img-frame {
  position: relative; overflow: hidden;
  background: var(--stone-dk);
}
.img-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}
.img-frame:hover img { transform: scale(1.06); }

/* ── About section ── */
.about-bg { background: var(--ink); }

/* ── Meet the Team ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--stone-dk);
  padding: 0;
  display: flex;
  flex-direction: column;
}
.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
}
.team-info { padding: 28px 28px 32px; }
.team-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 6px;
  line-height: 1.3;
}
.team-role {
  font-family: 'Outfit';
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}
.team-bio {
  font-family: 'Outfit';
  font-size: 0.78rem;
  color: var(--mist);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 14px;
}
.team-bio:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; gap: 32px; }
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; }
.about-img { position: relative; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.75); }
.about-text {
  padding: 80px 72px;
  display: flex; flex-direction: column; justify-content: center;
}
.about-stat { border-left: 2px solid var(--gold); padding-left: 20px; }
.about-stat .num { font-family: 'Libre Baskerville', serif; font-size: 2.4rem; color: #fff; line-height: 1; }
.about-stat .lbl { font-family: 'Outfit'; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-top: 4px; font-weight: 400; }

/* ── Pillars ── */
.pillars-bg { background: var(--stone); }
.pillar {
  padding: 48px; border-right: 1px solid var(--stone-dk);
  transition: background 0.3s;
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: #fff; }
.pillar-num { font-family: 'Cormorant', serif; font-size: 3.5rem; color: var(--stone-dk); line-height: 1; margin-bottom: 20px; font-weight: 300; }
.pillar-title { font-family: 'Libre Baskerville', serif; font-size: 1.05rem; color: var(--ink); margin-bottom: 12px; }
.pillar-body { font-family: 'Outfit'; font-size: 0.78rem; color: var(--mist); line-height: 1.85; font-weight: 300; }

/* ── Projects ── */
.projects-bg { background: var(--white); }
.project-card {
  position: relative; overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  transition: transform 0.4s;
}
.project-card:hover { transform: translateY(-6px); }
.project-card-img { height: 420px; position: relative; overflow: hidden; }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; display: block; }
.project-card:hover .project-card-img img { transform: scale(1.07); }
.project-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,20,20,0.88) 0%, rgba(20,20,20,0.1) 55%);
}
.project-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px; z-index: 2;
}
.project-status {
  display: inline-block;
  font-family: 'Outfit'; font-size: 0.55rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid; margin-bottom: 12px; font-weight: 500;
}
.status-active { border-color: var(--gold-lt); color: var(--gold-lt); }
.status-upcoming { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.5); }
.project-name { font-family: 'Libre Baskerville', serif; font-size: 1.6rem; color: #fff; margin-bottom: 4px; font-weight: 400; }
.project-sub { font-family: 'Outfit'; font-size: 0.7rem; color: rgba(255,255,255,0.45); letter-spacing: 0.1em; }
.project-arrow {
  position: absolute; top: 28px; right: 28px; z-index: 2;
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); transition: all 0.3s;
}
.project-card:hover .project-arrow { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* Coconut Grove featured card */
.project-featured {
  grid-column: span 2;
  display: grid; grid-template-columns: 55% 45%;
}
.project-featured .project-card-img { height: 100%; min-height: 480px; position: relative; }
.project-featured .project-card-img::after {
  background: linear-gradient(to right, rgba(20,20,20,0.08) 0%, rgba(20,20,20,0.0) 60%);
}
.project-featured .project-info {
  background: var(--ink); padding: 60px 56px;
  display: flex; flex-direction: column; justify-content: center;
}

/* ── Process ── */
.process-bg { background: var(--ink); }
.process-step {
  display: grid; grid-template-columns: 80px 1fr; gap: 32px;
  padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: start;
}
.process-step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Cormorant', serif; font-size: 4rem;
  color: rgba(255,255,255,0.18); line-height: 1; font-weight: 300;
  padding-top: 4px;
}
.step-title { font-family: 'Libre Baskerville', serif; font-size: 1.1rem; color: #fff; margin-bottom: 8px; }
.step-body { font-family: 'Outfit'; font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.85; font-weight: 300; }

/* ── Why Invest ── */
.invest-bg { background: var(--stone); }
.invest-card {
  background: #fff; padding: 40px 32px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s, transform 0.3s;
}
.invest-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.invest-icon { margin-bottom: 20px; }
.invest-title { font-family: 'Libre Baskerville', serif; font-size: 1.05rem; color: var(--ink); margin-bottom: 10px; }
.src-link { font-size: 0.6rem; vertical-align: super; color: var(--gold); text-decoration: none; font-family: 'Outfit'; font-weight: 500; }
.src-link:hover { text-decoration: underline; }
.src-link-inline { color: var(--mist); text-decoration: none; }
.src-link-inline:hover { color: var(--gold); text-decoration: underline; }
.invest-body { font-family: 'Outfit'; font-size: 0.78rem; color: var(--mist); line-height: 1.85; font-weight: 300; }

/* ── Testimonials ── */
.testi-bg { background: var(--white); }
.testi-card {
  border: 1px solid var(--stone-md); padding: 48px 40px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.testi-card:hover { border-color: var(--gold); box-shadow: 0 20px 60px rgba(184,145,58,0.08); }
.testi-quote { font-family: 'Cormorant', serif; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.85; font-weight: 300; font-style: italic; margin-bottom: 28px; }
.testi-name { font-family: 'Outfit'; font-size: 0.8rem; color: var(--ink); font-weight: 500; }
.testi-loc { font-family: 'Outfit'; font-size: 0.65rem; color: var(--mist); letter-spacing: 0.08em; }

/* ── Contact ── */
.contact-bg { background: var(--stone); }
.contact-input {
  width: 100%; background: rgba(0,0,0,0.04);
  border: none; border-bottom: 1px solid var(--stone-dk);
  padding: 14px 10px; color: var(--ink); font-family: 'Outfit'; font-size: 0.82rem;
  font-weight: 300; outline: none; transition: border-color 0.3s;
}
.contact-input::placeholder { color: var(--mist); }
.contact-input:focus { border-bottom-color: var(--teal); }
.contact-select {
  width: 100%; background: rgba(0,0,0,0.04);
  border: none; border-bottom: 1px solid var(--stone-dk);
  padding: 14px 10px; color: var(--mist);
  font-family: 'Outfit'; font-size: 0.82rem; outline: none;
  transition: border-color 0.3s; appearance: none; cursor: pointer;
}
.contact-select:focus { border-bottom-color: var(--teal); color: var(--ink); }
.contact-select option { background: var(--white); color: var(--ink); }

/* ── Footer ── */
.footer-bg { background: var(--ink); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--ink);
  font-family: 'Outfit'; font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 600;
  padding: 15px 32px; border: 1px solid var(--gold);
  cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.btn-primary:hover { background: transparent; color: var(--gold); }
.btn-ghost-w {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: rgba(255,255,255,0.7);
  font-family: 'Outfit'; font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 500;
  padding: 15px 32px; border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.btn-ghost-w:hover { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-ghost-dk {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--ink);
  font-family: 'Outfit'; font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 500;
  padding: 15px 32px; border: 1px solid var(--stone-dk);
  cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.btn-ghost-dk:hover { border-color: var(--gold); color: var(--gold); }

/* ── Reveal animations ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-left {
  opacity: 0; transform: translateX(-28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-left.in { opacity: 1; transform: none; }
.reveal-right {
  opacity: 0; transform: translateX(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-right.in { opacity: 1; transform: none; }

/* delay helpers */
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ── Modal ── */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,10,10,0.85); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--white); max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto;
}
.modal-head {
  background: var(--ink); padding: 24px 32px;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.modal-close { background: none; border: none; color: rgba(255,255,255,0.4); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.modal-close:hover { color: #fff; }
.modal-body { padding: 32px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mist); margin-bottom: 8px; font-weight: 500; }
.form-field {
  width: 100%; border: none; border-bottom: 1px solid var(--stone-dk);
  padding: 10px 10px; font-family: 'Outfit'; font-size: 0.85rem; color: var(--ink);
  background: transparent; outline: none; transition: border-color 0.25s;
}
.form-field:focus { border-bottom-color: var(--gold); }
.form-select {
  width: 100%; border: none; border-bottom: 1px solid var(--stone-dk);
  padding: 10px 10px; font-family: 'Outfit'; font-size: 0.85rem; color: var(--mist);
  background: transparent; outline: none; appearance: none; cursor: pointer;
}

/* ── Floating WA ── */
.float-wa {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 52px; height: 52px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.32);
  transition: transform 0.3s; text-decoration: none;
}
.float-wa:hover { transform: scale(1.12); }

/* ── Sticky side label ── */
.side-enquire {
  position: fixed; top: 50%; right: 0;
  transform: translateY(-50%) rotate(180deg);
  z-index: 800; background: var(--gold); color: var(--ink);
  writing-mode: vertical-rl;
  font-family: 'Outfit'; font-size: 0.58rem; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 600;
  padding: 14px 9px; cursor: pointer;
  transition: background 0.3s;
}
.side-enquire:hover { background: var(--gold-lt); }

/* ── Responsive ── */
/* ── Tablet ── */
@media (max-width: 1024px) {
  .section-pad { padding: 80px 28px; }
  .section-pad-sm { padding: 60px 28px; }
  .split, .split-3-2, .split-2-3 { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { height: 360px; }
  .about-text { padding: 56px 36px; }
  .project-featured { grid-column: span 1 !important; grid-template-columns: 1fr !important; }
  .project-featured .project-card-img { min-height: 300px; }
  .project-featured .project-info { padding: 36px 32px !important; }
  #nav { padding: 18px 24px; }
  #nav.compact { padding: 12px 24px; }
  .nav-links { display: none; }
  #hamburger { display: block; }
  .hero-content { padding: 0 24px 56px; }
  .side-enquire { display: none; }
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
  /* Process sticky sidebar becomes normal */
  #process .max-w > div > div:first-child { position: static !important; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .section-pad { padding: 56px 18px; }
  .section-pad-sm { padding: 44px 18px; }
  .hero-h1 { font-size: clamp(2.2rem, 8vw, 3rem); line-height: 1.05; }
  .hero-sub { font-size: 0.78rem; }
  .hero-content { padding: 0 20px 48px; }
  .hero-reel {
    background:
      linear-gradient(to bottom, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.72) 100%),
      url('../images/villa-4br-pool-evening-mobile.webp') center/cover no-repeat;
  }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost-w { width: 100%; justify-content: center; text-align: center; }

  /* About */
  .about-text { padding: 36px 20px !important; }
  .about-text > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr 1fr !important; }

  /* Pillars - 1 column */
  .pillar-grid { grid-template-columns: 1fr !important; border-top: none !important; }
  .pillar { border-right: none !important; border-top: 1px solid var(--stone-dk); }

  /* Projects grid - single column */
  #proj-grid { grid-template-columns: 1fr !important; }
  .project-featured { grid-column: span 1 !important; grid-template-columns: 1fr !important; display: flex !important; flex-direction: column !important; }
  .project-featured .project-card-img { min-height: 260px !important; }
  .project-featured .project-info { padding: 28px 20px !important; }

  /* CG detail section */
  #cg-detail > .max-w > div:first-child { grid-template-columns: 1fr !important; gap: 32px !important; }
  #cg-detail .reveal-right { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  #cg-detail .reveal-right > div { margin-top: 0 !important; }
  /* Villa collection cards - stacked */
  #cg-detail > .max-w > div[style*="repeat(3,1fr)"] { grid-template-columns: 1fr !important; }

  /* Stats bar - 2x2 */
  #cg-detail > .max-w > div[style*="repeat(5,1fr)"] { grid-template-columns: 1fr 1fr !important; }
  #cg-detail > .max-w > div[style*="repeat(5,1fr)"] > div { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.06); }

  /* Investment cards - 1 col */
  #invest .max-w > div[style*="repeat(3,1fr)"] { grid-template-columns: 1fr !important; }

  /* Process - 1 col, no sticky */
  #process .max-w > div { grid-template-columns: 1fr !important; gap: 0 !important; }
  #process .max-w > div > div:first-child { position: static !important; top: auto !important; }
  .process-step { grid-template-columns: 52px 1fr; gap: 16px; padding: 28px 0; }
  .step-num { font-size: 3rem; }

  /* Testimonials - 1 col */
  .testi-bg .max-w > div[style*="repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
  .testi-card { padding: 32px 24px; }

  /* Map strip - stack */
  .map-strip > div { grid-template-columns: 1fr !important; }
  .map-strip iframe { height: 280px !important; }

  /* Contact - stack */
  #contact > .max-w > div { grid-template-columns: 1fr !important; }
  #contact > .max-w > div > div:first-child { padding-right: 0; }

  /* Footer - 2x2 then full */
  .footer-bg .max-w > div:first-child { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }

  /* Gallery grid - 2 col, uniform rows */
  #gallery-grid { grid-template-columns: 1fr 1fr !important; grid-auto-rows: 160px !important; }
  #gallery-grid > div { grid-column: span 1 !important; grid-row: span 1 !important; }

  /* Mobile menu */
  #mob-menu { padding: 90px 24px 40px; gap: 24px; }
  .mob-link { font-size: 1.4rem; }

  /* Modals */
  .modal-box { max-height: 95vh; }
  .modal-body { padding: 24px 20px; }

  /* Nav logo bigger touch target */
  #nav .nav-logo-mark img { height: 52px !important; }
}

/* ── Small mobile ── */
@media (max-width: 400px) {
  .hero-h1 { font-size: 2rem; }
  .section-pad { padding: 48px 16px; }
  .footer-bg .max-w > div:first-child { grid-template-columns: 1fr !important; }
  .about-text > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ── Project cards & Thalpe/Mawella mobile ── */
@media (max-width: 768px) {
  /* Featured split cards (Coconut Grove, Mawella, Thalpe) - stack vertically */
  .project-featured { grid-template-columns: 1fr !important; display: flex !important; flex-direction: column !important; }
  .project-featured .project-card-img { min-height: 280px !important; height: 280px !important; }
  .project-featured .project-info { padding: 36px 24px !important; }

  /* Slideshow panels */
  div[style*="position:relative;min-height:500px"] { min-height: 280px !important; height: 280px !important; }

  /* Thalpe & Mawella info panels */
  div[style*="padding:64px 56px;display:flex;flex-direction:column"] { padding: 36px 24px !important; }

  /* CG intro description + image grid - stack */
  .cg-intro-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .cg-intro-grid .reveal-right { grid-template-rows: 180px 180px !important; }

  /* Villa collection cards - 1 col */
  .villa-cards-grid { grid-template-columns: 1fr !important; }

  /* CG stats bar - 2 col */
  .cg-stats-bar { grid-template-columns: 1fr 1fr !important; }
  .cg-stats-bar > div { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.06) !important; }

  /* Section padding for cg-detail */
  #cg-detail .max-w { padding: 0 18px !important; }
}

/* ── Project header bands ── */
.proj-band {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--ink);
  padding: 32px 56px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-sizing: border-box;
  width: 100%;
}
.proj-band img { height: 52px; width: auto; object-fit: contain; flex-shrink: 0; }
.proj-band .band-divider { width: 1px; height: 44px; background: rgba(255,255,255,0.12); flex-shrink: 0; }
.proj-band .band-label { font-family: 'Outfit'; font-size: 0.55rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.4); font-weight: 500; margin-bottom: 4px; }
.proj-band .band-name { font-family: 'Libre Baskerville', serif; font-size: 1.2rem; color: #fff; }
.proj-band .band-badge { margin-left: auto; flex-shrink: 0; }

@media (max-width: 768px) {
  .proj-band { padding: 20px 20px; gap: 14px; flex-wrap: wrap; }
  .proj-band img { height: 38px; }
  .proj-band .band-divider { display: none; }
  .proj-band .band-name { font-size: 1rem; }
  .proj-band .band-badge { font-size: 0.5rem !important; padding: 4px 10px !important; }
  /* Project header bands inside proj-grid */
  div[style*="grid-column:span 2"] { width: 100% !important; box-sizing: border-box; }
}

/* Global overflow fix */
*, *::before, *::after { box-sizing: border-box; }
section, div.max-w, header, footer { max-width: 100%; overflow-x: hidden; }


/* Tag badge */
.tag {
  display: inline-block; font-family: 'Outfit'; font-size: 0.55rem;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  padding: 4px 10px; background: rgba(184,145,58,0.12);
  color: var(--gold); margin-right: 6px; margin-bottom: 6px;
}

/* ROI Calculator */
input[type="range"] { accent-color: var(--gold); }
.roi-out { font-family: 'Libre Baskerville', serif; }

/* Comparison table */
.ctable th { background: var(--ink); color: var(--gold-lt); font-family: 'Outfit'; font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 14px 18px; text-align: center; font-weight: 500; }
.ctable th:first-child { text-align: left; }
.ctable td { padding: 12px 18px; font-size: 0.78rem; color: var(--ink-soft); border-bottom: 1px solid var(--stone-md); text-align: center; }
.ctable td:first-child { text-align: left; font-weight: 500; color: var(--ink); }
.ctable tr:last-child td { border-bottom: none; }
.ctable tr:nth-child(even) td { background: var(--stone); }
.ctick { color: #2d7a42; font-weight: 700; }

/* Progress bar */
.prog-bar { height: 2px; background: var(--stone-md); position: relative; overflow: hidden; }
.prog-fill { position: absolute; left: 0; top: 0; height: 100%; background: var(--gold); }

/* ============================
   Section: Map strip
   ============================ */
.map-strip iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ============================
   Grain overlay
   ============================ */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9997; pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* ── Multi-page additions ── */
.mob-link.active, .nav-link.active { color: var(--gold) !important; }
.proj-overview-card {
  position: relative; overflow: hidden; background: var(--ink);
  display: block; text-decoration: none; transition: transform 0.4s;
}
.proj-overview-card:hover { transform: translateY(-6px); }
.proj-overview-img { height: 380px; position: relative; overflow: hidden; }
.proj-overview-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; display: block; }
.proj-overview-card:hover .proj-overview-img img { transform: scale(1.07); }
.proj-overview-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,20,20,0.9) 0%, rgba(20,20,20,0.1) 55%);
}
.proj-overview-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 32px; z-index: 2; }
.proj-overview-featured .proj-overview-body { padding: 36px 40px; }
@media (max-width: 900px) {
  #proj-grid { grid-template-columns: 1fr !important; grid-template-rows: none !important; min-height: 0 !important; }
  #proj-grid a { grid-column: 1 !important; grid-row: auto !important; }
  .proj-overview-featured .proj-overview-img,
  #proj-grid .proj-overview-img { height: 320px !important; }
}
.breadcrumb { font-family:'Outfit'; font-size:0.62rem; letter-spacing:0.15em; text-transform:uppercase; color: var(--mist); margin-bottom: 20px; }
.breadcrumb a { color: var(--mist); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
