/* ============================================================
   G MIRACLES — mobile-fix.css
   Comprehensive Mobile & Tablet Responsive Overrides
   Fixes: Gallery, Team, Services, About, Why-Us, Booking,
          Hero, Contact, Footer, Page Banners — all sections
   ============================================================ */

/* ============================================================
   GLOBAL IMAGE SAFETY
   ============================================================ */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   HERO SECTION — Mobile
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    min-height: 100svh;
    align-items: flex-end;
    padding-bottom: 4rem;
  }

  .hero-content {
    max-width: 100%;
    padding-top: calc(var(--header-h) + 1rem);
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }
}

@media (max-width: 600px) {
  .hero {
    padding-bottom: 3rem;
    min-height: 100svh;
  }

  .hero-content h1 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
    line-height: 1.15;
  }

  .hero-content p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .hero-btns {
    flex-direction: column;
    gap: 0.65rem;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   BRANDS STRIP — Mobile
   ============================================================ */
@media (max-width: 600px) {
  .brands-list {
    gap: 0.75rem 1.2rem;
    justify-content: center;
  }

  .brands-list span {
    font-size: 0.72rem;
    text-align: center;
  }
}

/* ============================================================
   ABOUT PREVIEW SECTION — Mobile
   ============================================================ */
@media (max-width: 900px) {
  .about-preview-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-img-wrap {
    margin-bottom: 0;
  }

  /* Prevent accent image from causing horizontal scroll */
  .about-img-accent {
    display: none;
  }
}

@media (max-width: 600px) {
  .about-preview {
    padding: 50px 0;
  }

  .about-img-main {
    height: 260px !important;
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
  }

  .about-badge {
    top: 12px;
    left: 10px;
    padding: 0.85rem 1rem;
    min-width: 85px;
  }

  .about-badge-num {
    font-size: 1.6rem;
  }

  .about-badge-text {
    font-size: 0.58rem;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .about-feature {
    padding: 0.65rem 0.75rem;
  }

  .about-feature h5 {
    font-size: 0.82rem;
  }

  .about-feature p {
    font-size: 0.77rem;
  }
}

/* ============================================================
   SERVICES GRID — Mobile
   ============================================================ */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }
}

@media (max-width: 600px) {
  .services-highlights {
    padding: 50px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .service-card-img {
    height: 200px;
  }

  .service-card-img img {
    height: 200px;
  }

  .service-card-body {
    padding: 1.25rem;
  }

  .service-card h3 {
    font-size: 1.15rem;
  }

  .service-card p {
    font-size: 0.82rem;
  }
}

/* ============================================================
   WHY CHOOSE US — Mobile
   ============================================================ */
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
  }

  .why-item {
    padding: 2.25rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .why-us {
    padding: 50px 0;
  }

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

  .why-item {
    padding: 2rem 1.25rem;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }

  .why-item .why-icon {
    font-size: 1.6rem;
    margin-bottom: 0;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
  }

  .why-item-text { flex: 1; }

  .why-item h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
  }

  .why-item p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
  }
}

/* ============================================================
   TEAM SECTION — Mobile
   ============================================================ */
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .team-card-img {
    height: 260px;
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .team-card-img {
    height: 220px;
  }

  .team-card-body {
    padding: 1rem;
  }

  .team-card-body h4 {
    font-size: 1rem;
  }

  .team-card-body span {
    font-size: 0.68rem;
  }
}

/* Team photo (single image — index.html) */
@media (max-width: 900px) {
  .team-photo {
    height: 340px !important;
    border-radius: 4px;
  }
}

@media (max-width: 600px) {
  .team-photo {
    height: 260px !important;
    width: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
  }

  /* Team section wrapper (inline-styled in index.html) */
  section[style*="padding:6rem"] {
    padding: 50px 0 !important;
  }
}

/* ============================================================
   GALLERY COLUMNS (Homepage) — Mobile handled by inline styles
   Extra safety rules here
   ============================================================ */
@media (max-width: 900px) {
  .gallery-columns { column-count: 2 !important; column-gap: 6px !important; }
  .gcol-item { margin-bottom: 6px !important; }
}
@media (max-width: 480px) {
  .gallery-columns { column-count: 2 !important; column-gap: 5px !important; }
  .gallery-preview { padding: 50px 0; }
}

/* ============================================================
   GALLERY FULL PAGE GRID — Mobile
   ============================================================ */
@media (max-width: 900px) {
  .gallery-full-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .gallery-full-grid .gallery-item img {
    min-height: 200px;
    height: 200px;
  }
}

@media (max-width: 500px) {
  .gallery-full-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .gallery-full-grid .gallery-item img {
    height: 240px;
  }
}

/* ============================================================
   TESTIMONIALS — Mobile
   ============================================================ */
@media (max-width: 600px) {
  .testimonials {
    padding: 50px 0;
  }

  .testimonial-slide {
    padding: 0 0.5rem;
  }

  .testimonial-text {
    font-size: 1rem;
    line-height: 1.65;
  }

  .testimonial-quote-icon {
    font-size: 2.5rem;
  }
}

/* ============================================================
   BOOKING SECTION — Mobile
   ============================================================ */
@media (max-width: 900px) {
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .booking-section {
    padding: 50px 0;
  }

  .booking-form {
    padding: 1.5rem 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ============================================================
   MAP SECTION — Mobile
   ============================================================ */
@media (max-width: 900px) {
  .map-wrap {
    height: 280px;
  }

  .map-wrap iframe {
    height: 280px;
  }

  .map-section iframe {
    height: 280px;
  }
}

@media (max-width: 600px) {
  .map-wrap {
    height: 220px;
  }

  .map-wrap iframe,
  .map-section iframe {
    height: 220px;
  }
}

/* ============================================================
   CONTACT STRIP — Mobile
   ============================================================ */
@media (max-width: 900px) {
  .contact-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }
}

@media (max-width: 600px) {
  .contact-preview-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact-item {
    padding: 1.75rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
  }

  .contact-item-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-bottom: 0;
    width: 36px;
    text-align: center;
  }

  .contact-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  .contact-item p {
    font-size: 0.82rem;
  }
}

/* ============================================================
   PAGE BANNER (Inner Pages) — Mobile
   ============================================================ */
@media (max-width: 900px) {
  .page-banner {
    height: 320px;
  }

  .page-banner h1 {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }
}

@media (max-width: 600px) {
  .page-banner {
    height: 240px;
    margin-top: var(--header-h);
  }

  .page-banner h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    line-height: 1.2;
  }

  .breadcrumb,
  .page-banner-breadcrumb {
    font-size: 0.68rem;
  }
}

/* ============================================================
   ABOUT PAGE — Story Section
   ============================================================ */
@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .story-img img {
    height: 380px;
  }

  .story-img-badge {
    bottom: -10px;
    right: -10px;
    padding: 1.25rem;
  }
}

@media (max-width: 600px) {
  .story-section {
    padding: 50px 0;
  }

  .story-img img {
    height: 280px;
    width: 100%;
    object-fit: cover;
  }

  .story-img-badge {
    padding: 1rem;
    bottom: -8px;
    right: -8px;
  }

  .story-img-badge .big {
    font-size: 2rem;
  }
}

/* Mission/Vision grid */
@media (max-width: 900px) {
  .mv-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .mv-card {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 600px) {
  .mv-card {
    padding: 2rem 1.25rem;
  }

  .mv-card h3 {
    font-size: 1.4rem;
  }
}

/* Stats grid */
@media (max-width: 600px) {
  .stats-section {
    padding: 50px 0;
  }

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

  .stat-item {
    padding: 1.75rem 1rem;
  }

  .stat-num {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }
}

/* ============================================================
   SERVICES PAGE — Detail Sections
   ============================================================ */
@media (max-width: 900px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Reset RTL direction used for alternating layout */
  .service-detail-section:nth-child(even) .service-detail-grid {
    direction: ltr;
  }

  .service-detail-section:nth-child(even) .service-detail-content {
    direction: ltr;
  }

  .service-detail-img {
    height: 300px;
  }

  .service-detail-img::after {
    display: none; /* Remove gold border offset on mobile */
  }
}

@media (max-width: 600px) {
  .service-detail-section {
    padding: 50px 0;
  }

  .service-detail-img {
    height: 240px;
  }

  .price-item {
    font-size: 0.82rem;
    gap: 0.5rem;
  }

  .price-item .price {
    font-size: 0.95rem;
    white-space: nowrap;
  }
}

/* ============================================================
   CONTACT PAGE — Main Grid
   ============================================================ */
@media (max-width: 900px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-form-wrap {
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .contact-layout {
    padding: 50px 0;
  }

  .contact-form-wrap {
    padding: 1.5rem 1rem;
  }

  .contact-info-item {
    flex-direction: row;
    gap: 0.85rem;
  }

  .contact-info-icon {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .contact-info-text h4 {
    font-size: 0.9rem;
  }

  .contact-info-text p {
    font-size: 0.82rem;
  }
}

/* ============================================================
   FOOTER — Mobile
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .footer-main {
    padding: 3rem 0 2rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.25rem 0;
  }

  .footer-socials {
    gap: 0.6rem;
  }

  .social-link {
    width: 34px;
    height: 34px;
    font-size: 0.78rem;
  }
}

/* ============================================================
   SECTION HEADERS — Mobile Spacing
   ============================================================ */
@media (max-width: 600px) {
  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .section-subtitle {
    font-size: 0.88rem;
  }

  .script-text {
    font-size: 1.6rem;
  }

  .gold-divider {
    margin: 1rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .container--wide {
    padding: 0 1rem;
  }
}

/* ============================================================
   SECTION PADDING — Mobile
   ============================================================ */
@media (max-width: 600px) {
  .section-pad {
    padding: 50px 0;
  }

  .section-pad-sm {
    padding: 35px 0;
  }
}

/* ============================================================
   BLOG PAGE — Mobile
   ============================================================ */
@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 50px 0;
  }

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

  .blog-sidebar {
    display: none; /* Hide sidebar on tablet; content first */
  }
}

@media (max-width: 600px) {
  .blog-card-img {
    height: 200px;
  }

  .blog-card-body {
    padding: 1.25rem;
  }

  .blog-card h3 {
    font-size: 1rem;
  }

  .blog-card p {
    font-size: 0.82rem;
  }
}

/* ============================================================
   GALLERY PAGE FILTERS — Mobile
   ============================================================ */
@media (max-width: 600px) {
  .gallery-filters {
    gap: 0.35rem;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gallery-filters::-webkit-scrollbar { display: none; }

  .filter-btn {
    padding: 7px 14px;
    font-size: 0.68rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ============================================================
   LIGHTBOX — Mobile Safe
   ============================================================ */
@media (max-width: 600px) {
  .lightbox-img {
    max-width: 96vw;
    max-height: 80vh;
  }

  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ============================================================
   WHATSAPP FLOAT & BACK TO TOP — Mobile
   ============================================================ */
@media (max-width: 600px) {
  .wa-float {
    bottom: 4.5rem !important;
    right: 1rem !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 1.35rem !important;
  }

  .back-to-top {
    bottom: 1rem !important;
    right: 1rem !important;
    width: 38px !important;
    height: 38px !important;
  }
}

/* ============================================================
   GENERAL OVERFLOW SAFETY
   ============================================================ */
body {
  overflow-x: hidden;
}

section,
.container,
.container--wide {
  max-width: 100%;
}

/* Prevent any absolute-positioned element from causing horizontal scroll */
@media (max-width: 600px) {
  .about-img-wrap,
  .story-img,
  .service-detail-img {
    overflow: hidden;
    position: relative;
  }
}

/* ============================================================
   MOBILE MENU — Visual Polish
   ============================================================ */
@media (max-width: 900px) {
  .mobile-menu {
    width: min(300px, 88vw);
  }

  .mobile-menu a:not(.logo):not(.btn) {
    font-size: 1.35rem;
    padding: 0.75rem 1.25rem;
  }
}

/* ============================================================
   HEADER — Mobile Refinement
   ============================================================ */
@media (max-width: 600px) {
  :root {
    --header-h: 62px;
  }

  .header-inner {
    padding: 0 1rem;
  }

  .logo-main {
    font-size: 1.1rem;
  }

  .logo-icon {
    height: 30px;
  }

  .logo-sub {
    font-size: 0.52rem;
  }
}
