/*
Theme Name: 247 Detox Treatment Help
Theme URI: https://247detoxtreatmenthelp.com
Author: 247 Detox Treatment Help
Author URI: https://247detoxtreatmenthelp.com
Description: 247 Detox Treatment Help v2.0 — fully customizable lead-generation theme. Header, footer, homepage, page sections, forms, CTA buttons, logo size, colors, and mobile layout all editable from WordPress Customizer without code.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: detox247
Tags: healthcare, lead-generation, responsive, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-primary:    #1A6B8A;
  --color-primary-dk: #124e66;
  --color-primary-lt: #e8f4f8;
  --color-accent:     #2EAF7D;
  --color-accent-dk:  #238760;
  --color-accent-lt:  #e6f7f1;
  --color-cta:        #E05A2B;
  --color-cta-dk:     #b84420;
  --color-text:       #1c2b36;
  --color-text-md:    #4a6070;
  --color-text-lt:    #7a929e;
  --color-bg:         #ffffff;
  --color-bg-soft:    #f4f8fb;
  --color-bg-alt:     #eef4f7;
  --color-border:     #d4e3eb;
  --color-white:      #ffffff;

  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-sm:  0 2px 8px rgba(26,107,138,.08);
  --shadow-md:  0 4px 20px rgba(26,107,138,.13);
  --shadow-lg:  0 8px 40px rgba(26,107,138,.18);

  --transition: .22s ease;

  --container:  1180px;
  --container-sm: 800px;
  --gap:        clamp(1rem, 3vw, 2rem);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dk); }
ul, ol { padding-left: 1.4em; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p  { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.container-sm {
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-sm { padding: clamp(2rem, 4vw, 3.5rem) 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  line-height: 1.2;
  padding: .75rem 1.6rem;
}
.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 18px rgba(26,107,138,.3);
}
.btn-primary:hover {
  background: var(--color-primary-dk);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26,107,138,.35);
}
.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 18px rgba(46,175,125,.3);
}
.btn-accent:hover {
  background: var(--color-accent-dk);
  color: var(--color-white);
  transform: translateY(-2px);
}
.btn-cta {
  background: var(--color-cta);
  color: var(--color-white);
  font-size: 1rem;
  padding: .85rem 2rem;
  box-shadow: 0 4px 18px rgba(224,90,43,.35);
}
.btn-cta:hover {
  background: var(--color-cta-dk);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(224,90,43,.4);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-lg {
  font-size: 1.05rem;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-lg);
}
.btn-phone::before {
  content: '';
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1-9.4 0-17-7.6-17-17 0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1L6.6 10.8z'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(26,107,138,.10);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img { height: 44px; width: auto; }
.site-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--color-primary);
}
.site-logo-text span { color: var(--color-accent); }

/* Nav */
#primary-nav { display: flex; align-items: center; gap: .25rem; }
#primary-nav a {
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-text);
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
#primary-nav a:hover,
#primary-nav .current-menu-item > a { color: var(--color-primary); background: var(--color-primary-lt); }
.nav-has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  min-width: 220px;
  display: none;
  z-index: 100;
}
.nav-has-dropdown:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
}

.header-cta { flex-shrink: 0; }
.header-cta .btn { font-size: .88rem; padding: .6rem 1.2rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dk) 0%, var(--color-primary) 60%, #1e8ea6 100%);
  color: var(--color-white);
  padding: clamp(3rem, 7vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 560'%3E%3Cpath fill='rgba(255,255,255,.04)' d='M0 400l60-40 60 20 60-60 60 30 60-20 60 50 60-30 60 10 60-40 60 20 60-60 60 30 60-10 60 40 60-20 60 30 60-50 60 10 60 40 60-30 60 20 60-60 60 40 60-10V560H0z'/%3E%3C/svg%3E") no-repeat bottom/cover;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  padding: .35rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  margin-bottom: 1.2rem;
}
.hero-badge svg { flex-shrink: 0; }
.hero h1 { color: var(--color-white); margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.1rem; opacity: .9; margin-bottom: 1.8rem; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  opacity: .9;
}
.hero-trust-item svg { flex-shrink: 0; opacity: .8; }

/* Hero form card */
.hero-form-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}
.hero-form-card h3 { color: var(--color-primary); margin-bottom: .4rem; font-size: 1.2rem; }
.hero-form-card p  { font-size: .9rem; color: var(--color-text-md); margin-bottom: 1.2rem; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  padding: 1.6rem 0;
}
.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.trust-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--color-primary-lt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-icon svg { color: var(--color-primary); }
.trust-label { font-weight: 700; font-size: .95rem; line-height: 1.2; font-family: var(--font-heading); }
.trust-sub   { font-size: .8rem; color: var(--color-text-md); margin: 0; }

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-header { text-align: center; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-header .eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .5rem;
}
.section-header h2 { margin-bottom: .6rem; }
.section-header p  { color: var(--color-text-md); max-width: 600px; margin: 0 auto; }

/* ============================================================
   CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--color-primary-lt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg { color: var(--color-primary); }
.card h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.card p  { font-size: .92rem; color: var(--color-text-md); margin-bottom: .9rem; }

/* ============================================================
   INSURANCE SECTION
   ============================================================ */
.insurance-section {
  background: linear-gradient(135deg, var(--color-accent-lt) 0%, var(--color-primary-lt) 100%);
}
.insurance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.insurance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.5rem 0;
}
.insurance-badge {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: .5rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-text);
}
.insurance-form-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.insurance-form-card h3 { color: var(--color-primary); margin-bottom: .5rem; }
.insurance-form-card p  { font-size: .9rem; color: var(--color-text-md); margin-bottom: 1rem; }

/* ============================================================
   STEPS / HOW IT WORKS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: steps;
}
.step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}
.step h3 { font-size: 1rem; margin-bottom: .4rem; }
.step p  { font-size: .9rem; color: var(--color-text-md); }

/* ============================================================
   STATES GRID
   ============================================================ */
.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: .75rem;
}
.state-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: .65rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.state-link:hover {
  background: var(--color-primary-lt);
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.state-link svg { color: var(--color-primary); flex-shrink: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: .75rem; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--color-primary); }
.faq-question svg { flex-shrink: 0; transition: transform var(--transition); }
.faq-question[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-answer { padding: 0 1.4rem 1.1rem; font-size: .95rem; color: var(--color-text-md); display: none; }
.faq-answer.is-open { display: block; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary-dk) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: center;
}
.cta-band h2 { color: var(--color-white); margin-bottom: .75rem; }
.cta-band p  { opacity: .9; max-width: 580px; margin: 0 auto 1.8rem; }
.cta-band-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.cta-band .btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 700;
}
.cta-band .btn-white:hover { background: var(--color-bg-soft); color: var(--color-primary-dk); }
.cta-band .btn-outline-white {
  border-color: rgba(255,255,255,.6);
  color: var(--color-white);
}
.cta-band .btn-outline-white:hover { background: rgba(255,255,255,.15); color: var(--color-white); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dk) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.page-hero h1 { color: var(--color-white); margin-bottom: .75rem; }
.page-hero p  { opacity: .9; max-width: 620px; font-size: 1.05rem; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem;
}
.breadcrumbs a  { color: rgba(255,255,255,.8); text-decoration: underline; }
.breadcrumbs a:hover { color: var(--color-white); }
.breadcrumbs-sep { opacity: .5; }

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-section { padding: clamp(3rem, 7vw, 5rem) 0; }
.content-section h2 { margin-bottom: .8rem; }
.content-section h3 { margin: 2rem 0 .6rem; color: var(--color-primary); }
.content-section ul, .content-section ol { margin-bottom: 1.1em; }
.content-section li { margin-bottom: .35em; }

.highlight-box {
  background: var(--color-primary-lt);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
}
.highlight-box p { margin: 0; color: var(--color-text); }
.highlight-box strong { color: var(--color-primary); }

.warning-box {
  background: #fff8e1;
  border-left: 4px solid #f9a825;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
}

/* Inline CTA row */
.inline-cta {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.inline-cta p { margin: 0; font-weight: 600; }

/* ============================================================
   SIDEBAR (not used but preserved)
   ============================================================ */
.entry-content { max-width: var(--container-sm); margin: 0 auto; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: #0d2535;
  color: rgba(255,255,255,.75);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-top: .8rem; }
.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-white);
}
.footer-logo-text span { color: var(--color-accent); }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.75); font-size: .88rem; }
.footer-col a:hover { color: var(--color-white); }
.footer-phone {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  font-family: var(--font-heading);
  margin-top: .5rem;
}
.footer-bottom {
  padding: 1.5rem 0;
  font-size: .8rem;
}
.footer-disclaimer {
  background: rgba(0,0,0,.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  margin-bottom: .75rem;
}
.footer-legal-links a { color: rgba(255,255,255,.5); font-size: .8rem; }
.footer-legal-links a:hover { color: rgba(255,255,255,.8); }
.footer-copy { color: rgba(255,255,255,.35); }

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: .75rem 1rem;
  display: none;
  gap: .6rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
}
.mobile-sticky-cta .btn { flex: 1; justify-content: center; font-size: .9rem; padding: .75rem 1rem; }

/* ============================================================
   TWO COL CONTENT
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.check-list { list-style: none; padding: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .4rem 0;
  font-size: .97rem;
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232EAF7D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}
.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card-thumb img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.4rem; }
.blog-card-cat {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .4rem;
}
.blog-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.blog-card h3 a { color: var(--color-text); }
.blog-card h3 a:hover { color: var(--color-primary); }
.blog-card-meta { font-size: .8rem; color: var(--color-text-lt); }

/* Single post */
.single-post-hero { background: var(--color-bg-soft); padding: 3rem 0 2rem; }
.single-post-content { padding: 3rem 0; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 3rem;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
}
.pagination a:hover, .pagination .current {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ============================================================
   WPFORMS OVERRIDES
   ============================================================ */
.wpforms-container .wpforms-submit-container { margin-top: .5rem; }
.wpforms-container button[type=submit] {
  background: var(--color-cta) !important;
  border-color: var(--color-cta) !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: .8rem 2rem !important;
  width: 100% !important;
  transition: background var(--transition) !important;
}
.wpforms-container button[type=submit]:hover {
  background: var(--color-cta-dk) !important;
  border-color: var(--color-cta-dk) !important;
}
.wpforms-field input, .wpforms-field textarea, .wpforms-field select {
  border-radius: var(--radius-sm) !important;
  border-color: var(--color-border) !important;
  font-family: var(--font-body) !important;
}
.wpforms-field input:focus, .wpforms-field textarea:focus, .wpforms-field select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(26,107,138,.12) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-form-card { max-width: 520px; }
  .insurance-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-grid .hero-form-card { max-width: 480px; }
}
@media (max-width: 768px) {
  .trust-bar-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr; }
  #primary-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--color-white); flex-direction: column; align-items: stretch; padding: 1rem; box-shadow: var(--shadow-md); gap: 0; }
  #primary-nav.is-open { display: flex; }
  #primary-nav a { padding: .7rem 1rem; border-radius: var(--radius-sm); }
  .nav-dropdown { position: static; box-shadow: none; padding: 0 .5rem; display: none; }
  .nav-has-dropdown.open-mobile .nav-dropdown { display: block; }
  .nav-toggle { display: flex; }
  .mobile-sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
  .states-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .trust-bar-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
}

/* ============================================================
   V2 CUSTOMIZER COLOR OVERRIDES (injected via wp_head)
   See inc/customizer.php → detox247_customizer_css()
   ============================================================ */

/* Logo size controls — desktop default, overridden per breakpoint */
.site-logo img,
.custom-logo {
  width: var(--logo-width-desktop, 200px);
  height: auto;
  max-height: var(--logo-height-desktop, 80px);
  object-fit: contain;
  display: block;
}

@media (max-width: 1024px) {
  .site-logo img, .custom-logo {
    width: var(--logo-width-tablet, 160px);
    max-height: var(--logo-height-tablet, 64px);
  }
}

@media (max-width: 768px) {
  .site-logo img, .custom-logo {
    width: var(--logo-width-mobile, 130px);
    max-height: var(--logo-height-mobile, 52px);
  }
}

/* Sticky header */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .25s ease, background .25s ease;
}
#site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,.12);
}
body.no-sticky-header #site-header {
  position: relative;
}

/* Header background color — overridden via inline CSS var */
#site-header {
  background: var(--header-bg, var(--color-primary));
}

/* Header call button color override */
.header-cta .btn-cta {
  background: var(--header-btn-color, var(--color-cta));
  border-color: var(--header-btn-color, var(--color-cta));
}
.header-cta .btn-cta:hover {
  background: color-mix(in srgb, var(--header-btn-color, var(--color-cta)) 85%, black);
}

/* ---- Page Editor Content ---- */
.page-editor-content {
  max-width: 860px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.page-editor-content h2 { margin: 2rem 0 .75rem; font-size: 1.5rem; }
.page-editor-content h3 { margin: 1.5rem 0 .5rem; font-size: 1.2rem; }
.page-editor-content p  { margin-bottom: 1rem; }
.page-editor-content ul, .page-editor-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.page-editor-content li { margin-bottom: .4rem; }

/* ---- Per-page hero (editable) ---- */
.page-hero-section {
  padding: 3.5rem 0 2.5rem;
  background: var(--hero-bg, linear-gradient(135deg,#0f4a63 0%,#1a6b8a 60%,#2eaf7d 100%));
  color: #fff;
}
.page-hero-section h1 { font-size: clamp(1.7rem,4vw,2.6rem); margin-bottom: .75rem; }
.page-hero-section .page-hero-subtitle { font-size: 1.1rem; opacity: .9; max-width: 700px; margin-bottom: 1.5rem; }

/* ---- Form selector on page edit ---- */
.page-form-wrap { margin: 2rem 0; }

/* ---- Footer customizer extras ---- */
#site-footer {
  background: var(--footer-bg, #0f2d3c);
}
.footer-email a { color: var(--color-accent-lt); }

/* ---- Admin notice ---- */
.detox247-admin-notice { border-left-color: var(--color-cta, #E05A2B) !important; }


/* ---- FAQ answer: hidden/visible state ---- */
.faq-answer[hidden] { display: none; }
.faq-answer.is-open { display: block; }
.faq-icon { transition: transform .22s ease; flex-shrink: 0; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }

/* ---- Page hero inner layout ---- */
.page-hero-inner { max-width: 780px; }
.page-hero-section .hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---- Footer CTA strip ---- */
.footer-cta-strip {
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-cta-strip p { color: rgba(255,255,255,.9); margin: 0; font-size: 1.05rem; }

/* ---- Footer social icons ---- */
.footer-social { display: flex; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--color-accent); color: #fff; }

/* ---- Footer email ---- */
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  margin-top: .4rem;
}
.footer-email:hover { color: var(--color-accent-lt); }

/* ---- Mobile layout fixes ---- */
@media (max-width: 768px) {
  .header-inner { gap: .5rem; }
  .site-logo-text { font-size: 1rem; }
  .header-cta { display: none; } /* hide on mobile — sticky CTA handles it */
  .page-hero-section { padding: 2.5rem 0 2rem; }
  .footer-cta-strip { flex-direction: column; text-align: center; }
}

