/* AB Multi Family — abmultifamily.com
   Direction B "Clean Contrast" */

:root {
  --navy: #0D1424;
  --navy-2: #16213A;
  --navy-line: #33456B;
  --slate: #1F2A44;
  --ink: #111111;
  --body: #444444;
  --muted: #555555;
  --line: #E5E5E5;
  --gray: #F4F5F7;
  --tint: #EEF1F6;
  --red: #CC2222;
  --red-dark: #A81B1B;
  --red-soft: #FBEAEA;
  --pink: #E88A8A;
  --sub: #C3CBDA;
  --radius: 18px;
  --head: "Inter Tight", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --space: clamp(64px, 8vw, 110px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--text); color: var(--ink); background: #FFFFFF; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--slate); }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; background: #FFFFFF; color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--space) 0; }
.section-tight { padding: 0 0 var(--space); }
.section-gray { background: var(--gray); }
.dark { background: var(--navy); color: #FFFFFF; }

/* Type */
.eyebrow { font-size: 14px; font-weight: 600; color: var(--red); }
.dark .eyebrow { color: var(--pink); }
.h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.04; letter-spacing: -0.035em; }
.h1-xl { font-size: clamp(46px, 7vw, 96px); line-height: 1.02; letter-spacing: -0.035em; }
.h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; }
.h3 { font-size: 21px; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--body); }
.dark .lead { color: var(--sub); }
.head-block { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #FFFFFF; }
.btn-red:hover { background: var(--red-dark); color: #FFFFFF; }
.btn-white { background: #FFFFFF; color: var(--ink); }
.btn-white:hover { color: var(--ink); background: #F1F1F1; }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { color: #FFFFFF; background: #2A2A2A; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { color: var(--ink); background: var(--gray); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center { text-align: center; align-items: center; justify-content: center; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; color: #FFFFFF; text-decoration: none; }
.brand:hover { color: #FFFFFF; }
.brand img { height: 36px; width: auto; }
.brand span { font-family: var(--head); font-weight: 600; font-size: 17px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav-links a { color: #FFFFFF; text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav-links a[aria-current="page"] { border-bottom-color: var(--red); }
.nav-links a.btn { padding: 0 20px; min-height: 44px; border-bottom: none; color: #FFFFFF; }
.lang { color: #B8C0D0; font-size: 14px; }
.lang a { color: #B8C0D0; border: none; padding: 0; }
.lang strong { color: #FFFFFF; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3); background: transparent; color: #FFFFFF; align-items: center; justify-content: center; cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; padding: 0 0 24px; font-size: 18px; font-weight: 500; position: relative; z-index: 5; }
.mobile-menu a { color: #FFFFFF; text-decoration: none; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.mobile-menu.open { display: flex; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}

/* Heroes */
.hero { position: relative; overflow: hidden; }
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding: clamp(56px, 9vw, 130px) 0 clamp(80px, 11vw, 170px); }
.hero-inner .lead { max-width: 620px; }
.badge { font-size: 14px; font-weight: 500; color: #D5DBE6; border: 1px solid rgba(255,255,255,0.28); padding: 8px 16px; border-radius: 999px; }
.hero-note { font-size: 14px; color: #9AA6BD; }
.page-hero { padding: clamp(40px, 6vw, 90px) 0 clamp(56px, 7vw, 110px); }
.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split > * { flex: 1 1 400px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.art { position: relative; min-height: 360px; border-radius: 24px; overflow: hidden; background: var(--navy-2); }
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; background: #FFFFFF; color: var(--ink); text-decoration: none; }
a.card { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
a.card:hover { color: var(--ink); border-color: #CFCFD4; transform: translateY(-3px); box-shadow: 0 16px 40px rgba(13,20,36,0.08); }
.card p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.card .more { margin-top: auto; color: var(--red); font-weight: 600; font-size: 15px; }
.section-gray .card { border-color: transparent; }
.card-gray { background: var(--gray); border-color: transparent; }
.card-dark { background: var(--navy); color: #FFFFFF; border-color: transparent; }
.card-dark p { color: var(--sub); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); display: flex; align-items: center; justify-content: center; }
.icon svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Steps (scroll moment) */
.step-num { width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--red); color: var(--red); display: flex; align-items: center; justify-content: center; font-weight: 700; transition: background .5s ease, color .5s ease; }
.steps .step.lit .step-num { background: var(--red); color: #FFFFFF; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Featured listing */
.feature { display: flex; flex-wrap: wrap; border-radius: 24px; overflow: hidden; background: var(--navy); color: #FFFFFF; }
.feature-art { position: relative; flex: 1 1 420px; min-height: 360px; overflow: hidden; }
.feature-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature-body { flex: 1 1 380px; padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.feature-body p { color: var(--sub); font-size: 17px; line-height: 1.55; }
.tag { position: absolute; left: 20px; top: 20px; background: var(--red); color: #FFFFFF; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; z-index: 1; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form input { flex: 1 1 220px; min-width: 0; height: 52px; border-radius: 999px; padding: 0 20px; font-size: 16px; border: 1px solid #D4D4D8; background: #FFFFFF; color: var(--ink); }
.feature .inline-form input { border-color: var(--navy-line); background: var(--navy-2); color: #FFFFFF; }
.feature .inline-form input::placeholder { color: #8E9AB3; }
.form-msg { font-size: 15px; font-weight: 500; min-height: 1em; }

/* About */
.portrait { width: 100%; height: clamp(380px, 38vw, 560px); object-fit: cover; object-position: center 18%; border-radius: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.chips span { background: var(--tint); color: var(--slate); padding: 8px 14px; border-radius: 999px; }
.dark .chips span { background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,0.28); }
.prose { display: flex; flex-direction: column; gap: 20px; color: #333333; font-size: 18px; line-height: 1.7; }

/* Report preview */
.boxed { border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 4vw, 56px); }
.report { background: #FFFFFF; border-radius: 16px; box-shadow: 0 24px 60px rgba(13,20,36,0.16); overflow: hidden; font-size: 14px; }
.report-head { background: #111111; color: #FFFFFF; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.report-head strong { letter-spacing: 0.06em; }
.report-head span { font-size: 12px; color: #BDBDBD; }
.report-bar { height: 4px; background: var(--red); }
.report-grid { padding: 18px 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metric { border: 1px solid var(--line); border-top: 3px solid #111111; padding: 12px; }
.metric small { display: block; color: #8A1A1A; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; }
.metric b { display: block; font-family: var(--head); font-weight: 600; font-size: 26px; }
.metric span { color: var(--muted); }
.report-note { padding: 0 20px 16px; color: #6B6B6B; font-size: 12px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; font-size: 15px; }
.tiles span { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }

/* Strip + CTA */
.strip { border: 1px solid var(--line); border-radius: 20px; padding: 32px clamp(24px, 3vw, 40px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.strip-gray { background: var(--gray); border-color: transparent; }
.cta { background: var(--navy); color: #FFFFFF; border-radius: 28px; padding: clamp(44px, 6vw, 80px) clamp(24px, 4vw, 64px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.cta p { color: var(--sub); font-size: 18px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 14px; color: var(--muted); line-height: 1.6; max-width: 760px; }

/* Listings */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { cursor: pointer; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,0.3); }
.filters button[aria-pressed="true"] { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.listing-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 12px; }
.listing-card:hover { color: var(--ink); }
.listing-img { position: relative; height: 300px; border-radius: 20px; overflow: hidden; background: var(--navy); }
.listing-img svg, .listing-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wish { border: 2px dashed #D4D4D8; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 300px; }
.empty-note { display: none; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 10px; border-radius: 22px; overflow: hidden; }
.gallery > * { background: #E9EBF0; }
.gallery .main { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #6B7280; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.facts div { padding: 20px 22px; border-right: 1px solid #EEEEEE; border-bottom: 1px solid #EEEEEE; margin: 0 -1px -1px 0; }
.facts span { display: block; font-size: 13px; color: var(--muted); }
.facts b { font-family: var(--head); font-weight: 600; font-size: 24px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
th { text-align: left; background: var(--gray); }
th, td { padding: 14px 18px; }
tbody tr { border-top: 1px solid #EEEEEE; }
.agent-card { border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 16px 40px rgba(13,20,36,0.08); }
.agent { display: flex; align-items: center; gap: 14px; }
.agent img { width: 60px; height: 60px; border-radius: 999px; object-fit: cover; object-position: center 15%; }
.layout-main { display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 64px); align-items: flex-start; }
.layout-main > .main-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.layout-main > aside { flex: 1 1 320px; }

/* Booking */
.checks { display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.checks span { display: flex; align-items: center; gap: 12px; }
.checks svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.booking { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px rgba(13,20,36,0.08); min-height: 640px; background: #FFFFFF; }
.booking iframe { width: 100%; height: 700px; border: 0; display: block; }
.booking-fallback { padding: 40px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* Valuation form */
.vf { min-height: 100vh; display: flex; flex-direction: column; background: #FFFFFF; }
.vf-bar { height: 4px; background: #EEEEF0; }
.vf-bar i { display: block; height: 4px; width: 0; background: var(--red); transition: width .4s ease; }
.vf-head { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--pad); gap: 16px; }
.vf-head .brand { color: var(--ink); }
.vf-head .brand img { height: 34px; }
.vf-right { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.vf-close { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.vf-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 var(--pad) 100px; }
.vf-box { width: 100%; max-width: 760px; }
.vf-step { display: none; flex-direction: column; gap: 26px; }
.vf-step.active { display: flex; animation: stepIn .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.vf-q { font-family: var(--head); font-weight: 600; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; line-height: 1.12; }
.vf-input { border: none; border-bottom: 2px solid #CFCFD4; font-size: clamp(22px, 3vw, 30px); font-weight: 500; padding: 10px 0; width: 100%; outline: none; background: transparent; color: var(--ink); border-radius: 0; }
.vf-input:focus { border-bottom-color: var(--red); }
.vf-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.vf-choice { text-align: left; cursor: pointer; padding: 22px 24px; border-radius: 14px; font-size: 19px; font-weight: 500; color: var(--ink); border: 2px solid var(--line); background: #FFFFFF; transition: border-color .15s ease, background .15s ease; }
.vf-choice:hover { border-color: #CFCFD4; }
.vf-choice[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); }
.vf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.vf-hint { font-size: 14px; color: var(--muted); }
.vf-error { color: var(--red-dark); font-size: 15px; font-weight: 500; min-height: 1em; }
.vf-foot { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 20px var(--pad); background: linear-gradient(to top, #FFFFFF 70%, rgba(255,255,255,0)); font-size: 13px; color: var(--muted); }
.vf-back { border: 1px solid #CFCFD4; background: #FFFFFF; cursor: pointer; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink); visibility: hidden; }
.vf-done-icon { width: 64px; height: 64px; border-radius: 999px; background: var(--red-soft); display: flex; align-items: center; justify-content: center; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: clamp(64px, 8vw, 100px); }
.footer-grid { padding-top: 48px; padding-bottom: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; font-size: 14px; color: var(--muted); }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; }
.footer-grid strong { color: var(--ink); }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--red); }
.footer-grid a.strong { color: var(--slate); font-weight: 600; }
.footer-logo { height: 64px; width: auto; }
.footer-kw { height: 40px; width: auto; }
.legal { padding-top: 18px; padding-bottom: 32px; border-top: 1px solid #F0F0F0; font-size: 12px; color: #6B6B6B; line-height: 1.6; }

/* Simple pages */
.doc { max-width: 760px; display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.7; color: #333333; }
.doc h2 { font-size: 24px; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Language switch on light backgrounds */
.vf-head .lang, .vf-head .lang a { color: var(--muted); }
.vf-head .lang strong { color: var(--ink); }
