/* ============================================
   TOK COMMUNITY — RESPONSIVE OVERRIDES
   Additional breakpoint fine-tuning beyond style.css
   (style.css already contains base responsive rules;
   this file is for page-specific or fine-grained tweaks)
   ============================================ */

@media (max-width: 1024px) {
  .five-min-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-map { display: none; }
}

@media (max-width: 640px) {
  .page-hero { padding: 4rem 0 3rem; }
  .booking { padding: 3.5rem 0; }
  .fleet-table { font-size: 0.8rem; }
  .fleet-table th, .fleet-table td { padding: 0.7rem; }
}

@media (min-width: 1400px) {
  .container { max-width: 1240px; }
}

/* ============================================
   COMPREHENSIVE MOBILE ALIGNMENT FIXES
   Target: 390px (iPhone) and up to 768px
   ============================================ */

@media (max-width: 768px) {

  /* ── GLOBAL CONTAINERS ── */
  .container { padding: 0 1.2rem; }

  section, .section-pad { padding: 3rem 0; }

  /* ── TYPOGRAPHY ── */
  .section-eyebrow { font-size: .72rem; letter-spacing: .12em; }
  .section-title { font-size: clamp(1.7rem, 6.5vw, 2.4rem); line-height: 1.2; }
  .section-sub { font-size: .9rem; padding: 0 .5rem; }

  /* ── HERO ── */
  .hero-photo {
    padding: 5.5rem 1.2rem 3.5rem;
    text-align: center;
  }
  .hero-photo h1 { font-size: clamp(2rem, 8.5vw, 3rem); line-height: 1.15; }
  .hero-photo p { font-size: .95rem; padding: 0 .5rem; }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    margin-top: 1.5rem;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: 100%;
    max-width: 300px;
    text-align: center;
    justify-content: center;
  }
  .hero-badge {
    font-size: .7rem;
    letter-spacing: .1em;
    padding: .4rem 1rem;
    margin-bottom: 1rem;
  }

  /* ── STATS STRIP ── */
  .stats { padding: 2rem 0; }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0 1rem;
  }
  .stat-item {
    padding: 1.2rem .5rem;
    border-right: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .stat-num { font-size: 2rem; }
  .stat-label { font-size: .75rem; }

  /* ── SERVICE CARDS ── */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 1.5rem;
    padding: 0 .2rem;
  }
  .service-card {
    border-radius: 14px;
    padding: 0 0 1.2rem;
  }
  .service-card h3 { font-size: 1.1rem; padding: .8rem 1rem .3rem; }
  .service-card p { font-size: .88rem; padding: 0 1rem; }
  .service-card .service-tag { margin: .6rem 1rem 0; }
  .card-link-arrow { padding: .5rem 1rem 0; font-size: .85rem; }

  /* ── OUR PROMISE / FIVE-MIN SECTION ── */
  .five-min { padding: 3rem 0; }
  .five-min-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 1.2rem;
  }
  .five-min-inner > div:first-child {
    order: 2;
    padding-top: 2rem;
  }
  .five-min-inner > div:last-child {
    order: 1;
  }
  .five-min-inner h2 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: .8rem;
  }
  .five-min-inner p { font-size: .9rem; line-height: 1.7; }

  /* WHY BULLET POINTS in five-min section */
  .five-min .why-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .five-min .why-item svg { display: none; } /* hide icon on mobile for cleaner look */
  .five-min .why-item .why-icon { display: none; }
  .five-min .why-item h3 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .2rem;
    color: #fff;
  }
  .five-min .why-item p { font-size: .82rem; color: rgba(255,255,255,.65); margin: 0; }

  /* Five-min stat card */
  .five-min-inner > div:last-child > div {
    padding: 2rem 1.5rem !important;
    margin: 0 auto;
    max-width: 280px;
    border-radius: 18px;
  }

  /* ── DESTINATION GRID ── */
  .dest-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: .7rem;
    padding: 0 .5rem;
    margin-top: 1.5rem;
  }
  .dest-card, .dest-card.featured {
    aspect-ratio: 3/4 !important;
    height: auto !important;
    min-height: 160px;
    border-radius: 12px;
  }
  .dest-bg { padding: 1rem !important; }
  .dest-name { font-size: .9rem; font-weight: 700; line-height: 1.2; }
  .dest-sub { font-size: .68rem; margin-top: .2rem; }

  /* ── TESTIMONIALS ── */
  .testimonials { padding: 3rem 0; }
  .review-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .review-card {
    padding: 1.2rem;
    border-radius: 12px;
  }

  /* ── WHY TOK (Built Different) ── */
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    padding: 0 .5rem;
    margin-top: 1.5rem;
  }
  .why-item {
    padding: .8rem;
    text-align: center;
  }
  .why-icon { width: 48px; height: 48px; margin: 0 auto .6rem; }
  .why-num { font-size: 2rem; opacity: .15; }
  .why-item h3 { font-size: .9rem; }
  .why-item p { font-size: .8rem; }

  /* ── FAQ ── */
  .faq-section { padding: 3rem 0; }
  .faq-list { padding: 0 .2rem; }
  .faq-question {
    font-size: .92rem;
    padding: 1rem 0;
    line-height: 1.4;
    text-align: left;
  }
  .faq-answer p { font-size: .88rem; line-height: 1.65; padding: 0 0 1rem; }

  /* ── BOOKING / CTA SECTIONS ── */
  .booking { padding: 3rem 1.2rem; text-align: center; }
  .booking h2 { font-size: clamp(1.7rem, 6vw, 2.2rem); line-height: 1.2; }
  .booking p { font-size: .92rem; }
  .booking .btn-green { width: 100%; max-width: 300px; text-align: center; }

  /* ── BOOKING FORMS (service pages) ── */
  .booking-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  .booking-form-card { padding: 1.5rem 1.2rem; border-radius: 14px; }
  .booking-form-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
  .form-row { flex-direction: column; gap: .8rem; }
  .form-group label { font-size: .82rem; }
  .form-group input, .form-group select, .form-group textarea {
    font-size: .9rem;
    padding: .75rem 1rem;
  }
  .btn-submit { font-size: .92rem; padding: .9rem 1.2rem; width: 100%; }

  /* ── CONTACT INFO CARDS ── */
  .contact-info-cards { gap: .8rem; margin-top: 1.2rem; }
  .contact-info-item { padding: .9rem 1rem; border-radius: 10px; }
  .contact-info-item span { font-size: 1.2rem; }

  /* ── FOOTER ── */
  .site-footer { padding: 3rem 0 1.5rem; }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem 1.5rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .logo-text-foot { font-size: 1.3rem; margin-bottom: .5rem; }
  .footer-col h4 { font-size: .88rem; margin-bottom: .6rem; }
  .footer-col li { margin-bottom: .3rem; }
  .footer-col a { font-size: .82rem; }
  .footer-bottom {
    flex-direction: column;
    gap: .4rem;
    text-align: center;
    font-size: .75rem;
    padding: 1.2rem 1.2rem 0;
  }

  /* ── PAGE HERO (inner pages) ── */
  .page-hero { padding: 3.5rem 0 3rem; }
  .page-hero h1 { font-size: clamp(1.7rem, 6.5vw, 2.5rem); line-height: 1.2; }
  .page-hero p { font-size: .9rem; line-height: 1.65; }
  .page-hero .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: .7rem;
  }
  .page-hero .hero-buttons a { width: 100%; max-width: 280px; text-align: center; }

  /* ── BREADCRUMBS ── */
  .breadcrumbs { font-size: .75rem; }

  /* ── BLOG ── */
  .blog-grid { grid-template-columns: 1fr !important; }
  .blog-card { border-radius: 14px; }

  /* ── GALLERY ── */
  .gal-stats-inner { gap: 1rem; }
  .gal-stat-n { font-size: 1.6rem; }
  .gal-stat-l { font-size: .72rem; }

  /* ── WHATSAPP FLOAT BUTTON ── */
  .wa-float { bottom: 1.2rem; right: 1.2rem; }

  /* ── FLEET TABLE (pricing) ── */
  .fleet-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fleet-table { min-width: 400px; }
}

/* ── EXTRA SMALL (320px phones) ── */
@media (max-width: 380px) {
  .section-title { font-size: 1.6rem; }
  .dest-grid { grid-template-columns: 1fr; }
  .dest-card, .dest-card.featured { height: 200px !important; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
