/* ParXO — responsive overrides */

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card--wide {
    grid-column: 1 / -1;
  }

  .how-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-connector {
    display: block;
    position: absolute;
    left: calc(25% + 12px);
    right: calc(25% + 12px);
    top: calc(var(--step-num-size) / 2 + 1.35rem);
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 48, 128, 0.35), transparent);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
  }

  .testimonials-rail {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    padding: 3.25rem 0 3.75rem;
    padding-top: calc(var(--pb-nav-h) + 1.75rem);
  }

  .hero-phone--main {
    width: 250px;
    transform: translate(22%, 2%) rotate(-5deg) translate(var(--tilt-x), var(--tilt-y));
  }

  .hero-phone--back {
    width: 220px;
    transform: translate(-32%, -6%) rotate(9deg) translate(var(--tilt-x), var(--tilt-y));
  }

  .bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .bento-card {
    grid-column: span 2;
  }

  .bento-card--wide {
    grid-column: span 3;
  }

  .bento-card--tall {
    grid-row: span 2;
  }

  .how-layout {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
  }

  .steps-connector {
    left: calc(12.5% + 8px);
    right: calc(12.5% + 8px);
  }

  .pb-navbar .navbar-collapse {
    background: transparent;
  }

  .faq-section {
    padding-top: 1.75rem;
  }
}

@media (min-width: 1200px) {
  .hero__stage {
    min-height: 520px;
    margin-top: 3rem;
  }

  .hero-phone--main {
    width: 270px;
  }

  .hero-phone--back {
    width: 235px;
  }
}

/* Mobile nav drawer */
@media (max-width: 991.98px) {
  .pb-navbar .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.85rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 48, 128, 0.1);
    box-shadow: var(--pb-shadow);
    backdrop-filter: blur(16px);
  }

  .pb-nav-links .nav-link {
    margin: 0.15rem 0;
  }

  .pb-nav-links .nav-link::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 2.25rem 0 2.75rem;
    padding-top: calc(var(--pb-nav-h) + 1.25rem);
  }

  .hero__stage {
    min-height: 380px;
    margin-top: 2rem;
  }

  .hero-phone--main {
    transform: translate(10%, 6%) rotate(-3deg) translate(var(--tilt-x), var(--tilt-y));
  }

  .hero-phone--back {
    transform: translate(-18%, 0) rotate(6deg) translate(var(--tilt-x), var(--tilt-y));
  }

  .hero-float--verify {
    right: 0;
    top: 8%;
  }

  .hero-float--booking {
    left: 0;
    bottom: 10%;
  }

  .section {
    padding: 2.75rem 0;
  }

  .faq-section {
    padding-top: 1.25rem;
  }

  /* Contact: form first, info card below */
  .contact-split > .col-lg-4 {
    order: 2;
  }

  .contact-split > .col-lg-8 {
    order: 1;
  }

  /* FAQ centering also applies on mobile via base styles */
  .faq-panel {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  /* Footer: center brand, follow, badges, copyright on mobile */
  .site-footer .footer-brand-row {
    justify-content: center;
  }

  .site-footer .col-12.col-md-6.col-lg-3,
  .site-footer .col-12.col-lg-3 {
    text-align: center;
  }

  .site-footer .store-badges {
    justify-content: center;
  }

  .site-footer .footer-social {
    justify-content: center;
  }

  .site-footer .footer-bottom {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .store-badge img {
    height: 40px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero__stage {
    min-height: 340px;
  }

  .hero-phone {
    width: min(200px, 52vw);
  }

  .hero-phone--back {
    width: min(175px, 45vw);
  }

  .hero-float {
    padding: 0.55rem 0.7rem;
    font-size: 0.85rem;
  }

  .back-to-top {
    right: 0.85rem;
    bottom: 0.85rem;
    width: 44px;
    height: 44px;
  }
}
