/* ============================================================
   VANGUARD PROPERTY TAX APPEALS — Shared Design System
   Aesthetic: Texas Luxury / Authority / Trust
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Nunito+Sans:wght@300;400;600;700&display=swap');

/* ---- Variables ---- */
:root {
  --navy:       #0c1d36;
  --navy-mid:   #152a4e;
  --gold:       #b8892a;
  --gold-light: #d4a84b;
  --gold-pale:  #f0e6ce;
  --cream:      #f8f5ef;
  --white:      #ffffff;
  --slate:      #3d5170;
  --gray:       #6b7a94;
  --light-gray: #e8ecf2;
  --text:       #1a243a;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Nunito Sans', sans-serif;

  --radius: 4px;
  --shadow: 0 4px 24px rgba(12,29,54,.10);
  --shadow-lg: 0 12px 48px rgba(12,29,54,.18);

  --max-w: 1160px;
  --section-pad: 96px 24px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p  { color: #3a4a62; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.gold-line {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 16px 0 28px;
}
.gold-line.center { margin-left: auto; margin-right: auto; }

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: var(--section-pad); }
.section--dark  { background: var(--navy); color: var(--white); }
.section--cream { background: var(--cream); }
.section--navy-mid { background: var(--navy-mid); color: var(--white); }

/* ---- NAVIGATION ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(12,29,54,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184,137,42,.2);
  padding: 0 32px;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--gold);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; color: var(--navy);
  flex-shrink: 0;
}
.nav-logo-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--white); line-height: 1.1; }
.nav-logo-sub  { font-family: var(--font-body); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.8); padding: 6px 12px; border-radius: 3px;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-cta {
  background: var(--gold); color: var(--navy) !important;
  padding: 8px 18px !important; border-radius: var(--radius);
  font-weight: 700 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; color: var(--navy) !important; }

/* mobile nav toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: all .3s; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: .85rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 32px; border-radius: var(--radius);
  transition: all .25s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--gold); color: var(--navy);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(184,137,42,.35); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-dark {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ---- HERO (shared) ---- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  padding: 160px 24px 100px;
  min-height: 480px;
  display: flex; align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(12,29,54,1) 0%, rgba(21,42,78,.92) 60%, rgba(12,29,54,.8) 100%);
  z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: saturate(.4) brightness(.5);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-content h1 { color: var(--white); }
.hero-content p  { color: rgba(255,255,255,.75); font-size: 1.1rem; margin: 20px 0 36px; max-width: 520px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- PAGE HEADER (inner pages) ---- */
.page-header {
  background: var(--navy);
  padding: 140px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-header h1 { color: var(--white); }
.page-header .eyebrow { text-align: center; display: block; }
.page-header p { color: rgba(255,255,255,.7); max-width: 580px; margin: 16px auto 0; font-size: 1.05rem; }

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 1.4rem;
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--gold);
  padding: 48px 24px;
}
.stats-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 700;
  color: var(--navy); line-height: 1;
}
.stat-label { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-top: 6px; opacity: .75; }

/* ---- TESTIMONIALS ---- */
.testimonial-card {
  background: var(--white);
  border-left: 4px solid var(--gold);
  padding: 32px 28px;
  border-radius: 0 6px 6px 0;
  box-shadow: var(--shadow);
}
.testimonial-text { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--text); line-height: 1.6; }
.testimonial-author { margin-top: 16px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; color: var(--gold); }

/* ---- PROCESS STEPS ---- */
.step {
  display: flex; gap: 24px; align-items: flex-start;
}
.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem; font-weight: 700;
  color: var(--gold); line-height: 1;
  flex-shrink: 0; width: 60px;
}
.step-content h3 { margin-bottom: 8px; }

/* ---- FOOTER ---- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 72px 24px 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  align-items: start;
}
.footer-brand p { color: rgba(255,255,255,.55); font-size: .9rem; margin-top: 16px; max-width: 280px; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-display); color: var(--white); font-size: 1rem; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: .88rem; align-items: flex-start; }
.footer-contact-item svg { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; font-size: .8rem; color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: var(--gold); }

/* ---- GRID HELPERS ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

/* ---- FAQ ACCORDION ---- */
.faq-item { border-bottom: 1px solid var(--light-gray); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; text-align: left; gap: 16px;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--text);
}
.faq-q svg { flex-shrink: 0; color: var(--gold); transition: transform .3s; }
.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 20px; color: #3a4a62; font-size: .96rem; line-height: 1.75; }
.faq-a.open { display: block; }
.faq-category-title {
  font-family: var(--font-body); font-size: .75rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  padding: 36px 0 8px; display: block;
}

/* ---- FORM ---- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .83rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--slate); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: .96rem; color: var(--text);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { height: 130px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---- BADGE ---- */
.badge {
  display: inline-block; padding: 4px 12px;
  background: var(--gold-pale); color: var(--gold);
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 2px;
}

/* ---- CHECK LIST ---- */
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.check-list li::before {
  content: '✓';
  color: var(--gold); font-weight: 700; flex-shrink: 0; margin-top: 2px;
}

/* ---- DIVIDER ---- */
.divider { border: none; border-top: 1px solid var(--light-gray); margin: 0; }

/* ---- HERO STATS BAR ---- */
.hero-stats-grid {
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.hero-stat { text-align: left; }
.hero-stat-num {
  font-family: var(--font-display); font-size: 2.6rem;
  font-weight: 700; color: var(--gold); line-height: 1;
}
.hero-stat-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 4px;
}
.hero-stat-divider {
  width: 1px; height: 48px; background: rgba(255,255,255,.15); flex-shrink: 0;
}
@media (max-width: 540px) {
  .hero-stats-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  }
  .hero-stat-divider { display: none; }
  .hero-stat { text-align: center; }
  .hero-stat-num { font-size: 2rem; }
}


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim { opacity: 0; animation: fadeUp .6s ease forwards; }
.anim-1 { animation-delay: .1s; }
.anim-2 { animation-delay: .2s; }
.anim-3 { animation-delay: .3s; }
.anim-4 { animation-delay: .4s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy); padding: 16px; gap: 4px; border-top: 1px solid rgba(255,255,255,.1); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-bar .container { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  /* Grid fixes */
  .grid-4 { grid-template-columns: 1fr; }
  .stats-bar .container { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Hero: prevent stats bar from overlapping hero content */
  .hero {
    padding-bottom: 280px;
    min-height: auto;
  }
  .hero > div[style*="position:absolute;bottom:0"] ,
  .hero > div[style*="position: absolute; bottom: 0"] {
    position: relative !important;
    background: rgba(12,29,54,.95) !important;
    padding: 24px 20px !important;
  }
  /* Hero stats row: wrap into 2x2 grid */
  .hero .container[style*="display:flex"],
  .hero .container > div[style*="display:flex"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }
  /* Hide the vertical dividers between stats */
  .hero div[style*="width:1px"] { display: none !important; }

  /* About page: fix the absolute-positioned callout card */
  .about-logo-wrap { position: relative; padding-bottom: 20px; margin-bottom: 40px; }
  div[style*="position:absolute;bottom:-20px;right:-20px"] {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    margin-top: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mission 3-col section: fix word-wrap crushing */
  .section--dark div[style*="grid-template-columns:repeat(3"] ,
  .section--dark div[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* How it works 4-col: stack vertically */
  div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }

  /* Page header padding */
  .page-header { padding: 110px 20px 48px; }

  /* Section padding */
  .section { padding: 56px 20px; }

  /* Prevent text overflow in centered grid columns */
  .section--dark [style*="text-align:center"] p,
  .section--dark [style*="text-align: center"] p {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}
