/* Mobile-First Responsive Design */

/* Base mobile styles (0-767px) */
@media screen and (max-width: 767px) {
    /* Navigation Mobile */
    .navbar {
        padding: 0.5rem 0;
        position: relative;
    }
    
    .navbar .container {
        flex-wrap: wrap;
        padding: 0 1rem;
    }
    
    .navbar-brand {
        flex: 1;
    }
    
    .navbar-logo {
        height: 60px;
        max-width: 240px;
    }
    
    /* Mobile Menu Toggle */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
    }
    
    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: #1a3a4a;
        margin: 5px 0;
        transition: 0.3s;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Mobile Menu */
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 1000;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-menu li {
        width: 100%;
    }
    
    .navbar-menu a {
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid #f0f4f8;
    }
    
    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: #f8f9fa;
        display: none;
    }
    
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    /* Content Adjustments */
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Service Grid Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Forms Mobile */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-control {
        width: 100%;
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 2rem;
    }
    
    /* Tables Mobile */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Hide desktop-only elements */
    .desktop-only {
        display: none;
    }
    
    /* Show mobile-only elements */
    .mobile-only {
        display: block;
    }
}

/* Tablet styles (768px-1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 750px;
        padding: 0 1.5rem;
    }
    
    .navbar-logo {
        height: 70px;
        max-width: 280px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .navbar-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
    }
}

/* Desktop styles (1024px+) */
@media screen and (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 0 2rem;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .navbar-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .mobile-only {
        display: none;
    }
    
    .desktop-only {
        display: block;
    }
}

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

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .menu-toggle,
    .hero-cta,
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}