/* ============================================
   AMANTOUR - MOBILE FIX (loaded after main.css)
   Fixes grid, stats, destinations on all devices
   ============================================ */

/* ── RESET GRID DEFAULTS ── */
.stats-bar-inner,
.about-strip,
.services-grid,
.why-grid,
.dest-grid,
.addr-grid,
.steps-row,
.testimonials-grid {
    display: grid !important;
}

/* ── STATS BAR - ALWAYS 4 COLS ON MOBILE ── */
.stats-bar {
    background: var(--dark-blue);
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,.06);
}
.stats-bar-inner {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    text-align: center;
    padding: 0 8px;
}
.stats-bar-item {
    padding: 8px 6px;
    border-left: 1px solid rgba(255,255,255,.08);
}
.stats-bar-item:last-child { border-left: none; }
.stats-bar-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--orange);
    line-height: 1.1;
    margin-bottom: 4px;
}
.stats-bar-label {
    display: block;
    font-size: .68rem;
    color: rgba(255,255,255,.6);
    line-height: 1.3;
}


/* ── ABOUT STRIP - 2x2 on mobile ── */
.about-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
}
.about-card {
    padding: 18px 12px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(13,43,85,.08);
    border-bottom: 4px solid transparent;
    transition: all .3s ease;
    opacity: 0;
    transform: translateY(20px);
}
.about-card.visible { opacity: 1; transform: translateY(0); }
.about-card:hover { border-bottom-color: var(--orange); }
.about-card .icon {
    width: 48px; height: 48px;
    background: #E3F2FD; color: var(--royal);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin: 0 auto 10px;
}
.about-card h3 { font-size: .84rem; font-weight: 700; color: var(--dark-blue); margin-bottom: 5px; }
.about-card p  { font-size: .76rem; color: var(--g-dark); line-height: 1.6; }

/* ── SERVICES - 2 col mobile, 3 tab, 5 desktop ── */
.services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
}
.service-card {
    padding: 16px 10px;
    background: #fff;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(13,43,85,.08);
    opacity: 0; transform: translateY(16px);
    transition: all .3s ease;
    border: 2px solid transparent;
    display: flex; flex-direction: column; align-items: center;
}
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card:hover { border-color: rgba(245,166,35,.25); }
.svc-icon { font-size: 1.8rem; margin-bottom: 8px; display: block; }
.service-card h3 { font-size: .78rem; font-weight: 700; color: var(--dark-blue); }

/* ── WHY US - 1 col mobile ── */
.why-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}
.why-card {
    padding: 18px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.05);
    opacity: 0; transform: translateY(16px);
    transition: all .3s ease;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.why-card.visible { opacity: 1; transform: translateY(0); }
.wc-icon { font-size: 1.6rem; color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.why-card .wc-text h3 { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.why-card .wc-text p  { font-size: .82rem; color: rgba(255,255,255,.62); line-height: 1.65; }

/* ── DESTINATIONS - 2x3 grid always ── */
.dest-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
}
.dest-card {
    border-radius: 12px;
    padding: 22px 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 150px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0; transform: translateY(16px);
    transition: all .3s ease;
}
.dest-card.visible { opacity: 1; transform: translateY(0); }
.dest-emoji { font-size: 2.2rem; position: relative; z-index: 1; margin-bottom: 7px; line-height: 1; }
.dest-name  { font-size: .84rem; font-weight: 700; color: #fff; position: relative; z-index: 1; margin-bottom: 2px; }
.dest-sub   { font-size: .72rem; color: rgba(255,255,255,.6); position: relative; z-index: 1; }
.dest-badge {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    background: rgba(245,166,35,.2); border: 1px solid rgba(245,166,35,.4);
    color: var(--orange); padding: 2px 7px; border-radius: 10px; font-size: .65rem; font-weight: 700;
}

/* ── HAJJ FEATURE - always column on mobile ── */
.hajj-feature {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}
.hajj-feature .visual-card { order: -1; }
.visual-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    min-height: 220px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 28px 16px;
}
.vc-main-icon { font-size: 52px; margin-bottom: 10px; }
.vc-title     { font-size: 1rem; font-weight: 800; color: #fff; text-align: center; margin-bottom: 4px; }
.vc-sub       { font-size: .78rem; color: rgba(255,255,255,.6); text-align: center; }

/* ── FEATURE POINTS ── */
.feature-points { gap: 7px; margin-bottom: 20px; }
.feature-point  { font-size: .84rem; padding: 7px 10px; }

/* ── STEPS - 2x2 mobile ── */
.steps-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    position: relative;
}
.steps-row::before { display: none !important; }
.step-item { text-align: center; padding: 12px 8px; }
.step-num  { width: 46px; height: 46px; font-size: 1rem; margin: 0 auto 10px; }
.step-item h3 { font-size: .84rem; margin-bottom: 3px; }
.step-item p  { font-size: .74rem; }

/* ── ADDR GRID - 1 col mobile ── */
.addr-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
}
.addr-card { padding: 18px 16px; }

/* ── CTA BANNER ── */
.cta-banner { padding: 28px 16px; border-radius: 14px; }
.cta-banner h2 { font-size: 1.2rem; margin-bottom: 8px; }
.cta-banner p  { font-size: .85rem; margin-bottom: 16px; }
.cta-buttons   { flex-direction: column; align-items: center; gap: 10px; }
.cta-buttons a { width: 100%; max-width: 260px; justify-content: center; }

/* ── HERO BUTTONS ── */
.hero-buttons { flex-direction: column; gap: 10px; }
.hero-buttons a { width: 100%; justify-content: center; text-align: center; }

/* ── FOOTER MOBILE ── */
.footer-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
}

/* ── FORM ROW ── */
.form-row { grid-template-columns: 1fr !important; gap: 0 !important; }

/* ============= TABLET 640px+ ============= */
@media (min-width: 640px) {
    .stats-bar-inner { grid-template-columns: repeat(4, 1fr) !important; gap: 0 !important; padding: 0; }
    .about-strip     { grid-template-columns: repeat(4, 1fr) !important; }
    .services-grid   { grid-template-columns: repeat(3, 1fr) !important; gap: 14px !important; }
    .why-grid        { grid-template-columns: repeat(2, 1fr) !important; }
    .why-card        { flex-direction: column; }
    .dest-grid       { grid-template-columns: repeat(3, 1fr) !important; gap: 12px !important; }
    .steps-row       { grid-template-columns: repeat(4, 1fr) !important; }
    .addr-grid       { grid-template-columns: repeat(3, 1fr) !important; gap: 16px !important; }
    .hero-buttons    { flex-direction: row; flex-wrap: wrap; }
    .hero-buttons a  { width: auto; }
    .form-row        { grid-template-columns: 1fr 1fr !important; gap: 14px !important; }
    .cta-buttons     { flex-direction: row; align-items: center; }
    .cta-buttons a   { width: auto; max-width: none; }
    .stats-bar-num   { font-size: 1.6rem; }
    .stats-bar-label { font-size: .78rem; }
    .footer-top      { display: grid !important; grid-template-columns: 1fr 1fr !important; }
    .vc-main-icon    { font-size: 65px; }
    .vc-title        { font-size: 1.2rem; }
    .visual-card     { min-height: 300px; }
}

/* ============= DESKTOP 1024px+ ============= */
@media (min-width: 1024px) {
    .stats-bar-num  { font-size: 2rem; }
    .stats-bar-label{ font-size: .85rem; }
    .about-strip    { grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important; }
    .services-grid  { grid-template-columns: repeat(5, 1fr) !important; gap: 14px !important; }
    .why-grid       { grid-template-columns: repeat(3, 1fr) !important; gap: 20px !important; }
    .why-card       { flex-direction: column; }
    .dest-grid      { grid-template-columns: repeat(6, 1fr) !important; gap: 14px !important; }
    .hajj-feature   { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 50px !important; align-items: center !important; }
    .hajj-feature .visual-card { order: 0; }
    .hajj-feature.reverse { direction: ltr; }
    .hajj-feature.reverse > * { direction: rtl; }
    .visual-card    { min-height: 400px; }
    .vc-main-icon   { font-size: 80px; }
    .vc-title       { font-size: 1.35rem; }
    .steps-row      { position: relative; }
    .steps-row::before { display: block !important; content: ''; position: absolute; top: 32px; right: 12%; left: 12%; height: 2px; background: linear-gradient(to left, var(--orange), var(--royal)); z-index: 0; }
    .addr-grid      { grid-template-columns: repeat(3, 1fr) !important; }
    .footer-top     { display: grid !important; grid-template-columns: 2fr 1fr 1fr 1.5fr !important; gap: 36px !important; }
}

/* ── WHY CARD CONTENT WRAPPER FIX ── */
.why-card > .wc-icon + * { flex: 1; }

/* ── PRELOADER FIX ── */
#preloader { 
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    background: #0D2B55 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
#preloader.hidden,
#preloader.pl-hide {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}
.pl-inner { text-align: center; color: #fff; padding: 20px; }
.pl-logo img { width: 160px; max-width: 70vw; filter: brightness(0) invert(1); display: block; margin: 0 auto 20px; }
.pl-text h2  { font-size: 1.3rem; font-weight: 800; margin-bottom: 5px; }
.pl-text p   { font-size: .88rem; color: var(--orange); font-weight: 600; margin-bottom: 3px; }
.pl-text small { font-size: .76rem; color: rgba(255,255,255,.45); }
.pl-bar  { width: 160px; height: 3px; background: rgba(255,255,255,.12); border-radius: 10px; margin: 18px auto 0; overflow: hidden; }
.pl-fill { height: 100%; background: linear-gradient(90deg, #F5A623, #E8960C); animation: barFill 2.2s ease forwards; }
@keyframes barFill { from { width: 0; } to { width: 100%; } }

/* ── LOGO ── */
.logo img { filter: none !important; background: transparent !important; height: 48px !important; width: auto !important; max-width: 160px !important; }
.mobile-logo img { filter: brightness(0) invert(1) !important; background: transparent !important; }
.footer-brand .f-logo { filter: brightness(0) invert(1) !important; }
.admin-logo img { filter: brightness(0) invert(1) !important; }
.pl-logo img    { filter: brightness(0) invert(1) !important; }

/* ── TESTIMONIALS SLIDER ── */
.testi-slider-wrap { overflow: hidden; position: relative; }
.testi-slider { display: flex; }
.testi-slide  { flex-shrink: 0; padding: 0 12px; box-sizing: border-box; flex: 0 0 100%; max-width: 100%; }

/* ── SECTION PADDING MOBILE ── */
@media (max-width: 639px) {
    .section { padding: 44px 0; }
    .section-header { margin-bottom: 28px; }
    .section-title  { font-size: 1.4rem; }
    .container      { padding: 0 14px; }
    .hero-content   { padding: 80px 0 50px; }
    .hero-content h1 { font-size: 1.9rem; }
    .hero-tagline   { font-size: .95rem; }
    .hero-desc      { font-size: .88rem; margin-bottom: 22px; }
    .btn-primary, .btn-whatsapp, .btn-outline, .btn-white { font-size: .88rem; padding: 12px 18px; }
}

/* ── TESTIMONIALS MOBILE FIX ── */
.testi-section { padding: 40px 0; }
.testi-slider-wrap { padding: 8px 0 32px; }
.testi-slide { padding: 0 12px; }
.testi-screenshot { border-radius: 12px; }
.testi-screenshot img { max-height: 280px; min-height: 180px; }
.testi-screenshot-footer { padding: 10px 12px; font-size: .82rem; }
.testi-card-inner { min-height: 200px; border-radius: 12px; }
.testi-head { padding: 14px 12px; gap: 10px; }
.testi-avatar { width: 40px; height: 40px; font-size: 1rem; }
.testi-info .name { font-size: .84rem; }
.testi-body { padding: 14px 12px; }
.testi-text { font-size: .84rem; line-height: 1.65; }
.testi-nav { margin-top: 16px; gap: 10px; }
.testi-prev, .testi-next { width: 34px; height: 34px; font-size: .8rem; }

@media (min-width: 640px) {
    .testi-slide { flex: 0 0 50%; max-width: 50%; }
    .testi-screenshot img { max-height: 320px; }
}
@media (min-width: 1024px) {
    .testi-slide { flex: 0 0 33.333%; max-width: 33.333%; }
    .testi-screenshot img { max-height: 380px; }
    .testi-card-inner { min-height: 240px; }
}

