/* =========================================================
   Pest Control Kensington — site styles (from templates/site-starter)
   Plain CSS, no build step. Brand colors from the owner logo (2026-12-03):
   navy #002d55 + green #37810f, bright green accent #7cc94f for dark backgrounds.
   Token names kept from the starter ("gold" = bright accent); values changed.
   ========================================================= */

:root {
  --brand: #2f6e0d;      /* nav bar, primary buttons, card accents (white text ~5.9:1) */
  --brand-dark: #24560a;
  --navy: #002d55;       /* headings, footer, table heads */
  --navy-dark: #001a34;
  --teal: #002d55;       /* form card */
  --teal-dark: #2c6a0c;  /* links */
  --gold: #7cc94f;       /* bright accent on dark backgrounds */
  --gold-dark: #45940f;
  --ink: #16222a;
  --ink-soft: #46545c;
  --line: #e4e2da;
  --bg: #fff;
  --bg-alt: #f4f7f2;
  --max: 1160px;
  --radius: 6px;
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); line-height: 1.7; background: var(--bg); -webkit-font-smoothing: antialiased; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); margin-bottom: .6em; }
h3 { font-size: 1.2rem; margin-bottom: .4em; }
p { margin-bottom: 1rem; color: var(--ink-soft); }
ul, ol { margin: 0 0 1rem 1.25rem; color: var(--ink-soft); }
li { margin-bottom: .35rem; }
strong { color: var(--ink); }
a { color: var(--teal-dark); }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 13px 26px; border-radius: var(--radius); font-weight: 700; font-family: var(--font-body); font-size: 1rem; border: 2px solid transparent; cursor: pointer; text-decoration: none; text-align: center; transition: background .15s ease, color .15s ease; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn--red { background: var(--brand); color: #fff; }
.btn--red:hover { background: var(--brand-dark); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-dark); color: #fff; }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn:disabled { opacity: .65; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.inline-cta { font-weight: 700; white-space: nowrap; }
.wc-phone { font-weight: 700; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.header-top { background: #fff; color: var(--navy); border-bottom: 1px solid var(--line); }
.header-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; max-width: var(--max); margin: 0 auto; }
.nav__logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.nav__logo:hover { color: #fff; }
.nav__logo img { display: block; height: 76px; width: auto; }
.footer-logo { display: inline-block; background: #fff; border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; }
.footer-logo img { display: block; width: 220px; max-width: 100%; height: auto; }
.header-contact { display: flex; gap: 22px; font-size: .92rem; }
.header-contact__item { color: var(--navy); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.header-contact__item:hover { color: var(--brand); }
.site-nav { background: var(--brand); }
.site-nav__inner { max-width: var(--max); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: flex-end; position: relative; }
.nav__toggle { display: none; background: none; border: 0; color: #fff; font-size: 1rem; font-weight: 700; padding: 12px 0; cursor: pointer; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; }
.nav__links li { margin: 0; }
.nav__links > li > a { display: block; padding: 13px 14px; color: #fff; text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav__links > li > a:hover, .nav__links > li > a[aria-current="page"] { background: var(--brand-dark); color: #fff; }
.nav__links .nav__call { background: var(--gold); color: var(--navy); margin-left: 8px; }
.nav__links .nav__call:hover { background: var(--gold-dark); color: #fff; }
.has-dropdown { position: relative; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); min-width: 240px; padding: 6px 0; margin: 0; list-style: none; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 18px; color: var(--ink); text-decoration: none; font-size: .94rem; }
.dropdown a:hover { background: var(--bg-alt); color: var(--brand); }
@media (max-width: 900px) {
  .header-contact__item--email { display: none; }
  .site-nav__inner { justify-content: space-between; }
  .nav__toggle { display: block; }
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--brand); padding: 6px 0 12px; }
  .nav__links.open { display: flex; }
  .nav__links .nav__call { margin: 8px 20px 0; text-align: center; border-radius: var(--radius); }
  .dropdown { display: block; position: static; background: transparent; border: 0; box-shadow: none; padding: 0 0 0 18px; }
  .dropdown a { color: #fff; }
  .dropdown a:hover { background: var(--brand-dark); color: #fff; }
}
@media (max-width: 600px) {
  .header-top__inner { flex-direction: column; gap: 6px; padding: 10px 20px; }
  .nav__logo img { height: 60px; }
}

/* ---------- hero ---------- */
.hero { background: linear-gradient(135deg, #e8f1fb 0%, #f7fbff 55%, #eaf3fb 100%); border-bottom: 1px solid var(--line); }
.hero__inner { padding: 64px 0 56px; max-width: 780px; }
.hero__split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 64px 0; }
.hero__split .hero__inner { padding: 0; }
.hero .hero__eyebrow { display: inline-block; background: var(--navy); color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius); margin-bottom: 16px; font-family: var(--font-body); }
.hero h1 { color: var(--navy); margin-bottom: 16px; }
.hero p { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.hero__checklist { list-style: none; margin: 0 0 8px; padding: 0; }
.hero__checklist li { position: relative; padding-left: 28px; font-weight: 600; color: var(--ink); }
.hero__checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero__photo img { width: 100%; height: auto; }
/* hero with estimate form (homepage + service pages): form sits above the fold on desktop */
.hero--form .hero__split { grid-template-columns: 1fr minmax(360px, 440px); gap: 44px; align-items: start; padding: 40px 0 44px; }
.hero--form .hero__inner { padding-top: 12px; }
.hero--form .hero__cta .btn:not(.wc-phone) { display: none; } /* the form replaces the estimate button */
.form-card--hero { padding: 22px 24px; box-shadow: 0 12px 30px rgba(21,34,68,.18); }
.form-card--hero h3 { font-size: 1.3rem; margin-bottom: 2px; }
.form-card--hero .italic { font-size: .95rem; margin-bottom: 12px; }
.form-card--hero .field { margin-bottom: 10px; }
.form-card--hero .field label { font-size: .85rem; margin-bottom: 3px; }
.form-card--hero .field input, .form-card--hero .field select { padding: 9px 11px; }
.form-card--hero .form-row { gap: 12px; }
.form-card--hero .btn--lg { padding: 13px 20px; }
@media (max-width: 900px) { .hero--form .hero__split { grid-template-columns: 1fr; padding: 32px 0; gap: 28px; } }
@media (max-width: 600px) { .form-card--hero .form-row { grid-template-columns: 1fr 1fr; gap: 10px; } }
@media (max-width: 900px) { .hero__split { grid-template-columns: 1fr; padding: 44px 0; } .hero__photo { max-width: 460px; } }

/* hero over an owner photo (homepage): dark navy overlay set inline, white text */
.hero--photo { background-color: var(--navy-dark); background-size: cover; background-position: center 35%; border-bottom: 0; }
.hero--photo .hero__split { padding: 64px 0 68px; }
.hero--photo h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero--photo p, .hero--photo .hero__checklist li { color: rgba(255,255,255,.92); }
.hero--photo .hero__eyebrow { background: var(--gold); color: var(--navy); }
.hero--photo .hero__checklist li::before { color: var(--gold); }
@media (max-width: 900px) { .hero--photo .hero__split { padding: 36px 0 40px; } }

/* section text beside a photo */
.media-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: start; }
.media-split--tall { grid-template-columns: 1.4fr .8fr; }
.media-split .prose { max-width: none; }
.media { margin: 0; }
.media img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 10px 28px rgba(21,34,68,.16); }
@media (max-width: 900px) { .media-split, .media-split--tall { grid-template-columns: 1fr; gap: 24px; } .media { max-width: 560px; } }

/* ---------- credential strip ---------- */
.cred-strip { background: var(--navy); color: #fff; }
.cred-strip ul { list-style: none; margin: 0; padding: 14px 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 30px; max-width: var(--max); margin: 0 auto; }
.cred-strip li { margin: 0; color: #fff; font-weight: 600; font-size: .95rem; }
.cred-strip li::before { content: "\2605"; color: var(--gold); margin-right: 8px; }

/* ---------- sections ---------- */
.section { padding: 60px 0; }
.section--alt { background: var(--bg-alt); }
.section__lead { max-width: 70ch; }
.section > .wrap > h2:first-child { margin-top: 0; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.2em; }
.center { text-align: center; }

/* cards */
.grid { display: grid; gap: 22px; margin: 22px 0 10px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); padding: 24px; }
.card h3 { color: var(--navy); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card__link { font-weight: 700; text-decoration: none; }

/* link lists */
.linklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; margin: 18px 0; padding: 0; }
@media (max-width: 800px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .linklist { grid-template-columns: 1fr; } }
.linklist li { margin: 0; }
.linklist a { display: block; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--navy); font-weight: 700; text-decoration: none; }
.linklist a:hover { border-color: var(--brand); color: var(--brand); }
.area-link { display: flex !important; justify-content: space-between; gap: 10px; }
.area-link__city { color: var(--ink-soft); font-weight: 400; font-size: .9rem; }

/* tables */
.table-wrap { overflow-x: auto; margin: 16px 0 18px; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .96rem; vertical-align: top; }
th { background: var(--navy); color: #fff; font-weight: 700; }
td { color: var(--ink-soft); }
td:first-child { color: var(--ink); font-weight: 600; }

/* FAQ */
.faq { max-width: 860px; margin-top: 18px; }
/* FAQs render fully expanded: question as h3, answer always visible */
.faq__item { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 14px; }
.faq__item h3 { font-size: 1.1rem; margin-bottom: .5em; }
.faq__item p:last-child, .faq__item ul:last-child { margin-bottom: 0; }

/* phone strip */
.phone-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 52px 0; text-align: center; }
.phone-strip h2 { margin-bottom: .4em; }
.phone-strip .sub { max-width: 62ch; margin: 0 auto 18px; }
.phone-strip .btn-row { justify-content: center; }

/* forms */
.split { display: grid; grid-template-columns: 60fr 40fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.form-card--teal { background: var(--teal); color: #fff; border-radius: var(--radius); padding: 28px; }
.form-card--teal h3 { color: #fff; font-size: 1.4rem; }
.form-card--teal .italic { font-style: italic; color: rgba(255,255,255,.92); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 5px; color: #fff; }
.field input, .field select { width: 100%; padding: 12px 13px; border: 1px solid rgba(0,0,0,.15); border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.form-card--teal .btn { width: 100%; margin-top: 6px; }
.form-status { background: #fff; color: var(--brand-dark); border-radius: var(--radius); padding: 10px 14px; font-weight: 600; }
.form-note { font-size: .9rem; color: rgba(255,255,255,.9); margin-top: 12px; margin-bottom: 0; }
.form-note a { color: #fff; }
.nap-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 24px; }
.nap-card p { margin-bottom: .6rem; }

/* team */
.team-card h3 { margin-bottom: .1em; }
.team-card .role { font-weight: 700; color: var(--brand); font-size: .92rem; margin-bottom: .6em; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.82); padding: 54px 0 26px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 1rem; margin-bottom: 14px; letter-spacing: .02em; }
.site-footer p { color: rgba(255,255,255,.78); font-size: .94rem; margin-bottom: .6rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .94rem; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); margin-top: 38px; padding-top: 18px; font-size: .86rem; color: rgba(255,255,255,.6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-sub { margin-top: 22px; }

/* =========================================================
   Pest Control Kensington additions
   ========================================================= */
/* owner logo (img/logo.png, 600x205, transparent) */
.brand__logo { display: block; height: 72px; width: auto; }
@media (max-width: 600px) { .brand__logo { height: 54px; } }
/* legacy wordmark styles */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__icon { width: 52px; height: 52px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.55rem; color: var(--navy); }
.brand__sub { font-size: .8rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }
.brand:hover .brand__name { color: var(--brand); }
.brand--footer { margin-bottom: 16px; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__sub { color: rgba(255,255,255,.75); }
@media (max-width: 600px) { .brand__icon { width: 42px; height: 42px; } .brand__name { font-size: 1.3rem; } }

/* hero: subhead under the H1 (override #8), lead, placeholder background until photos arrive */
.hero .subhead { font-family: var(--font-head); font-size: 1.25rem; font-style: italic; margin-bottom: 14px; }
.hero--photo .subhead { color: var(--gold); }
.hero .hero__lead { font-size: 1.08rem; }
.hero--placeholder {
  background-color: var(--navy-dark);
  background-image:
    radial-gradient(circle at 85% 20%, rgba(124,201,79,.18) 0, rgba(124,201,79,0) 42%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px),
    linear-gradient(120deg, #001a34 0%, #002d55 55%, #0a3f6e 100%);
}
.hero--photo .hero__inner h1 { margin-bottom: 8px; }
.hero--photo .hero__inner p a:not(.btn) { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.hero--photo .hero__inner p a:not(.btn):hover { color: var(--gold); }

/* hero form card (RingRobin embed goes in .lead-form) */
.form-card { background: #fff; border-radius: var(--radius); border-top: 5px solid var(--gold); padding: 24px 26px; box-shadow: 0 14px 34px rgba(0,0,0,.25); }
.form-card__title { font-size: 1.35rem; margin-bottom: 2px; }
.form-card__sub { font-size: .95rem; margin-bottom: 14px; }
.lead-form { min-height: 220px; border: 2px dashed var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; background: var(--bg-alt); }
.hero--photo .form-card p { color: var(--ink-soft); }
.lead-form p { margin: 0; font-weight: 600; }
.hero--photo .form-card .form-card__call { margin: 14px 0 0; font-size: .98rem; color: var(--ink); }

/* gold button text stays dark for contrast */
.btn--gold { color: var(--ink); }
.cred-strip li::before { content: "\2713"; }

/* lighter photo overlay (2026-11-27): shadow keeps hero text readable */
.hero--photo .hero__inner p, .hero--photo .subhead { text-shadow: 0 1px 3px rgba(0,0,0,.7), 0 0 14px rgba(0,0,0,.45); }
/* office address in the footer */
.site-footer .nap { font-style: normal; color: rgba(255,255,255,.78); font-size: .94rem; line-height: 1.5; }

/* hero estimate form (RingRobin, build/lead-form.html + js/lead-form.js) */
.lf { margin: 0; }
.lf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lf__field { margin-bottom: 10px; }
.lf__field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.lf__field input, .lf__field select, .lf__field textarea { width: 100%; padding: 10px 11px; border: 1px solid #c9ced6; border-radius: var(--radius); font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.lf__field textarea { resize: vertical; min-height: 56px; }
.lf__field input:focus, .lf__field select:focus, .lf__field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.lf__submit { width: 100%; margin-top: 4px; font-size: 1.05rem; padding: 13px 16px; border: 0; cursor: pointer; }
.lf__submit:disabled { opacity: .7; cursor: wait; }
.hero--photo .form-card .lf__status { color: #b42318; font-weight: 600; font-size: .92rem; margin: 8px 0 0; }
.lf__status:empty { display: none; }
.hero--photo .form-card .lf__consent { font-size: .78rem; color: var(--ink-soft); margin: 8px 0 0; line-height: 1.4; }
.lf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 420px) { .lf__row { grid-template-columns: 1fr; gap: 0; } }

/* town grid grouped by region (pest-control-kensington-md) */
.region-grid { display: grid; gap: 8px 0; margin-top: 10px; }
.region h3 { margin: 18px 0 4px; font-size: 1.05rem; color: var(--navy); }
.region .linklist { margin-top: 8px; }

/* service cards: pest photo, overlapping icon badge, centered text */
.card--svc { padding: 0; overflow: hidden; text-align: center; border: 0; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,26,52,.10); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card--svc:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,26,52,.16); }
.card--svc__photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card--svc__icon { position: relative; width: 112px; height: 112px; margin: -56px auto 0; border-radius: 50%; background: #eef2ea; color: var(--navy); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,26,52,.14); }
.card--svc__icon svg { width: 58px; height: 58px; }
.card--svc__body { padding: 20px 24px 26px; }
.card--svc h3 { margin-top: 0; }
.card--svc h3 a { color: var(--brand); text-decoration: none; }
.card--svc h3 a::after { content: " \2192"; }
.card--svc h3 a:hover { text-decoration: underline; }
.grid:has(.card--svc) { display: flex; flex-wrap: wrap; justify-content: center; }
.grid:has(.card--svc) > .card--svc { flex: 0 1 calc((100% - 44px) / 3); }
@media (max-width: 800px) { .grid:has(.card--svc) > .card--svc { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 560px) { .grid:has(.card--svc) > .card--svc { flex-basis: 100%; } }