/* Hero banner responsive layout — mobile/tablet stack + desktop preservation */

/* ── Base structure (all breakpoints) ── */
.hero .bann-left h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eyebrow,
.hero-title,
.hero-locations {
  display: block;
}

.hero-locations a {
  color: #fff;
  text-decoration: none;
}

.hero-locations a:hover {
  color: var(--color-primary);
}

.hero-rule {
  display: none;
}

.hero-desc {
  text-align: left;
}

.hero-call-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-social-icon {
  width: 35px;
  height: 35px;
  padding: 2px 4px;
  display: block;
}

.hero-since-badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(254, 185, 0, 0.5);
  border-radius: 999px;
  background: rgba(254, 185, 0, 0.08);
  line-height: 1;
}

.hero-since-ring {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  text-align: center;
}

.hero-since-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.hero-since-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 231, 201, 0.9);
  line-height: 1;
}

.hero-since-year {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-family: var(--font-primary);
}

/* Prevent hero content clipping and section default overflow */
#hero.hero {
  overflow: visible;
}

/* ── Desktop (≥992px) — preserve side-by-side layout ── */
@media (min-width: 992px) {
  .hero .bann-left h1 {
    margin-bottom: 24px;
    padding-bottom: 24px;
    align-items: center;
  }

  .hero-eyebrow {
    font-size: 26px;
    font-weight: 400;
    order: 2;
    margin-top: 4px;
  }

  .hero-title {
    font-size: inherit;
    font-weight: 700;
    order: 1;
  }

  .hero-locations {
    font-size: 26px;
    font-weight: 400;
    order: 3;
    margin-top: 4px;
  }

  .hero .info h1:after {
    display: block;
  }

  .hero-desc {
    margin-bottom: 16px;
    text-align: left;
  }

  .hero-call-row {
    margin-bottom: 12px;
    justify-content: center;
    width: 100%;
  }

  .hero-call-row .btn-get-started {
    flex: 0 1 auto;
    width: auto;
  }

  .social-main {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-social-row {
    flex: 1 1 auto;
    order: 2;
  }

  .hero-since-badge {
    flex: 0 0 auto;
    order: 1;
  }

  .hero-social-row .social-icons-top {
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* ── Tablet + Mobile (≤991px) — compact vertical stack ── */
@media (max-width: 991px) {
  #hero.hero {
    min-height: auto;
    padding: 0 !important;
    overflow: visible;
    margin-bottom: 0;
  }

  .hero .info {
    padding-inline: 22px;
    padding-bottom: 40px;
    padding-top: 32px;
    overflow: visible;
    width: 100%;
  }

  body.has-fixed-header #hero.hero .info {
    padding-top: 32px;
  }

  /* Flush join: hero banner → mobile quote form (no white gap) */
  #hero.hero + .banner-form.form-sm {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100%;
  }

  #hero.hero + .banner-form.form-sm .right-side {
    background-color: rgba(0, 0, 0, 0.88);
    padding-top: 22px;
  }

  .hero .bann-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .hero .bann-left:after,
  .gg-bann-left:after {
    display: none !important;
  }

  /* Reset legacy negative-margin hacks from main.css */
  .hero .info h1 {
    margin: 0 0 10px;
    padding: 0;
    font-size: 28px;
    line-height: 1.15;
  }

  .hero .info h1:after {
    display: none;
  }

  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 10px;
    order: 1;
  }

  .hero-eyebrow::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 1px;
    background: var(--color-primary);
    vertical-align: middle;
    margin-right: 8px;
  }

  .hero-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.14;
    margin-bottom: 6px;
    order: 2;
  }

  .hero-locations {
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 12px;
    order: 3;
  }

  .hero-rule {
    display: block;
    width: 52px;
    height: 2px;
    background: var(--color-primary);
    margin-bottom: 14px;
  }

  .hero-desc {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 18px;
    max-width: 36ch;
    width: 100%;
  }

  .hero-call-row {
    width: 100%;
    margin-bottom: 18px;
  }

  .hero-call-row .btn-get-started {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 !important;
    padding: 10px 8px !important;
    font-size: 12.5px !important;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 22px !important;
    width: auto !important;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(254, 185, 0, 0.5);
    color: #f3e7c9;
    letter-spacing: 0.01em;
  }

  .social-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 0;
  }

  .hero-social-row {
    width: 100%;
    margin-bottom: 16px;
  }

  .hero-social-row .social-icons-top {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 !important;
    padding: 0;
    list-style: none;
    justify-content: flex-start;
  }

  .hero-social-row .social-icons-top li {
    padding: 0;
    margin: 0;
  }

  .hero-social-row .social-icons-top li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero-social-icon {
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    margin: 0;
  }

  .hero-since-badge {
    margin: 0 !important;
  }

  .hero-since-ring {
    width: 34px;
    height: 34px;
    font-size: 8px;
  }

  .hero-since-year {
    font-size: 14px;
  }
}

/* ── Small phones (≤480px) — override main.css hacks ── */
@media (max-width: 480px) {
  .hero .info {
    padding-inline: 20px;
    padding-bottom: 36px;
    padding-top: 28px;
  }

  body.has-fixed-header #hero.hero .info {
    padding-top: 28px;
  }

  #hero.hero + .banner-form.form-sm .right-side {
    padding-top: 20px;
  }

  .hero .info h1 {
    font-size: 26px;
    margin-left: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-eyebrow {
    font-size: 10px;
  }

  .hero-desc {
    font-size: 12.5px;
    margin-top: 0 !important;
    width: 100%;
  }

  .hero-call-row .btn-get-started {
    font-size: 11.5px !important;
    padding: 9px 6px !important;
  }

  .hero-social-row .social-icons-top {
    gap: 8px;
  }

  .hero-social-row .social-icons-top li a {
    width: 32px;
    height: 32px;
  }

  .hero-social-icon {
    width: 16px !important;
    height: 16px !important;
  }
}

/* ── Extra-small (≤380px) ── */
@media (max-width: 380px) {
  .hero-call-row {
    flex-direction: column;
  }

  .hero-call-row .btn-get-started {
    width: 100% !important;
    font-size: 13px !important;
    padding: 10px 12px !important;
  }
}
