/* =============================================================
   Jenny Wiens — brand system  ·  V2
   Type:   Arapey (headlines + sub-heads only, tracking 0.02–0.03em,
           Regular weight — never synthesize a bold)
           Switzer (all body copy, nav, labels — weights 400–600)
   Color:  black + white do the heavy lifting; light gray quiets
           alternating sections; AZURE IS A SIGNAL, NOT A SURFACE
           (never more than ~5% of any screen — no blue fields)
   Bands:  hero white · stats gray · story white · what-I-love gray ·
           search white · contact BLACK · newsletter gray · footer BLACK
   ============================================================= */

:root {
  --ink:        #000000;   /* text · buttons · footer · contact band */
  --ink-soft:   #5B6165;   /* secondary copy + labels */
  --paper:      #FFFFFF;   /* base background · menu bar · cards */
  --section-bg: #F3F4F5;   /* light gray — alternating sections */

  --azure:      #1B8FB3;   /* ACCENT ONLY — rules, list ticks, small marks */
  --azure-deep: #1B70B3;   /* INK ONLY — links + 3px card top-rules, never a fill */

  --line:       #D7DADD;   /* hairline / frame border */
  --line-soft:  #E4E6E8;   /* lighter hairline on gray grounds */
  --max:        1120px;

  --head: "Arapey", Georgia, "Times New Roman", serif;
  --body: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --track-head: 0.03em;    /* v1's 0.15em read far too airy at display sizes */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;         /* body 17 / 1.65 — never below 16px on mobile */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;      /* no horizontal scroll at any width */
}

img { max-width: 100%; height: auto; }

a {
  color: var(--azure-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--ink); }

.skip-link {
  position: absolute;
  left: -999px; top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- layout helpers ---------- */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}
.narrow { max-width: 760px; }
section { padding: clamp(48px, 7vw, 96px) 0; }

/* ---------- headlines (Arapey Regular — no synthesized bold) ---------- */
.section-title {
  font-family: var(--head);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

/* ---------- section intro (Switzer — body copy is never Arapey) ---------- */
.section-intro {
  font-family: var(--body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: inherit;
  max-width: 65ch;
  margin: 0 0 1.75em;
}

/* small tracked label (Switzer, uppercase) — used where a section reads
   better as a quiet label than a display headline */
.section-label {
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 clamp(28px, 4vw, 44px);
}

/* The hero's azure accent is a pair of vertical margin rules — one opening
   each column (see .hero-copy / .hero-aside), not a horizontal underline. */

/* ---------- buttons (solid black, 48px min, hover → Azure Deep) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 0;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--azure-deep); color: #fff; }

/* inverted button for black grounds (contact band) */
.btn-invert {
  background: #fff;
  color: var(--ink);
}
.btn-invert:hover { background: var(--azure-deep); color: #fff; }

/* ---------- header / nav (WHITE — azure is no longer a surface) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;               /* wraps to a second line, never shrinks */
  justify-content: flex-end;
  gap: 0 26px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;              /* 48px tap target */
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--azure-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;   /* Safari draws native button chrome otherwise, */
  appearance: none;           /* which breaks flex layout of the bars */
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 4px clamp(20px, 5vw, 48px) 14px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 14px 26px -14px rgba(0,0,0,0.25);
  }
  .nav.nav-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: flex;
    justify-content: flex-end;
    padding: 13px 0;
    font-size: 1.05rem;
  }
  .nav-links a:hover { text-decoration: none; }
  /* morph bars into an X when open */
  .nav.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero (white) — THE HERO IS THE NAME, no portrait ---------- */
.hero {
  padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 7vw, 96px);
  background: var(--paper);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 372px);
  gap: clamp(32px, 5vw, 56px);
  align-items: stretch;   /* both azure margin rules run the full hero height */
}
.hero-copy {
  min-width: 0;
  border-left: 2px solid var(--azure);
  padding-left: clamp(20px, 2.5vw, 32px);
}

/* team lockup + CTA sit beside the signature as one right-hand block */
.hero-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: clamp(24px, 3.5vw, 36px);
  border-left: 2px solid var(--azure);
  padding-left: clamp(20px, 2.5vw, 32px);
}
.hero-aside .team-logo { width: 100%; }
/* .btn is inline-flex, so it hugs its text — force it to the column width
   so it matches the lockup above it exactly */
.hero-aside .btn { width: 100%; justify-content: center; text-align: center; }
.eyebrow {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.hero h1 {
  font-family: var(--head);
  font-weight: 400;                 /* Arapey Regular — never synthesize bold */
  font-size: clamp(2.5rem, 9vw, 5.25rem);
  line-height: 1;
  letter-spacing: 0;
  margin: 0;
  /* Letter-justified signature: both 5-letter words fill one column,
     flush on the left AND right edges. Fills the column, never overflows. */
  width: min(420px, 100%);
}
.hero h1 .name-line {
  display: flex;
  justify-content: space-between;
}
.hero h1 .name-line:first-child { line-height: 0.95; }

.lede {
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(1.1875rem, 2.4vw, 1.625rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 32ch;
  margin: 18px 0 0;
  text-wrap: pretty;
}
.hero-cta { margin: 0; }
.team-lockup {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.team-logo {
  width: clamp(220px, 26vw, 300px);
  height: auto;
  display: block;
}

/* hero stacks below 860px — lockup and CTA fall under the signature */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: clamp(32px, 6vw, 44px); }
  .hero-aside { align-items: flex-start; }
  .hero-aside .team-logo { width: clamp(220px, 46vw, 290px); }
  .hero-aside .btn { width: auto; justify-content: flex-start; }
}

/* ---------- stat band (light gray) ---------- */
.stats {
  background: var(--section-bg);
  padding: clamp(36px, 5vw, 64px) 0;
}
.stat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: clamp(24px, 4vw, 40px);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-num {
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0.02em;
}
.stat-label {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.45;
}
/* deliberately tiny — the caveat must not compete with the numbers */
.stats-note {
  margin: clamp(20px, 3vw, 28px) 0 0;
  font-family: var(--body);
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* ---------- story (white) — the portrait lives HERE ---------- */
.story { background: var(--paper); color: var(--ink); }
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 290px);
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}
.prose { max-width: 65ch; }
.prose p {
  font-family: var(--body);              /* Switzer — body copy is never Arapey */
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1.1em;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; }      /* Switzer tops out at 600 */
.prose a { color: var(--azure-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }

.story-lead-in { margin-bottom: 0.5em !important; }
.story-list {
  list-style: none;
  margin: 0 0 1.4em;
  padding: 0;
}
.story-list li {
  position: relative;
  padding-left: 1.5em;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.4em;
}
.story-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--azure);                   /* azure = list ticks + small marks */
}
.fn-ref {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
  font-weight: 600;
  color: var(--ink-soft);
}
.footnote {
  margin: clamp(28px, 4vw, 40px) 0 0;
  font-family: var(--body);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* portrait: supporting, never leading — soft circular crop, no frame */
.story-photo {
  margin: 0;
  max-width: 290px;
  width: 100%;
  justify-self: end;
}
.story-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 50%;
}
.story-photo figcaption {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- what I love (light gray) — cards get a top rule, not an outline ---------- */
.help { background: var(--section-bg); }
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* 2 × 2 */
  gap: clamp(20px, 3vw, 36px);
  margin-bottom: 0;
}
.card {
  background: var(--paper);              /* white card on the gray section */
  border: 0;
  border-top: 3px solid var(--azure-deep);   /* top edge only — never a blue box */
  border-radius: 0;
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  align-items: flex-start;
}
.card-love {                            /* Arapey Regular statement */
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(1.1875rem, 1.8vw, 1.375rem);
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
}

/* ---------- IDX home search (white) ---------- */
.idx { background: var(--paper); color: var(--ink); }
.idx-frame {
  background: var(--section-bg);         /* gray frame on the white section */
  border: 1px solid var(--line);
  border-top: 3px solid var(--azure-deep);
  border-radius: 0;
  padding: 8px;
  overflow: hidden;
}
/* IDX embeds (iframe) fill the frame responsively */
.idx-frame iframe {
  display: block;
  width: 100%;
  min-height: 640px;
  border: 0;
}
.idx-coming {
  margin: 0;
  padding: clamp(56px, 11vw, 112px) 20px;
  text-align: center;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* ---------- contact (BLACK band) ---------- */
.contact { background: var(--ink); color: #fff; text-align: center; }
.contact .section-intro { margin-left: auto; margin-right: auto; color: #E4E6E8; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.25em;
  display: flex;
  flex-wrap: wrap;
  gap: 22px 48px;
  justify-content: center;
}
.contact-list li { display: flex; flex-direction: column; gap: 6px; }
.contact-label {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9A9FA3;
}
.contact-list a {                        /* on black grounds, links are white */
  font-family: var(--body);
  font-size: 1.0625rem;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;               /* long emails wrap, never scroll */
}
.contact-list a:hover { color: var(--azure); }
.contact-static {
  font-family: var(--body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #C7CBCE;
}

/* ---------- newsletter (light gray) ---------- */
.newsletter { background: var(--section-bg); text-align: center; }
.newsletter .section-intro { margin-left: auto; margin-right: auto; }
.news-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
}
.news-form input {
  flex: 1 1 210px;
  min-width: 0;
  min-height: 48px;                 /* tap target */
  padding: 13px 16px;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
}
.news-form input::placeholder { color: #9A9FA3; }
.news-form input:focus { border-color: var(--azure-deep); outline: none; }
.news-form .btn { flex: 0 0 auto; cursor: pointer; border: 0; }
.news-thanks {
  margin: 20px 0 0;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--azure-deep);
}

.news-soon {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 22px;
  margin: 0;
}

/* ---------- footer (black) ---------- */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: clamp(48px, 7vw, 88px) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}
.footer-name {
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.footer-title {
  color: #C7CBCE;
  font-size: 0.9375rem;
  margin: 0 0 24px;
}
.footer-label {
  color: #C7CBCE;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-service-area {
  color: #E4E6E8;
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 46ch;
}
.footer-zips { color: #9A9FA3; margin: 0; font-size: 0.9375rem; line-height: 1.6; }
.social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 0;
  margin: 0;
}
.social a {
  color: #fff;                           /* on black grounds, links are white */
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
.social a:hover { color: var(--azure); }
.social-ico { width: 24px; height: 24px; display: block; }
.social-logo { height: 20px; width: auto; display: block; }
.social a:hover .social-logo { opacity: 0.75; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 32px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid #333;
}
.footer-address { color: #C7CBCE; margin: 0; font-size: 0.9375rem; line-height: 1.7; }
.footer-address a { color: #fff; overflow-wrap: anywhere; }
.footer-address a:hover { color: var(--azure); }
.footer-legal { color: #9A9FA3; font-size: 0.875rem; margin: 0; }

/* brokerage + accessibility disclaimers — quiet, but must stay legible
   (never below 12px) and never truncated */
.footer-disclaimer {
  margin-top: clamp(24px, 3.5vw, 34px);
  color: #9A9FA3;
  font-size: 0.8125rem;
  line-height: 1.65;
  max-width: 104ch;
}
.footer-disclaimer p { margin: 0 0 0.9em; }
.footer-disclaimer p:last-child { margin-bottom: 0; }
.footer-disclaimer a { color: #C7CBCE; text-decoration: underline; text-underline-offset: 3px; }
.footer-disclaimer a:hover { color: #fff; }

.footer-fineprint {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 32px;
  margin-top: clamp(22px, 3vw, 30px);
  padding-top: clamp(16px, 2.5vw, 22px);
  border-top: 1px solid #262626;
  color: #9A9FA3;
  font-size: 0.8125rem;
  line-height: 1.6;
}
.footer-fineprint p { margin: 0; }
.footer-fineprint a { color: #C7CBCE; text-decoration: underline; text-underline-offset: 3px; }
.footer-fineprint a:hover { color: #fff; }
/* compliance marks — the two stacked lockups (HUD, REALTOR®) match at 54px;
   DMAR is horizontal, so matching its height would blow out its width */
.footer-marks {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-marks a {
  display: block;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity .2s ease;
}
.footer-marks a:hover { opacity: 1; }
.footer-marks img { display: block; width: auto; }
.mark-eho     { height: 54px; }
.mark-realtor { height: 54px; }
.mark-dmar    { height: 22px; }

/* ---------- small screens: one column below 720px ---------- */
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .story-photo { justify-self: start; order: -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
}

/* ---------- accessibility ---------- */
:focus-visible { outline: 2px solid var(--azure-deep); outline-offset: 3px; }
.contact :focus-visible,
.site-footer :focus-visible { outline-color: var(--azure); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
