/*
Theme Name: Enviro Pro Asbestos
Theme URI: https://asbestosremovalpro.org
Author: Web South Media
Description: Heritage-framework lead-gen theme for Enviro Pro Asbestos. Slug-switch templating, service x location matrix, WSM Chat integration, RankMath/SEOPress meta populator.
Version: 2.3.0
Requires PHP: 7.4
Text Domain: enviropro
*/

/* =========================================================
   DESIGN TOKENS — data-palette="arp"
   Enviro Pro brand palette: green #00BF63, blue #004AAD,
   ink #292929 on near-white. Signature: containment-tape
   stripe divider (brand green + ink).
   ========================================================= */
html[data-palette="arp"] {
  --ink:    #141414; /* badge black — headings */
  --slate:  #4C4C4A; /* neutral body text */
  --paper:  #F7F7F5; /* near-white page ground */
  --white:  #FFFFFF;
  --brand:  #86B635; /* Enviro Pro badge green — accents, checks */
  --brand-d:#6E9627; /* green hover / text-safe */
  --accent: #FA7B02; /* hazard orange — CTAs, tape, phone */
  --accent-d:#D66700;
  --tint:   #F3F6E9; /* soft green tint for chips/bands */
  --line:   #E6E6E2; /* hairlines */
  --line-dk:#2E2E2E;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  --maxw: 1160px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 22px rgba(22,51,43,.07);
}

/* ============ RESET / BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-d); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 600; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============ SIGNATURE: CONTAINMENT TAPE ============ */
.tape {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 16px,
    var(--ink) 16px 32px
  );
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-d);
  margin-bottom: 12px;
}
.section-ink .eyebrow { background: rgba(233,166,58,.14); }
.section-ink .eyebrow { color: var(--brand); }

/* ============ HEADER ============ */
/* STANDING RULE (Heritage): the mobile menu overlay lives OUTSIDE
   </header>. backdrop-filter on .site-header creates a new containing
   block and collapses fixed-position descendants. Do not move it back. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0;
  color: var(--ink);
}
.brand-name em { font-style: normal; color: var(--brand-d); }
.brand-tag { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #7C8A84; }

.nav-desktop { display: flex; align-items: center; gap: 20px; }
.nav-desktop a {
  color: var(--slate);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .92rem;
  white-space: nowrap;
}
.nav-desktop a:hover { color: var(--brand-d); text-decoration: none; }
.nav-cta {
  background: var(--accent);
  color: #FFFFFF !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800 !important;
}
.nav-cta:hover { background: var(--brand-d); }

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--brand);
  border-radius: 999px;
  color: var(--brand-d);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .9rem;
  padding: 8px 18px;
  cursor: pointer;
}

/* Mobile menu overlay — sits outside header in the DOM */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--paper);
  display: none;
  flex-direction: column;
  padding: 24px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.mobile-menu nav a {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu nav a:hover { color: var(--brand-d); text-decoration: none; }
.mobile-menu .sub { font-size: 1.1rem; padding-left: 18px; color: var(--slate); }
.mobile-close {
  background: none; border: 2px solid var(--brand); border-radius: 999px;
  color: var(--brand-d); font-family: var(--font-body); font-weight: 800;
  font-size: .9rem; padding: 8px 18px; cursor: pointer;
}
.mobile-phone {
  margin-top: auto;
  background: var(--brand);
  color: var(--ink);
  text-align: center;
  padding: 15px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 800;
}
.mobile-phone:hover { text-decoration: none; background: var(--brand-d); }

@media (max-width: 1100px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-block; }
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(175deg, #FFFFFF 0%, var(--paper) 100%);
  color: var(--slate);
  padding: 84px 0 72px;
}
.hero h1 { color: var(--ink); max-width: 20ch; }
.hero .lede { font-size: 1.18rem; max-width: 58ch; color: var(--slate); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none !important;
}
.btn-brand { background: var(--accent); color: #FFFFFF; }
.btn-brand:hover { background: var(--accent-d); color: #FFFFFF; }
.btn-ghost { border: 2px solid var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-d); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; padding: 0; list-style: none; }
.hero-points li { font-size: .95rem; color: var(--slate); padding-left: 22px; position: relative; }
.hero-points li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand-d); font-weight: 700; }

/* ============ SECTIONS ============ */
.section { padding: 70px 0; }
.section-ink { background: var(--ink); color: #C5D4CE; }
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-white { background: var(--white); }
.section-head { max-width: 68ch; margin-bottom: 36px; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  top: 22px; left: 0;
  width: 4px; height: 34px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
}
.section-ink .card { background: #1E4238; border-color: var(--line-dk); }
.section-ink .card h3 { color: var(--white); }
.section-ink .card p { color: #B7C8C1; }
.card h3 a { color: inherit; }

/* Process steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 22px 22px 76px;
  position: relative;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 22px; top: 20px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--brand-d);
}
.steps h3 { margin-bottom: .3em; }

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  padding: 0 20px;
}
.faq summary {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand-d); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 16px; }

/* Two-column feature */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand-d); font-weight: 700; }

/* CTA band */
.cta-band { background: var(--tint); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 44px; padding-bottom: 44px; }
.cta-band h2 { margin: 0; color: var(--ink); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-phone { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--accent-d); white-space: nowrap; }
.cta-phone:hover { text-decoration: none; color: var(--ink); }

/* Location chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.chips a {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
}
.chips a:hover { background: var(--tint); }
.chips a:hover { border-color: var(--brand); color: var(--brand-d); text-decoration: none; }

/* Form area */
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.form-fallback { text-align: center; padding: 30px 20px; }
.form-fallback .cta-phone { display: block; margin-top: 10px; font-size: 2rem; }

/* ============ CONTENT (generic pages, posts) ============ */
.content-area { padding: 60px 0; max-width: 800px; margin: 0 auto; }
.content-area ul, .content-area ol { margin: 0 0 1.2em; padding-left: 1.3em; }

/* ============ FOOTER ============ */
.site-footer { background: var(--white); color: var(--slate); font-size: .95rem; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  padding: 56px 0 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--ink); font-size: 1.1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--slate); }
.site-footer a:hover { color: var(--brand-d); }
.footer-nap address { font-style: normal; line-height: 1.6; }
.footer-legal { border-top: 1px solid var(--line); padding: 18px 0; font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ============ UTILITIES ============ */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ============ ENVIRO PRO LOGO LOCKUP ============ */
.ep-logo{display:inline-block;position:relative;line-height:1}
.ep-word{font-family:var(--font-body);font-weight:900;font-size:1.55rem;letter-spacing:-.02em;white-space:nowrap}
.ep-green{color:var(--brand)}
.ep-blue{color:var(--accent)}
.ep-i{position:relative;display:inline-block}
.ep-i .dot{position:absolute;left:50%;transform:translateX(-50%);top:.02em;width:.17em;height:.17em;border-radius:50%;background:var(--accent)}
.ep-sub{font-family:var(--font-body);font-weight:800;font-size:.56rem;letter-spacing:.32em;color:var(--slate);margin-top:3px}
.ep-logo.lg{padding:22px 30px 18px 26px}
.ep-logo.lg .ep-word{font-size:2.6rem}
.ep-logo.lg .ep-sub{font-size:.8rem;letter-spacing:.4em;margin-top:8px}
.ep-logo.lg .ep-br{position:absolute;width:34px;height:34px;border-color:var(--ink);border-style:solid}
.ep-logo.lg .ep-br.tr{top:0;right:0;border-width:9px 9px 0 0}
.ep-logo.lg .ep-br.bl{bottom:0;left:0;border-width:0 0 9px 9px}

.ep-lockup svg{display:block;height:46px;width:auto}
.ep-lockup-lg svg{height:88px}
@media (max-width:1100px){.ep-lockup svg{height:40px}}

.ep-badge{display:block;height:56px;width:auto}
.site-footer .ep-badge{height:74px}
@media (max-width:1100px){.ep-badge{height:46px}}
