/* ================================================
   ALJ HOMES — Shared Design System
   Ashley Leyva · Lawrenceville, GA · All of Georgia
   ================================================ */

/* ─── Tokens ─────────────────────────────────── */
:root {
  --ink:        #0C0B09;
  --ink-2:      #181612;
  --warm:       #F8F4EE;
  --warm-2:     #F1EBE1;
  --warm-3:     #E5DDD1;
  --stone:      #5C5750;
  --muted:      #8C8780;
  --faint:      #BEB9B3;
  --gold:       #A07830;
  --gold-lt:    #C09448;
  --gold-dk:    #7A5820;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'Montserrat', system-ui, sans-serif;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --max:        1180px;
}

/* ─── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; font-size: 16px; }
body { background: var(--warm); color: var(--ink); font-family: var(--sans); overflow-x: hidden; }
a    { color: inherit; text-decoration: none; }
img  { display: block; max-width: 100%; }
::selection { background: var(--gold); color: #fff; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--warm); }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* ─── Layout ──────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 52px; }
@media (max-width: 720px) { .wrap { padding: 0 24px; } }

/* ─── NAV ─────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px 52px;
  transition: padding .5s var(--ease), background .5s var(--ease), border-color .5s;
}
.nav.scrolled {
  padding: 16px 52px;
  background: rgba(248,244,238,.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(160,120,48,.10);
}
/* Transparent state over dark heros */
.nav--dark .nav-logo  { color: #fff; }
.nav--dark .nav-a     { color: rgba(255,255,255,.65); }
.nav--dark .nav-a:hover { color: #fff; }
.nav--dark .nav-cta   { border-color: rgba(255,255,255,.4); color: #fff; }
.nav--dark .nav-cta:hover { background: #fff; color: var(--ink); }
.nav--dark .nav-ham span { background: #fff; }
/* Solid state */
.nav.scrolled .nav-logo  { color: var(--ink); }
.nav.scrolled .nav-a     { color: var(--stone); }
.nav.scrolled .nav-a:hover { color: var(--gold); }
.nav.scrolled .nav-cta   { border-color: var(--ink); color: var(--ink); }
.nav.scrolled .nav-cta:hover { background: var(--ink); color: var(--warm); }
.nav.scrolled .nav-ham span { background: var(--ink); }
/* Light-bg pages always show dark nav */
.nav--light .nav-logo  { color: var(--ink); }
.nav--light .nav-a     { color: var(--stone); }
.nav--light .nav-a:hover { color: var(--gold); }
.nav--light .nav-cta   { border-color: var(--ink); color: var(--ink); }
.nav--light .nav-cta:hover { background: var(--ink); color: var(--warm); }
.nav--light .nav-ham span { background: var(--ink); }

.nav-logo {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  letter-spacing: .08em; transition: color .3s; white-space: nowrap;
}
.nav-logo em { font-style: italic; color: var(--gold); }

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-a {
  font-size: 9.5px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; transition: color .3s; position: relative;
}
.nav-a.active { color: var(--gold) !important; }
.nav-a.active::after { right: 0 !important; }
.nav-a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 100%;
  height: 1px; background: var(--gold); transition: right .35s var(--ease);
}
.nav-a:hover::after { right: 0; }

.nav-cta {
  padding: 10px 24px; border: 1px solid; font-size: 9px; font-weight: 600;
  letter-spacing: .20em; text-transform: uppercase; transition: all .3s; white-space: nowrap;
}

.nav-ham { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-ham span { width: 24px; height: 1px; display: block; transition: all .3s; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-ham   { display: flex; }
  .nav       { padding: 24px; }
  .nav.scrolled { padding: 14px 24px; }
}

/* ─── Mobile Drawer ───────────────────────────── */
.mob-shade {
  position: fixed; inset: 0; background: rgba(12,11,9,.65);
  z-index: 97; opacity: 0; pointer-events: none; transition: opacity .35s;
}
.mob-shade.on { opacity: 1; pointer-events: all; }
.mob-drawer {
  position: fixed; top: 0; right: -100%; width: min(320px,86vw); height: 100vh;
  background: var(--warm); z-index: 98; padding: 88px 40px 40px;
  display: flex; flex-direction: column;
  border-left: 1px solid var(--warm-3);
  transition: right .45s var(--ease);
}
.mob-drawer.on { right: 0; }
.mob-x { position: absolute; top: 26px; right: 26px; font-size: 22px; font-weight: 300; color: var(--muted); cursor: pointer; }
.mob-drawer a {
  display: block; padding: 16px 0; font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--stone);
  border-bottom: 1px solid var(--warm-3); transition: color .3s;
}
.mob-drawer a:hover, .mob-drawer a.active { color: var(--gold); }
.mob-cta {
  margin-top: 32px; padding: 16px 28px; background: var(--ink); color: var(--warm) !important;
  text-align: center; letter-spacing: .20em !important;
  border-bottom: none !important;
}

/* ─── Mobile CTA Bar ──────────────────────────── */
.mob-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  display: none; grid-template-columns: 1fr 1fr;
  background: var(--ink); border-top: 1px solid rgba(255,255,255,.06);
}
@media (max-width: 720px) { .mob-bar { display: grid; } }
.mob-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px; font-size: 9px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.75); transition: all .3s;
}
.mob-bar a:first-child { border-right: 1px solid rgba(255,255,255,.06); }
.mob-bar a.cta { background: var(--gold); color: #fff; }
.mob-bar a.cta:hover { background: var(--gold-lt); }
.mob-bar a:hover { color: #fff; }
@media (max-width: 720px) { body { padding-bottom: 56px; } }

/* ─── Footer ──────────────────────────────────── */
.foot { background: var(--ink); padding: 88px 0 40px; }
.foot-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 56px;
  padding-bottom: 72px; border-bottom: 1px solid rgba(248,244,238,.06);
  margin-bottom: 40px;
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } }
.foot-brand { font-family: var(--serif); font-size: 26px; font-weight: 300; color: rgba(248,244,238,.88); margin-bottom: 14px; }
.foot-brand em { font-style: italic; color: var(--gold-lt); }
.foot-desc { font-size: 13px; color: rgba(248,244,238,.28); line-height: 1.85; font-weight: 300; max-width: 272px; margin-bottom: 28px; }
.foot-lic { display: flex; flex-wrap: wrap; gap: 7px; }
.foot-lic span { padding: 4px 11px; border: 1px solid rgba(248,244,238,.08); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(248,244,238,.22); }
.foot-col-h { font-size: 9px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.foot-col a { display: block; padding: 6px 0; font-size: 13px; color: rgba(248,244,238,.28); font-weight: 300; transition: color .3s; }
.foot-col a:hover { color: rgba(248,244,238,.7); }
.foot-bottom { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.foot-copy { font-size: 11px; color: rgba(248,244,238,.18); font-weight: 300; }
.foot-legal { font-size: 10px; color: rgba(248,244,238,.12); max-width: 560px; line-height: 1.8; font-weight: 300; }

/* ─── Shared Section Styles ───────────────────── */
.section { padding: 140px 0; }
.section--sm { padding: 100px 0; }
.section--dark { background: var(--ink-2); }
.section--warm2 { background: var(--warm-2); }
.section--warm3 { background: var(--warm-3); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 9.5px; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); flex-shrink: 0; }

.display {
  font-family: var(--serif); font-weight: 300; line-height: 1.04;
  letter-spacing: -.02em;
}
.display em { font-style: italic; font-weight: 400; color: var(--gold); }
.display--light em { color: var(--gold-lt); }
.display--white { color: rgba(248,244,238,.92); }

.h2 { font-family: var(--serif); font-size: clamp(36px,4.5vw,58px); font-weight: 300; line-height: 1.1; }
.h2 em { font-style: italic; color: var(--gold); }
.h2--white { color: rgba(248,244,238,.92); }
.h2--white em { color: var(--gold-lt); }

.body-lg { font-size: 16px; font-weight: 300; line-height: 1.95; color: var(--stone); }
.body-md { font-size: 14px; font-weight: 300; line-height: 1.9; color: var(--stone); }
.body-sm { font-size: 13px; font-weight: 300; line-height: 1.85; color: var(--muted); }

.rule { display: block; height: 1px; width: 48px; background: var(--gold); }
.rule--center { margin: 0 auto; }

/* ─── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 9.5px; font-weight: 600;
  letter-spacing: .20em; text-transform: uppercase;
  transition: all .3s var(--ease); cursor: pointer; border: none;
  white-space: nowrap;
}
.btn--ink   { padding: 17px 44px; background: var(--ink);  color: var(--warm); }
.btn--ink:hover   { background: var(--ink-2); transform: translateY(-2px); }
.btn--gold  { padding: 17px 44px; background: var(--gold); color: #fff; }
.btn--gold:hover  { background: var(--gold-lt); transform: translateY(-2px); }
.btn--outline-ink { padding: 16px 40px; border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn--outline-ink:hover { background: var(--ink); color: var(--warm); }
.btn--outline-w   { padding: 16px 40px; border: 1px solid rgba(248,244,238,.40); color: rgba(248,244,238,.85); background: transparent; }
.btn--outline-w:hover   { border-color: rgba(248,244,238,.85); color: #fff; }

/* ─── Trust Bar ───────────────────────────────── */
.trust-bar { background: var(--ink); padding: 44px 0; }
.trust-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; }
.trust-item {
  padding: 20px 48px; display: flex; flex-direction: column; align-items: center;
  border-right: 1px solid rgba(248,244,238,.06); text-align: center;
}
.trust-item:last-child { border-right: none; }
.trust-n { font-family: var(--serif); font-size: 42px; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.trust-l { font-size: 8.5px; font-weight: 600; letter-spacing: .20em; text-transform: uppercase; color: rgba(248,244,238,.30); }
@media (max-width: 700px) {
  .trust-item { padding: 16px 28px; border-right: none; border-bottom: 1px solid rgba(248,244,238,.06); }
  .trust-item:last-child { border-bottom: none; }
}

/* ─── Testimonials ────────────────────────────── */
.tcard {
  background: var(--warm-2); padding: 48px 40px;
  position: relative; overflow: hidden;
  transition: all .5s var(--ease);
}
.tcard:hover { background: var(--warm-3); transform: translateY(-4px); box-shadow: 0 20px 48px rgba(12,11,9,.06); }
.tcard::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.tcard:hover::before { transform: scaleX(1); }
.tcard-stars { color: var(--gold); font-size: 12px; letter-spacing: 3px; margin-bottom: 22px; }
.tcard-q {
  font-family: var(--serif); font-style: italic; font-size: 18px; font-weight: 300;
  line-height: 1.75; color: var(--ink); margin-bottom: 32px; padding-top: 8px; position: relative;
}
.tcard-q::before {
  content: '\201C'; font-family: var(--serif); font-size: 96px; font-style: italic;
  color: var(--gold); opacity: .09;
  position: absolute; top: -24px; left: -6px; line-height: 1; user-select: none;
}
.tcard-who { display: flex; align-items: center; gap: 12px; }
.tcard-av {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-dk), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 16px; color: #fff;
}
.tcard-name { font-weight: 600; font-size: 12px; color: var(--ink); margin-bottom: 2px; }
.tcard-role { font-size: 10px; color: var(--muted); }

/* ─── Forms ───────────────────────────────────── */
.fi, .fs, .fta {
  width: 100%; padding: 16px 20px;
  background: #fff; border: 1px solid var(--warm-3);
  color: var(--ink); font-size: 14px; font-family: var(--sans); font-weight: 300;
  outline: none; transition: border-color .3s; border-radius: 0; -webkit-appearance: none;
}
.fi::placeholder, .fta::placeholder { color: var(--faint); }
.fi:focus, .fs:focus, .fta:focus { border-color: var(--gold); }
.fta { resize: vertical; min-height: 112px; }
.fs { cursor: pointer; color: var(--ink); }
.fs option { background: #fff; color: var(--ink); }

/* ─── Reveal ──────────────────────────────────── */
.r { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.r.on { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .17s; }
.d3 { transition-delay: .26s; }
.d4 { transition-delay: .34s; }

/* ─── Logo ────────────────────────────────────── */
.nav-logo-img {
  height: 44px; width: auto; display: block;
  transition: opacity .3s;
}
.nav-logo-img:hover { opacity: .85; }

/* ─── Branded SVG Icons ───────────────────────── */
.ico {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ico svg { display: block; }

/* Icon containers for contact/wyg/segment cards */
.ico-wrap {
  width: 48px; height: 48px; border: 1px solid var(--warm-3);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ico-wrap--dark {
  width: 48px; height: 48px; border: 1px solid rgba(248,244,238,.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: border-color .3s;
}
.ico-wrap--dark:hover { border-color: var(--gold); }

/* ─── Shared Nav/Foot JS ──────────────────────── */
