/* ============================================
   Khidmah Travels - Responsive Styles
   Version: 2.0.0
   ============================================ */

/* ---------- Desktop Large (min 1400px) ---------- */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ---------- Tablet / Small Desktop (max 1199px) ---------- */
@media (max-width: 1199px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }

    .services-grid,
    .packages-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        gap: 32px;
    }

    .pricing-card.popular {
        transform: scale(1.02);
    }

    .pricing-card.popular:hover {
        transform: scale(1.02) translateY(-5px);
    }
}

/* ---------- Tablet / Large Mobile (max 991px) ---------- */
@media (max-width: 991px) {
    :root {
        --section-py: 60px;
    }

    .hamburger {
        display: flex;
    }

    .navbar-menu {
        display: none;
    }

    .navbar-actions .btn-gradient {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .lang-switcher.desktop-only {
        display: none;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 5vw, 3rem);
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat .counter-number {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .features-bar .container {
        padding: 24px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .services-grid,
    .countries-grid,
    .pricing-grid,
    .testimonials-grid,
    .team-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-section .about-image {
        margin-bottom: 28px;
    }

    .about-section .experience-badge {
        bottom: 10px;
        right: 10px;
        padding: 16px;
    }

    .about-section .experience-badge .number {
        font-size: 2rem;
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .cta-section {
        padding: 60px 0;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        margin-top: 28px;
    }

    .footer-newsletter .row {
        flex-direction: column;
        gap: 20px;
    }

    .hero-slide-icon-wrap {
        min-height: 260px;
        border-radius: 16px;
    }

    /* Tablet: image still right half */
    .hero-slide-bg-image {
        width: 50%;
    }

    .hero-slide-bg-image::before {
        width: 60px;
    }
}

/* ---------- Mobile (max 767px) ---------- */
@media (max-width: 767px) {
    :root {
        --section-py: 50px;
    }

    .container {
        padding: 0 16px;
    }

    /* Hero - inner pages need top padding, homepage slider doesn't */
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-section#heroSlider {
        padding: 0;
    }

    .hero-slider-controls {
        bottom: 15px;
        padding: 6px 10px;
        gap: 8px;
    }

    .hero-slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    /* Slider grid single-column on mobile */
    .hero-slider-slide > .container > div {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding: 40px 16px 0 !important;
        margin-bottom: 0 !important;
    }

    .hero-slide-visual {
        order: 2;
        justify-content: center;
    }

    .hero-slide-icon-wrap {
        min-height: 220px;
        max-width: 100%;
        margin: 0 auto;
    }

    /* Mobile: image full width bottom, flush with text */
    .hero-slide-bg-image {
        position: relative;
        width: 100%;
        height: 260px;
        top: auto;
        right: auto;
        margin-top: 0;
    }

    .hero-slide-bg-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 60px;
        background: linear-gradient(to bottom, rgba(26, 138, 77, 0.9), transparent);
        z-index: 2;
    }

    .hero-content {
        padding: 40px 16px 20px;
    }

    .hero-content h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }

    .hero-content p {
        font-size: 0.92rem;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat .counter-number {
        font-size: 1.8rem;
    }

    .hero-stat .stat-label {
        font-size: 0.72rem;
    }

    /* Features Bar */
    .features-bar {
        margin-top: -24px;
    }

    .features-bar .container {
        padding: 20px 16px;
    }

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

    .feature-item {
        flex-direction: row;
        text-align: left;
    }

    /* Section Titles */
    .section-title {
        margin-bottom: 32px;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .section-title p {
        font-size: 0.92rem;
    }

    /* Cards - Single Column */
    .services-grid,
    .packages-grid,
    .countries-grid,
    .pricing-grid,
    .testimonials-grid,
    .team-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Package Cards */
    .package-card .package-image {
        height: 180px;
    }

    /* Stats */
    .stats-section {
        padding: 48px 0;
    }

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

    .stat-item .counter-number {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 0.72rem;
    }

    /* About */
    .about-section .about-image {
        margin-bottom: 20px;
    }

    .about-section .experience-badge {
        bottom: 10px;
        right: 10px;
        padding: 12px 16px;
    }

    .about-section .experience-badge .number {
        font-size: 1.5rem;
    }

    .about-section .experience-badge span {
        font-size: 0.7rem;
    }

    /* Why Cards */
    .why-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* CTA */
    .cta-section {
        padding: 48px 0;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 0.92rem;
    }

    .cta-content .btn {
        margin-bottom: 10px;
    }

    .cta-content .d-flex {
        flex-direction: column;
        align-items: center;
    }

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

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

    .testimonial-card .testimonial-text {
        font-size: 0.88rem;
    }

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

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

    .footer-widget .footer-title::after {
        left: 0;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .footer-newsletter {
        text-align: center;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Blog */
    .blog-single .blog-content table {
        font-size: 0.78rem;
    }

    .blog-single .blog-content table th,
    .blog-single .blog-content table td {
        padding: 8px 10px;
    }

    /* Forms */
    .form-group label {
        font-size: 0.85rem;
    }

    .form-control {
        padding: 10px 14px;
        font-size: 0.88rem;
    }

    /* Tables */
    .data-table {
        font-size: 0.78rem;
    }

    .data-table thead th {
        padding: 10px 12px;
    }

    .data-table tbody td {
        padding: 8px 12px;
    }

    /* FAQ */
    .faq-item .faq-question {
        padding: 14px 16px;
        font-size: 0.92rem;
    }

    /* Pagination */
    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }

    /* Page Banner */
    .page-banner {
        padding: 110px 0 40px;
    }

    .page-banner h1 {
        font-size: 1.5rem;
    }

    /* Breadcrumb */
    .breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
    }

    .breadcrumb a,
    .breadcrumb span {
        font-size: 0.82rem;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
    }

    /* Blog Sidebar */
    .blog-sidebar .sidebar-widget {
        padding: 20px;
    }

    /* Pricing */
    .pricing-card {
        padding: 32px 24px;
    }

    .pricing-card .price .amount {
        font-size: 2.5rem;
    }

    .pricing-card.popular {
        transform: none;
    }

    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }

    /* Accordion */
    .accordion-header {
        padding: 14px 16px;
    }

    .accordion-body-content {
        padding: 0 16px 16px;
    }

    /* Tables horizontal scroll */
    .table-responsive {
        margin: 0 -16px;
        padding: 0 16px;
    }

    /* Contact Form Info */
    .contact-form .form-info {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ---------- Small Mobile (max 480px) ---------- */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 14px;
    }

    .section-py {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 6px 14px;
    }

    .hero-stats {
        gap: 14px;
    }

    .hero-stat .counter-number {
        font-size: 1.6rem;
    }

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

    .btn {
        padding: 10px 22px;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 12px 28px;
        font-size: 0.92rem;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .brand-tagline {
        font-size: 0.58rem;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .section-title h2 {
        font-size: 1.35rem;
    }

    .section-title .badge-pill {
        font-size: 0.72rem;
        padding: 4px 14px;
    }

    .footer-logo h3 {
        font-size: 1.1rem;
    }

    .country-card {
        height: 220px;
    }

    .blog-card .blog-image {
        height: 160px;
    }

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

    .blog-card .blog-date .month {
        font-size: 0.62rem;
    }

    .visa-card {
        padding: 20px 16px;
    }

    .visa-card .country-flag {
        font-size: 2.5rem;
    }

    .mobile-menu {
        max-width: 100%;
    }
}

/* ---------- Very Small Mobile (max 360px) ---------- */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.35rem;
    }

    .hero-buttons .btn {
        max-width: 260px;
        padding: 10px 20px;
    }

    .mobile-menu-body .nav-link {
        padding: 12px 0;
        font-size: 0.92rem;
    }

    .footer-newsletter .newsletter-title {
        font-size: 1rem;
    }

    .footer-newsletter .newsletter-desc {
        font-size: 0.8rem;
    }
}

/* ---------- Print Styles ---------- */
@media print {
    .navbar,
    .site-footer,
    .back-to-top,
    .whatsapp-float,
    .hamburger,
    .mobile-menu,
    .mobile-menu-overlay,
    .scroll-indicator,
    .cta-section,
    .newsletter-form,
    .social-links,
    .cookie-consent {
        display: none !important;
    }

    .hero-section {
        min-height: auto;
        padding: 30px 0;
    }

    .hero-section::before {
        display: none;
    }

    .hero-content h1 {
        color: var(--foreground) !important;
    }

    .hero-content p {
        color: var(--muted-foreground) !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        text-decoration: underline;
    }

    .fade-in,
    .fade-in-left,
    .fade-in-right,
    .scale-in {
        opacity: 1 !important;
        transform: none !important;
    }
}
