/**
 * Mobile-first enhancements — primary audience on phones.
 */

@media (max-width: 992px) {
  :root {
    --header-h: 60px;
    --mobile-bar-h: 58px;
    --touch-min: 48px;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .container {
    width: min(var(--max), 94vw);
  }

  /* Header — compact, easy to tap */
  .logo-text {
    display: flex !important;
  }

  .logo-brand {
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .logo-tag {
    font-size: 0.58rem;
  }

  .logo-img {
    width: 44px;
    height: 44px;
  }

  .nav-toggle {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -6px -8px -6px 0;
  }

  .btn-header-wa-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 50%;
    background: var(--whatsapp);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  }

  .btn-header-wa-mobile:active {
    transform: scale(0.96);
  }

  .btn-header-wa-mobile .btn-icon {
    color: var(--white);
    width: 22px;
    height: 22px;
  }

  .nav-mobile {
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-mobile a {
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    font-size: 1rem;
  }

  .nav-mobile a[data-whatsapp] {
    margin-top: 0.5rem;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: var(--radius-sm);
    border: none;
    justify-content: center;
    font-weight: 700;
  }

  .nav-mobile a[data-phone] {
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius-sm);
    border: none;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  /* Hero — content first, then image (mobile-first) */
  .hero-cinematic {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: calc(var(--header-h) + 0.85rem) 0 1.25rem;
  }

  .hero-cinematic-scenery {
    position: relative;
    order: 2;
    height: clamp(200px, 48vw, 280px);
    flex-shrink: 0;
  }

  .hero-scenery-overlay {
    background:
      linear-gradient(180deg, rgba(5, 8, 14, 0.15) 0%, rgba(5, 8, 14, 0.5) 100%),
      linear-gradient(90deg, rgba(5, 8, 14, 0.4) 0%, transparent 50%);
  }

  .hero-cinematic-inner {
    order: 1;
    min-height: 0;
    gap: 1rem;
    width: 100%;
  }

  .hero-cinematic-content {
    max-width: none;
    gap: 1rem;
  }

  .hero-cinematic-headline {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
  }

  .hero-cinematic-sub {
    max-width: none;
    font-size: 0.95rem;
  }

  .hero-trust-bar {
    font-size: 0.72rem;
    padding: 0.4rem 0.75rem;
    max-width: 100%;
  }

  .hero-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem 0.5rem;
  }

  .hero-feature {
    font-size: 0.68rem;
  }

  .hero-cinematic-actions {
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero-cinematic-actions .btn-hero-wa,
  .hero-cinematic-actions .btn-hero-call {
    width: 100%;
    min-height: var(--touch-min);
    flex: none;
  }

  .hero-fleet-card {
    max-width: none;
  }

  .hero-scene-tap {
    display: none;
  }

  .hero-stats-float {
    position: relative;
    order: 3;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0.5rem auto 0;
    width: calc(100% - 1.5rem);
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0.5rem 0.25rem;
    gap: 0;
  }

  .hero-stat {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.45rem 0.35rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
  }

  .hero-stat:last-child {
    border-right: none;
  }

  .hero-stat-label {
    font-size: 0.55rem;
    line-height: 1.2;
  }

  .hero-stat-num {
    font-size: 1rem;
  }

  .hero-stat-fleet-title {
    font-size: 0.62rem;
    text-align: center;
  }

  /* Fleet — single column, thumb-friendly */
  .fleet-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .vehicle-card-image {
    height: clamp(200px, 52vw, 260px);
  }

  .vehicle-card-actions {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .vehicle-card-actions .btn-view-photos {
    min-height: var(--touch-min);
  }

  .vehicle-card-actions .btn-book-wa,
  .vehicle-card-actions .btn-book-call {
    min-height: var(--touch-min);
    font-size: 0.88rem;
    padding: 0.75rem 0.5rem;
  }

  /* Sections */
  .section {
    padding: 3rem 0;
    scroll-margin-top: calc(var(--header-h) + 8px);
  }

  .section-header {
    margin-bottom: 1.75rem;
  }

  .section-header.center {
    text-align: left;
  }

  .section-desc {
    font-size: 0.95rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .why-card {
    padding: 1.25rem;
  }

  /* Reviews */
  .review-card {
    flex: 0 0 min(88vw, 340px);
  }

  .reviews-nav button {
    width: var(--touch-min);
    height: var(--touch-min);
  }

  /* Map */
  .map-embed {
    min-height: 240px;
    border-radius: var(--radius-sm);
  }

  .map-directions {
    font-size: 0.88rem;
  }

  /* Final CTA */
  .final-cta {
    padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }

  .final-cta-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 0 0.25rem;
  }

  .final-cta-actions .btn-book-wa,
  .final-cta-actions .btn-book-call {
    width: 100%;
    min-height: var(--touch-min);
  }

  /* Modal — full-screen friendly */
  .modal {
    max-height: 96dvh;
    border-radius: 16px 16px 0 0;
  }

  .modal-header h2 {
    font-size: 1.05rem;
    padding-right: 0.5rem;
  }

  .modal-close {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .gallery-viewport {
    margin: 0;
  }

  .gallery-arrow {
    width: 44px;
    height: 44px;
  }

  .gallery-slide {
    min-height: 220px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
    min-height: var(--touch-min);
    flex: none;
  }

  /* Contact page */
  .page-hero {
    padding-top: calc(var(--header-h) + 1.5rem);
    padding-bottom: 1.5rem;
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contact-card {
    padding: 1.35rem;
  }

  .contact-map {
    min-height: 260px;
    order: -1;
  }

  .contact-card-actions .btn {
    min-height: var(--touch-min);
  }

  /* Footer */
  .footer-grid {
    gap: 1.5rem;
  }

  .floating-actions {
    display: none !important;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .logo-brand {
    font-size: 0.68rem;
  }

  .logo-brand span {
    display: block;
  }

  .hero-trust-divider {
    display: none;
  }

  .hero-trust-bar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: var(--radius-sm);
  }

  .hero-fleet-brands {
    gap: 0.35rem;
  }

  .hero-brand {
    font-size: 0.6rem;
    padding: 0.3rem 0.4rem;
  }

  .vehicle-card-actions {
    grid-template-columns: 1fr;
  }
}

/* Desktop-only header button */
@media (min-width: 993px) {
  .btn-header-wa-mobile {
    display: none !important;
  }
}
