/* pe-treatment.css — visually enhanced + overflow-fixed responsive styles */

/* Safety: prevent accidental horizontal overflow on pages that include this */
html, body { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; max-width: 100%; -webkit-text-size-adjust: 100%; }

/* Section root variables */
:root{
  --max-width: 980px;
  --accent: #0f6ef2;
  --accent-2: #6c5ce7;
  --muted: #6b7280;
  --text: #0b1220;
  --card-bg: linear-gradient(180deg, #ffffff, #fbfdff);
  --soft: rgba(11,18,32,0.06);
  --radius: 14px;
  --gap: 18px;
  --lead-size: 1.02rem;
  --base-size: 16px;
  --font-sans: "Inter", "Poppins", "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial;
  --glass: rgba(255,255,255,0.7);
}

.pe-section {
  background-color: #f9fafb;
  padding: 40px 20px;
  border-radius: 12px;
  max-width: 1100px;
  margin: auto;
  position: relative;
  overflow: hidden;
}

/* Image Section */
.pe-image {
  width: 100%;
  height: auto;
  text-align: center;
  margin-bottom: 20px;
}

.pe-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain; /* prevents cropping */
  max-height: 450px; /* optional */
}

/* Responsive Fix */
@media (max-width: 768px) {
  .pe-image img {
    max-height: 300px;
            margin-top: 43px;

  }
}


/* CORE LAYOUT */
.pe-section {
  width: 100%;
  margin: 20px auto;
  padding: clamp(16px, 3.5vw, 36px);
  max-width: var(--max-width);
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(8,20,40,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.6;
  overflow: hidden; /* prevents child overflow creating X-axis scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure no child element causes horizontal overflow */
.pe-section * {
  min-width: 0;          /* very important for flex children */
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Decorative left accent stripe for large viewports */
@media (min-width:900px) {
  .pe-section {
    border-left: 6px solid rgba(15,110,242,0.08);
    padding-left: clamp(24px, 3vw, 46px);
  }
}

/* HEADER */
.pe-header h1 {
  font-size: clamp(20px, 3.6vw, 32px);
  margin: 0 0 8px 0;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #071033;
  line-height: 1.06;
  background: linear-gradient(90deg, rgba(15,110,242,0.04), rgba(108,92,231,0.03));
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
}

/* slight gradient underline for H2 */
.pe-content h2 {
  font-size: clamp(18px, 2.4vw, 22px);
  margin: 22px 0 10px;
  position: relative;
  padding-bottom: 8px;
  color: #071033;
}
.pe-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 64px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.9;
}

/* H3/H4 */
.pe-content h3 { font-size: clamp(16px, 2.0vw, 18px); margin: 14px 0 8px; color:#0b1220; }
.pe-content h4 { font-size: clamp(15px,1.8vw,16px); margin: 10px 0 6px; color:#0b1220; }

/* Paragraphs */
.pe-content p { margin: 0 0 var(--gap) 0; font-size: clamp(15px,1.8vw,16px); color: var(--text); }

/* Improved bullets: small rounded gradient dot */
.pe-bullets, .locations {
  margin: 0 0 var(--gap) 0;
  padding-left: 1.25rem;
}
.pe-bullets li, .locations li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 1.2rem;
  font-size: clamp(14px,1.7vw,15.6px);
  color: var(--text);
}
/* use a softened dot as bullet */
.pe-bullets li::before, .locations li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 3px 10px rgba(15,110,242,0.12);
}

/* Numbered lists */
.pe-numbered { padding-left: 1.6rem; margin-bottom: var(--gap); }
.pe-numbered li { margin-bottom: 12px; font-size: clamp(14px,1.7vw,15.6px); }

/* subtle inline highlights */
.highlight {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(15,110,242,0.06), rgba(108,92,231,0.02));
  color: #071033;
  font-weight: 700;
}

/* note / seo small lines */
.note { color: var(--muted); font-size: clamp(13px,1.6vw,14px); }

/* CTA and footer area */
.pe-cta-wrap {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(11,18,32,0.04);
}

/* CTA layout */
.call-to-action {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* phone badge - now glossy with icon look */
.phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(14px,1.7vw,15px);
  box-shadow: 0 10px 28px rgba(12,24,64,0.12);
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}

/* add a tiny phone icon using emoji fallback — safe and no extra assets */
.phone::before { content: "📞"; display:inline-block; transform: translateY(-1px); }

/* small helper text */
.call-to-action .small { font-size: clamp(12px,1.4vw,13px); color: var(--muted); }

/* Focus states */
a:focus, .phone:focus { outline: 3px solid rgba(15,110,242,0.18); outline-offset: 3px; border-radius: 10px; }

/* Decorative card blocks for important bits */
.pe-section .important {
  background: linear-gradient(180deg, rgba(108,92,231,0.04), rgba(15,110,242,0.02));
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(15,110,242,0.06);
}

/* sticky CTA for mobile, refined to avoid overflow */
.pe-sticky-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1200;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(250,250,255,0.92));
  box-shadow: 0 14px 34px rgba(10,20,40,0.12);
  border: 1px solid rgba(10,20,40,0.04);
}

/* Small-screen rules */
@media (max-width: 520px) {
  .pe-section { margin: 14px auto; padding: 16px !important; border-radius: 12px; }
  .pe-header h1 {         font-size: clamp(18px, 5.2vw, 22px);
        padding: 5px 2px;
        border-radius: 8px;
        /* margin-top: 55px; */
        line-height: normal;
        font-size: 23px;
 }
  .pe-content h2::after { width: 48px; height: 3px; }

  /* make phone badges flush and stack-friendly */
  .call-to-action { gap: 8px; align-items: center; }

  .phone { flex: 1 1 auto; white-space: normal; justify-content: center; padding: 10px; font-size: 15px; }

  /* show sticky but keep width within viewport (calc ensures no overflow) */
  .pe-sticky-cta { display: flex; left: 8px; right: 8px; bottom: 10px; }
  .pe-sticky-cta .phone { flex: 1; font-size: 14px; padding: 10px 8px; }

  /* ensure footer CTA area doesn't overlap sticky */
  .pe-cta-wrap { margin-bottom: 84px; }
}

/* Tablet and desktop spacing */
@media (min-width: 621px) and (max-width: 999px) {
  .pe-section { padding: 24px; }
  .pe-header h1 { font-size: clamp(22px, 3.2vw, 28px); }
}

/* Large desktop */
@media (min-width: 1000px) {
  .pe-section { padding: 36px 48px; border-radius: 18px; }
  .pe-header h1 { font-size: 34px; }
}

/* Print */
@media print {
  .pe-section { box-shadow: none; background: #fff; color: #000; padding: 6px; max-width: 100%; }
  .pe-sticky-cta { display: none !important; }
  .phone { background: none !important; color: #000; padding: 0; box-shadow: none; }
}
