/* ==========================================================
   Cedar Park Community – styles
   Palette: cedar green, pine, mist, ink, amber (CTA only)
   ========================================================== */
:root {
  --cedar: #17382e;
  --pine: #2d6a55;
  --mist: #eef3f1;
  --paper: #ffffff;
  --ink: #16211d;
  --muted: #55655f;
  --amber: #ffb81c;      /* high-contrast call-to-action colour */
  --amber-dark: #e6a000;
  --radius: 10px;
  --font-head: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font-body); color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
h1, h2 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
.wrap { width: min(1120px, 92%); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .85em 1.6em; border: 2px solid var(--amber);
  background: var(--amber); color: var(--cedar); font: 700 1rem var(--font-body);
  border-radius: var(--radius); text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--amber-dark); border-color: var(--amber-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.unit .btn-ghost, .location .btn-ghost { color: var(--cedar); border-color: var(--cedar); }
.unit .btn-ghost:hover, .location .btn-ghost:hover { background: var(--cedar); color: #fff; }
.btn-sm { padding: .5em 1.1em; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cedar); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font: 700 1.2rem var(--font-head); }
.brand small { font-weight: 600; opacity: .75; font-size: .9em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--pine); font-size: .95rem; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 600; opacity: .9; }
.nav a:not(.btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.7rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--cedar) 0%, #1f4a3c 100%); color: #fff; padding: clamp(3.5rem, 9vw, 7rem) 0 3rem; }
.hero h1 { max-width: 16ch; }
.lead { max-width: 52ch; font-size: 1.25rem; opacity: .92; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 3rem; }
.facts { list-style: none; margin: 0; padding: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; border-top: 1px solid rgba(255,255,255,.25); }
.facts li { opacity: .9; }
.facts strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }

/* ---------- Unit sections ---------- */
.unit { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.unit-alt, .contact { background: var(--mist); }
.unit-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.unit-grid.reverse .unit-info { order: 2; }
.price { font: 800 3rem var(--font-head); color: var(--pine); margin: 0 0 1rem; }
.price span { font-size: 1.1rem; font-weight: 600; color: var(--muted); margin-left: .2em; }
.specs { list-style: none; padding: 0; margin: 0 0 1rem; }
.specs li { padding: .55rem 0 .55rem 1.7rem; border-bottom: 1px solid #d6e0dc; position: relative; }
.specs li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: 8px; height: 8px; border-radius: 50%; background: var(--pine); }
.fine { color: var(--muted); font-size: .95rem; }
.unit .btn { margin-top: .6rem; }

/* ---------- Fade carousel ---------- */
.carousel { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #cfdcd6; box-shadow: 0 12px 30px rgba(23,56,46,.18); }
.carousel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease-in-out; }
.carousel img.active { opacity: 1; }

/* ---------- Location ---------- */
.location { padding: clamp(3rem, 7vw, 5.5rem) 0; }
address { font-style: normal; font-size: 1.3rem; margin-bottom: 1.5rem; }
.map-placeholder { aspect-ratio: 4 / 3; border-radius: 14px; border: 2px dashed #9fb5ac; background: var(--mist); display: grid; place-items: center; color: var(--muted); text-align: center; overflow: hidden; }
.map-placeholder iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Contact ---------- */
.contact { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.phone { display: inline-block; font: 800 clamp(1.8rem, 4vw, 2.6rem) var(--font-head); color: var(--cedar); text-decoration: none; border-bottom: 4px solid var(--amber); margin: .5rem 0 1rem; }
.form { background: var(--paper); padding: clamp(1.25rem, 3vw, 2rem); border-radius: 14px; box-shadow: 0 12px 30px rgba(23,56,46,.12); }
.form label { display: block; font-weight: 600; margin-bottom: 1rem; }
.form input, .form select, .form textarea {
  width: 100%; margin-top: .3rem; padding: .75em .9em; font: inherit;
  border: 1.5px solid #b8c7c0; border-radius: 8px; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--pine); outline: 3px solid rgba(45,106,85,.25); }
.form .invalid { border-color: #b3261e; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.status { margin: 1rem 0 0; font-weight: 600; min-height: 1.5em; }
.status.ok { color: var(--pine); }
.status.err { color: #b3261e; }

/* ---------- Footer & mobile call bar ---------- */
.site-footer { background: var(--cedar); color: #cfe0d9; padding: 1.5rem 0; font-size: .95rem; }
.site-footer p { margin: 0; }
.mobile-call { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .unit-grid, .contact-grid { grid-template-columns: 1fr; }
  .unit-grid.reverse .unit-info { order: 0; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem 4%; background: var(--cedar); }
  .nav.open { display: flex; }
  .row { grid-template-columns: 1fr; }
  body { padding-bottom: 64px; }
  .mobile-call { display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; padding: 1rem; text-align: center; background: var(--amber); color: var(--cedar); font: 800 1.1rem var(--font-head); text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel img, .btn { transition: none; }
}
