
/* =========================
   ESI FULL SITE CSS
   APPROVED BASELINE
   ========================= */

/* Hide old carrier strip */
.logo-row,
.logo-band-label,
.hero-proof {
  display: none !important;
}

/* Container */
.container {
  max-width: 1320px !important;
}

/* =========================
   HERO SECTION
   ========================= */

.hero {
  padding-top: 40px !important;
  padding-bottom: 0 !important;
}

/* Stack hero so headline sits above cards */
.hero-grid {
  grid-template-columns: 1fr !important;
  align-items: flex-start !important;
  gap: 28px !important;
}

.hero-copy {
  max-width: 100% !important;
  width: 100% !important;
}

/* Hero eyebrow and text centered */
.hero-copy .eyebrow,
.hero-copy .hero-eyebrow,
.hero-copy .pill,
.hero-copy > * {
  text-align: center !important;
}

/* Hero headline full width */
.hero h1 {
  max-width: 100% !important;
  width: 100% !important;
  font-size: clamp(42px, 4.5vw, 72px) !important;
  line-height: 1.05 !important;
  margin: 0 0 18px 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

/* Hero subtitle */
.hero-subtitle {
  max-width: 1000px !important;
  width: 100% !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
  margin: 0 auto 18px auto !important;
  text-align: center !important;
}

/* Remove second button */
.hero-actions a:nth-child(2) {
  display: none !important;
}

/* Center button row */
.hero-actions {
  display: flex !important;
  justify-content: center !important;
  margin-top: 10px !important;
}

/* Bigger centered Get a Quote button */
.hero-actions a:first-child {
  display: inline-block !important;
  width: 320px !important;
  text-align: center !important;
  padding: 20px 0 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(11,95,168,0.18) !important;
}

/* Hero cards below headline */
.hero-panel {
  min-height: auto !important;
  height: auto !important;
  max-width: 1000px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.panel-grid {
  align-content: start !important;
  padding: 18px !important;
  gap: 18px !important;
}

.panel-grid > div {
  margin: 0 !important;
}

/* Broad carrier card text */
.panel-card-accent strong {
  font-size: 0 !important;
}

.panel-card-accent strong::before {
  content: "Broad access to leading insurance carriers and specialty markets.";
  font-size: 16px;
  line-height: 1.3;
  display: block;
}

/* =========================
   HERO SKYLINE IMAGE
   ========================= */

.hero::after {
  content: "";
  display: block;
  width: 100%;
  height: 620px;
  margin-top: 24px;
  background: url("https://esibrokers.org/wp-content/uploads/2026/03/Gemini_Generated_Image_udm5y2udm5y2udm5-1.png") center top / cover no-repeat;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.hero + .section {
  margin-top: -30px !important;
}

/* =========================
   GLOBAL SECTION STYLING
   ========================= */

.section {
  padding-top: 40px !important;
  padding-bottom: 60px !important;
}

.section-heading {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  text-align: left !important;
}

.section-heading h2 {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 0 12px 0 !important;
  font-size: clamp(40px, 4vw, 64px) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  line-height: 1.05 !important;
}

.section-heading p {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 0 24px 0 !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
}

/* =========================
   INSURANCE SOLUTIONS SECTION
   ========================= */

.section:nth-of-type(3) .section-heading {
  max-width: 1200px !important;
}

.section:nth-of-type(3) .section-heading h2,
.section:nth-of-type(3) .section-heading p {
  max-width: 100% !important;
  width: 100% !important;
}

/* Force 2-line headline */
.section:nth-of-type(3) .section-heading h2 {
  max-width: 900px !important;
  margin: 0 auto 16px auto !important;
  text-align: center !important;
  font-size: clamp(34px, 3.2vw, 52px) !important;
  line-height: 1.1 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
}

.section:nth-of-type(3) .section-heading p {
  max-width: 850px !important;
  margin: 0 auto 24px auto !important;
  text-align: center !important;
}

/* =========================
   FEATURED INSURANCE IMAGE
   ========================= */

.section:nth-of-type(4)::before {
  content: "";
  display: block;
  width: 100%;
  height: 620px;
  margin-bottom: 20px;
  background: url("https://esibrokers.org/wp-content/uploads/2026/03/Gemini_Generated_Image_6l99di6l99di6l99.png") center 78% / cover no-repeat;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Featured section width */
.section:nth-of-type(4) .section-heading {
  max-width: 1200px !important;
}

.section:nth-of-type(4) .section-heading h2,
.section:nth-of-type(4) .section-heading p {
  max-width: 100% !important;
  width: 100% !important;
}

/* =========================
   WHY ESI IMAGE
   ========================= */

.section:nth-of-type(5)::before {
  content: "";
  display: block;
  width: 100%;
  height: 620px;
  margin-bottom: 20px;
  background: url("https://esibrokers.org/wp-content/uploads/2026/03/Gemini_Generated_Image_enatrqenatrqenat.png") center top / cover no-repeat;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* =========================
   A MORE TAILORED BROKERAGE EXPERIENCE
   FIXED CENTERED LAYOUT
   ========================= */

.section:nth-of-type(5) .section-heading {
  max-width: 1100px !important;
  width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
  position: relative !important;
}

.section:nth-of-type(5) .section-heading .eyebrow,
.section:nth-of-type(5) .section-heading .pill,
.section:nth-of-type(5) .section-heading .hero-eyebrow {
  display: inline-block !important;
  margin: 0 auto 12px auto !important;
  text-align: center !important;
}

.section:nth-of-type(5) .section-heading h2 {
  position: static !important;
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto 12px auto !important;
  text-align: center !important;
  white-space: normal !important;
  font-size: clamp(36px, 3.2vw, 56px) !important;
  line-height: 1.1 !important;
  letter-spacing: 0.02em !important;
}

.section:nth-of-type(5) .section-heading p {
  max-width: 1100px !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 auto 24px auto !important;
}

/* =========================
   FEATURED CARD CLEANUP
   ========================= */

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.feature-grid .feature-card:nth-child(n+5) {
  display: none !important;
}

.feature-grid .feature-card:nth-child(1) h3,
.feature-grid .feature-card:nth-child(2) h3,
.feature-grid .feature-card:nth-child(3) h3,
.feature-grid .feature-card:nth-child(4) h3 {
  font-size: 0 !important;
}

.feature-grid .feature-card:nth-child(1) h3::before {
  content: "Business Owners";
  font-size: 24px;
  line-height: 1.15;
  display: block;
}

.feature-grid .feature-card:nth-child(2) h3::before {
  content: "Homeowners Insurance";
  font-size: 24px;
  line-height: 1.15;
  display: block;
}

.feature-grid .feature-card:nth-child(3) h3::before {
  content: "Landlord Insurance";
  font-size: 24px;
  line-height: 1.15;
  display: block;
}

.feature-grid .feature-card:nth-child(4) h3::before {
  content: "HOA Insurance";
  font-size: 24px;
  line-height: 1.15;
  display: block;
}

.feature-grid .feature-card a {
  font-size: 0 !important;
}

.feature-grid .feature-card a::before {
  content: "Start Your Insurance Inquiry →";
  font-size: 16px;
  line-height: 1.3;
}

/* =========================
   IMAGE BLOCK SPACING
   ========================= */

.wp-block-image,
.wp-block-image img {
  margin-bottom: 0 !important;
  display: block !important;
}

/* =========================
   FOOTER CONTACT FIX
   ========================= */

.site-footer a[href^="mailto:"],
footer a[href^="mailto:"],
.site-footer span,
footer span,
.site-footer p,
footer p {
  display: none !important;
}

.site-footer .footer-grid > div:nth-child(3)::after,
footer .footer-grid > div:nth-child(3)::after {
  content: "Main: (415) 440-5136\A Fax: (415) 440-5139\A Broker@Insurance415.com\A California only";
  white-space: pre-line;
  display: block;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 2px;
  color: inherit;
}

.site-footer .footer-grid > div:nth-child(3) h4,
footer .footer-grid > div:nth-child(3) h4 {
  margin-bottom: 2px !important;
}

/* =========================
   HOMEPAGE HERO CLEANUP
   ========================= */

.home .hero-panel {
  display: none !important;
}

.home .hero-grid {
  grid-template-columns: 1fr !important;
}

.home .hero-copy {
  max-width: 100% !important;
}

/* Remove main headline */
.home .hero h1 {
  display: none !important;
}

/* Remove subheadline text */
.home .hero-subtitle {
  display: none !important;
}

/* Remove eyebrow label */
.home .hero-copy .eyebrow,
.home .hero-copy .pill {
  display: none !important;
}

/* Tighten spacing after removal */
.home .hero-copy {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =========================
   HERO BUTTON IN SKY
   ========================= */

.home .hero {
  position: relative !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.home .hero::after {
  margin-top: 0 !important;
}

.home .hero-actions {
  position: absolute !important;
  top: 120px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 10 !important;
  width: auto !important;
  margin-top: 0 !important;
}

.home .hero-actions a:first-child {
  width: 340px !important;
  padding: 20px 0 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25) !important;
}

.home .hero-copy,
.home .hero-panel {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

.home .hero::before {
  display: none !important;
  content: none !important;
}

/* =========================
   REMOVE "START YOUR QUOTE" PILL
   ========================= */

.section .eyebrow,
.section .pill,
.section .hero-eyebrow {
  display: none !important;
}

/* =========================
   ELEVENLABS WIDGET SAFE POSITION
   ========================= */

#esi-ai-widget {
  position: fixed !important;
  bottom: 16px !important;
  right: 16px !important;
  z-index: 999999 !important;
}

elevenlabs-convai {
  display: block !important;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1200px) {
  .hero::after,
  .section:nth-of-type(4)::before,
  .section:nth-of-type(5)::before {
    height: 520px !important;
  }

  .section:nth-of-type(5) .section-heading h2 {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    white-space: normal !important;
  }
}

@media (max-width: 767px) {
  .hero::after,
  .section:nth-of-type(4)::before,
  .section:nth-of-type(5)::before {
    height: 360px !important;
  }

  .hero-actions a:first-child {
    width: 100% !important;
    max-width: 320px !important;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 56px) !important;
  }

  .section:nth-of-type(5) .section-heading h2 {
    width: 100% !important;
    text-align: center !important;
    white-space: normal !important;
    font-size: clamp(32px, 8vw, 48px) !important;
  }

  .section:nth-of-type(5) .section-heading p {
    text-align: center !important;
  }

  #esi-ai-widget {
    right: 12px !important;
    bottom: 12px !important;
  }
}
/* =========================
   REMOVE "EMAIL DANIEL" BUTTON
   ========================= */

/* Remove by text/button style */
a[href^="mailto:"],
a:contains("Email Daniel") {
  display: none !important;
}

/* Remove dark button specifically (fallback for themes) */
.wp-block-button a[href^="mailto:"],
.button[href^="mailto:"] {
  display: none !important;
}

/* Remove inside CTA sections */
.section a[href^="mailto:"],
.cta a[href^="mailto:"] {
  display: none !important;
}
/* =========================
   MOBILE HOMEPAGE CARD FIX
   ========================= */

@media (max-width: 767px) {
  .feature-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .feature-grid .feature-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 22px !important;
    box-sizing: border-box !important;
  }

  .feature-grid .feature-card h3 {
    font-size: 18px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    word-break: normal !important;
  }

  .feature-grid .feature-card a::before {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  /* stop any row/flex behavior from theme */
  .wp-block-columns,
  .wp-block-column,
  .feature-grid,
  .feature-card {
    flex: none !important;
  }
}
@media (max-width: 767px) {
  .site-header .button,
  .site-header .wp-block-button__link,
  header .wp-block-button__link {
    width: auto !important;
    min-width: 160px !important;
    max-width: 200px !important;
    padding: 14px 18px !important;
    font-size: 16px !important;
  }
}
/* REMOVE HOMEPAGE SKY BUTTON */
.home .hero-actions {
  display: none !important;
}
@media (max-width: 900px){
  .process-grid {
    grid-template-columns: repeat(2,1fr) !important;
  }
}

@media (max-width: 600px){
  .process-grid {
    grid-template-columns: 1fr !important;
  }
}
/* =========================
   MOBILE MENU FIX
   ========================= */

@media (max-width: 900px) {
  /* Hide desktop menu items */
  .site-header nav ul,
  header nav ul,
  .main-navigation ul {
    display: none !important;
  }

  /* Show menu toggle if theme has one */
  .menu-toggle,
  .nav-toggle,
  .toggle-nav,
  button[aria-expanded],
  .wp-block-navigation__responsive-container-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
  }
}