/* ============================================
   QUICK RESPONSIVE FIXES
   Add this file to fix immediate responsive issues
   ============================================ */

/* Prevent horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* Fix images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Logo Images */
.logo img,
.logo-image {
    max-width: 180px;
    width: auto;
    height: auto;
}

@media (max-width: 767px) {
    .logo img,
    .logo-image {
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .logo img,
    .logo-image {
        max-width: 120px;
    }
}

/* Fix container overflow */
.container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Mobile-friendly buttons */
@media (max-width: 767px) {
    .btn-get-started,
    .btn-primary,
    .btn-secondary,
    .btn-signin {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Fix hero sections on mobile */
@media (max-width: 767px) {
    .agent-hero h1,
    .compliance-hero h1,
    .documents-hero h1,
    .ip-hero h1,
    .mnc-hero h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        letter-spacing: 1px;
    }
    
    .agent-hero,
    .compliance-hero,
    .documents-hero,
    .ip-hero,
    .mnc-hero {
        min-height: 350px !important;
        padding: 60px 0 !important;
    }
}

/* Stack two-column layouts on mobile */
@media (max-width: 967px) {
    .intro-content,
    .services-content,
    .benefits-content,
    .why-need-content,
    .how-works-content,
    .pricing-content,
    .cta-content,
    .requirements-content,
    .types-content,
    .amendments-content,
    .why-protect-content,
    .process-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .intro-images,
    .services-images,
    .why-need-images,
    .documents-images {
        grid-template-columns: 1fr !important;
    }
    
    .img-large {
        grid-row: span 1 !important;
    }
    
    /* Handle inline grid styles - make all two-column grids single column */
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* Adjust nested image grids */
    div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 15px"],
    div[style*="grid-template-columns:1fr 1fr"][style*="gap: 15px"] {
        grid-template-columns: 1fr !important;
    }
}

/* Fix navigation on mobile */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed !important;
        left: -100% !important;
        top: 70px !important;
        flex-direction: column !important;
        background: #2d2d2d !important;
        width: 100% !important;
        text-align: left !important;
        transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
        padding: 15px 0 !important;
        gap: 0 !important;
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 999 !important;
    }
    
    .nav-menu.active {
        left: 0 !important;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 5px 0;
    }
    
    .nav-menu > li > a {
        display: block;
        padding: 12px 15px;
        color: white !important;
        text-decoration: none;
        border-radius: 4px;
        transition: background 0.3s;
    }
    
    .nav-menu a {
        color: white !important;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 1001;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        padding-left: 20px;
        background: rgba(0, 0, 0, 0.3) !important;
        border-radius: 4px;
        margin-top: 5px;
        display: none !important;
    }
    
    .dropdown-menu.show {
        display: block !important;
    }
    
    .dropdown-menu li {
        margin: 3px 0;
    }
    
    .dropdown-menu a {
        padding: 10px 15px;
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .dropdown-submenu-menu {
        position: static !important;
        box-shadow: none !important;
        padding-left: 20px;
        background: rgba(0, 0, 0, 0.3) !important;
        border-radius: 4px;
        margin-top: 5px;
        display: none !important;
    }
    
    .dropdown-submenu-menu.show {
        display: block !important;
    }
    
    .dropdown-submenu-menu li {
        margin: 3px 0;
    }
    
    .dropdown-submenu-menu a {
        padding: 8px 15px;
        color: rgba(255, 255, 255, 0.85) !important;
        font-size: 0.95rem;
    }
    
    /* Fix chevron icons color */
    .nav-menu .fa-chevron-down,
    .nav-menu .fa-chevron-right {
        color: white !important;
    }
}

/* Fix top bar on mobile */
@media (max-width: 767px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .top-bar-left,
    .top-bar-right {
        width: 100%;
        justify-content: center;
    }
    
    .address {
        display: none;
    }
}

/* Fix footer on mobile */
@media (max-width: 767px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Fix service cards grid */
@media (max-width: 767px) {
    .services-grid,
    .benefits-grid,
    .reasons-grid,
    .documents-grid,
    .requirements-grid,
    .types-grid {
        grid-template-columns: 1fr !important;
    }
    
    .services-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 768px) and (max-width: 967px) {
    .services-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Fix text sizes on mobile */
@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    /* Adjust inline font sizes for mobile */
    div[style*="font-size: 72px"],
    div[style*="font-size:72px"] {
        font-size: 48px !important;
    }
    
    div[style*="font-size: 48px"],
    div[style*="font-size:48px"] {
        font-size: 32px !important;
    }
    
    div[style*="font-size: 42px"],
    div[style*="font-size:42px"] {
        font-size: 28px !important;
    }
    
    div[style*="font-size: 36px"],
    div[style*="font-size:36px"] {
        font-size: 26px !important;
    }
    
    div[style*="font-size: 32px"],
    div[style*="font-size:32px"] {
        font-size: 24px !important;
    }
}

/* Additional responsive improvements for very small screens */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Further reduce inline font sizes for small mobile */
    div[style*="font-size: 72px"],
    div[style*="font-size:72px"] {
        font-size: 36px !important;
    }
    
    div[style*="font-size: 48px"],
    div[style*="font-size:48px"] {
        font-size: 28px !important;
    }
    
    div[style*="font-size: 42px"],
    div[style*="font-size:42px"] {
        font-size: 24px !important;
    }
    
    div[style*="font-size: 36px"],
    div[style*="font-size:36px"] {
        font-size: 22px !important;
    }
    
    div[style*="font-size: 32px"],
    div[style*="font-size:32px"] {
        font-size: 20px !important;
    }
    
    div[style*="font-size: 28px"],
    div[style*="font-size:28px"] {
        font-size: 20px !important;
    }
}

/* Fix padding on mobile */
@media (max-width: 767px) {
    section {
        padding: 40px 0 !important;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .benefits-content,
    .services-content,
    .cta-content,
    .requirements-content,
    .types-content,
    .amendments-content,
    .why-protect-content,
    .process-content,
    .how-works-content,
    .pricing-content {
        padding: 30px 20px !important;
    }
    
    /* Adjust inline padding for mobile */
    div[style*="padding: 60px"],
    div[style*="padding:60px"] {
        padding: 30px 20px !important;
    }
    
    div[style*="padding: 80px 0"],
    div[style*="padding:80px 0"] {
        padding: 50px 0 !important;
    }
}

/* Team showcase responsive improvements */
@media (max-width: 968px) {
    .team-showcase,
    .team-showcase > div {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .team-left {
        padding-right: 0 !important;
    }
    
    .team-member-card img,
    .member-image img {
        max-width: 100%;
        height: auto !important;
    }
}

/* Fix modal on mobile */
@media (max-width: 767px) {
    .modal-content,
    .contact-modal .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 20px;
        margin: 20px;
    }
}

/* Ensure touch targets are large enough */
@media (max-width: 767px) {
    a, button, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Fix tables on mobile */
@media (max-width: 767px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Fix forms on mobile */
@media (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    select,
    textarea {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Improve readability */
@media (max-width: 767px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* Fix logo on mobile */
@media (max-width: 767px) {
    .logo {
        max-width: 200px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
}

/* Fix breadcrumb on mobile */
@media (max-width: 767px) {
    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .hamburger,
    .btn-get-started,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }
}


