/* ============================================
   RESPONSIVE STYLES
   Mobile-First Approach with Bootstrap Integration
   ============================================ */

/* ============================================
   LARGE DEVICES (Desktops, 1200px and up)
   ============================================ */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    /* Header on large screens */
    .site-branding {
        max-width: 150px;
    }
}

/* ============================================
   MEDIUM DEVICES (Tablets, 992px and down)
   ============================================ */
@media (max-width: 991.98px) {
    /* Header */
    header {
        position: sticky;
        top: 0;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    #primary-menu {
        gap: 15px;
    }
    
    #primary-menu a {
        font-size: 0.9rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    section > .container > .row > .col p {
        font-size: 1rem;
    }
    
    /* Hero */
    .hero {
        min-height: 400px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }

    
    .hero .button {
        font-size: 1rem;
        padding: 10px 24px;
    }
    
    .hero .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    /* Services */
    .services-list .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    .services-list .border {
        padding: 2rem 1.5rem !important;
    }
    
    /* Hide mobile layout on tablet and desktop */
    .service-content-mobile {
        display: none !important;
    }
    
    .service-title-mobile,
    .service-description-mobile {
        display: none !important;
    }
    
    /* Show desktop layout */
    .service-icon-desktop,
    .service-title-desktop,
    .service-description-desktop {
        display: block !important;
    }
    
    /* Agency */
    .agency-holder {
        padding: 3rem 2rem !important;
    }
    
    .agency .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    .agency .button {
        width: 100%;
        justify-content: center;
    }
    
    /* Testimonial */
    .testimonial-holder-inner {
        padding: 2rem 3rem !important;
    }
    
    .testimonial-swiper-buttons {
        width: calc(100% + 3rem) !important;
        margin: 0 -4.5rem !important;
    }
    
    /* Blog */
    .blog-item {
        margin: 0.5rem !important;
    }
    
    /* FAQs */
    .faqs-list .col-lg-6 {
        margin-bottom: 1rem;
    }
}

/* ============================================
   SMALL DEVICES (Tablets, 768px and down)
   ============================================ */
@media (max-width: 767.98px) {
    /* Header */
    header {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }
    
    /* Mobile Header Layout */
    .mobile-branding {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .mobile-branding img {
        max-height: 35px;
        width: auto;
    }
    
    .mobile-menu-toggle-wrapper {
        flex-shrink: 0;
        margin-right: 0.75rem;
    }
    
    .mobile-actions {
        flex-shrink: 0;
        margin-left: 0.75rem;
    }
    
    .mobile-actions .button {
        padding: 6px 10px;
        font-size: 0.8rem;
        gap: 5px;
    }
    
    .mobile-actions .button svg {
        width: 16px;
        height: 16px;
    }
    
    .mobile-menu-toggle {
        margin-right: 0;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 0;
    }
    
    section h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    section > .container > .row > .col p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero .d-flex {
        gap: 0.75rem !important;
    }
    
    .hero .button {
        width: 100%;
        padding: 12px 20px;
    }
    
    .hero .col-lg-6:last-child {
        margin-top: 1.5rem;
    }
    
    .hero img {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }
    
    /* Services */
    .services-list .border {
        padding: 1.5rem 1rem !important;
        margin-bottom: .5rem;
    }
    
    .services-list h3 {
        font-size: 1.1rem !important;
    }
    
    .services-list p {
        font-size: 0.9rem;
    }
    
    /* Mobile Services Layout - Show horizontal layout */
    .service-content-mobile {
        display: flex !important;
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .service-text-mobile {
        flex: 1;
    }
    
    .service-title-mobile {
        display: block !important;
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
        text-align: right;
        color: #1a1a1a;
        font-weight: 600;
    }
    
    .service-description-mobile {
        display: block !important;
        font-size: 0.9rem;
        color: #666;
        line-height: 1.6;
        text-align: right;
        margin: 0;
    }
    
    .service-icon-mobile {
        flex-shrink: 0;
        margin-left: 1rem;
    }
    
    .service-icon-mobile img {
        width: 70px;
        height: 70px;
        padding: 8px;
        background: var(--light-primary-color);
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    /* Hide desktop layout on mobile */
    /* .service-icon-desktop,
    .service-title-desktop,
    .service-description-desktop {
        display: none !important;
    } */
    
    /* Agency */
    .agency {
        margin-bottom: 2rem !important;
    }
    
    .agency-holder {
        padding: 2rem 1.5rem !important;
    }
    
    .agency h2 {
        font-size: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    .agency-item {
        gap: 1rem !important;
        padding-bottom: 2rem !important;
    }
    
    .agency-item svg {
        width: 30px;
        height: 30px;
    }
    
    .agency-item:not(:last-child) i:before {
        top: 36px;
    }
    
    .agency-item p {
        font-size: 0.9rem;
    }
    
    .agency .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    .agency img {
        max-width: 70%;
        margin: 0 auto;
        display: block;
    }
    
    /* Testimonial */
    .testimonial {
        margin-bottom: 2rem !important;
    }
    
    .testimonial-holder {
        padding: 1.5rem 0;
    }
    
    .testimonial-holder-inner {
        padding: 1.5rem 1rem !important;
        margin: 0 1rem;
    }
    
    .testimonial-swiper-buttons {
        display: none !important;
    }
    
    .testimonial-item-content-name {
        font-size: 1rem;
    }
    
    .testimonial-item-content p {
        font-size: 0.9rem;
    }
    
    /* Blog */
    .blog {
        margin-bottom: 2rem !important;
    }
    
    .blog-item {
        padding: 1.5rem !important;
        margin: 0.25rem !important;
    }
    
    .blog-item h3 {
        font-size: 1.1rem !important;
    }
    
    .blog-item p {
        font-size: 0.85rem;
    }
    
    .blog-item .button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .blog-swiper-buttons {
        display: none !important;
    }
    
    /* FAQs */
    .faq-item {
        padding: 0.875rem !important;
        margin-bottom: 0.75rem;
    }
    
    .faq-item span {
        font-size: 0.95rem;
    }
    
    .faq-item span svg {
        width: 18px;
        height: 18px;
    }
    
    .faq-item-answer p {
        font-size: 0.85rem !important;
        margin-top: 0.75rem !important;
    }
}

/* ============================================
   EXTRA SMALL DEVICES (Phones, 576px and down)
   ============================================ */
@media (max-width: 575.98px) {
    /* Header */
    .mobile-branding img {
        max-height: 30px;
    }
    
    .mobile-menu-toggle-wrapper {
        margin-right: 0.5rem;
    }
    
    .mobile-actions {
        margin-left: 0.5rem;
    }
    
    .mobile-actions .button {
        padding: 6px 8px;
        font-size: 0.75rem;
        gap: 4px;
        min-width: auto;
    }
    
    .mobile-actions .button svg {
        width: 16px;
        height: 16px;
    }
    
    .hero p{
        margin-bottom: 1rem;
    }
    
    .modern-mobile-nav-menu li ul{
        background: #f5f5f5;
        padding-right: 1rem;
    }

    .service-carousel-content{
        align-items: center;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        width: 26px;
        height: 20px;
        margin-right: 0;
    }
    
    .hamburger-line {
        height: 2.5px;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    section h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    section > .container > .row > .col p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    /* Hero */
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.5;
    }
    
    .hero .button {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
    
    .hero img {
        max-width: 90%;
    }
    
    /* Services */
    .services-list .border {
        padding: 1.25rem !important;
    }

    
    .services-list h3 {
        font-size: 1rem !important;
    }
    
    .services-list p {
        font-size: 0.85rem;
    }
    
    /* Mobile Services Layout for Extra Small Devices */
    .service-content-mobile {
        margin-bottom: 0;
    }
    
    .service-title-mobile {
        font-size: 1rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .service-description-mobile {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .service-icon-mobile {
        margin-left: 1.25rem;
    }
    
    .service-icon-mobile img {
        width: 62px;
        height: 62px;
        padding: 6px;
        border-radius: 10px;
    }
    
    /* Agency */
    .agency-holder {
        padding: 1.5rem 1rem !important;
    }
    
    .agency h2 {
        font-size: 1.3rem !important;
    }
    
    .agency-item {
        gap: 0.75rem !important;
        padding-bottom: 1rem !important;
    }
    
    .agency-item svg {
        width: 28px;
        height: 28px;
    }
    
    .agency-item p {
        font-size: 0.85rem;
        line-height: 1.7;
    }
    
    .agency .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .agency img {
        max-width: 85%;
    }
    
    /* Testimonial */
    .testimonial-holder-inner {
        padding: 1.25rem 0.875rem !important;
        margin: 0 0.5rem;
    }
    
    .testimonial-item-content-name {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .testimonial-item-content p {
        font-size: 0.85rem;
        line-height: 1.7;
    }
    
    /* Blog */
    .blog-item {
        padding: 1.25rem !important;
    }
    
    .blog-item h3 {
        font-size: 1rem !important;
    }
    
    .blog-item p {
        font-size: 0.8rem;
        line-height: 1.6;
    }
    
    .blog-item .button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    /* FAQs */
    .faq-item {
        padding: 0.75rem !important;
    }
    
    .faq-item span {
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    
    .faq-item span svg {
        width: 16px;
        height: 16px;
    }
    
    .faq-item-answer p {
        font-size: 0.8rem !important;
    }

    .service-carousel{
        margin: 2rem 0 4rem 0;
    }
    .footer-brand{
        margin-bottom: 2rem;
    }
    .footer-links-column li:not(:last-child){
        margin-bottom: 1rem;
        line-height: 1.6;
    }
    .site-footer{
        padding: 2rem 0;
    }
    .services-list img{
        margin: 0 auto .5rem;
    }
}

/* ============================================
   ULTRA SMALL DEVICES (Phones, 400px and down)
   ============================================ */
@media (max-width: 399.98px) {
    /* Header */
    .mobile-branding img {
        max-height: 28px;
    }
    
    .mobile-menu-toggle-wrapper {
        margin-right: 0.25rem;
    }
    
    .mobile-actions {
        margin-left: 0.25rem;
    }
    
    .mobile-actions .button {
        padding: 3px 6px;
        min-width: 32px;
        justify-content: center;
        font-size: 0.7rem;
    }
    
    .mobile-actions .button svg {
        width: 14px;
        height: 14px;
        margin: 0;
    }
    
    .mobile-menu-toggle {
        width: 24px;
        height: 18px;
    }
    
    .hamburger-line {
        height: 2px;
    }

    /* Agency */
    .agency-item svg {
        width: 24px;
        height: 24px;
    }
    
    .agency-item:not(:last-child) i:before {
        top: 28px;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION (Phones)
   ============================================ */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero {
        min-height: auto;
    }
    
    .hero .row {
        align-items: center;
    }
    
    .hero .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .hero .col-lg-6:last-child {
        margin-top: 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .hero .d-flex {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .hero .button {
        width: auto;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    header,
    .mobile-menu-toggle,
    .modern-mobile-menu,
    .button,
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
}

/* ============================================
   HIGH RESOLUTION DISPLAYS
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .site-branding img {
        image-rendering: -webkit-optimize-contrast;
    }
}

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

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Uncomment if you want to add dark mode support
    body {
        background-color: #1a1a1a;
        color: #f0f0f0;
    }
    
    header {
        background: #2a2a2a;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    section h2 {
        color: #f0f0f0;
    }
    */
}

/* ============================================
   CONTAINER ADJUSTMENTS FOR SMALL SCREENS
   ============================================ */
@media (max-width: 767.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* ============================================
   FLEXBOX UTILITIES FOR RESPONSIVE
   ============================================ */
@media (max-width: 767.98px) {
    .d-flex.gap-3 {
        gap: 0.75rem !important;
    }
    
    .d-flex.gap-4 {
        gap: 1rem !important;
    }
}

/* ============================================
   RESPONSIVE TEXT ALIGNMENT
   ============================================ */
@media (max-width: 767.98px) {
    .hero .col-lg-6:first-child {
        text-align: center;
    }
    
    .agency .col-lg-6:first-child {
        text-align: center;
    }
}

/* ============================================
   SWIPER RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 767.98px) {
    .swiper-slide {
        padding: 0 0.25rem;
    }
    
    .items-swiper .swiper-wrapper,
    .blog-swiper .swiper-wrapper,
    .testimonial-swiper .swiper-wrapper {
        padding-bottom: 2.5rem !important;
    }
    
    .swiper-pagination {
        bottom: 0.5rem !important;
    }
    
    .swiper-pagination-bullet {
        width: 8px !important;
        height: 8px !important;
        margin: 0 4px !important;
    }
}

