/* Dereks Pest Control - site extras (release 2026.10.2). Same colours as before (red #fb1706 / dark #15171a).
   Loaded after site.css + custom CSS by includes/derek.php dx_head(). */

/* ---------- Fonts: Manrope (text) + Archivo (headings), self-hosted, no Google request ---------- */
@font-face { font-family: 'Manrope'; src: url('/assets/fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('/assets/fonts/archivo.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root { --head-font: 'Archivo', 'Arial Narrow', Arial, sans-serif; --body-font: 'Manrope', system-ui, Arial, sans-serif; --dx-red: var(--brand); --dx-dark: #15171a; }
body { font-family: var(--body-font); }
h1, h2, h3, .form-title, .grp { font-family: var(--head-font); letter-spacing: -.01em; }
h1 { font-weight: 800; }
h2 { font-weight: 800; }

/* ---------- Header: always visible on desktop and phones ---------- */
body.hdr-full .site-header, .site-header { top: 0; }
.site-header { transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(0, 0, 0, .35); }
body.hdr-full .site-header.is-scrolled .hdr-top-in { height: 62px; }
body.hdr-full .site-header.is-scrolled .logo img { height: 40px; }
.dx-hdr-note { color: #fff; border-left: 3px solid var(--brand); padding-left: 10px; }
.dx-hdr-note strong { color: #fff; }
.dx-hdr-note span { color: #c9cdd2; font-weight: 600; }
.hdr-actions .btn-primary { background: var(--brand); box-shadow: 0 6px 16px rgba(251, 23, 6, .35); }
.hdr-actions .btn-primary:hover { background: var(--brand-d); }

@media (max-width: 960px) {
  /* one slim row that stays: logo | phone | menu  (Free Quote lives in the bottom bar + pop-up) */
  .site-header, body.hdr-full .site-header { position: sticky; top: 0; }
  .hdr-top-in { flex-wrap: nowrap; height: 62px; padding-top: 0; padding-bottom: 0; gap: 10px; }
  .logo { order: 1; width: auto; height: 40px; flex: none; }
  .logo img, body.hdr-full .site-header.is-scrolled .logo img { height: 40px; width: auto; }
  .hdr-actions { order: 2; flex: 1; display: flex; justify-content: flex-end; gap: 8px; }
  .hdr-actions .btn { display: none; }
  .hdr-phone, .hdr-phone:hover { color: #15171a; background: #fff; border: 0; padding: 0 14px; min-height: 44px; font-size: 1rem; border-radius: 999px; }
  body.hdr-full .site-header.is-scrolled .hdr-top-in { height: 58px; }
  .burger { min-width: 44px; min-height: 44px; }
}
@media (max-width: 380px) { .hdr-phone, .hdr-phone:hover { padding: 0 10px; font-size: .92rem; } .logo img { height: 34px !important; } }

/* ---------- Hero: price line + trust chips, shorter on phones ---------- */
.dx-price-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 16px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 1rem; }
.dx-price-line .ic { color: var(--brand); width: 18px; height: 18px; }
.dx-price-line strong { color: #fff; font-size: 1.12rem; }
.dx-price-line .dx-dot { color: #8a9099; margin: 0 2px; }
.dx-price-line a { color: #ffb3ad; font-weight: 700; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.dx-trust { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.dx-trust li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #eef0f2; font-size: .9rem; font-weight: 600; }
.dx-trust .ic { color: #fff; background: var(--brand); border-radius: 50%; padding: 2px; width: 16px; height: 16px; box-sizing: border-box; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); line-height: 1.08; }
.hero-actions .btn-light { font-size: 1.15rem; font-weight: 800; }

@media (max-width: 960px) {
  .hero { padding: 26px 0 32px; }
  .hero h1 { font-size: 2rem; margin-bottom: .3em; }
  .hero .hero-sub { font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
  .dx-price-line { font-size: .92rem; padding: 8px 12px; border-radius: 12px; }
  .dx-trust { gap: 6px; margin-bottom: 16px; }
  .dx-trust li { font-size: .8rem; padding: 6px 9px; }
  .dx-trust li:nth-child(n+5) { display: none; }   /* phones: the 4 most important chips */
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn-ghost { display: none; }      /* "All services" - the menu has it; keeps the phone button + form in view */
  .hero-actions .btn-light { width: 100%; min-height: 52px; }
  .hero-grid { gap: 22px; }
  .hero-form { padding: 18px; }
  .hero-form > p { display: none; }
}

/* ---------- Price widget ---------- */
.dx-prices { background: #fff; border-bottom: 1px solid var(--line); padding: 48px 0; }
.dx-prices-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.dx-prices-head h2 { margin-bottom: .3em; }
.dx-prices-head p { color: var(--muted); }
.dx-prices-head .label { color: var(--brand-d); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 6px; }
.dx-prices-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.dx-ptable { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 14px 40px rgba(21, 23, 26, .08); }
.dx-prow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.dx-prow:last-child { border-bottom: 0; }
.dx-prow strong { display: block; font-size: 1.05rem; }
.dx-prow small { color: var(--muted); display: block; margin-top: 2px; }
.dx-prow.is-hit { background: #fff5f4; box-shadow: inset 4px 0 0 var(--brand); }
.dx-pprice { text-align: right; white-space: nowrap; }
.dx-pprice b { font-family: var(--head-font); font-size: 1.6rem; color: var(--dx-dark); }
.dx-pprice small { display: inline; color: var(--muted); margin: 0; }
.dx-terms { margin-top: 22px; padding: 16px 20px; background: var(--soft); border-radius: 12px; font-size: .92rem; color: var(--muted); }
.dx-terms p { margin: 0 0 6px; color: var(--ink); }
.dx-terms ul { margin: 0; padding-left: 18px; }
.dx-terms li { margin: 3px 0; }
@media (max-width: 860px) { .dx-prices-in { grid-template-columns: 1fr; gap: 20px; } .dx-prices { padding: 34px 0; } .dx-prow { padding: 15px 16px; } .dx-pprice b { font-size: 1.35rem; } }

/* ---------- Floating "Get a Free Quote" (desktop) ---------- */
.dx-fab { position: fixed; right: 22px; bottom: 22px; z-index: 57; display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.05rem; text-decoration: none; box-shadow: 0 12px 28px rgba(251, 23, 6, .45), 0 2px 6px rgba(0, 0, 0, .2); transition: transform .15s, background .15s; }
.dx-fab:hover { transform: translateY(-2px); background: var(--brand-d); color: #fff; }
.dx-fab .ic { width: 20px; height: 20px; stroke: #fff; }
.dx-fab::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid rgba(251, 23, 6, .45); animation: dx-pulse 2.4s ease-out infinite; }
@keyframes dx-pulse { 0% { transform: scale(.96); opacity: 1; } 100% { transform: scale(1.18); opacity: 0; } }
@media (max-width: 960px) { .dx-fab { display: none; } }   /* phones: the bottom bar's Free Quote button is the floating button */
@media (prefers-reduced-motion: reduce) { .dx-fab::before { animation: none; } }

/* ---------- Quote pop-up ---------- */
.dx-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dx-modal[hidden] { display: none; }
.dx-modal-bg { position: absolute; inset: 0; background: rgba(10, 12, 14, .7); }
.dx-modal-box { position: relative; background: #fff; color: var(--ink); width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 18px; padding: 26px 24px 20px; border-top: 6px solid var(--brand); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.dx-modal-box .form-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 4px; }
.dx-modal-sub { color: var(--muted); margin: 0 0 12px; font-size: .95rem; }
.dx-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: var(--soft); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.dx-trust-sm { margin: 0 0 14px; }
.dx-trust-sm li { background: var(--soft); border-color: var(--line); color: var(--ink); font-size: .8rem; padding: 5px 9px; }
.dx-trust-sm li:nth-child(n+4) { display: none; }
body.dx-modal-open { overflow: hidden; }
@media (max-width: 600px) { .dx-modal { padding: 0; align-items: flex-end; } .dx-modal-box { border-radius: 18px 18px 0 0; max-height: 92vh; padding: 22px 16px 16px; } }

/* ---------- Phones: bigger tap targets, lighter pages (M-02, M-03) ---------- */
@media (max-width: 960px) {
  .mobile-bar a { min-height: 56px; }
  .mb-quote { font-size: 1.05rem; }
  .linklist a, .sub-col li a, .sub-in > a { display: flex; align-items: center; min-height: 44px; }
  .list-chips li a, .suburbs li a { display: inline-flex; align-items: center; min-height: 40px; }
  .f-grid a { display: inline-block; padding: 6px 0; }
  .btn { min-height: 46px; }
  .qform input, .qform select, .qform textarea { min-height: 48px; font-size: 16px; }
}
@media (max-width: 720px) {
  /* service grids: compact 2-column tiles without photos (lazy photos are then never downloaded) */
  .sec .grid .card .card-media { display: none; }
  .sec .grid .card { border-radius: 12px; }
  .sec .grid .card .card-body { padding: 12px 12px 10px; }
  .sec .grid .card h3 { font-size: .98rem; margin: 0 0 4px; }
  .sec .grid .card .card-link { font-size: .82rem; }
  .grp { font-size: 1.1rem; margin: 22px 0 10px; }
}

/* ---------- Small polish ---------- */
.sec-head h2, .sec h2 { text-wrap: balance; }
.hero-form { border-top-color: var(--brand); }
.hero-form .btn-primary, .qform .btn-primary { background: var(--brand); font-size: 1.08rem; min-height: 52px; }
.hero-form .btn-primary:hover, .qform .btn-primary:hover { background: var(--brand-d); }
.fnote { font-size: .85rem; }

/* ---------- City pages: suburbs by region (LOC-05) ---------- */
.dx-regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.dx-region { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.dx-region h3 { font-size: 1.05rem; margin: 0 0 6px; }
.dx-region h3 a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--brand); }
.dx-region h3 a:hover { color: var(--brand-d); }
.dx-region p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 960px) { .dx-regions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .dx-regions { grid-template-columns: 1fr; } }

/* form title in the ink colour (was grey); floating button hides while the page's own form is on screen */
.hero-form .form-title { color: var(--dx-dark); font-weight: 800; }
.dx-fab { transition: transform .15s, background .15s, opacity .2s; }
.dx-fab.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }
.dx-region summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--head-font); font-weight: 700; font-size: 1.05rem; min-height: 32px; }
.dx-region summary::-webkit-details-marker { display: none; }
.dx-region summary a, .dx-region summary strong { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--brand); }
.dx-region summary span { font-family: var(--body-font); font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--soft); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.dx-region p { margin-top: 8px; }
@media (max-width: 600px) { .dx-region { padding: 12px 14px; } .dx-regions { gap: 8px; } }
@media (max-width: 720px) {
  .sec .grid .card .card-link { display: none; }
  .sec .grid .card .card-body { padding: 10px 12px; }
  .sec .grid .card h3 { margin: 0; font-size: .95rem; }
  .sec .grid.g4, .sec .grid.g3 { gap: 8px; }
}
