/* =====================================================
   Starr Law — Practice Page Styling v2.1
   Pages: DWI (1265), Drug (1245), Sex Crimes (1317),
          Domestic Violence (1232), Federal (7840)
   Deployed: 2026-05-13 | Updated: 2026-05-13
   ===================================================== */

/* ---------- Page background ---------- */
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840) {
  background-color: #f5f7fb;
}

/* ---------- Hero banner — outer group gets dark bg ---------- */
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .wp-block-group-is-layout-constrained:has(> h1.wp-block-post-title) {
  background-color: #082153;
  padding-bottom: 0;
}

/* ---------- Page title (h1) on dark banner ---------- */
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  h1.wp-block-post-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.4em;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding: 48px 40px 40px;
}

/* ---------- Nav item spacing ---------- */
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .wp-block-navigation-item__content {
  padding-left: 12px;
  padding-right: 12px;
}

/* ---------- Content container ---------- */
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .entry-content {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 40px 64px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  font-family: "Inter", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: #262320;
}

/* ---------- H2 section headings ---------- */
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .entry-content h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.65em;
  font-weight: 700;
  color: #082153;
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  padding-bottom: 0.35em;
  border-bottom: 2px solid #889EC9;
  line-height: 1.25;
}

/* ---------- CTA h2 — last section heading full-bleed gradient ---------- */
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .entry-content h2:last-of-type {
  background: linear-gradient(135deg, #082153, #063796);
  color: #ffffff;
  text-align: center;
  border-bottom: none;
  border-radius: 0;
  padding: 40px;
  margin-top: 40px;
  margin-left: -40px;
  margin-right: -40px;
  margin-bottom: 0;
  font-size: 1.65em;
}

/* ---------- CTA area — paragraphs after last h2 ---------- */
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .entry-content h2:last-of-type ~ p {
  background: linear-gradient(135deg, #082153, #063796);
  color: #ffffff;
  text-align: center;
  padding: 0 40px 40px;
  margin-left: -40px;
  margin-right: -40px;
  margin-bottom: -64px;
}

/* ---------- Phone number in CTA ---------- */
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .entry-content h2:last-of-type ~ p a[href^="tel:"] {
  color: #FF6B6B;
  font-size: 1.7em;
  font-weight: 700;
  text-decoration: none;
  display: block;
  min-height: 44px;
  line-height: 44px;
}

:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .entry-content h2:last-of-type ~ p a[href^="tel:"]:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ---------- H3 FAQ questions — card style ---------- */
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .entry-content h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15em;
  font-weight: 700;
  color: #002366;
  background: #f5f7fa;
  padding: 16px 20px;
  border-radius: 6px;
  margin-top: 1.4em;
  margin-bottom: 8px;
  border-left: 3px solid #C62828;
  line-height: 1.35;
}

/* ---------- FAQ answer paragraphs ---------- */
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .entry-content h3 + p {
  padding-left: 20px;
  margin-bottom: 24px;
}

/* ---------- Paragraphs ---------- */
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .entry-content p {
  margin-bottom: 1.35em;
}

/* ---------- Lists ---------- */
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .entry-content ul,
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .entry-content ol {
  padding-left: 1.6em;
  margin-bottom: 1.35em;
}

:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .entry-content li {
  margin-bottom: 0.45em;
}

/* ---------- Strong ---------- */
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .entry-content strong {
  color: #082153;
  font-weight: 700;
}

/* ---------- Links ---------- */
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .entry-content a {
  color: #002366;
  text-decoration: underline;
}

:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .entry-content a:hover {
  color: #C62828;
}

/* ---------- Phone number outside CTA ---------- */
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .entry-content a[href^="tel:"] {
  display: inline-block;
  font-size: 1.45em;
  font-weight: 700;
  color: #C62828;
  text-decoration: none;
  min-height: 44px;
  line-height: 44px;
  letter-spacing: 0.01em;
}

:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .entry-content a[href^="tel:"]:hover {
  color: #082153;
  text-decoration: underline;
}

/* ---------- Italic / Spanish line ---------- */
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .entry-content em {
  display: block;
  font-size: 0.9em;
  text-align: center;
  color: #555;
  margin-top: 0.8em;
  font-style: italic;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  :is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
    h1.wp-block-post-title {
    font-size: 1.75em;
    padding: 32px 20px 28px;
  }

  :is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
    .entry-content {
    padding: 24px 20px 48px;
    font-size: 16px;
  }

  :is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
    .entry-content h2 {
    font-size: 1.35em;
  }

  :is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
    .entry-content h3 {
    font-size: 1.05em;
  }

  :is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
    .entry-content h2:last-of-type {
    padding: 30px 20px;
    margin-top: 30px;
    margin-left: -20px;
    margin-right: -20px;
  }

  :is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
    .entry-content h2:last-of-type ~ p {
    padding: 0 20px 36px;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -48px;
  }

  :is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
    .entry-content a[href^="tel:"] {
    font-size: 1.6em;
    display: block;
    text-align: center;
    margin: 0.5em 0;
  }
}

/* ---------- Sticky header background on practice pages ---------- */
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .wp-block-template-part {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* ---------- Chat widget clearance — prevent overlap with last section ---------- */
:is(.page-id-1265, .page-id-1245, .page-id-1317, .page-id-1232, .page-id-7840)
  .entry-content {
  padding-bottom: 80px;
}
