/* ============================================
   RESPONSIVE CSS - Full Website Responsiveness
   ============================================ */

/* ============================================
   BASE RESPONSIVE SETTINGS
   ============================================ */
* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1170px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

/* ============================================
   HEADER & NAVIGATION RESPONSIVE
   ============================================ */

/* Large Screens (1200px and up) */
@media (min-width: 1200px) {
    .c-layout-header .c-navbar .container-fluid {
        padding-left: 50px;
        padding-right: 50px;
    }
}

/* Medium Screens (992px - 1199px) */
@media (max-width: 1199px) {
    .c-layout-header .c-navbar .container-fluid {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .c-layout-header .c-mega-menu > .nav.navbar-nav > li > .c-link {
        padding: 20px 12px !important;
        font-size: 13px !important;
    }
    
    .navbar-cta-btn {
        padding: 8px 20px !important;
        font-size: 13px !important;
    }
}

/* Tablet and Below (991px and below) - Clean Burger Menu */
@media (max-width: 991px) {
    /* Hide topbar */
    .c-layout-header .c-topbar {
        display: none !important;
    }
    
    /* Navbar base styles */
    .c-layout-header .c-navbar {
        min-height: 70px !important;
        padding: 0 !important;
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .c-layout-header .c-navbar .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 70px;
    }
    
    /* Navbar wrapper fix */
    .c-navbar-wrapper {
        width: 100%;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    /* Logo - Right side (RTL) */
    .c-layout-header .c-brand {
        order: 2;
    }
    
    .c-layout-header .c-brand .c-logo img {
        height: 50px !important;
        transform: none !important;
    }
    
    /* Hamburger button - Left side in RTL */
    .c-hor-nav-toggler {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        background: #193A68 !important;
        border: none !important;
        border-radius: 8px;
        cursor: pointer;
        order: 1;
        padding: 0;
        position: relative;
    }
    
    .c-hor-nav-toggler .c-line {
        width: 24px;
        height: 2px;
        background: #fff !important;
        margin: 4px 0;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    /* Hide topbar toggler */
    .c-topbar-toggler {
        display: none !important;
    }
    
    /* Mobile Menu - Full Screen Dropdown */
    .c-layout-header .c-mega-menu {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        background: #fff !important;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        z-index: 9999;
        border-top: 1px solid #eee;
    }
    
    .c-layout-header .c-mega-menu > .nav.navbar-nav {
        flex-direction: column !important;
        width: 100%;
        padding: 10px 0;
        margin: 0;
    }
    
    .c-layout-header .c-mega-menu > .nav.navbar-nav > li {
        width: 100%;
        border-bottom: 1px solid #f5f5f5;
    }
    
    .c-layout-header .c-mega-menu > .nav.navbar-nav > li:last-child {
        border-bottom: none;
    }
    
    .c-layout-header .c-mega-menu > .nav.navbar-nav > li > .c-link {
        padding: 18px 25px !important;
        font-size: 16px !important;
        color: #193A68 !important;
        display: flex !important;
        align-items: center;
        gap: 12px;
    }
    
    .c-layout-header .c-mega-menu > .nav.navbar-nav > li > .c-link i {
        font-size: 18px;
        color: #BA854A;
        width: 25px;
    }
    
    .c-layout-header .c-mega-menu > .nav.navbar-nav > li > .c-link:hover,
    .c-layout-header .c-mega-menu > .nav.navbar-nav > li.c-active > .c-link {
        background: #f8f9fa;
        color: #BA854A !important;
    }
    
    /* CTA Button in mobile menu */
    .navbar-cta-btn {
        margin: 15px 25px 20px !important;
        padding: 15px 30px !important;
        font-size: 16px !important;
        width: calc(100% - 50px) !important;
        text-align: center;
        justify-content: center !important;
        background: linear-gradient(135deg, #193A68 0%, #041736 100%) !important;
        color: #fff !important;
        border-radius: 30px !important;
        box-shadow: 0 5px 20px rgba(25, 58, 104, 0.3);
    }
    
    .navbar-cta-btn:hover {
        background: linear-gradient(135deg, #BA854A 0%, #8B6239 100%) !important;
    }
}

/* Small Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
}

/* Mobile Phones (below 768px) */
@media (max-width: 767px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Smaller navbar on mobile */
    .c-layout-header .c-navbar {
        min-height: 60px !important;
    }
    
    .c-layout-header .c-navbar .container-fluid {
        height: 60px;
    }
    
    .c-layout-header .c-brand .c-logo img {
        height: 40px !important;
    }
    
    .c-hor-nav-toggler {
        width: 40px;
        height: 40px;
    }
    
    /* Mobile Menu - Top position adjustment */
    .c-layout-header .c-mega-menu {
        top: 60px !important;
        max-height: calc(100vh - 60px);
    }
    
    .c-layout-header .c-mega-menu > .nav.navbar-nav > li > .c-link {
        padding: 15px 20px !important;
        font-size: 15px !important;
    }
    
    .navbar-cta-btn {
        margin: 12px 20px 15px !important;
        padding: 12px 25px !important;
        font-size: 15px !important;
        width: calc(100% - 40px) !important;
    }
}

/* ============================================
   HERO SECTION RESPONSIVE
   ============================================ */

@media (max-width: 1199px) {
    .hero-section {
        padding-top: 80px !important;
    }
    
    .hero-title {
        font-size: 44px !important;
    }
    
    .hero-subtitle {
        font-size: 18px !important;
    }
}

@media (max-width: 991px) {
    .hero-section {
        min-height: auto !important;
        padding: 120px 0 60px !important;
    }
    
    .hero-title {
        font-size: 36px !important;
    }
    
    .hero-subtitle {
        font-size: 16px !important;
        max-width: 100% !important;
    }
    
    .hero-content {
        text-align: center !important;
    }
    
    .hero-buttons {
        justify-content: center !important;
    }
    
    .hero-badge {
        margin: 0 auto 25px !important;
    }
    
    .hero-visual {
        display: none;
    }
    
    /* Hide floating cards on tablet */
    .floating-card {
        display: none;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 100px 0 50px !important;
    }
    
    .hero-title {
        font-size: 28px !important;
        line-height: 1.4 !important;
    }
    
    .hero-subtitle {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
    
    .hero-badge {
        padding: 8px 18px !important;
        font-size: 12px !important;
    }
    
    .hero-badge span {
        font-size: 12px !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px !important;
        width: 100%;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 15px 30px !important;
        font-size: 16px !important;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px !important;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 12px 25px !important;
        font-size: 15px !important;
    }
}

/* ============================================
   CONTENT SECTIONS RESPONSIVE
   ============================================ */

/* Content Box Spacing */
@media (max-width: 991px) {
    .c-content-box.c-size-lg {
        padding: 60px 0 !important;
    }
    
    .c-content-box.c-size-md {
        padding: 50px 0 !important;
    }
}

@media (max-width: 767px) {
    .c-content-box.c-size-lg {
        padding: 50px 0 !important;
    }
    
    .c-content-box.c-size-md {
        padding: 40px 0 !important;
    }
}

/* Section Headers */
@media (max-width: 991px) {
    .text-center h3,
    .c-content-title-1 h3 {
        font-size: 28px !important;
    }
    
    .text-center p,
    .c-content-title-1 p {
        font-size: 15px !important;
    }
}

@media (max-width: 767px) {
    .text-center h3,
    .c-content-title-1 h3 {
        font-size: 24px !important;
    }
    
    .text-center p,
    .c-content-title-1 p {
        font-size: 14px !important;
        padding: 0 10px;
    }
}

/* ============================================
   SERVICES GRID RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .services-row .col-lg-3 {
        width: 50% !important;
        flex: 0 0 50% !important;
    }
    
    .service-card {
        margin-bottom: 25px;
    }
    
    .service-content {
        padding: 20px !important;
    }
    
    .service-title {
        font-size: 16px !important;
        min-height: 48px !important;
    }
}

@media (max-width: 767px) {
    .services-row .col-lg-3,
    .services-row .col-md-4,
    .services-row .col-sm-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .service-img-container {
        padding-top: 75% !important; /* 4:3 aspect ratio on mobile */
    }
    
    .service-content {
        padding: 20px 15px !important;
    }
    
    .service-title {
        min-height: auto !important;
    }
}

/* ============================================
   STEPS/HOW WE WORK SECTION RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .step-card {
        padding: 30px 20px !important;
        margin-bottom: 20px;
    }
    
    .step-number {
        width: 60px !important;
        height: 60px !important;
        font-size: 24px !important;
    }
    
    .step-icon i {
        font-size: 32px !important;
    }
    
    .step-card h4 {
        font-size: 18px !important;
    }
}

@media (max-width: 767px) {
    .col-md-3.col-sm-6 {
        width: 100% !important;
    }
    
    .step-card {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================
   BLOG SECTION RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .blog-card-modern {
        margin-bottom: 20px;
    }
    
    .c-content-blog-post-card-1-slider .owl-carousel .item {
        padding: 5px !important;
    }
}

@media (max-width: 767px) {
    .owl-carousel .item {
        padding: 10px 5px !important;
    }
    
    .blog-card-modern h4 {
        min-height: auto !important;
    }
    
    .blog-card-modern h4 a {
        font-size: 16px !important;
    }
}

/* ============================================
   CLIENT FEEDBACK SECTION RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .feedback-media-card {
        height: 280px !important;
        margin-bottom: 20px;
    }
    
    .video-carousel,
    .image-carousel {
        padding: 0 10px;
    }
    
    .owl-carousel .owl-nav {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .feedback-media-card {
        height: 250px !important;
    }
    
    .feedback-media-card video {
        min-height: 200px !important;
    }
}

/* ============================================
   CTA SECTIONS RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .cta-section h3,
    .c-content-bar-4 h3 {
        font-size: 28px !important;
    }
    
    .cta-section p {
        font-size: 16px !important;
    }
    
    .cta-section a.btn,
    .c-content-bar-4 a.btn {
        padding: 15px 40px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 767px) {
    .cta-section h3,
    .c-content-bar-4 h3 {
        font-size: 24px !important;
    }
    
    .cta-section p {
        font-size: 15px !important;
        padding: 0 15px;
    }
    
    .cta-section a.btn,
    .c-content-bar-4 a.btn {
        padding: 14px 35px !important;
        font-size: 15px !important;
        width: calc(100% - 30px);
        max-width: 300px;
        justify-content: center;
    }
}

/* ============================================
   TRUST BADGES RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    [style*="gap: 40px"] {
        gap: 25px !important;
    }
    
    [style*="gap: 40px"] > div {
        flex: 0 0 calc(33.33% - 20px);
    }
}

@media (max-width: 480px) {
    [style*="gap: 40px"] {
        gap: 15px !important;
        flex-direction: column;
    }
    
    [style*="gap: 40px"] > div {
        flex: none;
    }
}

/* ============================================
   FOOTER RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .c-layout-footer [style*="padding: 70px 0 50px"] {
        padding: 50px 0 30px !important;
    }
    
    .c-layout-footer .col-md-4,
    .c-layout-footer .col-md-2 {
        margin-bottom: 30px !important;
    }
    
    .c-layout-footer h3 {
        font-size: 20px !important;
    }
    
    .c-layout-footer h4 {
        font-size: 16px !important;
    }
}

@media (max-width: 767px) {
    .c-layout-footer .col-md-4,
    .c-layout-footer .col-md-2,
    .c-layout-footer .col-sm-6 {
        width: 100% !important;
        text-align: center;
    }
    
    .c-layout-footer ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .c-layout-footer ul li {
        width: auto !important;
        margin-bottom: 5px !important;
    }
    
    .c-layout-footer h4 span {
        right: 50% !important;
        transform: translateX(50%);
    }
    
    /* Footer bottom */
    .c-layout-footer [style*="padding: 25px 0"] .col-md-6 {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 15px;
    }
    
    .c-layout-footer [style*="padding: 25px 0"] .text-left {
        text-align: center !important;
    }
    
    .c-layout-footer [style*="justify-content: flex-start"] {
        justify-content: center !important;
    }
}

/* ============================================
   ABOUT PAGE RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    /* Hero on about page */
    [style*="padding: 170px 0 80px"] {
        padding: 130px 0 60px !important;
    }
    
    [style*="padding: 170px 0 80px"] h1 {
        font-size: 36px !important;
    }
    
    [style*="padding: 170px 0 80px"] p {
        font-size: 16px !important;
    }
}

@media (max-width: 767px) {
    [style*="padding: 170px 0 80px"] {
        padding: 100px 0 50px !important;
    }
    
    [style*="padding: 170px 0 80px"] h1 {
        font-size: 28px !important;
    }
    
    [style*="padding: 170px 0 80px"] p {
        font-size: 15px !important;
        padding: 0 15px;
    }
    
    /* About content */
    [style*="padding-right: 30px"] {
        padding-right: 0 !important;
        text-align: center;
    }
    
    [style*="padding-right: 30px"] h2 {
        font-size: 24px !important;
    }
    
    [style*="padding-right: 30px"] h2 span {
        right: 50% !important;
        transform: translateX(50%);
    }
    
    /* Features list */
    [style*="display: flex; flex-wrap: wrap; gap: 15px"] {
        justify-content: center !important;
    }
}

/* ============================================
   SERVICES PAGE RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .services-hero {
        padding: 130px 0 60px !important;
    }
    
    .services-hero h1 {
        font-size: 36px !important;
    }
    
    .phase-section {
        padding: 60px 0 !important;
    }
    
    .phase-title {
        flex-direction: column;
        text-align: center;
    }
    
    .phase-text h2 {
        font-size: 26px !important;
    }
    
    .service-card .card-image {
        height: 180px !important;
    }
}

@media (max-width: 767px) {
    .services-hero {
        padding: 100px 0 50px !important;
    }
    
    .services-hero h1 {
        font-size: 28px !important;
    }
    
    .phase-section {
        padding: 50px 0 !important;
    }
    
    .phase-number {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }
    
    .phase-text h2 {
        font-size: 22px !important;
    }
    
    .phase-text p {
        font-size: 14px !important;
    }
    
    .service-card .col-md-4,
    .service-card .col-sm-6 {
        width: 100% !important;
    }
    
    .service-card .card-title {
        font-size: 16px !important;
    }
}

/* ============================================
   OWL CAROUSEL RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .owl-carousel .owl-stage {
        padding-left: 0 !important;
    }
    
    .owl-carousel .owl-item {
        padding: 0 5px;
    }
    
    .owl-carousel .owl-dots {
        margin-top: 20px !important;
    }
    
    .owl-carousel .owl-dot span {
        width: 10px !important;
        height: 10px !important;
    }
}

@media (max-width: 767px) {
    .owl-carousel .owl-item {
        padding: 0;
    }
}

/* ============================================
   BUTTONS & LINKS RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    .btn-lg {
        padding: 12px 30px !important;
        font-size: 15px !important;
    }
    
    .btn {
        white-space: normal !important;
        text-align: center;
    }
    
    /* Center all major CTA buttons on mobile */
    .text-center .btn,
    [class*="text-center"] .btn {
        display: inline-flex !important;
        max-width: 90%;
    }
}

/* ============================================
   FORMS RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    .form-control {
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 12px 15px !important;
    }
    
    .modal-dialog {
        margin: 10px !important;
        width: calc(100% - 20px) !important;
        max-width: none !important;
    }
    
    .modal-body {
        padding: 20px !important;
    }
    
    .modal-footer {
        padding: 15px 20px !important;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* ============================================
   ROW & COLUMN FIXES
   ============================================ */

@media (max-width: 991px) {
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 767px) {
    .row {
        margin-left: -7.5px;
        margin-right: -7.5px;
    }
    
    [class*="col-"] {
        padding-left: 7.5px;
        padding-right: 7.5px;
    }
    
    /* Stack columns on mobile */
    .col-sm-6 {
        width: 100%;
        float: none;
    }
}

/* ============================================
   TYPOGRAPHY RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    h1 {
        font-size: 36px !important;
    }
    
    h2 {
        font-size: 28px !important;
    }
    
    h3 {
        font-size: 24px !important;
    }
    
    h4 {
        font-size: 18px !important;
    }
    
    p {
        font-size: 15px;
        line-height: 1.7;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 28px !important;
    }
    
    h2 {
        font-size: 24px !important;
    }
    
    h3 {
        font-size: 20px !important;
    }
    
    h4 {
        font-size: 16px !important;
    }
    
    p {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* ============================================
   UTILITIES FOR MOBILE
   ============================================ */

/* Hide on mobile */
@media (max-width: 767px) {
    .hidden-xs,
    .hidden-mobile {
        display: none !important;
    }
}

/* Hide on tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .hidden-sm,
    .hidden-tablet {
        display: none !important;
    }
}

/* Show only on mobile */
@media (min-width: 768px) {
    .visible-xs-only,
    .mobile-only {
        display: none !important;
    }
}

/* Full width on mobile */
@media (max-width: 767px) {
    .full-width-mobile {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Center text on mobile */
@media (max-width: 767px) {
    .text-center-mobile {
        text-align: center !important;
    }
}

/* ============================================
   FIX FOR INLINE STYLES OVERFLOW
   ============================================ */

@media (max-width: 767px) {
    /* Fix any overflow issues from inline styles */
    [style*="padding: 40px"],
    [style*="padding: 50px"],
    [style*="padding-left: 50px"],
    [style*="padding-right: 50px"] {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Fix min-height issues */
    [style*="min-height: 100vh"] {
        min-height: auto !important;
    }
    
    /* Fix large gaps */
    [style*="gap: 50px"] {
        gap: 25px !important;
    }
    
    [style*="gap: 40px"] {
        gap: 20px !important;
    }
    
    [style*="gap: 30px"] {
        gap: 15px !important;
    }
}

/* ============================================
   ANIMATION ADJUSTMENTS FOR MOBILE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Disable heavy animations on mobile for performance */
@media (max-width: 767px) {
    .hero-circle,
    .hero-shape {
        animation: none !important;
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0); }
    }
    
    @keyframes pulse {
        0%, 100% { transform: scale(1); }
    }
}

/* ============================================
   GO TO TOP BUTTON RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    .c-layout-go2top {
        width: 40px !important;
        height: 40px !important;
        bottom: 20px !important;
        left: 20px !important;
    }
    
    .c-layout-go2top i {
        font-size: 16px !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .c-layout-header,
    .c-layout-footer,
    .c-layout-go2top,
    .hero-bg-elements,
    .scroll-indicator {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
}
