/* =========================================================
   At Ease Pest Solutions — Design Tokens
   Palette pulled from the company shield: deep navy + signal
   red on a cool, quiet paper background. No gradients-as-
   decoration, no rounded-card sameness — flat color bands,
   hairline rules, and a condensed workhorse headline face
   paired with a plain-spoken body sans.
   ========================================================= */

:root {
  --navy-900: #000a1f;
  --navy-800: #001438;
  --navy-700: #00204f;
  --navy-100: #e3e8f0;
  --red-700: #700000;
  --red-600: #8f0000;
  --paper: #f4f5f2;
  --paper-dim: #eceee9;
  --ink: #171b1f;
  --ink-soft: #4a525c;
  --line: #d9dcd4;
  --white: #ffffff;
  --good: #1f6b38;

  --font-head: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  --container: 1120px;
  --radius: 3px;
}

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

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

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.12;
  margin: 0 0 0.4em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }

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

section { padding: 64px 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-primary { background: var(--red-600); color: var(--white); }
.btn-primary:hover { background: var(--red-700); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-900); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { height: 52px; width: 52px; object-fit: contain; }
.brand-text { font-family: var(--font-head); line-height: 1.1; }
.brand-text .name { font-size: 1.05rem; font-weight: 800; color: var(--navy-900); display: block; }
.brand-text .tag { font-size: 0.72rem; font-weight: 600; color: var(--red-700); display: block; letter-spacing: 0.02em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--red-600);
  color: var(--navy-900);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-phone {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-900);
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
}

@media (max-width: 520px) {
  .header-inner { flex-wrap: nowrap; gap: 8px; }
  .brand img { height: 40px; width: 40px; }
  .brand-text .name { font-size: 0.82rem; }
  .brand-text .tag { display: none; }
  .header-phone { font-size: 0.88rem; }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 24px 20px;
    gap: 14px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .header-phone span.label { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy-800);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 76px 24px 64px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero .eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); }
.hero p.lede {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-art {
  display: flex;
  justify-content: center;
}
.hero-art img {
  max-width: 320px;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.35));
}
.hero-strip {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 24px;
  margin-top: 40px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
}
.hero-strip strong { color: var(--white); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 200px; }
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  background: var(--navy-800);
  color: var(--white);
  padding: 54px 0 42px;
}
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.05rem; }
.page-header h1 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Pillars / icon rows ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar {
  border-top: 3px solid var(--navy-800);
  padding-top: 16px;
}
.pillar.accent { border-top-color: var(--red-600); }
.pillar .icon {
  width: 40px; height: 40px;
  color: var(--navy-800);
  margin-bottom: 12px;
}
.pillar.accent .icon { color: var(--red-600); }
.pillar h3 { margin-bottom: 6px; }
.pillar p { margin: 0; font-size: 0.95rem; }

@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- Section headings ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head p { margin: 0; }
.kicker {
  font-family: var(--font-head);
  color: var(--red-700);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: block;
}

.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-navy { background: var(--navy-800); color: var(--white); }
.section-navy h2, .section-navy h3, .section-navy .kicker { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.8); }
.section-navy .pillar p { color: rgba(255,255,255,0.75); }
.section-navy .checklist li { color: rgba(255,255,255,0.85); border-top-color: rgba(255,255,255,0.16); }
.section-navy .plan-best { background: rgba(255,255,255,0.12); color: var(--white); }

/* ---------- Services grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--white);
  padding: 28px;
}
.service-card .icon { width: 34px; height: 34px; color: var(--red-600); margin-bottom: 14px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.94rem; margin: 0; }

@media (max-width: 860px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ---------- Pricing ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.plan-card.featured {
  border: 2px solid var(--red-600);
  position: relative;
}
.plan-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -13px;
  left: 22px;
  background: var(--red-600);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: 0.03em;
}
.plan-name { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); font-size: 1.05rem; margin-bottom: 4px; }
.plan-price { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; color: var(--navy-900); }
.plan-price span { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.plan-note { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 16px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 18px; flex-grow: 1; }
.plan-list li {
  font-size: 0.9rem;
  padding: 7px 0 7px 22px;
  position: relative;
  border-top: 1px solid var(--paper-dim);
  color: var(--ink-soft);
}
.plan-list li:first-child { border-top: none; }
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 9px; height: 9px;
  background: var(--good);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.plan-list li.no::before { background: var(--red-600); clip-path: none; border-radius: 50%; width: 7px; height: 7px; top: 15px; }
.plan-best {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-800);
  background: var(--navy-100);
  padding: 8px 10px;
  margin-top: auto;
}

@media (max-width: 980px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .plan-grid { grid-template-columns: 1fr; }
}

.callout {
  border-left: 4px solid var(--red-600);
  background: var(--white);
  padding: 18px 22px;
  margin: 32px 0;
}
.callout p { margin: 0; font-size: 0.94rem; color: var(--ink); }
.callout strong { color: var(--red-700); }

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--line);
  position: relative;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.checklist li:first-child { border-top: none; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 9px; height: 9px;
  background: var(--good);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* ---------- Pest tag list ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px 14px;
  font-size: 0.88rem;
  color: var(--navy-800);
  font-weight: 600;
}

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px;
  position: relative;
}
.review-card .stars { color: var(--red-600); letter-spacing: 2px; margin-bottom: 12px; font-size: 0.95rem; }
.review-card p.quote { color: var(--ink); font-style: italic; margin-bottom: 14px; }
.review-card .who { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--navy-900); }
.sample-tag {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--paper-dim);
  padding: 3px 8px;
  letter-spacing: 0.02em;
}
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy-900);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 11px 12px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  border-radius: var(--radius);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--navy-800);
  outline-offset: 1px;
  border-color: var(--navy-800);
}

.info-block {
  background: var(--navy-800);
  color: var(--white);
  padding: 32px;
}
.info-block h3 { color: var(--white); margin-bottom: 14px; }
.info-block .line { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.14); }
.info-block .line:first-of-type { border-top: none; }
.info-block .icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.info-block a { color: var(--white); text-decoration: none; font-weight: 700; }
.info-block a:hover { text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--red-700);
  color: var(--white);
  text-align: left;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 44px;
  padding-bottom: 44px;
}
.cta-band h2 { color: var(--white); margin: 0 0 6px; }
.cta-band p { color: rgba(255,255,255,0.88); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-brand { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 44px; width: 44px; object-fit: contain; }
.footer-brand .name { font-family: var(--font-head); font-weight: 800; color: var(--white); font-size: 1.05rem; }
.footer-brand .tag { color: var(--red-600); font-size: 0.75rem; font-weight: 700; }
.site-footer h4 { color: var(--white); font-family: var(--font-head); font-size: 0.9rem; margin-bottom: 14px; letter-spacing: 0.02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.85rem; color: var(--ink-soft); }
