/* ============================================================
   Kannan Greens — upaffordablehousings.com
   Design: modern minimal — same brand colors (orange CTA, blue accent),
   more whitespace, softer shadows instead of borders, refined type scale.
   Type: Poppins
   ============================================================ */

:root {
  --orange: #22a6e0;
  --orange-dark: #1483b3;
  --orange-soft: #e6f6fd;
  --blue: #0b6cb7;
  --blue-dark: #084f88;
  --green: #2e7d32;
  --green-soft: #eaf6ec;
  --ink: #16232c;
  --body: #55697a;
  --muted: #8b9aa8;
  --line: #eaeef2;
  --cream: #fff8ec;
  --sky: #f3f8fd;
  --white: #fff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(16, 42, 67, .14);
  --shadow-lg: 0 30px 70px -20px rgba(16, 42, 67, .28);
  --wrap: 1200px;
  --header-h: 80px;
}

* { box-sizing: border-box; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .4s ease, visibility .4s ease;
}
.preloader-logo { width: 84px; height: auto; animation: preloader-pulse 1.4s ease-in-out infinite; }
.preloader-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--orange);
  animation: spin .8s linear infinite;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes preloader-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .8; } }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: Poppins, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: var(--white);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border: 0; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-align: center;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 12px 26px -8px rgba(34, 166, 224, .55); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(34, 166, 224, .6); }
.btn-outline { background: var(--white); color: var(--blue); box-shadow: inset 0 0 0 1.5px rgba(11,108,183,.35); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--blue); background: var(--sky); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--orange); color: var(--orange-dark); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.nav .btn[disabled], .mobile-cta .btn[disabled] { background: #111; color: #fff; opacity: 1; font-size: .78rem; padding: 10px 14px; white-space: nowrap; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(16, 42, 67, .06);
  height: var(--header-h);
  display: flex; align-items: center;
}
.header-inner { display: flex; align-items: center; gap: 24px; width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 1.15rem; flex: none; white-space: nowrap; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(140deg, var(--green), #6ab04c);
  display: grid; place-items: center; color: #fff; font-size: 1.1rem;
}
.logo small { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; line-height: 1; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { font-size: .88rem; font-weight: 500; color: var(--body); position: relative; white-space: nowrap; }
.nav a:hover { color: var(--orange-dark); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--orange); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--orange-dark); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; border-radius: 2px; }

/* ---------- quick-facts strip: white pill chips on a blue band ---------- */
.badge-row {
  background: #1a90c4;
  padding: 12px 0;
  position: relative; overflow: hidden;
}
.badge-row::before {
  content: none;
}
.badge-row-inner { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: center; position: relative; }
.badge {
  display: flex; align-items: center; gap: 10px; font-size: .96rem; color: #000; font-weight: 600;
  background: #fff; border-radius: 999px; padding: 5px 18px 5px 6px;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}
.badge-ico {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #fff;
  display: grid; place-items: center; font-size: .95rem;
}
.badge b { color: #000; }

@media (max-width: 767px) {
  .badge-row-inner { justify-content: flex-start; }
  .badge { width: 100%; padding: 10px 20px 10px 10px; }
}

@keyframes badge-blink {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.badge-blink { animation: badge-blink 1s ease-in-out infinite; }

/* ---------- countdown strip ---------- */
.countdown-strip {
  background: #b91c1c; color: #fff; text-align: center;
  padding: 18px 16px; font-weight: 700; font-size: 1.3rem; letter-spacing: .01em;
}
.countdown-strip .mono { font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .countdown-strip { font-size: 1.05rem; padding: 14px 12px; }
}

@keyframes btn-blink {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 26px -8px rgba(34, 166, 224, .55); }
  50% { transform: scale(1.12); box-shadow: 0 8px 30px 4px rgba(34, 166, 224, .95); }
}
.btn-blink { animation: btn-blink 1s ease-in-out infinite; }

/* ---------- apply banner ---------- */
.apply-banner { background: var(--sky); }
.apply-banner img { width: 100%; display: block; }

/* ---------- apply + price snapshot (unused, kept for reference) ---------- */
.apply-section { padding: 56px 0; background: var(--sky); }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.apply-cta {
  background: linear-gradient(155deg, var(--orange), #7bd0f7); border-radius: var(--radius); padding: 40px 36px;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  box-shadow: 0 20px 44px -14px rgba(34, 166, 224, .48);
}
.apply-cta h3 { color: #fff; font-size: 1.45rem; margin: 0; letter-spacing: -.01em; }
.apply-cta .btn[disabled] { background: #fff; color: var(--ink); opacity: 1; }
.apply-cta .btn-primary { background: #fff; color: var(--orange-dark); box-shadow: 0 10px 22px -6px rgba(0,0,0,.25); }
.apply-cta .btn-primary:hover { background: #fff; transform: translateY(-2px); }

.apply-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.apply-card-head { background: var(--ink); color: #fff; font-weight: 600; padding: 16px 26px; }
.apply-card-body { padding: 22px 26px 26px; }
.fee-list { list-style: none; margin: 0 0 16px; padding: 0; max-height: 260px; overflow-y: auto; }
.fee-list li {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .87rem;
}
.fee-list li:last-child { border-bottom: 0; }
.fee-list .amt { font-weight: 700; color: var(--ink); white-space: nowrap; }
.note {
  background: var(--green-soft); border-radius: var(--radius-sm); font-size: .8rem; color: #23492a;
  padding: 12px 16px; margin-bottom: 16px; display: flex; gap: 8px; align-items: flex-start;
}
.closed-banner {
  background: #fdeeec; color: #8d1c12;
  padding: 14px 16px; border-radius: var(--radius-sm); font-size: .85rem; margin-bottom: 16px;
}

/* ---------- sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--sky); }
.section-cream { background: var(--cream); }

.eyebrow {
  display: inline-flex; align-items: center; text-transform: uppercase; letter-spacing: .16em;
  font-size: .72rem; font-weight: 700; color: var(--orange-dark); margin-bottom: 14px;
  background: var(--orange-soft); padding: 6px 14px; border-radius: 999px;
}
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { margin-inline: auto; }

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

.card {
  background: #fff; border-radius: var(--radius); box-shadow: 0 2px 10px -4px rgba(16,42,67,.08);
  padding: 30px; transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .ico {
  width: 48px; height: 48px; border-radius: 14px; background: var(--sky); color: var(--blue);
  display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 16px;
}
.card p { font-size: .9rem; margin: 0; }

/* price list */
.price-card { display: flex; flex-direction: column; position: relative; overflow: hidden; }
.price-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
}
.price-card .config {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px; margin-top: 6px;
}
.price-card .area { font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.price-card .area span { font-size: .8rem; font-weight: 500; color: var(--muted); }
.price-card .price { font-size: 1.55rem; font-weight: 700; color: var(--blue); margin: 14px 0 2px; }
.price-card .gst { font-size: .78rem; color: var(--muted); margin-bottom: 20px; }
.price-card .btn { margin-top: auto; }
.price-card.sold-out { opacity: .55; filter: grayscale(.5); }
.sold-out-badge {
  position: absolute; top: 14px; right: -34px; width: 140px;
  transform: rotate(40deg); text-align: center;
  background: var(--ink, #111); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 0; box-shadow: var(--shadow); z-index: 1;
}

/* benefits list */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-size: .95rem; }
.check-list li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-soft); color: var(--green); font-size: .8rem; font-weight: 700;
  display: grid; place-items: center; margin-top: 2px;
}

/* downloads */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dl {
  display: flex; align-items: center; gap: 12px; padding: 17px 18px;
  background: #fff; border-radius: var(--radius-sm); box-shadow: 0 2px 10px -4px rgba(16,42,67,.08);
  font-size: .88rem; font-weight: 500; color: var(--ink); transition: .18s;
}
.dl:hover { box-shadow: var(--shadow); color: var(--orange-dark); transform: translateY(-3px); }
.dl .pdf {
  flex: none; width: 34px; height: 34px; border-radius: 9px; background: #fdecea; color: #d93025;
  display: grid; place-items: center; font-size: .68rem; font-weight: 700;
}

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--sky); aspect-ratio: 4/3; box-shadow: 0 2px 10px -4px rgba(16,42,67,.08); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.08); }
.img-missing { background: linear-gradient(135deg, #dbe9f4, #eaf5ea); min-height: 180px; }

/* location */
.loc-list { list-style: none; margin: 0; padding: 0; column-count: 2; column-gap: 40px; }
.loc-list li {
  break-inside: avoid; display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem;
}
.loc-list li b { color: var(--blue); white-space: nowrap; }

/* faq */
.faq { border-radius: var(--radius-sm); background: #fff; box-shadow: 0 2px 10px -4px rgba(16,42,67,.08); margin-bottom: 12px; overflow: hidden; }
.faq summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--orange-soft);
  color: var(--orange-dark); font-size: 1.2rem; font-weight: 400; display: grid; place-items: center;
}
.faq[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 24px 22px; font-size: .92rem; }

/* contact + footer */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-item .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; }
.contact-item span { font-size: .92rem; }
.contact-item b { display: block; color: var(--ink); }

.footer { background: #0c1c28; color: rgba(255, 255, 255, .68); padding: 64px 0 0; font-size: .88rem; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .8rem;
}
.rera-strip { background: #071420; color: rgba(255,255,255,.5); font-size: .74rem; padding: 16px 0; line-height: 1.6; }

/* sticky mobile CTA */
.mobile-cta {
  position: fixed; inset: auto 0 0 0; z-index: 55; display: none;
  gap: 10px; padding: 12px 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  box-shadow: 0 -8px 24px -10px rgba(16,42,67,.18);
}
.mobile-cta .btn { flex: 1; padding: 13px; font-size: .9rem; }

/* ---------- form / modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(10, 20, 30, .68); backdrop-filter: blur(4px);
  padding: 24px; overflow-y: auto;
}
.modal.open { display: block; }
.modal-box {
  background: #fff; border-radius: 24px; width: min(100%, 720px);
  margin: 40px auto; box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal-head {
  padding: 24px 30px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.modal-head h3 { margin: 0; }
.modal-head p { margin: 4px 0 0; font-size: .84rem; color: var(--muted); }
.modal-close { background: var(--sky); border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-body { padding: 28px 30px 32px; }

.steps { display: flex; gap: 8px; margin-bottom: 26px; }
.steps span {
  flex: 1; height: 4px; border-radius: 2px; background: var(--line);
}
.steps span.done { background: var(--orange); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: #d93025; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .92rem; color: var(--ink); background: #fff; transition: box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 1.5px var(--blue); outline: none; }
.field .hint { font-size: .76rem; color: var(--muted); margin-top: 5px; }
.field .err { font-size: .78rem; color: #d93025; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid select { box-shadow: inset 0 0 0 1.5px #d93025; }
.field.invalid .err { display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* custom flat-type dropdown — lets us pin "SOLD OUT" flush to the right,
   which a native <option> can't do */
.flat-select { position: relative; }
.flat-select-toggle {
  width: 100%; text-align: left; padding: 13px 15px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line);
  border-radius: var(--radius-sm); font: inherit; font-size: .92rem; color: var(--ink); background: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.flat-select-toggle:focus { box-shadow: inset 0 0 0 1.5px var(--blue); outline: none; }
.flat-select-toggle::after {
  content: ""; width: 9px; height: 9px; flex: none; margin-top: -4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
}
.flat-select-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px;
  list-style: none; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  max-height: 260px; overflow-y: auto;
}
.flat-select-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px; border-radius: 8px; font-size: .9rem; cursor: pointer;
  margin-bottom: 4px;
}
.flat-select-list li:last-child { margin-bottom: 0; }
.flat-select-list li:hover, .flat-select-list li.active { background: var(--bg, #f4f6f8); }
.flat-select-list li[aria-disabled="true"] {
  cursor: not-allowed; color: #a33; background: #fbe4e4;
  box-shadow: inset 3px 0 0 #d93025;
}
.flat-select-list li[aria-disabled="true"]:hover { background: #fbe4e4; }
.flat-select-list li .sold-tag {
  flex: none; font-weight: 800; font-size: .68rem; letter-spacing: .05em;
  color: #fff; background: #d93025; padding: 4px 8px; border-radius: 20px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; margin: 8px 0 20px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; }

.form-msg { padding: 13px 16px; border-radius: var(--radius-sm); font-size: .86rem; margin-bottom: 18px; display: none; }
.form-msg.show { display: block; }
.form-msg.error { background: #fdecea; color: #8d1c12; }
.form-msg.ok { background: var(--green-soft); color: #2b4d2f; }

.success { text-align: center; padding: 20px 0; }
.success .tick {
  width: 76px; height: 76px; border-radius: 50%; background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; font-size: 2.1rem; margin: 0 auto 20px;
}

.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite; display: none;
}
.btn.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
/* nine nav links + logo + button need more room than 980px before they
   start squeezing the logo text onto two lines — switch to the hamburger
   menu earlier, well before that crowding starts. */
@media (max-width: 1480px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 20px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .nav-toggle { display: block; margin-left: auto; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 72px; }
}

@media (max-width: 980px) {
  .apply-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .grid-3, .grid-4, .grid-2, .dl-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .loc-list { column-count: 1; }
  .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .modal-box { margin: 0; border-radius: 0; min-height: 100vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto; }
}

/* ============================================================
   Media: banners, videos, photo grids, lightbox
   ============================================================ */

.logo-img { width: 42px; height: auto; flex: none; }

/* ---------- banner carousel ---------- */
.banner { position: relative; background: #0c1c28; overflow: hidden; }
.banner-track { position: relative; }
.banner-slide {
  margin: 0; opacity: 0; visibility: hidden;
  position: absolute; inset: 0;
  transition: opacity .8s ease;
}
.banner-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.banner-slide img { width: 100%; height: auto; display: block; }
.banner-slide .m-only { display: none; }
.banner-slide-blue img { filter: hue-rotate(210deg) saturate(1.4) brightness(1.05); }
.banner::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.35), transparent);
}

.banner-dots {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2;
  display: flex; justify-content: center; gap: 8px;
}
.banner-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .5); cursor: pointer; transition: .2s;
}
.banner-dots button[aria-selected="true"] { background: var(--orange); width: 26px; border-radius: 5px; }

/* ---------- video blocks ---------- */
.media-row {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: center;
  margin-top: 56px;
}
.media-video {
  width: 100%; display: block; border-radius: var(--radius);
  background: #0c1c28; box-shadow: var(--shadow); aspect-ratio: 16/9; object-fit: cover;
}
.media-note h3 { font-size: 1.25rem; }
.media-note p { font-size: .92rem; }

.loan-strip { margin: 56px 0 0; text-align: center; }
.loan-strip img { width: 100%; border-radius: var(--radius-sm); }
.loan-strip figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* ---------- site layout ---------- */
.layout-figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow);
}
.layout-figure img { width: 100%; }

/* ---------- floor plan grid ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plan-card {
  margin: 0; background: #fff; border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px -4px rgba(16,42,67,.08);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-card img { width: 100%; aspect-ratio: 3/2; object-fit: contain; background: #fff; cursor: zoom-in; padding: 8px; }
.plan-card figcaption {
  font-size: .8rem; font-weight: 600; color: var(--ink);
  padding: 11px 12px; border-top: 1px solid var(--line); text-align: center;
}

/* ---------- amenities with photos ---------- */
.amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.amenity {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: 0 2px 10px -4px rgba(16,42,67,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.amenity:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.amenity img { width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: zoom-in; }
.amenity figcaption { padding: 16px 18px; }
.amenity figcaption b { display: block; color: var(--ink); font-size: .95rem; }
.amenity figcaption span { font-size: .82rem; color: var(--muted); }

.gallery img { cursor: zoom-in; }

/* ---------- location with map ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.loc-grid .loc-list { column-count: 1; }
.map-wrap {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  height: 100%; min-height: 420px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 120; display: none;
  background: rgba(6, 14, 22, .94); padding: 32px;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: 18px; right: 24px; background: rgba(255,255,255,.1); border: 0;
  width: 44px; height: 44px; border-radius: 50%;
  color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
}

.joint-toggle { font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .media-row, .loc-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .map-wrap, .map-wrap iframe { min-height: 300px; }
}
@media (max-width: 767px) {
  .banner-slide .d-only { display: none; }
  .banner-slide .m-only { display: block; }
}
@media (max-width: 620px) {
  .plan-grid, .amenity-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 12px; }
}

/* ---------- static policy pages ---------- */
.policy { max-width: 860px; padding: 60px 0 100px; }
.policy h1 {
  text-align: center; color: var(--green); font-size: 2rem;
  padding-bottom: 22px; margin-bottom: 36px; border-bottom: 1px solid var(--line);
}
.policy h2 {
  color: var(--green); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em;
  margin-top: 42px; margin-bottom: 14px;
}
.policy h3 { font-size: 1rem; margin-top: 30px; margin-bottom: 10px; }
.policy p { margin-bottom: 16px; font-size: .95rem; }
.policy ul { margin: 0 0 16px; padding-left: 22px; }
.policy li { margin-bottom: 8px; font-size: .95rem; }
.policy li ul { list-style: circle; margin: 8px 0 0; }
.policy .meta { font-size: .82rem; color: var(--muted); margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }

/* demo mode notice */
.demo-bar {
  background: #8d1c12; color: #fff; text-align: center;
  padding: 8px 16px; font-size: .82rem; font-weight: 500; letter-spacing: .02em;
}
