/* pestcontrolservicedallastx.net
 *
 * Palette chosen by diffing the sibling sites' custom properties on disk, not
 * by eye: hvacrepairrockwall.net and water-damage-restoration-phoenix-az.net
 * both ship --accent: #c25109, so the orange CTA is taken. This site runs a
 * forest/ink base with a deep crimson CTA.
 *
 * Contrast, computed not guessed (WCAG relative luminance, white text):
 *   --moss   #1c5c46  ->  7.84:1
 *   --accent #9d2235  ->  7.75:1
 *   --accent-dark #7d1a2a -> 10.1:1
 * The Rockwall audit found an emergency CTA at 3.07:1 that had to be rebuilt
 * after launch. Every CTA state here clears 4.5:1 before it ships.
 */

:root {
  --ink: #12211b;
  --ink-deep: #0a1511;
  --moss: #1c5c46;
  --moss-mid: #2c7a5e;
  --moss-soft: #a8d5c2;
  --moss-wash: #eef6f2;
  --accent: #9d2235;
  --accent-dark: #7d1a2a;
  --text: #1f2a25;
  --text-mute: #55655d;
  --bg: #ffffff;
  --bg-alt: #f3f7f4;
  --border: #d8e4dd;
  --amber: #8a5a00;
  --radius: 10px;
  --shadow: 0 2px 4px rgba(18, 33, 27, .06), 0 8px 24px rgba(18, 33, 27, .07);
  --wrap: 1120px;
}

/* NO INLINE STYLE ATTRIBUTES ANYWHERE ON THIS SITE.
 *
 * The CSP is style-src 'self' with no unsafe-inline, and nonces can never work
 * here because the pages are prerendered and edge-cached. So a style="..."
 * attribute is not merely untidy — the browser refuses to apply it in
 * production while applying it fine in local preview, because the dev server
 * serves no _headers. That gap shipped a real defect: the icon sprite's
 * display:none was blocked live, so a 300x150 <svg> rendered above the header
 * as a white band on all 39 pages.
 *
 * build.py now fails on any style attribute. These classes are why it can. */
.sprite { display: none; }
.footer-phone-row { margin-top: 12px; }
.grid-spaced { margin-top: 24px; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  /* Clears the fixed mobile call bar so the footer disclosure is never
   * covered by it — a disclosure you cannot read is not a disclosure. */
  padding-bottom: 62px;
}

img { max-width: 100%; height: auto; }

a { color: var(--moss); }
a:hover { color: var(--accent-dark); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- header ---------- */

.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 3px solid var(--moss);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  color: #fff; text-decoration: none; font-weight: 700; line-height: 1.15;
  font-size: 16px; margin-right: auto;
}
.logo svg { width: 30px; height: 30px; fill: var(--moss-soft); flex: none; }
.logo span { display: flex; flex-direction: column; }
.logo small {
  font-size: 9.5px; font-weight: 600; letter-spacing: .09em;
  color: var(--moss-soft); margin-top: 2px;
}
.site-nav { display: none; gap: 2px; width: 100%; flex-direction: column; padding: 8px 0 4px; }
.site-nav.open { display: flex; }
.site-nav a {
  color: #e8f2ed; text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 9px 6px; border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--moss-soft); }
.header-call {
  color: #fff; background: var(--accent); text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 8px 13px; border-radius: 8px;
  white-space: nowrap;
}
.header-call:hover { background: var(--accent-dark); color: #fff; }
.nav-toggle {
  background: transparent; border: 1px solid rgba(255, 255, 255, .35); color: #fff;
  font-size: 19px; line-height: 1; padding: 7px 11px; border-radius: 8px; cursor: pointer;
}

@media (min-width: 900px) {
  .site-nav { display: flex; flex-direction: row; width: auto; padding: 0; }
  .site-nav a { border-bottom: 2px solid transparent; padding: 6px 9px; }
  .nav-toggle { display: none; }
  .logo { font-size: 17px; }
}

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--ink) 0%, var(--moss) 100%);
  color: #fff; padding: 30px 0 34px;
}
/* Contrast on the gradient is interpolated at the ELEMENT CENTRE, not at the
 * lighter end stop — the Chicago method. Mid-gradient here is ~#17412e, which
 * clears 4.5:1 against every text colour used on top of it. */
/* Two-column hero.
 *
 * The subhead is capped at 62ch because that is where a line stops being
 * comfortable to read. On a 1380px desktop that left ~590px of empty band —
 * about 43% of the hero — so the right column exists to put something useful
 * there rather than to widen the measure.
 *
 * Single column below 1000px: on a phone the call button is the job, and the
 * figure follows it rather than competing with it. minmax(0, ...) on both
 * tracks stops the inline SVG forcing the grid wider than the container. */
.hero .container.has-aside { display: grid; gap: 26px; align-items: center; }
@media (min-width: 1000px) {
  .hero .container.has-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 44px; }
}

.hero-aside figure { margin: 0; max-width: none; }
.hero-aside svg {
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 10px 30px rgba(10, 21, 17, .3);
}
.hero-aside figcaption { color: var(--moss-soft); margin-top: 10px; font-size: 13.5px; }

.hero .breadcrumb { font-size: 13.5px; color: var(--moss-soft); margin-bottom: 12px; }
.hero .breadcrumb a { color: var(--moss-soft); }
.hero h1 { font-size: 27px; line-height: 1.22; margin: 0 0 12px; letter-spacing: -.01em; }
.hero .sub { font-size: 17px; color: #dcece4; margin: 0 0 20px; max-width: 62ch; }
.hero .hours { font-size: 14px; color: var(--moss-soft); margin: 12px 0 0; }

@media (min-width: 760px) {
  .hero { padding: 46px 0 50px; }
  .hero h1 { font-size: 39px; }
  .hero .sub { font-size: 19px; }
}

.btn-call {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 19px; font-weight: 800; text-decoration: none;
  padding: 14px 26px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.btn-call:hover, .btn-call:focus { background: var(--accent-dark); color: #fff; }

.btn-ghost {
  display: inline-block; border: 2px solid var(--moss); color: var(--moss);
  font-weight: 700; text-decoration: none; padding: 10px 20px; border-radius: var(--radius);
}
.btn-ghost:hover { background: var(--moss); color: #fff; }

/* ---------- referral note ---------- */

.referral-note { background: var(--moss-wash); border-bottom: 1px solid var(--border); }
.referral-note p {
  max-width: var(--wrap); margin: 0 auto; padding: 12px 16px;
  font-size: 14.5px; color: var(--text); line-height: 1.55;
}

/* ---------- sections ---------- */

section { padding: 34px 0; }
section.alt { background: var(--bg-alt); }
section.ink { background: var(--ink); color: #fff; }
section.ink a { color: var(--moss-soft); }
section.ink .section-title { color: #fff; }

@media (min-width: 760px) { section { padding: 46px 0; } }

.section-title { font-size: 24px; line-height: 1.25; margin: 0 0 8px; color: var(--ink); }
.section-lead { font-size: 17px; color: var(--text-mute); margin: 0 0 22px; max-width: 68ch; }
@media (min-width: 760px) { .section-title { font-size: 30px; } }

h2, h3, h4 { color: var(--ink); line-height: 1.3; }
h3 { font-size: 19px; margin: 26px 0 8px; }
h4 { font-size: 17px; margin: 20px 0 6px; }
p { margin: 0 0 14px; }
.prose { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 7px; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.g3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: block; text-decoration: none; color: inherit;
}
a.card:hover { border-color: var(--moss); box-shadow: var(--shadow); }
.card svg.ico { width: 30px; height: 30px; fill: var(--moss); margin-bottom: 6px; }
.card h3 { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.card p { margin: 0; font-size: 15px; color: var(--text-mute); line-height: 1.55; }
.card .more { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 14.5px; color: var(--accent-dark); }

/* ---------- callouts ---------- */

.note, .warn, .season {
  border-radius: var(--radius); padding: 16px 18px; margin: 22px 0;
  border-left: 5px solid var(--moss); background: var(--moss-wash);
}
.warn { border-left-color: var(--accent); background: #fdf2f3; }
.season { border-left-color: var(--amber); background: #fdf7ea; }
.note p:last-child, .warn p:last-child, .season p:last-child { margin-bottom: 0; }
/* h2 as well as h3: a callout that sits directly under the page h1, before any
 * section heading, has to be an h2 or it skips a level. Both render the same. */
.note h2, .warn h2, .season h2,
.note h3, .warn h3, .season h3 { margin: 0 0 6px; font-size: 17px; }

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 15.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-alt); color: var(--ink); font-size: 14.5px; }
caption { caption-side: bottom; font-size: 13.5px; color: var(--text-mute); padding-top: 8px; text-align: left; }

/* ---------- steps ---------- */

.steps { list-style: none; padding: 0; margin: 22px 0 0; counter-reset: s; display: grid; gap: 14px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps li {
  counter-increment: s; position: relative; padding: 16px 16px 16px 58px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
}
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 15px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--moss); color: #fff;
  font-weight: 800; font-size: 15px; display: grid; place-items: center;
}
.steps strong { display: block; color: var(--ink); margin-bottom: 3px; }
.steps p { margin: 0; font-size: 15px; color: var(--text-mute); }

/* ---------- figures ---------- */

figure { margin: 24px 0; max-width: 720px; }
figure svg { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
figcaption { font-size: 14px; color: var(--text-mute); margin-top: 8px; }

/* ---------- link lists ---------- */

.area-links, .related-links {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .area-links, .related-links { grid-template-columns: repeat(4, 1fr); } }
.area-links a, .related-links a {
  display: block; padding: 11px 13px; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--moss);
}
.area-links a:hover, .related-links a:hover { background: var(--moss); color: #fff; border-color: var(--moss); }

/* ---------- FAQ ---------- */

.faq-list details {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px;
}
.faq-list summary { font-weight: 700; cursor: pointer; color: var(--ink); font-size: 16.5px; }
.faq-list summary::marker { color: var(--moss); }
.faq-list p { margin: 10px 0 0; font-size: 15.5px; color: var(--text); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--ink); color: #fff; text-align: center; padding: 34px 16px; }
.cta-band h2 { color: #fff; font-size: 23px; margin: 0 0 8px; }
.cta-band p { color: #cfe3d9; max-width: 60ch; margin: 0 auto 18px; font-size: 16px; }

/* ---------- byline ---------- */

.byline {
  font-size: 14px; color: var(--text-mute); border-bottom: 1px solid var(--border);
  padding-bottom: 12px; margin-bottom: 20px;
}
.sources { font-size: 14.5px; }
.sources li { margin-bottom: 6px; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink-deep); color: #c6d7ce; padding: 34px 0 20px; font-size: 15px; }
.footer-grid {
  max-width: var(--wrap); margin: 0 auto; padding: 0 16px;
  display: grid; gap: 24px; grid-template-columns: 1fr;
}
@media (min-width: 620px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 15px; margin: 0 0 10px; letter-spacing: .02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #c6d7ce; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-phone { font-size: 19px; font-weight: 800; color: #fff !important; }

.disclosure {
  max-width: var(--wrap); margin: 26px auto 0; padding: 18px 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13.5px; line-height: 1.6; color: #a9bdb3;
}
.disclosure strong { color: #fff; }
.disclosure a { color: #d7e6dd; text-decoration: underline; }

/* ---------- mobile call bar ---------- */

.mobile-call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; }
.mobile-call-bar a {
  display: block; background: var(--accent); color: #fff; text-align: center;
  font-weight: 800; font-size: 17px; padding: 16px 10px; text-decoration: none;
  box-shadow: 0 -2px 12px rgba(18, 33, 27, .28);
}
.mobile-call-bar a:hover { background: var(--accent-dark); color: #fff; }

@media (min-width: 900px) {
  .mobile-call-bar { display: none; }
  body { padding-bottom: 0; }
}

@media print {
  .mobile-call-bar, .site-header, .nav-toggle { display: none; }
}
