:root {
  --blue-deep: #0a2f6d;
  --blue: #0042a5;
  --blue-soft: #e8eef8;
  --navy: #002060;
  --gold: #f0b000;
  --gold-dark: #c48e00;
  --ink: #1a2332;
  --muted: #5a6577;
  --line: #d7deea;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --ok: #0d7a4f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 47, 109, 0.08);
  --header-h: 72px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); margin: 0 0 0.6em; }
h1 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img, .brand svg { height: 42px; width: auto; }
.site-nav {
  display: flex; align-items: center; gap: 0.15rem; flex: 1; justify-content: center;
}
.site-nav a {
  color: var(--ink); font-weight: 550; font-size: 0.92rem;
  padding: 0.45rem 0.65rem; border-radius: 8px; text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  background: var(--blue-soft); color: var(--blue-deep); text-decoration: none;
}
.header-ctas { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-weight: 650; font-size: 0.95rem; border-radius: 999px;
  padding: 0.7rem 1.2rem; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn-gold, .btn-portal {
  background: var(--gold); color: var(--navy); border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(240,176,0,0.35);
  font-weight: 800;
}
.btn-gold:hover, .btn-portal:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-outline {
  background: transparent; color: var(--blue-deep); border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue-soft); color: var(--blue-deep); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover { background: #fff; color: var(--blue-deep); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 1.45rem; font-size: 1.02rem; }

/* Hero */
.hero {
  position: relative; color: #fff;
  background:
    linear-gradient(135deg, rgba(0,32,96,0.92), rgba(10,47,109,0.85) 45%, rgba(0,66,165,0.78)),
    radial-gradient(circle at 20% 20%, rgba(240,176,0,0.25), transparent 40%),
    linear-gradient(160deg, #002060, #0042a5);
  padding: 4.5rem 0 4rem; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -40% 40%; height: 70%;
  background: radial-gradient(circle, rgba(240,176,0,0.18), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede { font-size: 1.12rem; max-width: 42rem; color: rgba(255,255,255,0.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-note { margin-top: 1.25rem; color: rgba(255,255,255,0.75); font-size: 0.92rem; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); height: 100%;
  display: flex; flex-direction: column;
}
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--blue-soft); color: var(--blue); font-size: 1.35rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); flex: 1; }
.card .card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list .tick {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: var(--navy); display: grid; place-items: center;
  font-weight: 800; font-size: 0.8rem; margin-top: 2px;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  background: #fff; border: 1px solid var(--line); color: var(--blue-deep);
  border-radius: 999px; padding: 0.45rem 0.9rem; font-weight: 600; font-size: 0.92rem;
}

.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800;
  display: grid; place-items: center;
}
.step h3 { margin: 0 0 0.25rem; }
.step p { margin: 0; color: var(--muted); }

.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.compare .card h3 { color: var(--blue); }
.compare .card.featured {
  border-color: var(--gold); box-shadow: 0 12px 28px rgba(240,176,0,0.18);
}

.placeholder {
  border: 2px dashed #9aabc8; background: repeating-linear-gradient(
    -45deg, #f0f4fa, #f0f4fa 10px, #e4ebf5 10px, #e4ebf5 20px
  );
  border-radius: 12px; color: var(--blue-deep); font-weight: 650;
  display: grid; place-items: center; text-align: center; padding: 1.5rem; min-height: 160px;
}
.placeholder.tall { min-height: 240px; }
.placeholder.floor { min-height: 280px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.price-tag {
  display: inline-block; background: var(--blue-soft); color: var(--blue-deep);
  font-weight: 800; padding: 0.55rem 0.9rem; border-radius: 10px; margin: 0.5rem 0 1rem;
}
.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.spec-table th, .spec-table td {
  text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top;
}
.spec-table th { width: 40%; color: var(--muted); font-weight: 600; }
.spec-table td .ph { color: var(--gold-dark); font-weight: 700; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.value-card {
  text-align: center; padding: 1.5rem 1rem; border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--blue-soft)); border: 1px solid var(--line);
}
.value-card strong { display: block; color: var(--blue-deep); font-size: 1.15rem; margin-bottom: 0.35rem; }

.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: #fff; border-radius: calc(var(--radius) + 4px); padding: 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.cta-band h2, .cta-band p { color: #fff; margin: 0; }
.cta-band p { opacity: 0.9; margin-top: 0.35rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* FAQ */
.faq-list { display: grid; gap: 0.65rem; }
.faq-item {
  border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden;
}
.faq-item button {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  font: inherit; font-weight: 650; color: var(--navy); padding: 1rem 1.15rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item button::after { content: "+"; color: var(--gold-dark); font-size: 1.3rem; font-weight: 700; }
.faq-item.is-open button::after { content: "–"; }
.faq-item .answer { display: none; padding: 0 1.15rem 1.1rem; color: var(--muted); }
.faq-item.is-open .answer { display: block; }

/* Forms */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); max-width: 640px;
}
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-weight: 650; margin-bottom: 0.35rem; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.75rem 0.85rem; font: inherit; background: #fff; color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 3px solid rgba(0,66,165,0.25); border-color: var(--blue);
}
.form-note { font-size: 0.88rem; color: var(--muted); margin-top: 0.75rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.map-frame {
  border: 0; width: 100%; min-height: 360px; border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* Footer */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.85); padding: 3rem 0 2rem; margin-top: 2rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.footer-brand strong { color: #fff; font-size: 1.1rem; }
.footer-brand p { color: rgba(255,255,255,0.7); }
.footer-col h4 { color: var(--gold); margin-bottom: 0.75rem; font-size: 0.95rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
  font-size: 0.9rem; color: rgba(255,255,255,0.65);
}

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  background: #25d366; color: #fff; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  text-decoration: none;
}
.wa-float:hover { transform: translateY(-2px); text-decoration: none; color: #fff; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

.unit-block {
  background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.unit-block > h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.badge {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-size: 0.75rem; font-weight: 800; padding: 0.25rem 0.55rem; border-radius: 999px;
}

@media (max-width: 960px) {
  .grid-3, .grid-4, .values, .compare, .contact-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line); flex-direction: column;
    align-items: stretch; padding: 0.75rem; gap: 0.25rem;
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .header-inner { justify-content: space-between; }
  .site-nav { order: 5; }
  .header-ctas { margin-left: auto; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2, .values, .compare, .contact-grid, .footer-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .btn-sm-mobile { padding: 0.45rem 0.7rem; font-size: 0.78rem; }
  .header-ctas .btn { padding: 0.45rem 0.7rem; font-size: 0.78rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .wa-float { right: 12px; bottom: 12px; width: 52px; height: 52px; }
}


/* Housing galleries */
.gallery-grid img {
  width: 100%; height: 220px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--line); background: var(--blue-soft);
}
.gallery-grid.gallery-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid.gallery-wide img { height: 200px; }
.floorplan-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem;
}
.floorplan-wrap img { width: 100%; height: auto; border-radius: 8px; }
.note-box {
  background: var(--blue-soft); border-left: 4px solid var(--gold);
  padding: 1rem 1.15rem; border-radius: 0 12px 12px 0; margin: 1rem 0 1.5rem;
  color: var(--ink);
}
.caption { font-size: 0.88rem; color: var(--muted); margin-top: 0.35rem; }
@media (max-width: 960px) {
  .gallery-grid.gallery-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gallery-grid.gallery-4, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img { height: 220px; }
}


/* Forms — Order Portal / Quote */
.form-card-wide { max-width: 840px; }
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem;
}
.form-row-full { grid-column: 1 / -1; }
.optional { font-weight: 500; color: var(--muted); font-size: 0.85em; }
.form-actions {
  display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.5rem;
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
