/* RID Pest Control concept: improvements layer (plain CSS, mobile-first) */
:root {
  --red: #b00f14;          /* button red, 7.3:1 with white */
  --red-dark: #8a0b0f;
  --red-logo: #ec1c24;     /* logo plate red, accents only */
  --yellow: #f5c230;       /* logo yellow */
  --yellow-soft: #fdf3d3;
  --ink: #1d1d1d;
  --charcoal: #222222;
  --charcoal-2: #2c2c2c;
  --paper: #faf7f0;
  --line: #e7e1d3;
  --muted: #555555;
  --on-dark-muted: #c9c9c9;
  --radius: 10px;
  --slab: "Roboto Slab", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --section: clamp(56px, 8vw, 104px);
}
html { scroll-behavior: smooth; }
body.rid { font-family: var(--sans); color: var(--ink); background: #fff; font-size: 17px; line-height: 1.6; padding-bottom: 76px; }
@media (min-width: 768px) { body.rid { padding-bottom: 0; } }
.rid img { max-width: 100%; height: auto; }
.rid a { color: inherit; }
.rid :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.r-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .r-wrap { padding: 0 28px; } }
.r-skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 10px 14px; z-index: 100; font-weight: 700; }
.r-skip:focus { left: 8px; }

/* Type */
.r-h1, .r-h2 { font-family: var(--slab); font-weight: 800; letter-spacing: -0.01em; line-height: 1.08; }
.r-h1 { font-size: clamp(2.1rem, 6.2vw, 3.9rem); }
.r-h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.r-h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.3; margin-bottom: 6px; }
.r-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.r-eyebrow::before { content: ""; width: 26px; height: 4px; background: var(--yellow); border-radius: 2px; }
.r-dark .r-eyebrow { color: var(--yellow); }
.r-lead { font-size: 1.12rem; color: var(--muted); max-width: 40em; }
.r-dark .r-lead { color: var(--on-dark-muted); }
.r-mark { background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); padding: 0 .08em; }
.r-dark .r-mark { background: none; color: var(--yellow); padding: 0; }
.r-section { padding: var(--section) 0; }
.r-section--paper { background: var(--paper); }
.r-dark { background: var(--charcoal); color: #fff; }
.r-section-head { max-width: 46em; margin-bottom: 36px; }
.r-prose p + p { margin-top: 14px; }
.r-prose p { color: var(--muted); }
.r-dark .r-prose p { color: var(--on-dark-muted); }

/* Buttons */
.r-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 8px; font-weight: 800; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s, transform .15s; cursor: pointer; }
.r-btn svg { flex: none; }
.r-btn--red { background: var(--red); color: #fff !important; }
.r-btn--red:hover { background: var(--red-dark); }
.r-btn--yellow { background: var(--yellow); color: var(--ink) !important; }
.r-btn--yellow:hover { background: #e9b318; }
.r-btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.r-btn--ghost:hover { background: var(--ink); color: #fff; }
.r-dark .r-btn--ghost { color: #fff; }
.r-dark .r-btn--ghost:hover { background: #fff; color: var(--ink); }
.r-btn:active { transform: translateY(1px); }
.r-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
@media (min-width: 520px) { .r-actions { flex-direction: row; flex-wrap: wrap; } }
.r-link { font-weight: 800; color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; display: inline-flex; min-height: 44px; align-items: center; }
.r-link:hover { color: var(--red-dark); }
.r-dark .r-link { color: var(--yellow); }

/* Header */
.r-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 4px solid var(--yellow); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.r-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.r-logo { display: inline-flex; align-items: center; min-height: 44px; }
.r-logo img { height: 50px; width: auto; }
@media (min-width: 1024px) { .r-logo img { height: 58px; } .r-header__bar { min-height: 84px; } }
.r-nav { display: none; }
.r-nav a { text-decoration: none; font-weight: 700; font-size: .95rem; padding: 10px 2px; border-bottom: 3px solid transparent; }
.r-nav a:hover, .r-nav a[aria-current="page"] { border-bottom-color: var(--red); }
.r-header__call { display: none; }
.r-header__call small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; line-height: 1.1; }
.r-header__call span { line-height: 1.15; text-align: left; }
.r-menu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; min-height: 48px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; font-weight: 800; font-size: .9rem; padding: 0 12px; cursor: pointer; }
.r-mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px 0 18px; }
.r-mobile-nav.is-open { display: block; }
.r-mobile-nav a { display: flex; align-items: center; min-height: 48px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .r-nav { display: flex; gap: 26px; }
  .r-header__call { display: inline-flex; min-height: 54px; padding: 0 18px; }
  .r-menu-btn, .r-mobile-nav, .r-mobile-nav.is-open { display: none; }
}

/* Home hero */
.r-hero { position: relative; overflow: hidden; padding: 40px 0 56px; }
.r-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--ink) 18px 36px); opacity: .9; }
.r-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .r-hero { padding: 72px 0 96px; } .r-hero__grid { grid-template-columns: 1.08fr .92fr; gap: 56px; } }
.r-hero .r-h1 { margin-bottom: 18px; }
.r-hero__sub { font-size: 1.1rem; color: var(--on-dark-muted); max-width: 34em; }
.r-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: .92rem; color: var(--on-dark-muted); }
.r-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.r-hero__meta span::before { content: ""; width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; }

/* Most wanted board */
.r-board { background: var(--paper); color: var(--ink); border-radius: 14px; padding: 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); border-top: 8px solid var(--red-logo); }
.r-board__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.r-board__title { font-family: var(--slab); font-weight: 800; font-size: 1.35rem; line-height: 1.15; }
.r-board__tag { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); white-space: nowrap; }
.r-board__list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.r-wanted { display: grid; grid-template-columns: 34px 72px 1fr; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 10px 10px; }
.r-wanted .r-wanted__rank { line-height: 1; font-family: var(--slab); font-weight: 800; font-size: 1.7rem; color: var(--red); text-align: center; }
.r-wanted img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.r-wanted strong { display: block; font-size: 1.02rem; }
.r-wanted div span { display: block; font-size: .88rem; line-height: 1.4; color: var(--muted); }
.r-board__note { font-size: .8rem; color: var(--muted); margin-top: 14px; }

/* Proof strip */
.r-proof { background: var(--yellow); color: var(--ink); }
.r-proof__list { list-style: none; margin: 0; padding: 18px 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .r-proof__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .r-proof__list { grid-template-columns: repeat(4, 1fr); padding: 22px 0; } }
.r-proof__list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: .95rem; line-height: 1.35; }
.r-proof__list svg { flex: none; margin-top: 1px; }

/* Pest grid */
.r-pests { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 0; }
@media (min-width: 720px) { .r-pests { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .r-pests { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.r-pest { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.r-pest:hover { border-color: var(--red); box-shadow: 0 10px 24px -14px rgba(0,0,0,.45); transform: translateY(-2px); }
.r-pest img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #fff; }
.r-pest__body { padding: 12px 14px 14px; border-top: 4px solid var(--yellow); flex: 1; }
.r-pest__body strong { display: block; font-size: 1.02rem; }
.r-pest__body span { font-size: .86rem; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }

/* Split + cards */
.r-split { display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) { .r-split { grid-template-columns: 1fr 1fr; gap: 64px; } .r-split--center { align-items: center; } }
.r-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.r-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 70px; }
.r-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-family: var(--slab); font-weight: 800; display: grid; place-items: center; }
.r-steps p { color: var(--muted); font-size: .97rem; }
.r-dark .r-steps li { background: var(--charcoal-2); border-color: #3a3a3a; }
.r-dark .r-steps li::before { background: var(--yellow); color: var(--ink); }
.r-dark .r-steps p { color: var(--on-dark-muted); }

.r-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.r-card p { color: var(--muted); font-size: .97rem; }
.r-cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .r-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .r-cards--3 { grid-template-columns: repeat(3, 1fr); } }

.r-ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.r-ticks li { position: relative; padding-left: 30px; }
.r-ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 4px; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.r-ticks--cols { grid-template-columns: 1fr; }
@media (min-width: 640px) { .r-ticks--cols { grid-template-columns: 1fr 1fr; column-gap: 28px; } }

/* Local / area */
.r-towns { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 18px 0 0; }
.r-towns li { border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .95rem; background: #fff; }
.r-towns li.is-base { background: var(--ink); color: var(--yellow); }
.r-quote { position: relative; background: #fff; border-left: 8px solid var(--red-logo); border-radius: 0 var(--radius) var(--radius) 0; padding: 26px 24px; box-shadow: 0 18px 40px -26px rgba(0,0,0,.4); }
.r-quote blockquote { font-family: var(--slab); font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.45; font-weight: 500; }
.r-quote figcaption { margin-top: 16px; font-weight: 700; color: var(--muted); font-size: .95rem; }

/* Photo frame */
.r-photo { position: relative; isolation: isolate; margin: 0 14px 14px 0; }
.r-photo img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.r-photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; background: var(--yellow); border-radius: var(--radius); z-index: -1; }
.r-photo figcaption { font-size: .85rem; color: var(--muted); margin-top: 22px; }
.r-photo-wrap { position: relative; z-index: 0; }

/* Termite alert band */
.r-alert { background: var(--red); color: #fff; }
.r-alert .r-wrap { display: grid; gap: 18px; padding-top: 36px; padding-bottom: 36px; align-items: center; }
@media (min-width: 900px) { .r-alert .r-wrap { grid-template-columns: 1fr auto; } }
.r-alert h2 { font-family: var(--slab); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; }
.r-alert p { color: #ffe9e9; margin-top: 6px; }
.r-alert .r-btn--ghost { color: #fff; }
.r-alert .r-btn--ghost:hover { background: #fff; color: var(--red); }

/* Page hero (inner pages) */
.r-page-hero { padding: 36px 0 44px; position: relative; }
.r-page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 16px, var(--ink) 16px 32px); }
@media (min-width: 980px) { .r-page-hero { padding: 64px 0 72px; } }
.r-page-hero .r-h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); margin-bottom: 14px; max-width: 18em; }
.r-page-hero .r-lead { max-width: 38em; }

/* Service rows */
.r-services { display: grid; gap: 16px; }
@media (min-width: 900px) { .r-services { grid-template-columns: 1fr 1fr; gap: 20px; } }
.r-service { display: grid; grid-template-columns: 96px 1fr; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; scroll-margin-top: 110px; }
@media (min-width: 520px) { .r-service { grid-template-columns: 132px 1fr; gap: 20px; } }
.r-service img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; }
.r-service p { color: var(--muted); font-size: .97rem; }
.r-service .r-link { margin-top: 4px; font-size: .95rem; }
.r-chip { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--yellow-soft); color: #6b4e00; border-radius: 4px; padding: 3px 8px; margin-bottom: 8px; }

/* Facts table */
.r-facts { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.r-facts div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .r-facts div { grid-template-columns: 200px 1fr; gap: 16px; } }
.r-facts dt { font-weight: 800; }
.r-facts dd { color: var(--muted); margin: 0; }
.r-facts a { color: var(--red); font-weight: 700; }

/* Contact */
.r-contact-big { font-family: var(--slab); font-weight: 800; font-size: clamp(2rem, 6vw, 2.8rem); color: var(--red); text-decoration: none; display: inline-flex; min-height: 48px; align-items: center; }
.r-form { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
@media (min-width: 640px) { .r-form { padding: 32px; } }
.r-form h2 { font-family: var(--slab); font-weight: 800; font-size: 1.6rem; margin-bottom: 6px; }
.r-form__note { font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.r-field { display: grid; gap: 6px; margin-bottom: 14px; }
.r-field label { font-weight: 700; font-size: .95rem; }
.r-field input, .r-field select, .r-field textarea { width: 100%; min-height: 48px; border: 1.5px solid #b9b2a3; border-radius: 8px; padding: 10px 14px; font: inherit; background: #fff; color: var(--ink); }
.r-field textarea { min-height: 120px; }
.r-field input:focus, .r-field select:focus, .r-field textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--ink); }
.r-form button { width: 100%; }
.r-form__result { display: none; margin-top: 16px; background: #fff; border: 2px solid var(--ink); border-left: 8px solid var(--yellow); border-radius: 8px; padding: 14px 16px; font-weight: 600; }
.r-form__result.is-shown { display: block; }
.r-form__result a { color: var(--red); }

/* CTA band */
.r-cta { background: var(--charcoal); color: #fff; padding: clamp(48px, 7vw, 84px) 0; text-align: left; position: relative; }
.r-cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 16px, var(--ink) 16px 32px); }
.r-cta .r-wrap { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .r-cta .r-wrap { grid-template-columns: 1fr auto; } }
.r-cta p { color: var(--on-dark-muted); margin-top: 8px; }
.r-cta .r-actions { margin-top: 0; }

/* Footer */
.r-footer { background: #161616; color: #d8d8d8; padding: 56px 0 28px; font-size: .95rem; }
.r-footer__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .r-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; } }
.r-footer h2 { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 12px; }
.r-footer ul { list-style: none; padding: 0; margin: 0; }
.r-footer li a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; }
.r-footer li a:hover { color: var(--yellow); text-decoration: underline; }
.r-footer p + p { margin-top: 8px; }
.r-footer__logo { height: 58px; width: auto; margin-bottom: 14px; }
.r-footer__contact a { color: #fff; font-weight: 700; text-decoration: none; }
.r-footer__contact a:hover { color: var(--yellow); }
.r-footer__legal { border-top: 1px solid #333; margin-top: 40px; padding-top: 20px; font-size: .8rem; color: #a8a8a8; display: grid; gap: 6px; }
.r-footer__legal a { color: #d8d8d8; text-decoration: underline; }

/* Sticky mobile call bar */
.r-callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 4px solid var(--yellow); box-shadow: 0 -6px 20px rgba(0,0,0,.18); }
.r-callbar .r-btn { min-height: 52px; padding: 0 12px; font-size: .98rem; }
@media (min-width: 768px) { .r-callbar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rid *, .rid *::before, .rid *::after { transition: none !important; animation: none !important; }
}

/* Tap targets (44px minimum) for inline footer/contact links */
.r-footer li a { min-height: 44px; }
.r-footer__contact a, .r-footer__legal a, .r-facts dd a { display: inline-flex; align-items: center; min-height: 44px; }
.r-footer__legal p { line-height: 1.4; }
.r-photo--small { max-width: 340px; }
@media (min-width: 960px) { .r-photo--small { justify-self: center; } }
.r-callout { background: var(--paper); border: 1px solid var(--line); border-left: 8px solid var(--yellow); border-radius: var(--radius); padding: 26px 22px; max-width: 52em; }
@media (min-width: 640px) { .r-callout { padding: 34px 36px; } }
.r-dark .r-board .r-link { color: var(--red); }
