/* ---------- Theme ---------- */
:root {
  --ink: #14232a;
  --muted: #5a6b72;
  --bg: #ffffff;
  --bg-alt: #f3f6f5;
  --line: #dde5e4;
  --accent: #0f766e;       /* deep teal */
  --accent-dark: #0b5952;
  --sun: #f59e0b;          /* Florida sun */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 35, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.hidden { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-small { padding: .45em 1.1em; font-size: .9rem; color: #fff !important; }
.btn-block { width: 100%; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; margin: 0; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .nav-links .btn-small { margin: 12px 16px; text-align: center; border-top: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex; align-items: center;
  /* EDIT: swap to an exterior photo/rendering when available */
  background: url("images/hero.jpg") center / cover no-repeat, #24414a;
  color: #fff;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(10, 30, 36, .88) 0%, rgba(10, 30, 36, .55) 60%, rgba(10, 30, 36, .25) 100%);
}
.hero-content { position: relative; padding: 80px 0; max-width: 1120px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; }
.eyebrow {
  display: inline-block; margin: 0 0 1rem;
  background: var(--sun); color: var(--ink);
  padding: .3em .9em; border-radius: 999px;
  font-weight: 700; font-size: .85rem; letter-spacing: .03em; text-transform: uppercase;
}
.lead { font-size: 1.2rem; max-width: 40ch; opacity: .95; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.75rem; }

/* ---------- Facts ---------- */
.facts { background: var(--ink); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.fact { padding: 28px 8px; display: flex; flex-direction: column; }
.fact + .fact { border-left: 1px solid rgba(255, 255, 255, .12); }
.fact-num { font-size: 2.2rem; font-weight: 800; color: var(--sun); line-height: 1.1; }
.fact-label { font-size: .9rem; opacity: .8; }
@media (max-width: 640px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: 0 0 2.5rem; }
.sub-head { margin-top: 3rem; font-size: 1.35rem; }

/* ---------- Units ---------- */
.units-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.unit-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.unit-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.unit-head h3 { margin: 0; font-size: 1.5rem; }
.badge { background: #e6f4f2; color: var(--accent-dark); font-weight: 600; font-size: .8rem; padding: .3em .8em; border-radius: 999px; }
.specs { list-style: none; padding: 0; margin: 0; }
.specs li { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.specs span { color: var(--muted); }
.features {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 24px;
}
.features li, .checks li { position: relative; padding-left: 30px; }
.features li::before, .checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}

/* ---------- Floor plans ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.plan { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.plan img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; cursor: zoom-in; }
.plan figcaption { padding: 16px 20px; border-top: 1px solid var(--line); }

/* ---------- Construction ---------- */
.timeline {
  list-style: none; padding: 0; margin: 0 0 3rem;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  counter-reset: step;
}
.timeline li { position: relative; padding: 28px 10px 0; text-align: center; font-size: .92rem; color: var(--muted); }
.timeline li::before {
  content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 3px; background: var(--line);
}
.timeline li:first-child::before { left: 50%; }
.timeline li:last-child::before { right: 50%; }
.timeline .dot {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 3px solid var(--line); z-index: 1;
}
.timeline li.done::before, .timeline li.current::before { background: var(--accent); }
.timeline li.done .dot { background: var(--accent); border-color: var(--accent); }
.timeline li.current .dot { border-color: var(--sun); background: var(--sun); box-shadow: 0 0 0 6px rgba(245, 158, 11, .25); }
.timeline li.done, .timeline li.current { color: var(--ink); }
.timeline strong { display: block; }
.timeline em { display: block; font-style: normal; color: var(--sun); font-weight: 600; font-size: .82rem; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li { text-align: left; padding: 0 0 22px 36px; }
  .timeline li::before { top: 0; bottom: 0; left: 8px; right: auto; width: 3px; height: auto; }
  .timeline li:first-child::before { left: 8px; top: 10px; }
  .timeline li:last-child::before { right: auto; bottom: auto; height: 10px; }
  .timeline .dot { left: 0; transform: none; }
}

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; cursor: zoom-in; transition: transform .3s; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 12px 16px; font-size: .95rem; }
.gallery time { display: block; font-size: .78rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Location ---------- */
.location-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.address { font-size: 1.3rem; font-weight: 600; }
.nearby { padding-left: 1.1em; color: var(--muted); }
.nearby strong { color: var(--ink); }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 760px) { .location-grid { grid-template-columns: 1fr; } }

/* ---------- Sign-up ---------- */
.signup { background: linear-gradient(160deg, #0f766e 0%, #134e4a 100%); color: #fff; }
.signup-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.signup-copy p { font-size: 1.1rem; opacity: .92; }
.checks { list-style: none; padding: 0; }
.checks li { margin-bottom: 10px; }
.checks li::before { color: var(--sun); }
@media (max-width: 860px) { .signup-grid { grid-template-columns: 1fr; } }

.form {
  background: #fff; color: var(--ink);
  border-radius: var(--radius); padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
  display: grid; gap: 16px;
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } .form { padding: 22px; } }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400;
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 118, 110, .15);
}
.form .consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.form .consent input { width: auto; margin-top: 4px; }
.form-note { margin: 0; font-size: .82rem; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 40px 0; font-size: .9rem; }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: var(--sun); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: .25em 0; }
.footer-legal { max-width: 46ch; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, .88);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 8px; background: #fff; }
.lightbox-close {
  position: absolute; top: 12px; right: 18px;
  background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1;
}

/* ---------- Thank-you page ---------- */
.thanks { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--bg-alt); padding: 24px; }
.thanks-card { background: #fff; padding: 48px 32px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 520px; }
.thanks-icon { font-size: 3rem; color: var(--accent); line-height: 1; margin-bottom: .5rem; }

/* ---------- Units layout, renderings, disclaimers ---------- */
.unit-layout { display: grid; grid-template-columns: minmax(300px, 1fr) 1.2fr; gap: 40px; align-items: start; }
.unit-layout .sub-head { margin-top: 0; }
.unit-layout .features { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) {
  .unit-layout { grid-template-columns: 1fr; }
  .unit-layout .features { grid-template-columns: 1fr; }
}
.specs strong { text-align: right; }
.gallery-large { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
@media (max-width: 520px) { .gallery-large { grid-template-columns: 1fr; } }
.plan img { aspect-ratio: 3 / 4; }
.disclaimer {
  margin: 1.5rem 0 0; padding: 14px 18px;
  background: #fff8e6; border-left: 4px solid var(--sun); border-radius: 8px;
  font-size: .9rem; color: var(--muted);
}
.coming-soon { color: var(--muted); font-style: italic; margin: 0; }
.gallery:empty { display: none; }
.hero-note {
  position: absolute; right: 16px; bottom: 12px; margin: 0;
  font-size: .75rem; color: rgba(255, 255, 255, .75);
}
.fine-print { font-size: .8rem; color: var(--muted); margin: .5rem 0 0; }

/* ---------- Bike route map ---------- */
.facts-grid { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:last-child { grid-column: 1 / -1; }
  .fact:nth-child(3), .fact:nth-child(5) { border-left: 0; }
}
.bike-route { margin-top: 40px; max-width: 820px; }
.bike-route figure { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.bike-route img { width: 100%; height: auto; cursor: zoom-in; }
.bike-route figcaption { padding: 14px 20px; }
.bike-route .credit { float: right; font-size: .78rem; color: var(--muted); }

/* ---------- Construction photo carousel ---------- */
.carousel { max-width: 900px; margin-inline: auto; }
.carousel-viewport { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--ink); }
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.slide { flex: 0 0 100%; margin: 0; position: relative; scroll-snap-align: center; aspect-ratio: 3 / 2; }
/* contain (not cover) so portrait photos aren't cropped */
.slide img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 1.9rem; line-height: 1;
  display: grid; place-items: center; padding-bottom: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25); transition: background .2s, opacity .2s;
}
.carousel-btn:hover { background: #fff; }
.carousel-btn:disabled { opacity: 0; pointer-events: none; }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-count {
  position: absolute; top: 12px; right: 12px;
  background: rgba(10, 20, 24, .7); color: #fff; font-size: .8rem; font-weight: 600;
  padding: .25em .75em; border-radius: 999px;
}
.carousel-thumbs {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 4px;
  scroll-behavior: smooth; scrollbar-width: thin;
}
.carousel-thumbs button {
  flex: 0 0 auto; width: 76px; aspect-ratio: 4 / 3; padding: 0; border: 0; cursor: pointer;
  border-radius: 8px; overflow: hidden; opacity: .55; outline: 3px solid transparent; outline-offset: -3px;
  transition: opacity .2s, outline-color .2s; background: var(--line);
}
.carousel-thumbs button:hover { opacity: .85; }
.carousel-thumbs button[aria-current="true"] { opacity: 1; outline-color: var(--accent); }
.carousel-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .slide { aspect-ratio: 4 / 3; }
  .carousel-btn { width: 36px; height: 36px; font-size: 1.5rem; }
  .carousel-thumbs button { width: 60px; }
}

/* Lightbox prev/next (for grouped photos like the carousel) */
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, .15); color: #fff; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 2.2rem; line-height: 1; padding-bottom: 4px;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .3); }
.lightbox-nav.prev { left: 14px; }
.lightbox-nav.next { right: 14px; }
.lightbox-nav[hidden] { display: none; }

/* ---------- Form: helper text under a field ---------- */
.field-note { font-weight: 400; font-size: .82rem; color: var(--muted); }
.form label[hidden] { display: none; }
