/* Desktop tightening before the mobile navigation breakpoint */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .site-header__logo {
    max-width: 165px;
  }

  .site-header .navbar-nav {
    gap: 15px;
  }

  .site-header .nav-link {
    font-size: 0.7rem;
  }

  .site-header .btn-gem {
    padding-inline: 16px;
  }
}

@media (min-width: 992px) {
  .site-header .dropdown:hover > .dropdown-menu {
    display: block;
  }

  .site-header .dropdown-menu {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--gem-transition), transform var(--gem-transition);
    visibility: hidden;
  }

  .site-header .dropdown:hover > .dropdown-menu,
  .site-header .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
}

@media (max-width: 991.98px) {
  .topbar__message span:last-child {
    display: none;
  }

  .site-header__logo img {
    max-height: 48px;
  }

  .header-overlay {
    top: var(--gem-topbar-height);
  }

  .newsletter {
    grid-template-columns: 1fr;
  }

  .site-footer__column {
    margin-bottom: 28px;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 15px;
  }

  .container {
    --bs-gutter-x: 24px;
  }

  .topbar {
    min-height: 34px;
  }

  .topbar__contact .topbar__item:not(:first-child),
  .topbar__socials {
    display: none;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading__eyebrow::before,
  .section-heading__eyebrow::after {
    width: 20px;
  }

  .gem-card--horizontal {
    grid-template-columns: 1fr;
  }

  .gem-card--horizontal .gem-card__media {
    aspect-ratio: 16 / 10;
  }

  .cta-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .newsletter {
    gap: 18px;
    padding: 22px;
  }

  .site-footer {
    padding-top: 48px;
  }

  .site-footer__bottom,
  .site-footer__legal {
    text-align: center;
  }

  .site-footer__legal {
    justify-content: center;
    margin-top: 9px;
  }

  .floating-actions {
    bottom: 14px;
    right: 14px;
  }

  .floating-action {
    height: 48px;
    width: 48px;
  }
}

@media (max-width: 575.98px) {
  .topbar__inner {
    justify-content: center;
  }

  .topbar__contact {
    display: none;
  }

  .topbar__message {
    font-size: 0.64rem;
    text-align: center;
  }

  .site-header__brand-name {
    display: none;
  }

  .site-header__logo img {
    max-height: 44px;
  }

  .btn-gem {
    min-height: 46px;
    padding-inline: 20px;
  }

  .cta-banner__actions,
  .cta-banner__actions .btn-gem {
    width: 100%;
  }

  .newsletter__form {
    display: grid;
    gap: 9px;
  }

  .newsletter__form .form-control,
  .newsletter__form .btn-gem {
    border-radius: var(--gem-radius-sm);
    width: 100%;
  }

  .faq-accordion .accordion-button {
    font-size: 0.84rem;
    padding: 16px;
  }

  .faq-accordion .accordion-body {
    padding: 0 16px 17px;
  }
}

@media (max-width: 389.98px) {
  .container {
    --bs-gutter-x: 20px;
  }

  .newsletter__intro {
    align-items: flex-start;
  }

  .floating-action {
    height: 44px;
    width: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Homepage V1 responsive behavior */
@media (min-width: 1400px) {
  .page-home-v1 .featured-slider .swiper-wrapper {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(6, 1fr);
    transform: none !important;
  }

  .page-home-v1 .featured-slider .swiper-slide {
    width: auto !important;
  }
}

@media (max-width: 1199.98px) {
  .page-home-v1 .home-header .navbar-nav { gap: 12px; }
  .page-home-v1 .home-header .nav-link { font-size: 0.62rem; }
  .page-home-v1 .home-header .quote-button { padding-inline: 13px; }
  .home-hero { min-height: 650px; }
  .hero-collage { height: 470px; }
  .hero-collage__badge { height: 145px; width: 145px; }
  .hero-collage__badge strong { font-size: 2.5rem; }
  .experience-grid { grid-template-columns: repeat(3, 1fr); }
  .experience-card { aspect-ratio: 1.8 / 1; }
  .why-choose__visual { margin-right: -30px; }
  .benefits-card__content { margin-left: 34%; }
  .testimonial-card { padding-inline: 22px; }
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991.98px) {
  .page-home-v1 .home-header .navbar { min-height: 74px; }
  .home-hero { padding-top: 105px; }
  .home-hero__content { padding-top: 0; text-align: center; }
  .home-hero__description { margin-inline: auto; }
  .home-hero__actions, .home-hero__stats { justify-content: center; }
  .hero-collage { margin: 0 auto; max-width: 720px; }
  .home-about { text-align: center; }
  .about-features { margin: auto; max-width: 320px; text-align: left; }
  .reason-wheel { margin-bottom: 20px; }
  .benefit-checks { margin-inline: auto; max-width: 680px; }
  .why-choose .col-lg-5 { text-align: center; }
  .benefit-checks { text-align: left; }
  .why-choose__visual { margin: auto; max-width: 430px; }
  .video-showcase { text-align: center; }
  .video-frame img { height: 270px; }
  .planning-cta__inner { grid-template-columns: 1fr 1.35fr; padding-block: 20px; }
  .planning-cta__inner > img { display: none; }
  .stats-wrap { height: 130px; }
  .stats-strip { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .counter-item:nth-child(2) { border-right: 0; }
  .conversion-grid { box-shadow: none; gap: 20px; }
  .benefits-card, .quote-card, .testimonial-card { border-radius: 14px; min-height: 300px; }
  .faq-layout { align-items: flex-start; }
}

@media (max-width: 767.98px) {
  .home-hero { min-height: auto; padding-bottom: 35px; }
  .home-hero__title { font-size: clamp(2.45rem, 11vw, 3.45rem); }
  .home-hero__stats { gap: 20px; }
  .hero-stat { flex-direction: column; gap: 4px; text-align: center; }
  .hero-collage { height: 400px; }
  .hero-collage__item { border-width: 4px; }
  .hero-collage__item--main { height: 240px; width: 78%; }
  .hero-collage__item--left, .hero-collage__item--center, .hero-collage__item--right { height: 160px; }
  .hero-collage__badge { height: 118px; right: 2%; top: 130px; width: 118px; }
  .hero-collage__badge strong { font-size: 2rem; }
  .hero-collage__badge span { font-size: 0.45rem; }
  .hero-collage__pin { font-size: 3rem; }
  .hero-collage__vehicle { bottom: 15px; left: -2%; width: 26%; }
  .experience-filters { border: 0; flex-wrap: wrap; gap: 7px; justify-content: center; overflow: visible; }
  .experience-filters button { border: 1px solid var(--gem-border); border-radius: var(--gem-radius-pill); flex: 0 0 auto; }
  .experience-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-card { aspect-ratio: 1.45 / 1; }
  .process-grid { gap: 25px 0; grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2)::after, .process-step:nth-child(2)::before { display: none; }
  .planning-cta__inner { grid-template-columns: 1fr; text-align: center; }
  .planning-cta__form { max-width: 520px; width: 100%; }
  .stats-wrap { height: 160px; }
  .stats-strip { padding-inline: 14px; }
  .counter-item { justify-content: flex-start; padding-left: 10%; }
  .counter-item strong { font-size: 1.1rem; }
  .featured-section { padding-top: 85px; }
  .featured-slider .swiper-pagination { display: block; }
  .benefits-card > img { opacity: 0.48; width: 48%; }
  .benefits-card__content { margin-left: 34%; }
  .faq-layout { flex-direction: column; }
  .faq-bulb { align-self: center; }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 575.98px) {
  .page-home-v1 .home-header .navbar-toggler {
    margin-left: auto;
  }

  .page-home-v1 .home-hero__title {
    font-size: 2.25rem;
  }

  .home-hero__actions .btn-gem { width: 100%; }
  .home-hero__stats { align-items: stretch; display: grid; grid-template-columns: repeat(3, 1fr); }
  .home-hero__stats .hero-stat { min-width: 0; }
  .hero-stat > i { font-size: 1.4rem; }
  .hero-stat strong { font-size: 0.8rem; }
  .hero-stat span { font-size: 0.5rem; line-height: 1.25; }
  .hero-collage { height: 320px; }
  .hero-collage__item--main { height: 190px; }
  .hero-collage__item--left, .hero-collage__item--center, .hero-collage__item--right { bottom: 8px; height: 130px; }
  .hero-collage__badge { height: 92px; top: 105px; width: 92px; }
  .hero-collage__badge::before { inset: 7px; }
  .hero-collage__badge strong { font-size: 1.5rem; }
  .hero-collage__pin { font-size: 2.25rem; left: 2%; top: 100px; }
  .hero-collage__vehicle { bottom: 6px; width: 28%; }
  .anniversary-mark strong { font-size: 5.3rem; }
  .experience-grid { grid-template-columns: 1fr; }
  .experience-filters button { flex: 0 0 calc(50% - 5px); font-size: 0.6rem; padding-inline: 8px; }
  .experience-card { aspect-ratio: 1.75 / 1; }
  .reason-wheel { height: 300px; transform: scale(0.9); transform-origin: center; width: 300px; }
  .reason-wheel__center { inset: 70px; }
  .reason-wheel__icon--1, .reason-wheel__icon--5 { left: 125px; }
  .reason-wheel__icon--3, .reason-wheel__icon--7 { top: 125px; }
  .benefit-checks { grid-template-columns: 1fr; gap: 10px; }
  .why-choose__visual img { max-height: 360px; transform: none; width: 100%; }
  .process-step:not(:last-child)::after, .process-step:not(:last-child)::before { display: none; }
  .planning-cta__form { display: grid; gap: 8px; }
  .planning-cta__form .form-control, .planning-cta__form .btn-gem { border-radius: 8px; }
  .stats-wrap { height: 235px; }
  .stats-strip { grid-template-columns: 1fr; row-gap: 10px; }
  .counter-item { border: 0; gap: 12px; padding-left: 20%; }
  .counter-item > i { font-size: 1.45rem; }
  .featured-section { padding-top: 90px; }
  .benefits-card { min-height: 370px; }
  .benefits-card > img { height: 70%; opacity: 0.3; width: 70%; }
  .benefits-card__content { margin-left: 0; }
  .testimonial { grid-template-columns: 70px 1fr; }
  .testimonial img { width: 70px; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { margin-inline: 0; padding: 9px; }
}

@media (max-width: 389.98px) {
  .home-hero__title { font-size: 2.25rem; }
  .home-hero__stats { gap: 8px; }
  .hero-collage { height: 285px; }
  .hero-collage__item--main { height: 170px; }
  .hero-collage__item--left, .hero-collage__item--center, .hero-collage__item--right { height: 112px; }
  .reason-wheel { margin-left: -5px; }
  .stats-strip { width: calc(100% - 20px); }
}
