/*
Theme Name: Hello Elementor Allen Legal
Theme URI: https://allenlegal.net
Description: Child theme of Hello Elementor for Allen Legal website
Author: Allen Legal
Template: hello-elementor
Version: 1.2.0
Text Domain: hello-elementor-allenlegal
*/

/* =============================================
   ALLEN LEGAL — DESIGN SYSTEM
   Primary: #0A1628 (Navy)
   Accent: #C9A84C (Gold)
   Text: #1a1a1a
   BG: #ffffff / #f8f8f8
   ============================================= */

/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Open+Sans:wght@400;500;600;700&display=swap");

/* Base */
body {
  font-family: "Open Sans", sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Merriweather", serif;
  color: #0A1628;
  line-height: 1.25;
  font-weight: 700;
}

a { color: #C9A84C; text-decoration: none; }
a:hover { color: #0A1628; }

/* Site Header */
.site-header, header.elementor-location-header {
  background: #0A1628 !important;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Logo */
.site-logo img, .elementor-widget-site-logo img { max-height: 60px; }

/* Navigation */
.elementor-nav-menu .elementor-item,
.elementor-nav-menu a {
  color: #ffffff !important;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.elementor-nav-menu .elementor-item:hover,
.elementor-nav-menu a:hover { color: #C9A84C !important; }

/* Dropdown */
.elementor-nav-menu--dropdown { background: #0A1628 !important; }
.elementor-nav-menu--dropdown a { color: #ffffff !important; padding: 10px 20px !important; }
.elementor-nav-menu--dropdown a:hover { background: #C9A84C !important; color: #0A1628 !important; }

/* Buttons — Primary CTA */
.wp-block-button__link,
.al-btn,
.elementor-button {
  background: #C9A84C !important;
  color: #0A1628 !important;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px !important;
  border-radius: 4px !important;
  border: 2px solid #C9A84C !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.wp-block-button__link:hover,
.al-btn:hover,
.elementor-button:hover {
  background: #0A1628 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* Secondary Button */
.al-btn-secondary {
  background: transparent !important;
  color: #C9A84C !important;
  border: 2px solid #C9A84C !important;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}
.al-btn-secondary:hover {
  background: #C9A84C !important;
  color: #0A1628 !important;
}

/* Hero Section */
.al-hero {
  background: linear-gradient(135deg, #0A1628 0%, #1a2f52 100%);
  padding: 100px 0 80px;
  text-align: center;
  color: #ffffff;
}

.al-hero h1 {
  color: #ffffff;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.15;
}

.al-hero p {
  color: rgba(255,255,255,0.9);
  font-size: clamp(16px, 2vw, 22px);
  margin-bottom: 36px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Trust Bar */
.al-trust-bar {
  background: #C9A84C;
  padding: 14px 0;
  text-align: center;
}

.al-trust-bar span {
  color: #0A1628;
  font-weight: 700;
  font-size: 15px;
  margin: 0 18px;
  letter-spacing: 0.3px;
}

/* Section Styles */
.al-section { padding: 72px 20px; }
.al-section-dark { background: #0A1628; padding: 72px 20px; }
.al-section-dark h2, .al-section-dark h3, .al-section-dark p { color: #ffffff; }
.al-section-light { background: #f4f6f9; padding: 72px 20px; }
.al-section-gold { background: #C9A84C; padding: 60px 20px; }
.al-section-gold h2, .al-section-gold p { color: #0A1628; }

/* Container */
.al-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Practice Area Cards */
.al-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.al-card:hover {
  border-color: #C9A84C;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.al-card h3 {
  color: #0A1628;
  font-size: 20px;
  margin-bottom: 12px;
}

.al-card p { color: #444; font-size: 15px; line-height: 1.6; }

.al-card a.al-learn-more {
  display: inline-block;
  margin-top: 16px;
  color: #C9A84C;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.al-card a.al-learn-more:hover { border-color: #C9A84C; }

/* Grid Layouts */
.al-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.al-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .al-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .al-grid-3, .al-grid-2 { grid-template-columns: 1fr; }
  .al-hero { padding: 60px 20px 50px; }
}

/* CTA Strip */
.al-cta-strip {
  background: #0A1628;
  padding: 60px 20px;
  text-align: center;
}

.al-cta-strip h2 { color: #ffffff; font-size: clamp(24px, 3vw, 38px); margin-bottom: 16px; }
.al-cta-strip p { color: rgba(255,255,255,0.85); font-size: 18px; margin-bottom: 28px; }

/* Page Header */
.al-page-header {
  background: linear-gradient(135deg, #0A1628 0%, #1a2f52 100%);
  padding: 72px 20px 56px;
  text-align: center;
}

.al-page-header h1 { color: #ffffff; font-size: clamp(28px, 4vw, 48px); margin-bottom: 14px; }
.al-page-header p { color: rgba(255,255,255,0.85); font-size: 18px; max-width: 700px; margin: 0 auto; }

/* Content Sections */
.al-content-section { max-width: 860px; margin: 0 auto; padding: 60px 24px; }
.al-content-section h2 { color: #0A1628; font-size: clamp(22px, 2.5vw, 32px); margin: 40px 0 16px; }
.al-content-section h3 { color: #0A1628; font-size: clamp(18px, 2vw, 24px); margin: 28px 0 12px; }
.al-content-section p { color: #333; font-size: 16px; line-height: 1.8; margin-bottom: 16px; }
.al-content-section ul { padding-left: 24px; color: #333; line-height: 1.8; }
.al-content-section ul li { margin-bottom: 8px; }

/* FAQ Accordion */
.al-faq details {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 12px;
  padding: 0;
  background: #fff;
}

.al-faq details summary {
  padding: 18px 24px;
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-size: 16px;
  color: #0A1628;
  cursor: pointer;
  list-style: none;
}

.al-faq details summary::-webkit-details-marker { display: none; }
.al-faq details summary::after { content: " +"; color: #C9A84C; float: right; }
.al-faq details[open] summary::after { content: " −"; }
.al-faq details[open] { border-color: #C9A84C; }
.al-faq details p { padding: 0 24px 18px; color: #333; font-size: 15px; line-height: 1.8; margin: 0; }

/* Footer */
.site-footer, footer.elementor-location-footer {
  background: #0A1628 !important;
  color: rgba(255,255,255,0.75);
  padding: 48px 24px 24px;
}

.site-footer a, footer.elementor-location-footer a { color: #C9A84C; }
.site-footer a:hover, footer.elementor-location-footer a:hover { color: #ffffff; }

.al-footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  max-width: 900px;
  margin: 24px auto 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  line-height: 1.6;
}

/* Disclaimer boxes */
.al-disclaimer {
  background: #f4f6f9;
  border-left: 4px solid #C9A84C;
  padding: 16px 20px;
  font-size: 13px;
  color: #555;
  margin: 24px 0;
  border-radius: 0 4px 4px 0;
}

/* Phone link */
.al-phone {
  color: #C9A84C !important;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

.al-phone:hover { color: #ffffff !important; }

/* Testimonial Cards */
.al-testimonial {
  background: #f4f6f9;
  border-radius: 6px;
  padding: 28px 24px;
  border-left: 4px solid #C9A84C;
}

.al-testimonial blockquote {
  font-style: italic;
  color: #333;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 12px;
}

.al-testimonial cite {
  font-size: 14px;
  font-weight: 700;
  color: #0A1628;
  font-style: normal;
}

/* Results Table */
.al-results-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.al-results-table th {
  background: #0A1628;
  color: #ffffff;
  padding: 14px 16px;
  text-align: left;
  font-family: "Merriweather", serif;
  font-size: 14px;
}

.al-results-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}

.al-results-table tr:nth-child(even) td { background: #f9f9f9; }
.al-results-amount { font-weight: 700; color: #0A1628; font-size: 18px; }

/* Keyword highlight for accessibility/emphasis */
.al-highlight { color: #C9A84C; font-weight: 700; }

/* Breadcrumb */
.al-breadcrumb { font-size: 13px; color: #888; padding: 16px 24px; max-width: 1100px; margin: 0 auto; }
.al-breadcrumb a { color: #C9A84C; }
.al-breadcrumb a:hover { color: #0A1628; }

/* Mobile nav improvements */
@media (max-width: 767px) {
  .al-section, .al-section-dark, .al-section-light, .al-section-gold, .al-cta-strip { padding: 48px 16px; }
  .al-page-header { padding: 48px 16px 40px; }
  .al-content-section { padding: 40px 16px; }
}

/* ==============================================
   RESPONSIVE AUDIT FIXES — 2026-04-03
   Viewport targets: Desktop 1440px, iPhone 390px, Android 412px
   Issues resolved: nav visibility, mobile hamburger, button stacking,
   trust bar, dropdown colors, table overflow, forms, footer
   ============================================== */

/* ============================================
   HEADER — Site title, description, nav colors on navy
   ============================================ */

/* Site title and tagline white on navy */
.site-header .site-title a,
.site-header .site-title a:visited {
  color: #ffffff !important;
  text-decoration: none;
}
.site-header .site-title a:hover {
  color: #C9A84C !important;
}
.site-header .site-description {
  color: rgba(255,255,255,0.75) !important;
  font-size: 13px;
  margin: 2px 0 0;
}

/* Desktop nav links — white on navy */
.site-navigation ul.menu li > a {
  color: #ffffff !important;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 12px !important;
}
.site-navigation ul.menu li > a:hover,
.site-navigation ul.menu li.current-menu-item > a {
  color: #C9A84C !important;
}

/* Practice Areas dropdown caret */
.site-navigation ul.menu li.menu-item-has-children::after {
  color: rgba(255,255,255,0.6) !important;
  font-size: 1.1em !important;
}

/* Desktop dropdown sub-menu — navy background */
.site-navigation ul.menu li ul {
  background: #0A1628 !important;
  min-width: 220px;
  border: 1px solid rgba(255,255,255,0.15) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important;
}
.site-navigation ul.menu li ul li {
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.site-navigation ul.menu li ul li > a {
  color: #ffffff !important;
  font-size: 13px !important;
  padding: 10px 18px !important;
  font-weight: 500 !important;
}
.site-navigation ul.menu li ul li > a:hover {
  background: #C9A84C !important;
  color: #0A1628 !important;
}

/* ============================================
   MOBILE HAMBURGER — White icon on navy
   ============================================ */

.site-navigation-toggle {
  background-color: rgba(255,255,255,0.12) !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  padding: 8px !important;
}
.site-navigation-toggle:hover,
.site-navigation-toggle:focus {
  background-color: rgba(201,168,76,0.35) !important;
}
/* The hamburger lines */
.site-navigation-toggle-icon::before,
.site-navigation-toggle-icon::after {
  background-color: #ffffff !important;
}

/* ============================================
   MOBILE DROPDOWN NAV — Navy theme, not white
   ============================================ */

.site-navigation-dropdown {
  top: 100% !important;
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
}

.site-navigation-dropdown ul.menu {
  background: #0A1628 !important;
}
.site-navigation-dropdown ul.menu li a {
  background: #0A1628 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  padding: 18px 20px !important;
}
.site-navigation-dropdown ul.menu li a:hover {
  background: #C9A84C !important;
  color: #0A1628 !important;
}
.site-navigation-dropdown ul.menu li.current-menu-item a {
  background: #C9A84C !important;
  color: #0A1628 !important;
}
/* Sub-menu items in mobile dropdown */
.site-navigation-dropdown ul.menu li li a {
  background: #0d1e38 !important;
  padding-left: 36px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,0.85) !important;
}
.site-navigation-dropdown ul.menu li li a:hover {
  background: #C9A84C !important;
  color: #0A1628 !important;
}

/* ============================================
   HEADER LAYOUT TIGHTENING ON TABLET/MOBILE
   ============================================ */

@media (max-width: 992px) {
  .site-header .header-inner {
    padding: 10px 16px;
    align-items: center;
    flex-wrap: nowrap;
  }
  .site-header .site-branding {
    gap: 2px;
  }
  .site-header .site-title {
    font-size: 1.4rem !important;
    line-height: 1.2;
  }
  .site-header .site-description {
    font-size: 11px !important;
  }
}

@media (max-width: 480px) {
  .site-header .site-description {
    display: none; /* Hide tagline on very small screens to save space */
  }
  .site-header .site-title {
    font-size: 1.25rem !important;
  }
}

/* ============================================
   CTA BUTTONS — Stack vertically on mobile
   Two side-by-side buttons overflow at 390px
   ============================================ */

@media (max-width: 640px) {
  /* Stack buttons in hero */
  .al-hero .al-btn,
  .al-hero .al-btn-secondary {
    display: block !important;
    width: auto !important;
    max-width: 300px !important;
    margin: 8px auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* Stack buttons in CTA strip */
  .al-cta-strip .al-btn,
  .al-cta-strip .al-btn-secondary {
    display: block !important;
    width: auto !important;
    max-width: 300px !important;
    margin: 8px auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

/* ============================================
   TRUST BAR — Better wrapping on mobile
   ============================================ */

.al-trust-bar .al-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}

@media (max-width: 640px) {
  .al-trust-bar {
    padding: 10px 8px;
  }
  .al-trust-bar span {
    font-size: 12px !important;
    margin: 3px 6px !important;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .al-trust-bar span {
    font-size: 11px !important;
    margin: 2px 4px !important;
  }
}

/* ============================================
   RESULTS TABLE — Horizontal scroll on mobile
   ============================================ */

@media (max-width: 768px) {
  .al-results-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 100%;
    font-size: 13px;
  }
  .al-results-table th,
  .al-results-table td {
    padding: 10px 12px;
    white-space: nowrap;
  }
}

/* ============================================
   WPFORMS — Mobile usability
   font-size ≥ 16px prevents iOS auto-zoom on focus
   ============================================ */

.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="number"],
.wpforms-container select,
.wpforms-container textarea {
  font-size: 16px !important;
}

@media (max-width: 640px) {
  .wpforms-container .wpforms-field {
    margin-bottom: 14px;
  }
  .wpforms-container input[type="text"],
  .wpforms-container input[type="email"],
  .wpforms-container input[type="tel"],
  .wpforms-container select,
  .wpforms-container textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 14px !important;
    border-radius: 4px !important;
    border: 1px solid #d0d0d0 !important;
  }
  .wpforms-container .wpforms-submit-container {
    text-align: center;
  }
  .wpforms-container button.wpforms-submit {
    width: 100% !important;
    max-width: 320px !important;
    font-size: 16px !important;
    padding: 14px 20px !important;
    background: #C9A84C !important;
    color: #0A1628 !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }
}

/* ============================================
   GRID CONTAINERS — Prevent any overflow
   ============================================ */

.al-grid-3,
.al-grid-2 {
  width: 100%;
  box-sizing: border-box;
}

/* ============================================
   IMAGES — Ensure no overflow globally
   ============================================ */

.wp-block-html img,
.al-content-section img,
.entry-content img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   ATTORNEY BIO CARD — Mobile stacking cleanup
   When al-grid-2 collapses to 1-col, remove excess padding
   ============================================ */

@media (max-width: 600px) {
  .al-section-light .al-container.al-grid-2 > div:last-child {
    padding: 0 !important;
  }
  .al-section-light .al-container.al-grid-2 > div:last-child > div {
    padding: 24px 16px !important;
  }
}

/* ============================================
   FOOTER — Text and link colors
   ============================================ */

.site-footer .site-description,
.site-footer .site-title a,
.site-footer .copyright p {
  color: rgba(255,255,255,0.75) !important;
}
.site-footer .site-title a:hover {
  color: #C9A84C !important;
}

/* Footer nav links if present */
.site-footer .site-navigation ul.menu li a,
.site-footer nav a {
  color: #C9A84C !important;
}
.site-footer .site-navigation ul.menu li a:hover {
  color: #ffffff !important;
}

/* Footer inner layout on mobile */
@media (max-width: 576px) {
  .site-footer .footer-inner {
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}

/* ============================================
   SECTION PADDING — Tighter on very small screens
   ============================================ */

@media (max-width: 400px) {
  .al-section,
  .al-section-dark,
  .al-section-light,
  .al-section-gold,
  .al-cta-strip {
    padding: 32px 12px !important;
  }
  .al-page-header {
    padding: 32px 12px 24px !important;
  }
  .al-content-section {
    padding: 28px 12px !important;
  }
}

/* ============================================
   FAQ — Flex summary for safe text wrap + icon
   ============================================ */

@media (max-width: 640px) {
  .al-faq details summary {
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 18px;
  }
  .al-faq details summary::after {
    float: none !important;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .al-faq details p {
    padding: 0 18px 16px;
    font-size: 14px !important;
  }
}

/* ============================================
   PHONE LINK — Ensure tap target on mobile
   ============================================ */

@media (max-width: 640px) {
  .al-phone {
    font-size: 20px !important;
    display: inline-block;
    padding: 6px 0;
  }
}

/* End of responsive audit fixes */

/* ==============================================
   BANNER/OVERLAP FIX PASS — 2026-04-03
   Issues resolved:
   1. Duplicate H1 from Hello Elementor page-header on all inner pages
   2. .site-main max-width constraint clipping full-width banners at >1140px
   3. Scroll padding for sticky header
   4. Page-content margin/padding reset
   ============================================== */

/* ============================================
   FIX 1 (CRITICAL): Hide Hello Elementor's auto-injected page title
   ============================================
   Hello Elementor injects a .page-header > h1.entry-title ABOVE
   the page's own .al-page-header banner on every Gutenberg/HTML page.
   This creates a duplicate, unstyled title visible before the navy banner.
   All inner pages use .al-page-header, so the theme title is always redundant.
   Applied only on .page body class (Pages post type) — does not affect blog/posts.
   ============================================ */

.page .site-main > .page-header {
  display: none;
}

/* ============================================
   FIX 2 (CRITICAL): Remove .site-main max-width constraint on Pages
   ============================================
   Hello Elementor theme.css applies:
     body:not([class*=elementor-page-]) .site-main { max-width: 1140px; margin: auto; }
   This constrains the site-main container on all non-Elementor pages (all inner pages).
   Result: .al-page-header, .al-cta-strip backgrounds are clipped to 1140px
   on viewports wider than 1140px — white space visible on both sides.
   Removing the constraint lets full-width sections span the viewport.
   The .al-container inside each section (max-width: 1100px; margin: auto) still
   centers and constrains text content correctly.
   ============================================ */

.page .site-main {
  max-width: 100% !important;
  width: 100% !important;
}

/* ============================================
   FIX 3: Reset page-content container spacing
   ============================================
   .page-content wrapper inside .site-main may carry default margins
   or Gutenberg block gap spacing that creates a gap between
   the top of the page and the .al-page-header banner.
   ============================================ */

.page .site-main > .page-content {
  padding: 0;
  margin: 0;
}

/* Reset Gutenberg block margin-block-start on first element in page-content */
.page-content > *:first-child {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

/* ============================================
   FIX 4: Scroll padding for sticky header
   ============================================
   With position: sticky on .site-header, any in-page anchor
   links would jump to a position hidden under the header.
   scroll-padding-top offsets scroll targets by the header height.
   Header is approximately 70-80px tall at desktop, ~60px on mobile.
   ============================================ */

html {
  scroll-padding-top: 80px;
}

@media (max-width: 992px) {
  html {
    scroll-padding-top: 64px;
  }
}

/* ============================================
   FIX 5: Ensure banner sections are always full-width
   ============================================
   Belt-and-suspenders: explicitly ensure these sections are
   not constrained by any parent max-width.
   ============================================ */

.al-hero,
.al-page-header,
.al-trust-bar,
.al-cta-strip {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* ============================================
   FIX 6: Harden .al-page-header minimum height and padding
   ============================================
   Ensure the inner page banner has sufficient vertical space
   for the sticky header to never visually clip the h1 on load.
   Minimum padding-top is explicitly larger than any header height.
   ============================================ */

.al-page-header {
  min-height: 160px;
  display: flex;
  align-items: center;
}

.al-page-header .al-container {
  width: 100%;
}

/* ============================================
   FIX 7: .al-hero flex centering
   ============================================
   Match .al-page-header flex alignment for visual consistency.
   ============================================ */

.al-hero {
  display: flex;
  align-items: center;
  justify-content: center;
}

.al-hero .al-container {
  width: 100%;
}

/* ============================================
   FIX 8: Prevent Hero / CTA text from touching banner edges on mobile
   ============================================
   At very small widths, clamp() font sizes may still crowd the
   banner. Ensure the hero and page-header text has safe horizontal
   breathing room on all screens.
   ============================================ */

@media (max-width: 480px) {
  .al-page-header,
  .al-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .al-page-header h1 {
    font-size: clamp(22px, 7vw, 32px);
    word-break: break-word;
    hyphens: auto;
  }

  .al-hero h1 {
    font-size: clamp(24px, 7.5vw, 36px);
    word-break: break-word;
    hyphens: auto;
  }
}

/* ============================================
   FIX 9: CTA strip — prevent h2 and p collision on narrow screens
   ============================================
   At 320px viewports, the CTA strip h2 and p text can visually crowd.
   ============================================ */

@media (max-width: 480px) {
  .al-cta-strip h2 {
    font-size: clamp(20px, 6.5vw, 32px);
    word-break: break-word;
  }

  .al-cta-strip p {
    font-size: 15px !important;
  }
}

/* ============================================
   FIX 10: Sticky header z-index guard
   ============================================
   Elementor kit or plugins may register high z-index values.
   Ensure sticky header always stays above all page content.
   ============================================ */

.site-header {
  z-index: 99999 !important;
}

/* End of banner/overlap fix pass */
