/*
 Theme Name: GP Rehab Child
 Theme URI: https://inpatientdrugrehabnetwork.com
 Description: Conversion-optimized child theme for inpatient drug rehab EMD network. Navy/teal/gold palette with sticky CTAs, FAQ accordions, substance cards, insurance bars, and mobile click-to-call. Includes auto-setup, admin page, and sample homepage.
 Author: KJS Ventures
 Version: 3.0.0
 Template: generatepress
 License: GPL-2.0-or-later
 Text Domain: gp-rehab-child
*/
/* ═══════════════════════════════════════════════════════════════
   EMD ADDICTION TREATMENT — CONTENT STYLING
   Add this to: Appearance → Customize → Additional CSS
   OR to your GeneratePress child theme style.css
   
   Uses CSS custom properties so you can change colors per domain
   by updating the :root values
   ═══════════════════════════════════════════════════════════════ */

:root {
  --emd-primary: #2c5282;
  --emd-primary-light: #ebf8ff;
  --emd-primary-dark: #1a365d;
  --emd-accent: #ed8936;
  --emd-accent-hover: #dd6b20;
  --emd-text: #2d3748;
  --emd-text-light: #718096;
  --emd-bg-warm: #fffaf0;
  --emd-bg-gray: #f7fafc;
  --emd-border: #e2e8f0;
  --emd-white: #ffffff;
  --emd-success: #38a169;
  --emd-crisis-bg: #fff5f5;
  --emd-crisis-border: #fc8181;
}

/* ═══════════════════════════════════════════
   GLOBAL PAGE STYLING
   ═══════════════════════════════════════════ */

.entry-content {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--emd-text);
  line-height: 1.7;
  font-size: 1.05rem;
  max-width: 100%;
  padding: 0;
}

.entry-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--emd-primary-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.entry-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--emd-primary-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--emd-primary-light);
}

.entry-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--emd-primary);
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

.entry-content a {
  color: var(--emd-primary);
  text-decoration: underline;
  text-decoration-color: var(--emd-accent);
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.entry-content a:hover {
  color: var(--emd-accent);
}

.entry-content a[href^="tel:"] {
  font-weight: 700;
  color: var(--emd-primary-dark);
  white-space: nowrap;
}

.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
  padding-left: 0.3rem;
}

.entry-content p {
  margin-bottom: 1.1rem;
}

/* ═══════════════════════════════════════════
   LAYER 1 — AI SUMMARY (Information Gain)
   Dark background, authoritative, data-driven
   ═══════════════════════════════════════════ */

.layer-1-ai-summary {
  background: linear-gradient(135deg, var(--emd-primary-dark) 0%, var(--emd-primary) 100%);
  color: var(--emd-white);
  padding: 2.5rem 2.5rem;
  margin: -1rem -2rem 2rem -2rem;
  border-radius: 0 0 12px 12px;
  font-size: 1.1rem;
  line-height: 1.8;
  position: relative;
}

.layer-1-ai-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--emd-accent);
}

.layer-1-ai-summary p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.8rem;
}

.layer-1-ai-summary p:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════
   LAYER 2 — HOOK (Value Gap)
   Warm background, trust-building
   ═══════════════════════════════════════════ */

.layer-2-hook {
  background: var(--emd-bg-warm);
  border-left: 4px solid var(--emd-accent);
  padding: 2rem 2rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.layer-2-hook p {
  font-size: 1.05rem;
}

/* ═══════════════════════════════════════════
   LAYER 3 — EXPERTISE (Deep Content)
   Clean, professional, readable
   ═══════════════════════════════════════════ */

.layer-3-expertise {
  padding: 1rem 0 2rem;
}

.layer-3-expertise h2 {
  margin-top: 2.5rem;
}

.layer-3-expertise h2:first-child {
  margin-top: 1rem;
}

/* ═══════════════════════════════════════════
   CTA BLOCKS
   High-contrast, action-oriented
   ═══════════════════════════════════════════ */

.cta-block {
  background: linear-gradient(135deg, var(--emd-primary) 0%, var(--emd-primary-dark) 100%);
  color: var(--emd-white);
  text-align: center;
  padding: 2rem 2rem;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.cta-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--emd-accent);
}

.cta-block p {
  color: var(--emd-white);
  margin-bottom: 0.5rem;
}

.cta-block strong {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 0.5rem;
}

.cta-block a[href^="tel:"] {
  display: inline-block;
  background: var(--emd-accent);
  color: var(--emd-white) !important;
  text-decoration: none;
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(237, 137, 54, 0.4);
}

.cta-block a[href^="tel:"]:hover {
  background: var(--emd-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(237, 137, 54, 0.5);
}

/* ═══════════════════════════════════════════
   FAQ SECTION
   Accordion-style, clean and interactive
   ═══════════════════════════════════════════ */

.faq-section {
  background: var(--emd-bg-gray);
  padding: 2.5rem 2.5rem;
  margin: 2.5rem 0;
  border-radius: 12px;
  border: 1px solid var(--emd-border);
}

.faq-section h2 {
  border-bottom: none;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  text-align: center;
  font-size: 1.5rem;
}

.faq-section details {
  background: var(--emd-white);
  border: 1px solid var(--emd-border);
  border-radius: 8px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-section details:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-section details[open] {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--emd-primary);
}

.faq-section summary {
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  color: var(--emd-primary-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  font-size: 1.05rem;
  transition: background 0.2s;
}

.faq-section summary:hover {
  background: var(--emd-primary-light);
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--emd-primary);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}

.faq-section details[open] summary::after {
  content: '−';
}

.faq-section details[open] summary {
  background: var(--emd-primary-light);
  border-bottom: 1px solid var(--emd-border);
}

.faq-answer {
  padding: 1.2rem 1.5rem;
  color: var(--emd-text);
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════
   CRISIS RESOURCES
   Prominent, compassionate, always visible
   ═══════════════════════════════════════════ */

.crisis-resources {
  background: var(--emd-crisis-bg);
  border: 2px solid var(--emd-crisis-border);
  border-radius: 12px;
  padding: 2rem 2rem;
  margin: 2.5rem 0 1rem;
}

.crisis-resources h3 {
  color: #c53030;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.crisis-resources p {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.crisis-resources p:last-child {
  margin-bottom: 0;
}

.crisis-resources strong {
  color: #c53030;
}

.crisis-resources a {
  color: #c53030;
  font-weight: 700;
  text-decoration-color: #c53030;
}

/* ═══════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .layer-1-ai-summary {
    padding: 1.8rem 1.5rem;
    margin: -0.5rem -1rem 1.5rem -1rem;
    font-size: 1rem;
  }

  .layer-2-hook {
    padding: 1.5rem 1.2rem;
  }

  .cta-block {
    padding: 1.5rem 1.2rem;
  }

  .cta-block a[href^="tel:"] {
    font-size: 1.2rem;
    padding: 0.7rem 2rem;
  }

  .faq-section {
    padding: 1.5rem 1.2rem;
  }

  .crisis-resources {
    padding: 1.5rem 1.2rem;
  }

  .entry-content h1 {
    font-size: 1.8rem;
  }

  .entry-content h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .layer-1-ai-summary {
    padding: 1.5rem 1rem;
    border-radius: 0;
    margin: -0.5rem -0.5rem 1.5rem -0.5rem;
  }

  .cta-block a[href^="tel:"] {
    font-size: 1.1rem;
    padding: 0.6rem 1.5rem;
    display: block;
  }
}

/* ═══════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════ */

@media print {
  .cta-block, .crisis-resources {
    border: 2px solid #000;
    background: #fff;
    color: #000;
  }
  
  .layer-1-ai-summary {
    background: #f0f0f0;
    color: #000;
  }
}