/* ============================================================
   AL AMEEN HAJJ & UMRAH — Responsive CSS
   Mobile-first breakpoints for every component
   ============================================================ */

/* ============================================================
   BREAKPOINTS REFERENCE
   xs:  < 576px   (small mobile)
   sm:  576-767px (large mobile)
   md:  768-991px (tablet)
   lg:  992-1199px (small desktop)
   xl:  1200-1399px (desktop)
   xxl: >= 1400px  (large desktop)
   ============================================================ */

/* ============================================================
   LARGE DESKTOP (≥ 1400px)
   ============================================================ */
@media (min-width: 1400px) {
    .container-xl { max-width: 1340px; }

    .hero-title  { font-size: 5.4rem; }
    .section-pad { padding: 110px 0; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .logo-name { font-size: .82rem; letter-spacing: .045em; }
    .logo-arabic { font-size: 1.7rem; }
}

/* ============================================================
   DESKTOP (992px – 1199px)
   ============================================================ */
@media (max-width: 1199.98px) {
    .hero-title { font-size: clamp(2.8rem, 5.5vw, 4.4rem); }
    .hero-content { padding: 130px 0 100px; }
}

/* ============================================================
   TABLET (768px – 991px)
   ============================================================ */
@media (max-width: 991.98px) {
    :root { --navbar-height: 68px; }

    .section-pad     { padding: 80px 0; }
    .section-pad-sm  { padding: 54px 0; }
    .section-header  { margin-bottom: 44px; }

    /* Hero */
    .hero-section  { min-height: 760px; }
    .hero-content  { padding: 110px 0 84px; }
    .hero-title    { font-size: clamp(2.5rem, 7vw, 3.8rem); }
    .hero-desc     { font-size: .96rem; }
    .hero-cta-group { gap: 12px; }
    .hero-stats    { gap: 20px; margin-top: 40px; }

    /* Trust bar */
    .trust-item + .trust-item {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    .trust-item { padding: 14px 0; }

    /* About */
    .about-img-main  { height: 360px; }
    .about-img-badge { right: 0; bottom: -14px; }

    /* Page header */
    .page-header { padding: 72px 0 60px; }

    /* Contact */
    .contact-form-wrap  { padding: 30px; }
    .contact-info-card  { padding: 30px; }

    /* CTA */
    .cta-section { border-radius: 20px; padding: 80px 0; }

    /* Footer */
    .footer-top { padding-top: 60px; padding-bottom: 48px; }
}

/* ============================================================
   LARGE MOBILE (576px – 767px)
   ============================================================ */
@media (max-width: 767.98px) {
    :root { --navbar-height: 64px; }

    .section-pad     { padding: 64px 0; }
    .section-pad-sm  { padding: 42px 0; }
    .section-header  { margin-bottom: 36px; }

    /* Hero */
    .hero-section  { min-height: 720px; }
    .hero-content  { padding: 96px 0 72px; }
    .hero-title    { font-size: clamp(2.3rem, 10vw, 3.2rem); }
    .hero-desc     { font-size: .92rem; max-width: 100%; }
    .hero-cta-group { flex-direction: column; align-items: flex-start; gap: 10px; }
    .hero-slide-1,
    .hero-slide-2,
    .hero-slide-3  { background-position: 60% center; }
    .hero-controls { display: none; }
    .hero-scroll   { display: none; }
    .hero-stats    { gap: 18px; margin-top: 36px; padding-top: 24px; }
    .hero-stat-num { font-size: 1.7rem; }

    /* Page header */
    .page-header    { padding: 60px 0 48px; }
    .page-title     { font-size: clamp(2rem, 10vw, 2.8rem); }
    .page-subtitle  { font-size: .92rem; }

    /* Packages */
    .package-card-img { height: 200px; }
    .package-card-body { padding: 20px; }
    .package-card.d-md-flex { flex-direction: column !important; }
    .package-card.d-md-flex .package-card-img { flex: none !important; height: 190px !important; }

    /* Stats */
    .stats-section { padding: 60px 0; }
    .counter-num, .stat-number { font-size: clamp(2.2rem, 8vw, 3rem); }

    /* Services */
    .service-card { padding: 28px 22px; }

    /* Testimonials */
    .testimonial-card { padding: 26px 22px; }

    /* Gallery */
    .gallery-filter { gap: 8px; }
    .btn-filter { padding: 7px 16px; font-size: .8rem; }

    /* Contact */
    .contact-form-wrap  { padding: 22px 18px; border-radius: 18px; }
    .contact-info-card  { padding: 26px 20px; border-radius: 18px; }

    /* About */
    .about-img-main { height: 290px; }
    .about-img-badge { right: 0; bottom: -12px; padding: 14px 18px; }
    .about-img-badge .badge-num { font-size: 1.8rem; }

    /* CTA */
    .cta-section { border-radius: 16px; padding: 68px 0; }
    .cta-title   { font-size: clamp(1.75rem, 7vw, 2.4rem); }
    .cta-section .d-flex { flex-direction: column; }
    .btn-cta-primary,
    .btn-cta-secondary { width: 100%; justify-content: center; }

    /* Floating buttons */
    .float-whatsapp { bottom: 20px; right: 20px; width: 52px; height: 52px; font-size: 1.5rem; }
    .back-to-top    { bottom: 80px; right: 20px; width: 40px; height: 40px; }

    /* Footer */
    .footer-top { padding-top: 52px; padding-bottom: 40px; }
    .footer-logo-arabic { font-size: 1.8rem; }
    .footer-logo-name   { font-size: 1.1rem; }

    /* Trust bar */
    .trust-bar { padding: 14px 0; }
    .trust-item { padding: 12px 0; }
    .trust-item + .trust-item { border-top: 1px solid var(--border-color); border-left: none; }
}

/* ============================================================
   SMALL MOBILE (< 576px)
   ============================================================ */
@media (max-width: 575.98px) {
    html { font-size: 15px; }
    body { overflow-x: hidden; }

    .container,
    .container-xl { padding-left: 16px; padding-right: 16px; }

    /* Hero */
    .hero-section   { min-height: 680px; }
    .hero-title     { font-size: 2.2rem; line-height: 1.1; }
    .hero-arabic-title { font-size: 1.2rem; }
    .hero-badge     { font-size: .68rem; padding: 7px 14px; }
    .hero-stats     { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
    .hero-stat-item { flex: 0 0 46%; }
    .btn-hero-primary,
    .btn-hero-secondary { width: 100%; justify-content: center; border-radius: 12px; }

    /* Page header */
    .page-header { padding: 52px 0 42px; }
    .page-title  { font-size: 2rem; }

    /* Packages */
    .package-card-img  { height: 175px; }
    .package-card-body { padding: 16px; }
    .package-card-title { font-size: 1.1rem; }
    .package-price { font-size: 1.3rem; }

    /* Service cards */
    .service-card { padding: 24px 18px; }
    .service-icon { width: 64px; height: 64px; }
    .service-icon i { font-size: 1.5rem; }

    /* Why items */
    .why-item { gap: 14px; }
    .why-icon { width: 48px; height: 48px; font-size: 1.2rem; }

    /* Stats */
    .stat-card { padding: 12px; }

    /* Testimonials */
    .testimonial-card { padding: 22px 18px; }

    /* Buttons — full width on CTA sections */
    .btn-cta-primary,
    .btn-cta-secondary,
    .btn-whatsapp.d-block { width: 100%; justify-content: center; }

    /* Section headings */
    .section-title { font-size: 1.75rem; }
    .section-desc  { font-size: .88rem; }

    /* About */
    .about-img-main { height: 240px; }

    /* Contact form */
    .contact-form-wrap { padding: 18px 14px; }
    .contact-form-wrap .form-control,
    .contact-form-wrap .form-select { min-height: 46px; font-size: .86rem; }

    /* Footer */
    .footer-badges { gap: 8px; }
    .footer-badge  { font-size: .65rem; }
}

/* ============================================================
   VERY SMALL MOBILE (< 400px)
   ============================================================ */
@media (max-width: 400px) {
    html { font-size: 14.5px; }
    .hero-title { font-size: 1.95rem; }
    .hero-stat-item { flex: 0 0 46%; }
    .package-card-img { height: 155px; }
    .section-title { font-size: 1.6rem; }
    .contact-form-wrap { padding: 14px 12px; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .main-navbar, .topbar, .float-whatsapp,
    .back-to-top, .site-footer,
    .announcement-bar,
    .hero-controls, .hero-scroll,
    .cta-section { display: none !important; }

    body { font-size: 12pt; color: #000; background: #fff; }
    .package-card, .service-card { box-shadow: none; border: 1px solid #ccc; }
    a { color: #103d32; text-decoration: underline; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
