/* San Antonio Rat Control — local-business design adapted from the client-supplied
   HomeTeam Pest Defense reference: azure-blue utility bar + CTAs, dark-navy hero and
   feature sections, mint stat cards, photo service cards, light review strip.
   Rat-only, connector-safe. */

:root {
  --navy-900: #0a2036;
  --navy-800: #0e2b45;
  --navy-700: #143a5c;
  --navy-600: #1c4a72;
  --blue-500: #1b9dd9;
  --blue-600: #1587c1;
  --blue-700: #10668f;
  --green-600: #3d9a54;
  --green-700: #327f45;
  --mint: #e6f0e9;
  --mint-100: #d9ebde;
  --mint-border: #cfe3d5;
  --gold: #f5b301;
  --ink: #16232e;
  --body: #46535f;
  --muted: #6b7883;
  --line: #e2e8ee;
  --gray-50: #f2f7fa;
  --gray-100: #e9f0f5;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(10, 32, 54, 0.14);
  --shadow-sm: 0 4px 14px rgba(10, 32, 54, 0.08);
  --radius: 14px;
  --f-display: 'Poppins', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--body);
  font-size: 17px;
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.24rem; }
p { margin: 0 0 1.1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--tight { padding: 44px 0; }
.section--gray { background: var(--gray-50); }
.eyebrow { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--blue-500); margin: 0 0 .6rem; }
.lead { font-size: 1.16rem; color: var(--body); }
.center { text-align: center; }
.measure { max-width: 760px; }
.measure.center { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-display); font-weight: 600; font-size: 1rem; border-radius: 8px; padding: .8rem 1.5rem; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-blue { background: var(--blue-500); color: #fff; box-shadow: 0 8px 20px rgba(27, 157, 217, .30); }
.btn-blue:hover { background: var(--blue-600); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-green { background: var(--green-600); color: #fff; box-shadow: 0 8px 20px rgba(61, 154, 84, .26); }
.btn-green:hover { background: var(--green-700); }
.btn-white { background: #fff; color: var(--navy-800); }
.btn-white:hover { background: #eef4f8; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-700); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { font-size: 1.1rem; padding: .95rem 1.7rem; }
.btn-block { width: 100%; justify-content: center; }

/* Utility top bar (thin azure bar) */
.utilitybar { background: var(--blue-500); color: #fff; font-size: .9rem; }
.utilitybar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding-top: 5px; padding-bottom: 5px; }
.utilitybar .u-left { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; }
.utilitybar .u-right { display: inline-flex; align-items: center; gap: 22px; }
.utilitybar a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.utilitybar a:hover { text-decoration: none; opacity: .9; }
.utilitybar svg { flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--f-display); font-weight: 800; color: var(--ink); font-size: 1.14rem; line-height: 1.05; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 46px; height: 46px; flex: none; }
.brand small { display: block; font-size: .7rem; font-weight: 600; color: var(--blue-600); letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-family: var(--f-display); font-weight: 500; font-size: .98rem; color: var(--ink); }
.nav a:hover { color: var(--blue-700); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { font-family: var(--f-display); font-weight: 800; color: var(--blue-700); font-size: 1.16rem; white-space: nowrap; }
.header-phone small { display: block; font-size: .66rem; font-weight: 600; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.menu-toggle { display: none; }
.header-call .hc-icon { display: none; }

/* Hero (dark navy scrim over photo) */
.hero { position: relative; color: #fff; background: var(--navy-800); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(95deg, rgba(9, 26, 43, .93) 0%, rgba(12, 33, 55, .84) 48%, rgba(20, 58, 92, .55) 100%), var(--hero-img); background-size: cover; background-position: center; }
.hero-inner { position: relative; padding: 74px 0 82px; max-width: 680px; }
.hero .eyebrow { color: #8fd6f5; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { color: #dce8f2; font-size: 1.22rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; align-items: center; }
.hero-note { margin: 14px 0 0; font-size: .92rem; color: #a9c6dd; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); }
.hero-badges span { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-display); font-weight: 500; font-size: .95rem; color: #eaf2fa; }
.hero-badges svg { flex: none; }

/* Stat cards (mint tiles, adapted from About block) */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: var(--mint); border: 1px solid var(--mint-border); border-radius: var(--radius); padding: 22px 20px; }
.stat-card .big { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; color: var(--navy-800); margin-bottom: .25rem; display: flex; align-items: center; gap: .5rem; }
.stat-card .big svg { color: var(--green-600); flex: none; }
.stat-card .small { font-size: .93rem; color: var(--body); margin: 0; }

/* Feature cards (why rat-only) */
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); text-align: center; }
.feature-card .ic { width: 52px; height: 52px; margin: 0 auto 14px; color: var(--blue-500); }
.feature-card h3 { font-size: 1.14rem; margin-bottom: .4rem; }
.feature-card p { font-size: .96rem; color: var(--muted); margin: 0; }

/* Symptom grid */
.symptom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.symptom-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue-500); border-radius: 12px; padding: 22px 20px; box-shadow: var(--shadow-sm); }
.symptom-card h3 { font-size: 1.1rem; margin-bottom: .35rem; color: var(--ink); }
.symptom-card p { margin: 0; font-size: .96rem; color: var(--body); }

/* Service cards (photo cards) */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); color: var(--ink); display: flex; flex-direction: column; transition: transform .14s ease, box-shadow .14s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.service-card .thumb { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--gray-100); }
.service-card .sc-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.service-card h3 { font-size: 1.16rem; margin: 0; }
.service-card p { font-size: .95rem; color: var(--muted); margin: 0; flex: 1; }
.service-card .more { font-family: var(--f-display); font-weight: 600; color: var(--blue-600); font-size: .94rem; }

/* Advantage (dark navy: icon list + plan card) */
.advantage { background: var(--navy-800); color: #fff; }
.advantage h2, .advantage .eyebrow { color: #fff; }
.advantage .eyebrow { color: #8fd6f5; }
.advantage .adv-sub { color: #cddbe8; }
.adv-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; margin-top: 32px; }
.plan-card { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 26px; }
.plan-card h3 { color: var(--navy-800); font-size: 1.2rem; margin-bottom: .2rem; }
.plan-card .pc-sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.plan-steps { display: grid; gap: 14px; }
.plan-step { display: flex; gap: 14px; align-items: flex-start; }
.plan-step .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-500); color: #fff; font-family: var(--f-display); font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.plan-step h4 { margin: 0 0 .1rem; font-size: 1rem; color: var(--ink); }
.plan-step p { margin: 0; font-size: .9rem; color: var(--muted); }
.adv-list { display: grid; gap: 4px; }
.adv-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.adv-item:first-child { background: #fff; color: var(--ink); box-shadow: var(--shadow); border-bottom: none; }
.adv-item:first-child p { color: var(--muted); }
.adv-item:first-child .ai-ic { background: var(--blue-500); color: #fff; }
.adv-item .ai-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #8fd6f5; display: grid; place-items: center; }
.adv-item h3 { font-size: 1.05rem; margin: 0 0 .2rem; color: inherit; }
.adv-item p { font-size: .92rem; margin: 0; color: #cddbe8; }

/* Reviews strip */
.reviews { background: var(--gray-50); }
.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.reviews-head .rh-score { display: flex; align-items: center; gap: 12px; }
.reviews-head .g { font-family: var(--f-display); font-weight: 700; color: var(--navy-800); font-size: 1.2rem; }
.reviews-head .num { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; color: var(--ink); }
.stars { color: var(--gold); font-size: 1.2rem; letter-spacing: 1px; }
.review-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.review-card .rc-stars { color: var(--gold); font-size: 1rem; letter-spacing: 1px; margin-bottom: 10px; }
.review-card p { font-size: .96rem; color: var(--body); margin: 0 0 14px; }
.review-card .rc-name { font-family: var(--f-display); font-weight: 700; color: var(--ink); font-size: .96rem; }
.review-card .rc-area { color: var(--muted); font-size: .86rem; }

/* Service area (local branches style) */
.area-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.area-cols { columns: 2; column-gap: 26px; margin: 18px 0 0; padding: 0; list-style: none; }
.area-cols li { break-inside: avoid; padding: 7px 0 7px 26px; position: relative; font-weight: 600; color: var(--ink); font-family: var(--f-display); font-size: .96rem; }
.area-cols li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 4px rgba(27,157,217,.16); }
.area-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* Process steps (4-step band on inner pages) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; box-shadow: var(--shadow-sm); }
.step .num { width: 46px; height: 46px; border-radius: 50%; background: var(--blue-500); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 1.08rem; }
.step p { font-size: .94rem; color: var(--muted); margin: 0; }

/* Why / split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.checklist { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; font-size: 1.02rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-600); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: 9px; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* Get-a-quote band (blue) */
.getquote { background: linear-gradient(120deg, var(--blue-600), var(--blue-500)); color: #fff; }
.getquote .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.getquote h2 { color: #fff; margin: 0 0 .2rem; }
.getquote p { color: #eaf6fd; margin: 0; max-width: 46ch; }
.getquote .gq-cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 260px; }
.getquote .gq-phone { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; color: #fff; text-align: center; }

/* Call band (navy, inner pages) */
.callband { background: var(--navy-800); color: #fff; }
.callband .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.callband h2 { color: #fff; margin: 0; }
.callband p { color: #cddbe8; margin: .3rem 0 0; }
.callband--blue { background: linear-gradient(120deg, var(--blue-600), var(--blue-500)); }
.callband--blue p { color: #eaf6fd; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 18px 20px; font-family: var(--f-display); font-weight: 600; color: var(--ink); font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--blue-500); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 20px 18px; color: var(--body); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(120deg, var(--navy-800), var(--navy-700)); color: #fff; padding: 48px 0 42px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cddbe8; font-size: 1.14rem; max-width: 60ch; margin-bottom: 20px; }
.breadcrumbs { font-size: .86rem; color: #9fc0dc; margin-bottom: 14px; }
.breadcrumbs a { color: #cfe1f0; }
.page-hero .hero-actions { margin-top: 8px; }

/* Article / prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5rem; }
.prose .callout { background: var(--mint); border-left: 4px solid var(--green-600); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 1.4rem 0; }
.layout-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.sidebar { position: sticky; top: 96px; display: grid; gap: 20px; }
.sidebar .card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.sidebar .card h3 { font-size: 1.08rem; }
.sidebar .call-card { background: var(--navy-800); color: #fff; text-align: center; }
.sidebar .call-card h3 { color: #fff; }
.sidebar .call-card .num { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; color: #fff; }
.sidebar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sidebar ul a { font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy-900); color: #b7cadb; padding: 54px 0 26px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer a { color: #b7cadb; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-brand .logo { width: 46px; height: 46px; margin-bottom: 12px; }
.footer-phone { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; color: #fff; margin: 6px 0; }
.footer-phone a { color: #fff; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.14); margin-top: 34px; padding-top: 20px; font-size: .83rem; color: #8ba4bb; line-height: 1.6; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: .85rem; }

/* Sticky mobile call bar */
.sticky-call { display: none; }

/* Responsive */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .adv-grid { grid-template-columns: 1fr; gap: 26px; }
  .trust-row, .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .symptom-grid, .service-cards, .steps, .review-cards { grid-template-columns: repeat(2, 1fr); }
  .split, .area-grid { grid-template-columns: 1fr; gap: 26px; }
  .layout-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav, .header-phone { display: none; }
  .utilitybar .u-left { display: none; }
  .utilitybar .container { justify-content: center; }
  .header-cta { gap: 10px; }
  .header-call { width: 46px; height: 46px; padding: 0; border-radius: 50%; justify-content: center; }
  .header-call .hc-label { display: none; }
  .header-call .hc-icon { display: block; }
  .menu-toggle { display: inline-flex; }
  .brand { font-size: 1rem; gap: 9px; }
  .brand .logo { width: 40px; height: 40px; }
  .header-inner { min-height: 64px; }
  .getquote .container { flex-direction: column; align-items: flex-start; }
  .getquote .gq-cta { width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 22px; }
  .section { padding: 46px 0; }
  .symptom-grid, .service-cards, .steps, .sidebar, .feature-cards, .review-cards, .stat-grid { grid-template-columns: 1fr; }
  .area-cols { columns: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .callband .container { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  main { padding-bottom: 76px; }
  .sticky-call {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--blue-500); box-shadow: 0 -6px 18px rgba(0,0,0,.2);
  }
  .sticky-call a { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 15px; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; color: #fff; }
  .sticky-call a:hover { text-decoration: none; }
}

/* Simple mobile nav (checkbox toggle, no JS) */
.mobile-menu { display: none; }
@media (max-width: 820px) {
  #navtoggle:checked ~ .mobile-menu { display: block; }
  .mobile-menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 10px 0; }
  .mobile-menu a { display: block; padding: 12px 20px; font-family: var(--f-display); font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--gray-100); }
  .mobile-menu a:hover { background: var(--gray-50); text-decoration: none; }
}
