/*
Theme Name: Mr. Drain Cleaning — mr-drain-cleaning-theme-v1
Theme URI: https://draincleaningenid.com
Author: WP-Flash | SerpZenith
Author URI: https://wpflash.site
Description: Bespoke theme for Mr. Drain Cleaning (Enid, OK). Call-first service layout, self-hosted fonts, no page builder, Plumber + Service + FAQPage + BreadcrumbList schema. Built with WP-Flash v4.0.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: Private
Text Domain: mr-drain-cleaning-theme-v1
*/

/* ===================== FONTS (self-hosted, latin) ===================== */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/montserrat-700.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/montserrat-800.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/open-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/open-sans-600.woff2') format('woff2'); }

/* ===================== TOKENS ===================== */
:root {
  --color-primary: #0371BE;
  --primary-rgb: 3, 113, 190;
  --color-secondary: #025A98;
  --color-navy: #0A1C35;
  --color-accent: #F2A900;
  --color-accent-dark: #D99700;
  --color-bg: #FFFFFF;
  --color-surface: #F3F7FB;
  --color-border: #DCE5EE;
  --color-text: #0F1E33;
  --color-text-muted: #5A6778;
  --color-success: #10B981;

  --font-heading: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', Arial, sans-serif;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(10, 28, 53, .08);
  --shadow-md: 0 6px 20px rgba(10, 28, 53, .10);
  --shadow-lg: 0 14px 40px rgba(10, 28, 53, .14);

  --container: 1180px;
  --container-md: 820px;
  --header-h: 72px;
}

/* ===================== RESET + BASE ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-secondary); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(30px, 4.6vw, 48px); }
h2 { font-size: clamp(24px, 3.2vw, 32px); margin-top: 1.8em; }
h3 { font-size: clamp(19px, 2.2vw, 22px); font-weight: 700; margin-top: 1.5em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; color: var(--color-navy); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: #fff; padding: 10px 16px; border-radius: var(--radius); box-shadow: var(--shadow-md); }

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

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-heading); font-weight: 800; font-size: 16px; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-call { background: var(--color-accent); color: var(--color-navy); border-color: var(--color-accent); box-shadow: 0 2px 0 var(--color-accent-dark); }
.btn-call:hover { background: #FFB914; color: var(--color-navy); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(242, 169, 0, .35); }
.btn-ghost { background: transparent; color: var(--color-navy); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 18px; }
.btn-block { width: 100%; }
.phone-inline { font-weight: 700; white-space: nowrap; }

/* ===================== HEADER ===================== */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--color-border); }
.header-inner { max-width: var(--container); margin: 0 auto; padding: 0 20px; height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.site-logo { display: block; flex: 0 0 auto; }
.site-logo img { width: 160px; height: 56px; object-fit: contain; }
.primary-nav { margin-left: auto; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav .menu li { margin: 0; }
.primary-nav .menu a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--color-navy); font-weight: 600; font-size: 15px; text-decoration: none; }
.primary-nav .menu a:hover, .primary-nav .menu .current-menu-item > a { color: var(--color-primary); background: var(--color-surface); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.btn-header { min-height: 44px; padding: 10px 16px; font-size: 16px; }
.icon-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; color: var(--color-navy); cursor: pointer; align-items: center; justify-content: center; }
.icon-btn svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .primary-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md); display: none; margin: 0; }
  .primary-nav.open { display: block; }
  .primary-nav .menu { flex-direction: column; padding: 10px 20px 16px; gap: 0; }
  .primary-nav .menu a { padding: 12px 6px; font-size: 16px; border-bottom: 1px solid var(--color-border); border-radius: 0; }
  .header-tools { margin-left: auto; }
  .icon-btn { display: inline-flex; }
}
@media (max-width: 560px) {
  :root { --header-h: 62px; }
  .site-logo img { width: 128px; height: 45px; }
  .btn-header { padding: 8px 12px; font-size: 15px; }
  .btn-header span { display: none; }
  .btn-header::after { content: 'Call'; }
}

/* ===================== SERVICE HERO (above the fold = call action) ===================== */
.svc-hero { background: linear-gradient(180deg, var(--color-surface) 0%, #fff 100%); border-bottom: 1px solid var(--color-border); padding: 28px 0 36px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: center; }
.hero-main h1 { margin-bottom: 14px; }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--color-text); max-width: 640px; margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { margin: 0; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--color-border); font-size: 14px; font-weight: 600; color: var(--color-navy); }
.call-card { background: var(--color-navy); color: #fff; border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); }
.call-card-kicker { margin: 0 0 4px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #9CC9F0; font-weight: 600; }
.call-card-phone { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 30px; color: var(--color-accent); text-decoration: none; margin-bottom: 14px; white-space: nowrap; }
.call-card-phone:hover { color: #FFC233; }
.call-steps { margin: 0 0 14px; padding-left: 1.2em; font-size: 15px; color: #E2ECF6; }
.call-steps li { margin-bottom: 6px; }
.call-card-area { margin: 0; font-size: 14px; color: #B8CCE0; }
.call-card-area a { color: #fff; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .call-card { display: none; } /* mobile: the hero button + sticky call bar do this job */
  .svc-hero { padding: 18px 0 26px; }
}
@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; }
  .hero-actions .btn-ghost { display: none; }
}

/* ===================== BREADCRUMB ===================== */
.breadcrumb ol { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--color-text-muted); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ===================== PAGE HEAD (article / plain) ===================== */
.page-head { padding-top: 28px; }
.page-head h1 { margin-bottom: 8px; }
.byline { color: var(--color-text-muted); font-size: 14px; margin-bottom: 20px; }

/* ===================== CONTENT ===================== */
.entry-content { padding-top: 28px; padding-bottom: 32px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { padding-top: 4px; }
.entry-content ul li::marker { color: var(--color-primary); }

/* Answer box: the first thing on answer pages, quotable by AI answers */
.answer-box { background: var(--color-surface); border-left: 5px solid var(--color-primary); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 0 0 28px; }
.answer-box .answer-label { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 6px; }
.answer-box p { margin: 0 0 .6em; font-size: 18px; }
.answer-box p:last-child { margin-bottom: 0; }

.note { background: #FFF8E6; border: 1px solid #F5D98A; border-radius: var(--radius); padding: 14px 18px; margin: 0 0 24px; font-size: 16px; }
.note strong { color: #6B4A00; }
.warn { background: #FDECEC; border: 1px solid #F3B9B9; border-radius: var(--radius); padding: 14px 18px; margin: 0 0 24px; font-size: 16px; }

/* Tables (prices, comparisons) */
.table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--color-border); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
th { background: var(--color-surface); font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--color-navy); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { white-space: nowrap; }
.table-source { font-size: 14px; color: var(--color-text-muted); margin-top: -14px; margin-bottom: 24px; }

/* Step list */
ol.steps { list-style: none; padding: 0; counter-reset: step; margin: 0 0 24px; }
ol.steps > li { counter-increment: step; position: relative; padding: 2px 0 14px 54px; margin: 0; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--color-primary); color: #fff; font-family: var(--font-heading); font-weight: 800; display: flex; align-items: center; justify-content: center; }
ol.steps > li strong { display: block; }

/* Card grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 0 0 28px; }
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 0; font-size: 19px; }
.card p { margin: 0; font-size: 16px; color: var(--color-text-muted); }
.card a.card-link, .card .card-link { display: inline-block; margin-top: 10px; font-weight: 700; text-decoration: none; color: var(--color-primary); }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Check / cross lists */
ul.check, ul.cross { list-style: none; padding: 0; }
ul.check li, ul.cross li { position: relative; padding-left: 30px; }
ul.check li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--color-success); border-bottom: 3px solid var(--color-success); transform: rotate(-45deg); }
ul.cross li::before { content: '×'; position: absolute; left: 4px; top: -.1em; font-size: 22px; font-weight: 700; color: #C2410C; }

/* Town list */
.town-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 0 0 24px; }
.town-list li { margin: 0; padding: 10px 14px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); font-weight: 600; color: var(--color-navy); }

/* Related links */
.related { border-top: 1px solid var(--color-border); margin-top: 36px; padding-top: 20px; }
.related h2 { font-size: 20px; margin-top: 0; }
.related ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 20px; }
.related li { margin: 0; }
.related a { font-weight: 600; }

/* FAQ (no JS, <details>) */
.faq-list { margin: 0 0 28px; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-question { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-family: var(--font-heading); font-weight: 700; font-size: 17px; color: var(--color-navy); cursor: pointer; list-style: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-chevron { font-size: 24px; line-height: 1; color: var(--color-primary); flex: 0 0 auto; transition: transform .2s ease; font-weight: 400; }
details[open] .faq-chevron { transform: rotate(45deg); }
.faq-answer { padding: 0 0 18px; color: var(--color-text); }
.faq-answer p { margin: 0 0 .7em; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Two columns inside content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0 0 24px; }
@media (max-width: 680px) { .split { grid-template-columns: 1fr; } }

/* Figures */
figure { margin: 0 0 24px; }
figure img { border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
figcaption { font-size: 14px; color: var(--color-text-muted); margin-top: 8px; }

/* ===================== CTA BAND ===================== */
.cta-band { background: var(--color-navy); color: #fff; border-radius: var(--radius-lg); margin: 12px 0 48px; padding: 30px 32px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 28px); }
.cta-band p { margin: 0; color: #C9D8E8; max-width: 620px; font-size: 16px; }
.cta-actions { flex: 0 0 auto; }
.entry-content .cta-band { margin: 28px 0; }
@media (max-width: 760px) {
  .cta-inner { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
  .cta-band { padding: 24px 20px; }
}

/* ===================== FOOTER ===================== */
.site-footer { background: var(--color-navy); color: #C9D8E8; padding: 48px 0 24px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand .site-logo img { width: 180px; height: 63px; margin-bottom: 12px; }
.footer-brand p { margin: 0 0 14px; }
.nap { font-style: normal; line-height: 1.7; }
.nap strong { color: #fff; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--color-accent); text-decoration: underline; }
.footer-col h2 { color: #fff; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0 0 8px; }
.footer-links a { color: #C9D8E8; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; font-size: 14px; color: #93A8BF; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===================== MOBILE CALL BAR ===================== */
.mobile-call-bar { display: none; }
@media (max-width: 767px) {
  .mobile-call-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99; padding: 10px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--color-border); box-shadow: 0 -6px 20px rgba(10, 28, 53, .12); }
  .mobile-call-bar .btn { min-height: 52px; font-size: 18px; }
  body { padding-bottom: 76px; }
}

/* ===================== MISC ===================== */
.site-main { min-height: 50vh; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .mobile-call-bar, .cta-band, .site-footer { display: none !important; }
}
