/* ============================================
   All States Equity Group — Design System
   Brand: gold #D0AA38 + charcoal (from logo)
   ============================================ */

:root {
  --ink: #2b2b2b;          /* charcoal for text (matches logo) */
  --ink-soft: #595959;     /* secondary text */
  --ink-faint: #6f6f6f;
  --bg: #ffffff;
  --bg-alt: #f8f6f1;       /* warm off-white section */
  --line: #e7e3d8;
  --brand: #b9922e;        /* deep gold for text/links (readable) */
  --gold: #d0aa38;         /* logo gold for fills */
  --brand-dark: #96751f;
  --brand-tint: #f7efd9;   /* light gold tint */
  --gold-text: #8a6d1e;    /* WCAG AA gold for text on white */
  --accent: #0fb07c;       /* green for form success only */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 43, 43, .08);
  --shadow-lg: 0 24px 60px rgba(43, 43, 43, .12);
  --max: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7a5f16;
  background: var(--brand-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--gold);
  color: #2b2b2b;
  box-shadow: 0 8px 20px rgba(208, 170, 56, .35);
}
.btn-primary:hover { background: #7a5f16; color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-text); }
.btn-lg { padding: 17px 38px; font-size: 1.06rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 46px; width: auto; }
.site-footer .logo-img { height: 42px; }
.logo-svg { height: 48px; width: auto; display: block; }
.logo-svg .lt1 { fill: #2b2b2b; }
.logo-svg .lt2 { fill: var(--brand); }
.site-footer .logo-svg { height: 44px; }
.site-footer .logo-svg .lt1 { fill: #f5f2ea; }
.site-footer .logo-svg .lt2 { fill: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .95rem;
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-text); }
.nav-cta { margin-left: 8px; }
.nav-links .nav-cta a {
  color: #2b2b2b;
  background: var(--gold);
  padding: 11px 22px;
  border-radius: 9px;
}
.nav-links .nav-cta a:hover { background: var(--brand); color: #fff; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--brand-tint) 0%, transparent 60%),
    linear-gradient(180deg, #fdfcf9 0%, #ffffff 100%);
  padding: 90px 0 70px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 34px; max-width: 34rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  margin-top: 18px;
  font-size: .88rem;
  color: var(--ink-faint);
}
.hero-note strong { color: var(--gold-text); }
.hero-art { position: relative; }
.hero-photo {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute;
  bottom: 22px;
  left: 22px;
  background: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(43, 43, 43, .22);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
}
.hero-badge .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #2b2b2b;
  display: grid;
  place-items: center;
  font-size: .85rem;
  flex-shrink: 0;
}

/* ---------- Card images ---------- */
.card-img {
  width: calc(100% + 56px);
  height: 170px;
  object-fit: cover;
  margin: -32px -28px 24px;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}
.photo-rounded {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

/* ---------- Stats bar ---------- */
.stats {
  background: #2b2b2b;
  color: #fff;
  padding: 44px 0;
  border-top: 4px solid var(--gold);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-value {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-value span { color: var(--gold); }
.stat-label {
  font-size: .85rem;
  color: #a9a49a;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 4px;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 620px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; color: var(--ink-soft); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--brand-tint);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--brand-dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-img + .card-icon {
  margin-top: -46px;
  position: relative;
  z-index: 2;
  background: var(--gold);
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(43, 43, 43, .2);
}
.card-img + .card-icon svg { stroke: #2b2b2b; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding: 32px 28px 32px 88px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 26px;
  top: 30px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: #2b2b2b;
  font-weight: 800;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .96rem; }
.steps.grid-3 { gap: 22px; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; }
.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-text);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>') center/contain no-repeat;
}
.checklist strong { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #232323, #2f2f2f 60%, #3b3b3b);
  color: #fff;
  border-radius: 20px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  border: 1px solid #3f3f3f;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #cfc9ba; max-width: 34rem; }
.cta-band .btn {
  background: var(--gold);
  color: #2b2b2b;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}
.cta-band .btn:hover { transform: translateY(-2px); background: #ddb84a; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.team-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.team-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 18px;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow);
}
.team-card h3 { margin-bottom: 2px; }
.team-role {
  color: var(--gold-text);
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.team-card p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9rem; }
.field label span { color: var(--gold-text); }
.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fdfcf9;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(208, 170, 56, .18);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-footnote { font-size: .85rem; color: var(--ink-faint); margin-top: 16px; }
.form-success {
  display: none;
  background: #e7f8f1;
  border: 1.5px solid var(--accent);
  color: #0a7a56;
  border-radius: 10px;
  padding: 16px 20px;
  font-weight: 600;
  margin-bottom: 22px;
}

/* ---------- Contact info ---------- */
.info-tile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.info-tile:last-child { border-bottom: none; }
.info-tile .card-icon { margin-bottom: 0; flex-shrink: 0; width: 46px; height: 46px; }
.info-tile h3 { font-size: 1.02rem; margin-bottom: 3px; }
.info-tile p, .info-tile a { color: var(--ink-soft); font-size: .95rem; text-decoration: none; }
.info-tile a:hover { color: var(--gold-text); }

/* ---------- Footer ---------- */
.site-footer {
  background: #262626;
  color: #a9a49a;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid #3b3b3b;
}
.site-footer .logo { margin-bottom: 14px; }
.site-footer p { font-size: .92rem; max-width: 26rem; }
.footer-col h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #a9a49a; text-decoration: none; font-size: .93rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: .84rem;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 90% -20%, var(--brand-tint) 0%, transparent 60%),
    #fdfcf9;
  padding: 70px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.page-hero .lead { max-width: 42rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 520px; }
  .grid-3, .steps.grid-3 { grid-template-columns: 1fr; }
  .grid-2, .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { padding: 48px 34px; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav-links .nav-cta a { display: inline-block; padding: 11px 22px; }
  .nav-cta { margin: 10px 0 0; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .logo-img { height: 38px; }
}

/* ---------- Polish pass: micro-interactions & finishing ---------- */
::selection { background: var(--gold); color: #2b2b2b; }
html { scroll-padding-top: 92px; }
:focus-visible { outline: 3px solid rgba(208, 170, 56, .7); outline-offset: 2px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.card { overflow: hidden; }
.card-img { transition: transform .5s ease; }
.card:hover .card-img { transform: scale(1.05); }

.nav-links li:not(.nav-cta) a { position: relative; display: inline-block; }
.nav-links li:not(.nav-cta) a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; border-radius: 1px; background: var(--gold); transition: width .25s ease; }
.nav-links li:not(.nav-cta) a:hover::after, .nav-links li:not(.nav-cta) a.active::after { width: 100%; }

.hero-photo { position: relative; z-index: 1; }
.hero-art::before { content: ""; position: absolute; top: 22px; left: 22px; right: -14px; bottom: -14px; border: 3px solid var(--gold); border-radius: 24px; opacity: .55; }

.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--gold); margin-top: 16px; }
.section-head.center h2::after { margin-left: auto; margin-right: auto; }

.step, .team-card { transition: transform .18s ease, box-shadow .18s ease; }
.step:hover, .team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.team-photo { transition: transform .3s ease; }
.team-card:hover .team-photo { transform: scale(1.06); }

.cta-band { position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: rgba(208, 170, 56, .13); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Mobile refinements ---------- */
@media (max-width: 560px) {
  .logo-svg { height: 38px; }
  .hero { padding: 56px 0 48px; }
  .hero-photo { height: 300px; }
  .hero-art::before { top: 14px; left: 14px; right: -8px; bottom: -8px; border-width: 2px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .cta-band { text-align: center; justify-content: center; }
  .cta-band .btn { width: 100%; }
  .page-hero { padding: 48px 0 40px; }
  .team-card, .step { padding: 26px 22px; }
  .step { padding-left: 82px; }
  h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .lead { font-size: 1.05rem; }
}

/* ---------- Accessibility additions ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #2b2b2b; color: #fff; padding: 12px 22px; border-radius: 0 0 10px 0;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }
.footer-col a { display: inline-block; padding: 4px 0; }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--gold); }
