/* Closewell Homes LLC — site styles */
:root {
  --navy: #0f2a43;
  --navy-2: #163a5c;
  --green: #1f9d78;
  --green-dark: #17805f;
  --ink: #1c2733;
  --muted: #5b6b7a;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --gold: #e8b04b;
  --radius: 12px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { 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;
}
a { color: var(--green-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
p { margin: 0 0 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--green));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.1rem;
}
.brand .name { color: var(--navy); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; margin-left: 22px; font-size: .95rem; }
.nav a:hover { color: var(--green-dark); }
.nav .btn { margin-left: 22px; }
@media (max-width: 640px){ .nav a:not(.btn){ display:none; } }

/* Buttons */
.btn {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  font-weight: 700; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 1rem; transition: background .15s ease, transform .05s ease;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 64px 20px; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.2rem; color: #d7e2ee; max-width: 34ch; }
.hero .pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; }
.hero .pill { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); color: #eaf1f8; padding: 7px 14px; border-radius: 999px; font-size: .9rem; }
@media (max-width: 820px){ .hero .wrap { grid-template-columns: 1fr; padding: 44px 20px; } }

/* Offer form card */
.card {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(9, 25, 43, .28); padding: 26px;
}
.card h3 { margin-top: 0; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; color: var(--navy); }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 1rem; font-family: inherit; background: var(--bg-soft);
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--green); background: #fff; }
.consent {
  display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 18px;
  font-size: .82rem; color: var(--muted); line-height: 1.5;
}
.consent input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; }
.consent a { color: var(--green-dark); }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 12px; }

/* Sections */
section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 60ch; margin: 0 auto 42px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 820px){ .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ic { width: 44px; height: 44px; border-radius: 10px; background: rgba(31,157,120,.12); color: var(--green-dark); display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; }
.feature h3 { font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); }

.step { display: flex; gap: 16px; align-items: flex-start; }
.step .num { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 999px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.step h3 { font-size: 1.1rem; margin-bottom: .2em; }
.step p { margin: 0; color: var(--muted); }

.areas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.areas .chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-weight: 600; color: var(--navy); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 14px; }
.contact-list b { color: var(--navy); display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.contact-list a { color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.contact-list a:hover { color: var(--green-dark); }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 820px; }
.legal h1 { margin-bottom: .2em; }
.legal .updated { color: var(--muted); margin-bottom: 2rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.legal .highlight { background: #fff7e6; border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 6px; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }

/* Footer */
.site-footer { background: var(--navy); color: #c6d3e0; padding: 44px 0 30px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer .name { color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; }
.site-footer a { color: #c6d3e0; text-decoration: none; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); margin-top: 22px; padding-top: 18px; font-size: .82rem; color: #90a4b8; }
@media (max-width: 820px){ .site-footer .wrap { grid-template-columns: 1fr; } }
