/* Dereks Pest Control — site styles. Brand: red #fb1706 (logo), charcoal #212529 (old site). */
:root {
  --brand: #fb1706;
  --brand-d: #c91000;      /* button fill, 5.6:1 with white text */
  --brand-dd: #a30d00;
  --ink: #212529;
  --ink-2: #15171a;
  --ink-3: #2c3136;
  --muted: #5b646c;
  --line: #e4e7ea;
  --soft: #f6f7f8;
  --ok: #198754;
  --r: 12px;
  --shadow: 0 8px 28px rgba(21, 23, 26, .12);
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-d); }
a:hover { color: var(--brand-dd); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: inherit; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ic { flex: none; vertical-align: -.2em; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 14px; z-index: 999; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid #ffb3ab; outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s, background .15s, color .15s; line-height: 1.2; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-d); color: #fff; }
.btn-primary:hover { background: var(--brand-dd); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f0f1f2; color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Header: part 1 (logo / phone / quote) + part 2 (navigation) */
.site-header { background: var(--ink-2); color: #fff; position: sticky; top: -76px; z-index: 50; box-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.hdr-top-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 76px; }
.logo { flex: none; display: block; }
.logo img { height: 46px; width: auto; }
.hdr-actions { display: flex; align-items: center; gap: 22px; }
.hdr-phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.4rem; letter-spacing: .01em; white-space: nowrap; }
.hdr-phone .ic { box-sizing: content-box; background: var(--brand-d); border-radius: 50%; padding: 9px; }
.hdr-phone:hover { color: #ff9b92; }
.hdr-actions .btn { padding: 12px 24px; }
.navbar { background: #1d2126; border-top: 1px solid #2f353b; }
.navbar .wrap { position: relative; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav > li { position: relative; }
.nav > li > a { display: block; color: #fff; text-decoration: none; padding: 14px 18px; font-weight: 600; font-size: .98rem; }
.nav > li > a:hover { color: #ff9b92; }
.sub-toggle { display: none; }
.sub { position: absolute; top: 100%; left: 0; background: #fff; color: var(--ink); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow); min-width: 240px; display: none; border-top: 3px solid var(--brand); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.sub-in { padding: 10px; display: grid; }
.sub-in > a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.sub-in > a:hover { background: var(--soft); color: var(--brand-d); }
.mega > .sub { width: 620px; }
.mega.wide { position: static; }
.mega.wide > .sub { left: 0; right: 0; width: auto; }
.mega .sub-in { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 18px; }
.sub-col ul { list-style: none; margin: 6px 0 0; padding: 0; }
.sub-col li a { display: block; padding: 4px 8px; color: var(--ink); text-decoration: none; font-size: .93rem; border-radius: 6px; }
.sub-col li a:hover { background: var(--soft); color: var(--brand-d); }
.sub-h { display: block; font-weight: 800; color: var(--brand-d); text-decoration: none; padding: 4px 8px 8px; border-bottom: 2px solid var(--line); text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
.burger { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #3a1512 0%, transparent 60%), linear-gradient(135deg, var(--ink-2) 0%, var(--ink-3) 100%); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero-home { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.hero:not(:has(.hero-form)) .hero-grid { grid-template-columns: 1fr; max-width: 860px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 800; color: #ff8a80; margin-bottom: 10px; }
.hero h1 { margin-bottom: .4em; }
.hero .hero-sub { font-size: 1.15rem; color: #d9dde1; max-width: 62ch; }
.points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.points li { display: flex; gap: 10px; align-items: flex-start; color: #eef0f2; }
.points .ic { color: #6ee7a0; margin-top: 3px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-form { background: #fff; color: var(--ink); border-radius: 16px; padding: 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); border-top: 5px solid var(--brand); }
.hero-form h2 { font-size: 1.45rem; margin-bottom: .2em; }
.hero-form > p { color: var(--muted); font-size: .93rem; margin-bottom: 14px; }
.qform { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.fg { display: flex; flex-direction: column; gap: 4px; }
.fg.full, .qform .btn, .fnote { grid-column: 1 / -1; }
.fg label { font-size: .82rem; font-weight: 700; }
.fg input, .fg select, .fg textarea { font: inherit; padding: 10px 12px; border: 1.5px solid #cfd4d8; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--brand-d); outline: 3px solid #ffd2cd; }
.fg .bad { border-color: #d92d20; }
.fnote { font-size: .82rem; color: var(--muted); margin: 2px 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; }
.flash { padding: 12px 0; background: #fff3cd; color: #664d03; font-weight: 600; text-align: center; }
.flash.err { background: #fde7e5; color: #8a1f13; }
.crumbs { background: var(--soft); border-bottom: 1px solid var(--line); font-size: .87rem; }
.crumbs ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--muted); }
.crumbs a { text-decoration: none; }

/* Sections */
.sec { padding: 64px 0; }
.sec-soft { background: var(--soft); }
.sec-dark { background: var(--ink-2); color: #fff; }
.sec-head { max-width: 760px; margin-bottom: 32px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.1rem; color: var(--muted); }
.sec-dark .lead { color: #c5cbd1; }
.prose { font-size: 1.04rem; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose ul.ticks { list-style: none; padding: 0; display: grid; gap: 8px; }
.prose ul.ticks li { padding-left: 28px; position: relative; }
.prose ul.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat; }
.grid { display: grid; gap: 20px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.grp { margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--line); display: flex; align-items: baseline; gap: 10px; font-size: 1.35rem; }
.grp:first-of-type { margin-top: 0; }
.grp span { font-size: .8rem; font-weight: 700; color: var(--muted); background: var(--soft); padding: 2px 10px; border-radius: 999px; }
.grp a { text-decoration: none; color: inherit; }
.grp a:hover { color: var(--brand-d); }

/* Cards */
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #f3b3ad; color: var(--ink); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-icon { display: grid; place-items: center; color: var(--brand-d); background: linear-gradient(135deg, #fff1ef, #ffe0dc); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .3em; font-size: 1.05rem; }
.card-body p { font-size: .9rem; color: var(--muted); margin-bottom: 10px; flex: 1; }
.card-link { color: var(--brand-d); font-weight: 700; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.area-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: .15s; }
.area-card:hover { border-color: #f3b3ad; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.area-card .ic { color: var(--brand-d); }
.area-card small { color: var(--muted); font-size: .82rem; line-height: 1.4; }

/* Features, steps, packages */
.feature { text-align: left; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.feat-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff1ef; color: var(--brand-d); margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: var(--ink-3); border-radius: var(--r); padding: 24px 20px; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-d); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps p { color: #c5cbd1; font-size: .93rem; margin: 0; }
.pkg { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 26px 22px; display: flex; flex-direction: column; }
.pkg.featured { border-color: var(--brand-d); box-shadow: var(--shadow); }
.pkg-tag { position: absolute; top: -12px; left: 22px; background: var(--brand-d); color: #fff; font-size: .75rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.pkg-price { font-size: 1.6rem; font-weight: 800; color: var(--brand-d); margin: 4px 0 8px; }
.pkg p { color: var(--muted); font-size: .93rem; }
.pkg ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; flex: 1; font-size: .93rem; }
.pkg li { display: flex; gap: 8px; align-items: flex-start; }
.pkg li .ic { color: var(--ok); margin-top: 4px; }

/* Image + text */
.it { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.it-left .it-img { order: -1; }
.it-img img { border-radius: 16px; box-shadow: var(--shadow); width: 100%; }

/* Links block */
.links-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.links-cols h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.links-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.links-cols a { text-decoration: none; font-weight: 600; }
.links-cols a:hover { text-decoration: underline; }

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--brand-dd), var(--brand-d)); color: #fff; padding: 44px 0; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; opacity: .92; }
.cta-band .btn-primary { background: var(--ink-2); }
.cta-band .btn-primary:hover { background: #000; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 14px; align-items: center; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--brand-d); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details[open] { border-color: #f3b3ad; }
.faq .ans { padding: 0 18px 4px; color: #3b4148; }

/* Footer */
.site-footer { background: var(--ink-2); color: #c9ced3; padding-top: 56px; }
.site-footer a { color: #e6e9ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.f-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 40px; }
.f-about img { height: 43px; width: auto; margin-bottom: 14px; }
.f-about p { font-size: .93rem; }
.f-phone { font-weight: 800; font-size: 1.15rem; }
.f-col h3 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.f-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.f-bar { border-top: 1px solid #2f353b; font-size: .85rem; }
.f-bar .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 16px; padding-bottom: 16px; }

/* Thank-you / misc */
.credits li { margin-bottom: .5em; font-size: .93rem; }

/* Responsive */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(3, 1fr); }
  .g5 { grid-template-columns: repeat(3, 1fr); }
  .f-grid { grid-template-columns: repeat(3, 1fr); }
  .f-about { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  /* Mobile header: logo row scrolls away; the phone number + Get a Free Quote + menu row stays stuck to the top */
  .site-header { position: sticky; top: -56px; }
  .hdr-top-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .logo { order: 1; width: 100%; height: 42px; }
  .logo img { height: 42px; }
  .hdr-actions { order: 2; flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  .burger { display: block; order: 3; flex: none; margin: 0; padding: 6px; position: relative; z-index: 70; }
  .hdr-phone { justify-content: center; gap: 6px; background: #fff; color: var(--ink); border-radius: 999px; padding: 10px 6px; font-size: 1rem; border: 2px solid #fff; }
  .hdr-phone:hover { color: var(--ink); background: #f0f1f2; }
  .hdr-phone .ic { background: none; color: var(--brand-d); padding: 0; width: 18px; height: 18px; }
  .hdr-actions .btn { padding: 10px 14px; font-size: .92rem; white-space: nowrap; }
  .navbar { border: 0; background: transparent; }
  .navbar .wrap { padding: 0; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(400px, 92vw); background: var(--ink-2); padding: 84px 20px 30px; overflow-y: auto; transform: translateX(100%); transition: transform .25s, box-shadow .25s; z-index: 60; box-shadow: none; visibility: hidden; }
  .main-nav.open { transform: none; box-shadow: -10px 0 30px rgba(0, 0, 0, .5); visibility: visible; }
  .nav { flex-direction: column; gap: 0; }
  .nav > li { border-bottom: 1px solid #2f353b; display: flex; flex-wrap: wrap; align-items: center; }
  .nav > li > a { flex: 1; padding: 15px 4px; }
  .sub-toggle { display: block; background: none; border: 0; color: #fff; padding: 12px; cursor: pointer; }
  .sub-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
  .sub, .mega > .sub { position: static; display: none; width: 100%; transform: none; box-shadow: none; background: #1d2024; border-top: 0; border-radius: 8px; margin-bottom: 10px; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .has-sub.open > .sub { display: block !important; }
  .sub-in, .mega .sub-in { grid-template-columns: 1fr; padding: 8px; }
  .sub-in > a, .sub-col li a { color: #e6e9ec; }
  .sub-h { color: #ff8a80; }
  .hero-grid { grid-template-columns: 1fr; }
  .it { grid-template-columns: 1fr; }
  .it-left .it-img { order: 0; }
  .linklist { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .sec { padding: 44px 0; }
  .g4, .g5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .steps { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .qform { grid-template-columns: 1fr; }
  .card-body p { display: none; }
  .hero { padding: 36px 0 44px; }
}
@media (max-width: 460px) { .g4, .g5 { grid-template-columns: 1fr 1fr; } .f-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Compact link lists (area pages) */
.linklist { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 24px; }
.linklist a { display: flex; align-items: center; gap: 8px; padding: 7px 0; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.linklist a:hover { color: var(--brand-dd); }
.linklist .ic { color: var(--brand-d); }
@media (max-width: 960px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .linklist { grid-template-columns: 1fr; } }

/* Footer disclaimer */
.f-disclaimer { border-top: 1px solid #2f353b; font-size: .84rem; color: #aab1b8; }
.f-disclaimer .wrap { padding-top: 18px; padding-bottom: 18px; }
.f-disclaimer p { margin: 0; max-width: 900px; }
.f-disclaimer a { text-decoration: underline; }
@media (max-width: 380px) { .hdr-phone { font-size: .9rem; } .hdr-actions .btn { font-size: .84rem; padding: 10px 10px; } }
