/* All Pro Home Inspection Services — shared styles (tokens, buttons, nav, footer, modal). */
/* Inter (variable, latin) — SIL Open Font License; hosted here instead of loading from Google. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --navy: #1a2744;
  --navy-2: #243a6b;
  --gold: #d4860a;
  --gold-d: #b8720a;
  --muted: #5a6a8a;
  --line: #e4eaf2;
  --bg: #f8fafc;
  --tint: #eef2fa;
  --gold-tint: #fdf3e1;
  --shadow: 0 12px 32px rgba(26,39,68,0.10);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { font-family: 'Inter', 'Segoe UI', Arial, sans-serif; color: var(--navy); background: #fff; -webkit-font-smoothing: antialiased; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--navy); }
.section-lead { font-size: 17px; color: var(--muted); line-height: 1.65; margin-top: 14px; max-width: 640px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: 15px; font-weight: 700; padding: 14px 26px; border-radius: 12px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .1s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 6px 16px rgba(212,134,10,0.28); }
.btn-gold:hover { background: var(--gold-d); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-ghost-dark { color: var(--navy); border-color: #cfd8e8; background: #fff; }
.btn-ghost-dark:hover { border-color: var(--navy); }



/* ── NAV ── */
nav { background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); height: 72px; position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1120px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-icon { width: 44px; height: 44px; flex-shrink: 0; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand-top { font-size: 21px; font-weight: 900; letter-spacing: 0.5px; color: var(--navy); white-space: nowrap; }
.nav-brand-sub { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: 1.1px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 9px 14px; border-radius: 10px; color: #3b4a68; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.nav-link:hover { background: var(--tint); color: var(--navy); }
.nav-cta { margin-left: 8px; padding: 10px 20px; background: var(--gold); color: #fff; border-radius: 10px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .2s; }
.nav-cta:hover { background: var(--gold-d); }
.hamburger { display: none; background: none; border: 1.5px solid #d0d8e8; border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--navy); }
.hamburger svg { width: 20px; height: 20px; display: block; }
.mobile-menu { display: none; position: absolute; top: 64px; right: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(26,39,68,0.16); padding: 8px; z-index: 200; min-width: 220px; }
.mobile-menu.open { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu .nav-link { display: block; padding: 12px 14px; }
@media (max-width: 860px) {
  .nav-links .nav-link, .nav-links .nav-cta { display: none; }
  .hamburger { display: block; }
  .nav-brand-sub { display: none; }
}



/* ── STATS ── */
.stats { margin-top: -66px; position: relative; z-index: 2; }
.stats-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -0.02em; color: var(--navy); line-height: 1.1; }
.stat span { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
@media (max-width: 700px) {
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stat b { font-size: 26px; white-space: nowrap; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ── FOOTER ── */
.footer-main { background: #111d33; padding: 56px 0 40px; color: #fff; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand-logo { width: 46px; height: 46px; }
.footer-brand-top { font-size: 20px; font-weight: 900; line-height: 1.1; }
.footer-brand-sub { font-size: 10px; font-weight: 700; color: #7f8fae; letter-spacing: 1.1px; text-transform: uppercase; }
.footer-tagline { font-size: 14px; color: #a8b8d8; line-height: 1.7; max-width: 300px; }
.footer-col-label { font-size: 12px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.footer-counties { font-size: 14px; color: #a8b8d8; line-height: 1.9; }
.footer-contact-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-contact-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.footer-contact-icon svg { width: 16px; height: 16px; color: var(--gold); }
.footer-contact-sublabel { font-size: 10px; font-weight: 700; color: #7f8fae; text-transform: uppercase; letter-spacing: 1px; }
.footer-contact-value { font-size: 15px; font-weight: 700; color: #fff; text-decoration: none; display: block; }
.footer-contact-value:hover { color: var(--gold); }
.footer-links { display: grid; gap: 8px; margin-top: 18px; }
.footer-links a { font-size: 14px; color: #a8b8d8; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { background: #0b1527; padding: 16px 24px; text-align: center; }
.footer-bottom p { font-size: 12.5px; color: #6a7a9a; }
.footer-bottom a { color: #6a7a9a; text-decoration: none; }
.footer-bottom a:hover { color: #a8b8d8; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }



/* ── MODAL ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15,27,51,0.6); backdrop-filter: blur(3px); z-index: 500; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 22px; padding: 36px; max-width: 540px; width: 100%; position: relative; box-shadow: 0 24px 60px rgba(10,20,45,0.35); max-height: 90vh; overflow-y: auto; }
@media (max-width: 600px) { .modal { padding: 26px 20px; } .modal-overlay { align-items: flex-start; padding: 16px; } }
.modal h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 14px; letter-spacing: -0.01em; padding-right: 28px; }
.modal p { font-size: 15px; color: #4a5568; line-height: 1.7; margin-bottom: 14px; }
.modal ul { padding-left: 20px; margin-bottom: 14px; }
.modal ul li { font-size: 15px; color: #4a5568; line-height: 1.7; margin-bottom: 6px; }
.modal-close { position: absolute; top: 16px; right: 18px; background: var(--tint); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 15px; color: var(--muted); cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--navy); background: #dfe7f5; }
  

.nav-link.active { color: var(--navy); background: var(--tint); }
