/* ==========================================================================
   Accurate Appraisal Group — Design System
   ========================================================================== */

:root {
  /* Color palette — light, trustworthy, Texas-professional */
  --navy-900: #0a2540;
  --navy-800: #0f3357;
  --navy-700: #16436e;
  --blue-50:  #eef6ff;
  --blue-100: #e0f0ff;
  --gold-500: #c8932a;
  --gold-600: #b17e1c;
  --ink-900:  #101418;
  --ink-700:  #3a4552;
  --ink-500:  #66707c;
  --line:     #dde5ec;
  --white:    #ffffff;
  --success-bg: #e9f7ef;
  --success-ink: #1e7a43;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06), 0 1px 1px rgba(10,37,64,0.04);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 20px 48px rgba(10, 37, 64, 0.14);

  --max-width: 1180px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 16px; color: var(--ink-700); }
.lede { font-size: 1.15rem; color: var(--ink-700); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold-500); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-600); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--navy-900); }
.btn-outline:hover { border-color: var(--navy-900); }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--navy-900);
}
.brand .mark {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
  flex-shrink: 0;
}
.brand small { display: block; font-weight: 500; font-size: 0.68rem; color: var(--ink-500); letter-spacing: 0.03em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-700);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-900); border-color: var(--gold-500); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--navy-900); position: relative; transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 20px 24px 28px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: 0.18s ease; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav-cta .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 140% at 15% 0%, var(--blue-50) 0%, var(--white) 55%);
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 10px; }
.hero-note { font-size: 0.88rem; color: var(--ink-500); }

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}
.hero-card h4 { margin-bottom: 6px; }
.hero-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.hero-stat { background: var(--blue-50); border-radius: var(--radius-md); padding: 16px; }
.hero-stat .num { font-size: 1.6rem; font-weight: 800; color: var(--navy-900); }
.hero-stat .lbl { font-size: 0.8rem; color: var(--ink-500); font-weight: 600; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--navy-900); padding: 28px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
@media (max-width: 800px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
.trust-item .num { color: var(--white); font-size: 1.8rem; font-weight: 800; }
.trust-item .lbl { color: rgba(255,255,255,0.65); font-size: 0.82rem; font-weight: 600; margin-top: 2px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }
.bg-tint { background: var(--blue-50); }
.bg-navy { background: var(--navy-900); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.75); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--navy-800);
}
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-700); }
.card ul li { margin-bottom: 6px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 24px 20px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy-900); color: var(--white);
  font-weight: 800; font-size: 0.95rem;
  margin-bottom: 14px;
}

/* ---------- Stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
@media (max-width: 700px) { .stat-strip { grid-template-columns: 1fr; } }
.stat-strip .num { font-size: 2.2rem; font-weight: 800; color: var(--navy-900); }
.stat-strip .lbl { color: var(--ink-500); font-weight: 600; font-size: 0.9rem; }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm); }
.testimonial .stars { color: var(--gold-500); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial .who { font-weight: 700; color: var(--navy-900); margin-top: 14px; }
.testimonial .role { color: var(--ink-500); font-size: 0.86rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  color: var(--white);
}
.cta-banner h2, .cta-banner p { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.75); margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 36px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy-900); }
.field .hint { font-size: 0.8rem; color: var(--ink-500); margin-top: 4px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--ink-900);
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(15,51,87,0.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.form-note { background: var(--blue-50); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 0.86rem; color: var(--ink-700); margin-bottom: 24px; }
.form-success { display: none; background: var(--success-bg); color: var(--success-ink); border-radius: var(--radius-sm); padding: 16px; font-weight: 600; margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 0; font-weight: 700; font-size: 1.02rem; color: var(--navy-900);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-sans);
}
.faq-q .plus { font-size: 1.3rem; color: var(--gold-600); transition: transform 0.15s ease; flex-shrink: 0; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.2s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding-bottom: 20px; }

/* ---------- Table (for service area / counties) ---------- */
.county-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 30px; }
@media (max-width: 700px) { .county-grid { grid-template-columns: repeat(2, 1fr); } }
.county-grid li { list-style: none; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-700); font-weight: 600; }

/* ---------- Blog ---------- */
.post-card img { border-radius: var(--radius-md) var(--radius-md) 0 0; aspect-ratio: 16/9; object-fit: cover; background: var(--blue-50); }
.post-card .body { padding: 22px; }
.post-card .tag { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--navy-800); background: var(--blue-50); padding: 4px 10px; border-radius: 20px; margin-bottom: 10px; }
.post-card .meta { font-size: 0.82rem; color: var(--ink-500); margin-top: 10px; }
.post-body { max-width: 740px; margin: 0 auto; }
.post-body h2 { margin-top: 36px; }
.post-body blockquote { border-left: 3px solid var(--gold-500); margin: 24px 0; padding: 4px 20px; color: var(--ink-700); font-style: italic; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--ink-500); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--navy-900); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; margin-bottom: 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 0.82rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { margin-left: 18px; }
.disclaimer { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 18px; max-width: 900px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-50); color: var(--navy-800); font-weight: 700; font-size: 0.8rem; padding: 6px 12px; border-radius: 20px; }
.divider { height: 1px; background: var(--line); margin: 48px 0; border: none; }
.page-hero { padding: 56px 0 48px; background: var(--blue-50); border-bottom: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
