/*
Theme Name: Legacy Tax Advisors
Theme URI: https://legacytax.us
Author: Legacy Tax Advisors
Description: Premium private-client tax consulting theme for Legacy Tax Advisors.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: legacy-tax-advisors
*/

/* ══════════════════════════════════════
   DESIGN TOKENS
   ══════════════════════════════════════ */
:root {
  --gold:         #C8B06B;
  --gold-light:   #D8C48A;
  --gold-dark:    #A8923F;
  --black:        #1A1A1A;
  --charcoal:     #2C2C2A;
  --stone:        #F8F6F2;
  --cream:        #ECE8E0;
  --warm-gray:    #777;
  --night-bg:     #131210;
  --night-surface:#1E1C18;
  --night-text:   #ECE8E0;
  --night-muted:  #6A6A5E;
  --night-border: #2A2820;
  --serif:        'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans:         'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ══════════════════════════════════════
   RESET
   ══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--serif);
  background: var(--stone);
  color: var(--black);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.ui { font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ══════════════════════════════════════
   NAV
   ══════════════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(19,18,16,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.nav-logo img,
.nav-logo .custom-logo {
  height: 32px !important;
  width: auto !important;
  max-height: 32px !important;
}

.nav-logo-placeholder {
  width: 140px; height: 44px;
  border: 1px dashed rgba(200,176,107,.4); border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 9px; color: rgba(200,176,107,.5);
  letter-spacing: 1.5px; text-transform: uppercase;
}

.nav-links { display: flex; gap: 0; }
.nav-links a {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  padding: 22px 20px; transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--black);
  background: var(--gold); padding: 9px 24px; border-radius: 3px;
  transition: all .2s;
}
.nav-cta:hover { background: var(--gold-light); }

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  min-height: 85vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 48px 60px;
  background: var(--night-bg); color: var(--night-text);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
}
.hero-inner { max-width: 780px; }
.hero-eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.hero h1 {
  font-size: 52px; font-weight: 700; line-height: 1.15;
  margin-bottom: 12px; letter-spacing: -.5px;
}
.hero-rule { width: 56px; height: 1px; background: var(--gold); margin: 20px 0 24px; }
.hero-sub {
  font-size: 19px; line-height: 1.7;
  color: #9A9890; max-width: 620px; margin-bottom: 36px;
}
.hero-cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.btn-primary {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--black);
  background: var(--gold); padding: 14px 32px; border-radius: 3px;
  transition: all .2s; display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); }

.btn-outline {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold); padding: 13px 32px; border-radius: 3px;
  transition: all .2s; display: inline-block;
}
.btn-outline:hover { background: rgba(200,176,107,.1); }

/* ══════════════════════════════════════
   QUALIFICATION GATE
   ══════════════════════════════════════ */
.gate {
  background: var(--black); color: var(--night-text);
  padding: 56px 48px; text-align: center;
  border-top: 1px solid var(--night-border);
}
.gate-label {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
}
.gate-grid {
  display: flex; justify-content: center; gap: 48px;
  flex-wrap: wrap; max-width: 700px; margin: 0 auto;
}
.gate-item { text-align: center; }
.gate-num {
  font-family: var(--sans); font-size: 36px; font-weight: 600;
  color: var(--gold); line-height: 1.2;
}
.gate-desc {
  font-family: var(--sans); font-size: 12px; color: var(--night-muted);
  letter-spacing: .5px; margin-top: 4px;
}
.gate-or {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--night-muted); align-self: center; letter-spacing: 2px;
}
.gate-note {
  font-family: var(--sans); font-size: 14px; color: #6A6A5E;
  margin-top: 24px; max-width: 560px;
  margin-left: auto; margin-right: auto;
}

/* ══════════════════════════════════════
   CONTENT SECTIONS
   ══════════════════════════════════════ */
.content-section {
  max-width: 900px; margin: 0 auto;
  padding: 80px 48px;
}
.section-rule { max-width: 900px; margin: 0 auto; height: 1px; background: #D8D4CC; }
.section-eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.content-section h2 {
  font-size: 34px; font-weight: 700; line-height: 1.2; margin-bottom: 6px;
}
.gold-rule { width: 48px; height: 1px; background: var(--gold); margin: 14px 0 20px; }
.content-section p { font-size: 16px; line-height: 1.8; margin-bottom: 14px; color: var(--charcoal); }
.content-section .lead-p { font-size: 17px; color: var(--warm-gray); margin-bottom: 28px; }

/* ══════════════════════════════════════
   DIFFERENTIATORS
   ══════════════════════════════════════ */
.diff-section { background: #fff; padding: 80px 48px; }
.diff-inner { max-width: 900px; margin: 0 auto; }
.diff-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 32px;
}
.diff-card {
  padding: 28px; border: 1px solid #E8E4DC; border-radius: 8px;
  transition: border-color .2s;
}
.diff-card:hover { border-color: var(--gold); }
.diff-card h4 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.diff-card p { font-size: 14px; line-height: 1.75; color: var(--warm-gray); }
.diff-card .card-label {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}

/* ══════════════════════════════════════
   ECOSYSTEM
   ══════════════════════════════════════ */
.ecosystem {
  background: var(--night-bg); color: var(--night-text);
  padding: 80px 48px;
}
.eco-inner { max-width: 900px; margin: 0 auto; }
.eco-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 32px;
}
.eco-card {
  background: var(--night-surface); border: 1px solid var(--night-border);
  border-radius: 8px; padding: 24px;
  transition: border-color .2s;
}
.eco-card:hover { border-color: var(--gold); }
.eco-card .eco-num {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--gold); margin-bottom: 8px; letter-spacing: 1px;
}
.eco-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.eco-card p { font-size: 13px; line-height: 1.7; color: var(--night-muted); }

/* ══════════════════════════════════════
   CASE STUDIES
   ══════════════════════════════════════ */
.cases-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 20px; margin-top: 32px;
}
.case-card {
  border: 1px solid #E8E4DC; border-radius: 8px; padding: 28px;
  transition: border-color .2s;
}
.case-card:hover { border-color: var(--gold); }
.case-card .case-label {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.case-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.case-card p { font-size: 14px; line-height: 1.75; color: var(--warm-gray); }

/* ══════════════════════════════════════
   CTA BAND
   ══════════════════════════════════════ */
.cta-band {
  background: var(--black); color: #fff;
  padding: 80px 48px; text-align: center;
  position: relative;
}
.cta-band::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--gold);
}
.cta-band h2 { font-size: 36px; font-weight: 700; margin-bottom: 10px; }
.cta-band .gold-rule { width: 48px; height: 1px; background: var(--gold); margin: 16px auto 20px; }
.cta-band p {
  font-size: 16px; color: #9A9890; margin-bottom: 28px;
  max-width: 500px; margin-left: auto; margin-right: auto;
}
.cta-contact-line {
  font-family: var(--sans); font-size: 13px; color: #555; margin-top: 16px;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
  background: var(--night-bg); color: var(--night-muted);
  padding: 48px; text-align: center;
  border-top: 1px solid var(--night-border);
}
.footer-logo { margin: 0 auto 20px; }
.footer-logo img { height: 48px; width: auto; margin: 0 auto; }
.footer-logo-placeholder {
  width: 120px; height: 48px; margin: 0 auto 20px;
  border: 1px dashed rgba(200,176,107,.3); border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 8px; color: rgba(200,176,107,.4);
  letter-spacing: 1.5px; text-transform: uppercase;
}
.footer-links {
  font-family: var(--sans); font-size: 12px; margin-bottom: 16px;
}
.footer-links a {
  color: var(--night-muted); padding: 0 12px; transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-family: var(--sans); font-size: 11px; }
.footer-location { font-family: var(--sans); font-size: 11px; margin-top: 4px; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 900px) {
  .diff-grid { grid-template-columns: 1fr; }
  .eco-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero { padding: 120px 24px 60px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .site-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .eco-grid { grid-template-columns: 1fr; }
  .content-section { padding: 60px 24px; }
  .diff-section, .ecosystem, .gate, .cta-band { padding: 60px 24px; }
  .gate-grid { gap: 24px; }
}
