/* TC Legacy Holdings — brand tokens pulled from the logo */
:root {
  --navy: #163242;
  --navy-deep: #0f2431;
  --gold: #bb925e;        /* decorative only: lines, rings, borders */
  --gold-ink: #86632f;    /* gold for text & button fills (WCAG AA 4.5:1+) */
  --gold-soft: #e9dcc9;
  --paper: #f4f2ee;
  --white: #ffffff;
  --ink: #1d2a33;
  --muted: #5b6770;
  --line: #e2ddd4;
  --radius: 14px;
  --header-h: 76px;
  --shadow: 0 10px 30px rgba(15, 36, 49, 0.10);
  --font-head: "Lexend", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-gold { background: var(--gold-ink); color: var(--white); }
.btn-gold:hover { background: #6f5127; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: .6em 1em; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 54px; height: 54px; margin: -5px; }
.brand-text { font-family: var(--font-head); color: var(--navy); line-height: 1.05; }
.brand-text strong { display: block; font-weight: 500; font-size: 1.2rem; letter-spacing: .06em; }
.brand-text span { display: flex; align-items: center; gap: 6px; font-size: .72rem; letter-spacing: .28em; }
.brand-text span::before, .brand-text span::after { content: ""; width: 14px; height: 1px; background: var(--gold); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-family: var(--font-head); font-size: .98rem; color: var(--navy); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav .ext::after { content: " ↗"; font-size: .8em; color: var(--gold); }
.header-cta { display: flex; gap: 8px; }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .header-cta .btn-label { display: none; }
  .header-cta .btn { padding: .6em .7em; }
}
@media (max-width: 820px) {
  :root { --header-h: 66px; }
  .brand img { width: 48px; height: 48px; }
  .brand-text strong { font-size: 1.02rem; }
  .menu-toggle { display: block; order: 3; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--gold-ink); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(88vh, 760px); display: grid; align-items: center;
  color: var(--white); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(15,36,49,.88) 0%, rgba(15,36,49,.70) 40%, rgba(15,36,49,.15) 75%);
}
.hero-content { position: relative; z-index: 1; padding-block: 72px; }
.hero-content > * { max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head);
  font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,.9); margin: 0 0 32px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) {
  .hero::after { background: linear-gradient(180deg, rgba(15,36,49,.55) 0%, rgba(15,36,49,.88) 70%); }
  .hero { align-items: end; min-height: 620px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); margin: 0; }
.kicker { font-family: var(--font-head); color: var(--gold-ink); font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px; display: block; }

.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.why-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.why-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; height: auto; }
.why-card .body { padding: 28px 30px 32px; }
.why-card h3 { font-size: 1.4rem; display: flex; align-items: center; gap: 12px; }
.why-card h3 .icon { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: var(--navy); display: grid; place-items: center; flex: none; }
.why-card h3 .icon svg { width: 22px; height: 22px; }
.why-card p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } .section { padding-block: 64px; } }

.steps-wrap { background: var(--white); border-block: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; color: var(--white); background: var(--navy);
  box-shadow: 0 0 0 6px var(--gold-soft);
}
.steps h3 { font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); }
.steps-cta { margin-top: 44px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: var(--white); overflow: hidden; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: rgba(15,36,49,.82); }
.cta-inner { position: relative; z-index: 1; padding-block: 88px; text-align: center; }
.cta-inner h2 { color: var(--white); font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-inner p { color: rgba(255,255,255,.88); margin: 0 auto 30px; max-width: 34em; }
.cta-inner .hero-actions { justify-content: center; }

/* ---------- Properties page ---------- */
.page-bar { background: var(--navy); color: var(--white); }
.page-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.page-bar h1 { color: var(--white); font-size: 1.5rem; margin: 0; }
.page-bar p { margin: 0; color: rgba(255,255,255,.85); font-size: 1rem; }
.page-bar a { color: var(--gold-soft); font-weight: 600; text-decoration: none; }
.page-bar a:hover { text-decoration: underline; }
/* RentEngine's script sets an inline height (~600-700px) and the widget scrolls internally,
   so we force it to fill the screen below the header — otherwise it's a small box on phones. */
.listings-frame { display: block; width: 100%; border: 0; background: var(--white);
  height: calc(100vh - var(--header-h) - 72px) !important; height: calc(100dvh - var(--header-h) - 72px) !important; min-height: 520px; }
@media (max-width: 760px) {
  .page-bar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .listings-frame { height: calc(100vh - var(--header-h)) !important; height: calc(100dvh - var(--header-h)) !important; min-height: 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.82); font-size: .98rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-block: 56px 36px; }
.footer-logo { width: 230px; height: auto; margin-left: -26px; }
.site-footer .footer-heading { font-family: var(--font-head); color: var(--white); font-weight: 500; margin: 0 0 14px; font-size: 1rem; letter-spacing: .04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-phone { font-family: var(--font-head); font-size: 1.3rem; color: var(--white) !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px; font-size: .88rem; color: rgba(255,255,255,.6); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 480px) { .eyebrow { font-size: .7rem; letter-spacing: .14em; } .eyebrow::before { width: 18px; } }

/* ---------- Fair housing + legal links ---------- */
.footer-fair { display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px; font-size: .88rem; color: rgba(255,255,255,.72); }
.footer-fair img { flex: none; width: 44px; height: 44px; }
.footer-fair p { margin: 0; }
.footer-fair strong { color: var(--white); font-weight: 600; }
.footer-fair a { color: var(--gold-soft); text-decoration: underline; }
.legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.legal-links a { color: rgba(255,255,255,.75); }

/* ---------- Legal / text pages ---------- */
.legal { padding-block: 56px 88px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6em; }
.legal p, .legal li { color: #34424c; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal .updated { color: var(--muted); font-size: .95rem; margin-bottom: 2em; }
.legal .callout { background: var(--white); border-left: 4px solid var(--gold); padding: 18px 22px; border-radius: 8px; margin: 1.5em 0; }
.notfound { padding-block: 120px; text-align: center; }
.notfound .hero-actions { justify-content: center; }
