/* ==========================================================================
   Kiko | Cedar City Homes — shared stylesheet
   ========================================================================== */

:root{
  --red: #C8102E;
  --red-dark: #8F0B20;
  --black: #121212;
  --white: #FFFFFF;
  --cream: #F6F3EE;
  --stone: #E8E3DA;
  --gray: #5C5C5C;
  --gray-light: #9A9A9A;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-accent: "Caveat", cursive;

  --radius: 3px;
  --max: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--black);
  background:var(--white);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:600; margin:0 0 .4em; line-height:1.1; }
p{ margin:0 0 1em; }
.wrap{ max-width:var(--max); margin:0 auto; padding:0 24px; }
.accent{ font-family:var(--font-accent); color:var(--red); font-weight:600; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:3px solid var(--red); outline-offset:2px;
}

/* ---------- top utility bar ---------- */
.topbar{
  background:var(--black); color:var(--white); font-size:.82rem;
}
.topbar .wrap{ display:flex; justify-content:space-between; align-items:center; padding:8px 24px; gap:12px; flex-wrap:wrap; }
.topbar a{ color:var(--white); }
.topbar .call{ font-weight:600; }
.topbar .call svg{ vertical-align:-3px; margin-right:5px; }

/* ---------- header / nav ---------- */
header.site{ background:var(--white); border-bottom:1px solid var(--stone); position:sticky; top:0; z-index:50; }
.nav{ display:flex; align-items:center; justify-content:space-between; padding:16px 24px; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-size:1.35rem; font-weight:700; color:var(--black); }
.brand .mark{
  width:40px; height:40px; border-radius:50%; background:var(--red); color:var(--white);
  display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:700; font-size:.95rem; letter-spacing:.02em;
}
.navlinks{ display:flex; gap:28px; align-items:center; font-size:.95rem; font-weight:600; }
.navlinks a:hover{ color:var(--red); }
.navlinks .cta{
  background:var(--red); color:var(--white); padding:10px 18px; border-radius:var(--radius);
}
.navlinks .cta:hover{ background:var(--red-dark); }
.navtoggle{ display:none; background:none; border:none; cursor:pointer; }

/* areas dropdown */
.navlinks .dropdown{ position:relative; }
.navlinks .dropdown > .dtrigger{ cursor:pointer; display:inline-flex; align-items:center; gap:4px; }
.dropdown-menu{
  display:none; position:absolute; top:calc(100% + 10px); left:0; background:var(--white);
  border:1px solid var(--stone); border-radius:6px; min-width:220px; padding:8px; box-shadow:0 16px 30px rgba(0,0,0,.1);
  grid-template-columns:1fr 1fr; gap:2px;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu{ display:grid; }
.dropdown-menu a{ padding:8px 10px; border-radius:4px; font-size:.88rem; font-weight:600; white-space:nowrap; }
.dropdown-menu a:hover{ background:var(--cream); color:var(--red); }
.navtoggle span{ display:block; width:26px; height:2px; background:var(--black); margin:6px 0; }

@media(max-width:860px){
  .navlinks{
    position:absolute; top:100%; left:0; right:0; background:var(--white);
    flex-direction:column; align-items:stretch; padding:12px 24px 20px; border-bottom:1px solid var(--stone);
    display:none; gap:14px;
  }
  .navlinks.open{ display:flex; }
  .navlinks .cta{ text-align:center; }
  .navtoggle{ display:block; }
  .dropdown-menu{ display:grid !important; position:static; box-shadow:none; border:none; grid-template-columns:1fr 1fr; padding:6px 0 6px 8px; }
}

/* ---------- hero ---------- */
.hero{ background:var(--red); color:var(--white); position:relative; overflow:hidden; }
.hero .wrap{ padding:64px 24px 56px; display:grid; grid-template-columns:1.15fr .85fr; gap:40px; align-items:center; }
.hero h1{ font-size:clamp(2.1rem,4.4vw,3.4rem); color:var(--white); }
.hero p.lede{ font-size:1.1rem; max-width:46ch; opacity:.95; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top:22px; }
.btn{
  display:inline-flex; align-items:center; gap:8px; padding:13px 22px; border-radius:var(--radius);
  font-weight:700; font-size:.95rem; border:2px solid transparent; cursor:pointer;
}
.btn-white{ background:var(--white); color:var(--red); }
.btn-white:hover{ background:var(--cream); }
.btn-outline{ border-color:var(--white); color:var(--white); }
.btn-outline:hover{ background:rgba(255,255,255,.12); }
.btn-black{ background:var(--black); color:var(--white); }
.btn-black:hover{ background:#000; }

.hero-art{ position:relative; }
.hero-art svg{ width:100%; height:auto; }

.locator{ color:var(--white); opacity:.92; font-size:.95rem; margin-top:18px; }
.locator strong{ color:var(--white); }

@media(max-width:900px){
  .hero .wrap{ grid-template-columns:1fr; }
  .hero-art{ order:-1; max-width:340px; margin:0 auto; }
}

/* ---------- sections ---------- */
section{ padding:64px 0; }
section.alt{ background:var(--cream); }
.section-head{ max-width:64ch; margin-bottom:36px; }
.eyebrow{ font-weight:700; letter-spacing:.08em; text-transform:uppercase; font-size:.78rem; color:var(--red); margin-bottom:10px; display:block; }

/* two-town comparison strip (signature element) */
.compare{
  display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--stone); border-radius:6px; overflow:hidden;
}
.compare > div{ padding:30px 28px; }
.compare .town-a{ background:var(--black); color:var(--white); }
.compare .town-b{ background:var(--white); }
.compare h3{ font-size:1.3rem; }
.compare .town-a h3{ color:var(--white); }
.compare-row{ display:flex; justify-content:space-between; padding:10px 0; border-top:1px solid rgba(0,0,0,.08); font-size:.95rem; }
.compare .town-a .compare-row{ border-top-color:rgba(255,255,255,.14); }
.compare-row .k{ color:var(--gray-light); }
.compare .town-a .compare-row .k{ color:#c9c9c9; }
@media(max-width:700px){ .compare{ grid-template-columns:1fr; } }

/* card grid for city links */
.grid-cities{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:22px; }
.city-card{
  border:1px solid var(--stone); border-radius:6px; overflow:hidden; background:var(--white);
  transition:transform .15s ease, box-shadow .15s ease;
}
.city-card:hover{ transform:translateY(-3px); box-shadow:0 10px 24px rgba(0,0,0,.08); }
.city-card .art{ height:140px; }
.city-card .art svg{ width:100%; height:100%; display:block; }
.city-card .body{ padding:18px 20px 22px; }
.city-card h4{ font-size:1.1rem; margin-bottom:6px; }
.city-card p{ font-size:.92rem; color:var(--gray); margin-bottom:14px; }
.city-card .go{ font-weight:700; color:var(--red); font-size:.88rem; }

/* forms */
.form-card{
  background:var(--white); border:1px solid var(--stone); border-radius:8px; padding:30px; max-width:560px;
  box-shadow:0 18px 40px rgba(0,0,0,.06);
}
.form-card h3{ font-size:1.3rem; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.form-row.single{ grid-template-columns:1fr; }
label{ display:block; font-size:.82rem; font-weight:700; margin-bottom:6px; color:var(--gray); }
input,textarea,select{
  width:100%; padding:12px 13px; border:1px solid var(--stone); border-radius:4px; font-family:var(--font-body);
  font-size:.95rem; background:var(--cream);
}
input:focus,textarea:focus,select:focus{ background:var(--white); }
.form-card .submit{ width:100%; justify-content:center; margin-top:6px; }
.form-note{ font-size:.78rem; color:var(--gray-light); margin-top:10px; }

/* worth section */
.worth{ background:var(--black); color:var(--white); }
.worth .section-head h2{ color:var(--white); }
.worth .form-card{ background:#1b1b1b; border-color:#2c2c2c; }
.worth .form-card label{ color:#c9c9c9; }
.worth input,.worth textarea,.worth select{ background:#242424; border-color:#333; color:var(--white); }
.worth-copy{ max-width:46ch; }

.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }
@media(max-width:860px){ .two-col{ grid-template-columns:1fr; } }

/* faq */
details.faq{ border-bottom:1px solid var(--stone); padding:16px 0; }
details.faq summary{ cursor:pointer; font-weight:700; font-family:var(--font-display); font-size:1.05rem; list-style:none; display:flex; justify-content:space-between; }
details.faq summary::-webkit-details-marker{ display:none; }
details.faq summary::after{ content:"+"; color:var(--red); font-size:1.4rem; margin-left:12px; }
details.faq[open] summary::after{ content:"–"; }
details.faq p{ margin-top:12px; color:var(--gray); }

/* map */
.map-frame{ border:1px solid var(--stone); border-radius:8px; overflow:hidden; }
.map-frame iframe{ width:100%; height:420px; border:0; display:block; }

/* stats strip */
.stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center; }
.stats .n{ font-family:var(--font-display); font-size:2.1rem; color:var(--red); font-weight:700; }
.stats .l{ font-size:.85rem; color:var(--gray); }
@media(max-width:700px){ .stats{ grid-template-columns:1fr 1fr; } }

/* footer */
footer.site{ background:var(--black); color:#d8d8d8; padding:48px 0 26px; font-size:.9rem; }
footer.site h5{ color:var(--white); font-family:var(--font-body); font-size:.82rem; letter-spacing:.06em; text-transform:uppercase; margin-bottom:14px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; }
.footer-grid a{ display:block; margin-bottom:8px; color:#c9c9c9; }
.footer-grid a:hover{ color:var(--white); }
.footer-bottom{ border-top:1px solid #2a2a2a; margin-top:36px; padding-top:20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.8rem; color:#8f8f8f; }
.social{ display:flex; gap:12px; }
.social a{ width:36px; height:36px; border:1px solid #3a3a3a; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.social a:hover{ border-color:var(--red); }
@media(max-width:860px){ .footer-grid{ grid-template-columns:1fr 1fr; } }

/* city page inner hero (smaller, image-style svg banner) */
.city-hero{ position:relative; color:var(--white); overflow:hidden; }
.city-hero .art{ position:absolute; inset:0; }
.city-hero .art svg{ width:100%; height:100%; object-fit:cover; }
.city-hero .overlay{ position:relative; background:linear-gradient(180deg, rgba(18,18,18,.15), rgba(18,18,18,.72)); padding:90px 0 56px; }
.city-hero h1{ color:var(--white); font-size:clamp(2rem,4.6vw,3.1rem); }
.breadcrumb{ font-size:.85rem; opacity:.9; margin-bottom:14px; }
.breadcrumb a{ text-decoration:underline; }

.pill{ display:inline-block; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.4); padding:6px 14px; border-radius:20px; font-size:.8rem; font-weight:600; margin-right:8px; margin-bottom:8px; }

.linktree-note{ font-size:.9rem; color:var(--gray); }
