/* Everlane Realty — site styles (Claude-built, [D]).
   Mobile-first, responsive, no external CSS deps (Dynamic-Wrapper safe). */

:root {
  --navy: #102a43;
  --navy-2: #1c3d5a;
  --ink: #243b53;
  --slate: #486581;
  --mist: #f0f4f8;
  --line: #d9e2ec;
  --accent: #c9a24b;
  --accent-dk: #a9842f;
  --white: #ffffff;
  --ok: #2f855a;
  --err: #c53030;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(16,42,67,.10);
  --wrap: 1140px;
  --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(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.1rem); }
p { margin: 0 0 1em; }
a { color: var(--navy-2); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(40px, 7vw, 84px) 0; }
.section--mist { background: var(--mist); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent-dk); margin-bottom: .6em; }
.lede { font-size: 1.12rem; color: var(--slate); max-width: 60ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.btn {
  display: inline-block; cursor: pointer; border: 0; border-radius: var(--radius);
  font: inherit; font-weight: 600; padding: 14px 26px; text-decoration: none;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--navy); }
.btn--primary:hover { background: var(--accent-dk); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-2); }
.btn--block { display: block; width: 100%; text-align: center; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.18rem; color: var(--navy); letter-spacing: .01em; }
.brand__agent { font-size: .78rem; color: var(--slate); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--accent-dk); }
.nav__cta { padding: 9px 18px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--navy); cursor: pointer; }

.hero {
  background: linear-gradient(180deg, rgba(16,42,67,.78), rgba(16,42,67,.86)),
              url("./assets/hero.jpg") center/cover no-repeat, var(--navy);
  color: var(--white); padding: clamp(56px, 10vw, 120px) 0;
}
.hero h1 { color: var(--white); max-width: 18ch; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 52ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.idx-slot {
  background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 22px; min-height: 64px;
}
.hero .idx-slot { margin-top: 30px; box-shadow: var(--shadow); border-style: solid; }
.idx-note {
  font-size: .8rem; color: var(--slate); background: #fffaf0; border: 1px solid #f0e2c0;
  border-radius: 8px; padding: 8px 12px; margin-top: 10px;
}

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.3rem; }
.cta-band { background: var(--navy); color: var(--white); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.85); }

.site-footer { background: var(--navy); color: rgba(255,255,255,.82); padding: 52px 0 28px; font-size: .92rem; }
.site-footer a { color: rgba(255,255,255,.9); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand__name { color: var(--white); font-weight: 800; font-size: 1.1rem; }
.footer-brand__agent { font-size: .85rem; color: rgba(255,255,255,.7); }
.footer h4 { color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 20px; font-size: .8rem; color: rgba(255,255,255,.62); }
.footer__legal .fairhousing { font-weight: 600; color: rgba(255,255,255,.78); }
.placeholder { color: var(--accent); font-style: italic; }

.form-wrap { max-width: 680px; margin: 0 auto; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field .hint { font-weight: 400; color: var(--slate); font-size: .9rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea, .field select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label {
  display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 16px; flex: 1; min-width: 160px;
}
.radio-row input { accent-color: var(--accent-dk); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 8px; margin-bottom: 18px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e8f5ee; color: var(--ok); border: 1px solid #b6e0c6; }
.form-status.err { background: #fdeaea; color: var(--err); border: 1px solid #f5c2c2; }
.form-status.info { background: #eef4fb; color: var(--navy-2); border: 1px solid #c9ddf2; }
.consent-note { font-size: .85rem; color: var(--slate); }

.idx-wrapper-body { min-height: 60vh; padding: clamp(24px,5vw,48px) 0; }

@media (max-width: 820px) {
  .grid--2, .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column;
         align-items: flex-start; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--mist); }
  .nav__cta { margin-top: 10px; }
  .nav-toggle { display: block; }
  .radio-row label { flex: 1 1 100%; }
}
