/* ===== RESPONSIVE DESIGN ===== */

/* ===== TABLET RESPONSIVE (768px - 1024px) ===== */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section .lead {
        font-size: 1.15rem;
    }
    
    .service-card {
        padding: 1.75rem;
    }
    
    .office-header {
        padding: 1.25rem;
    }
    
    .office-content {
        padding: 1.25rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
}

/* ===== MOBILE RESPONSIVE (max-width: 768px) ===== */
@media (max-width: 768px) {
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
        padding: 0 1rem;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .hero-section .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Services Section */
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-card h4 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .service-card ul li {
        font-size: 0.85rem;
    }
    
    /* About Section */
    .about-image {
        height: 300px;
        margin-top: 2rem;
    }
    
    .about-stat {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .about-stat h3 {
        font-size: 1.5rem;
    }
    
    .about-stat p {
        font-size: 0.85rem;
    }
    
    /* Office Cards */
    .office-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 1.25rem;
    }
    
    .office-header h4 {
        font-size: 1.1rem;
    }
    
    .office-content {
        padding: 1.25rem;
    }
    
    .office-content p {
        font-size: 0.9rem;
    }
    
    .office-content ul li {
        font-size: 0.85rem;
    }
    
    /* Contact Section */
    .contact-info,
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin: 0 auto;
    }
    
    .contact-content h6 {
        font-size: 1rem;
    }
    
    .contact-content p {
        font-size: 0.85rem;
    }
    
    /* Footer */
    footer .row > div {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer .row > div:last-child {
        margin-bottom: 0;
    }
    
    footer h6 {
        font-size: 1.1rem;
    }
    
    footer ul li a {
        font-size: 0.9rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ===== SMALL MOBILE RESPONSIVE (max-width: 576px) ===== */
@media (max-width: 576px) {
    /* Global Styles */
    body {
        font-size: 0.9rem;
    }
    
    h1, .display-4 {
        font-size: 1.75rem !important;
    }
    
    h2, .display-5 {
        font-size: 1.5rem !important;
    }
    
    .lead {
        font-size: 0.9rem !important;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand i {
        font-size: 1.25rem;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
    
    .hero-section .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    /* Services Section */
    .service-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .service-card h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .service-card ul li {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    /* About Section */
    .about-image {
        height: 250px;
    }
    
    .about-stat {
        padding: 0.75rem;
    }
    
    .about-stat h3 {
        font-size: 1.25rem;
    }
    
    .about-stat p {
        font-size: 0.8rem;
    }
    
    /* Office Cards */
    .office-header {
        padding: 1rem;
    }
    
    .office-header h4 {
        font-size: 1rem;
    }
    
    .office-content {
        padding: 1rem;
    }
    
    .office-content p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .office-content ul li {
        font-size: 0.8rem;
    }
    
    /* Contact Section */
    .contact-info,
    .contact-form {
        padding: 1.25rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-content h6 {
        font-size: 0.9rem;
    }
    
    .contact-content p {
        font-size: 0.8rem;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }
    
    /* Footer */
    footer .row > div {
        margin-bottom: 1.5rem;
    }
    
    footer h5 {
        font-size: 1.1rem;
    }
    
    footer h6 {
        font-size: 1rem;
    }
    
    footer p,
    footer ul li a {
        font-size: 0.85rem;
    }
    
    footer .col-md-6 {
        text-align: center !important;
    }
}

/* ===== EXTRA SMALL DEVICES (max-width: 400px) ===== */
@media (max-width: 400px) {
    /* Navigation */
    .navbar-brand {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 0.85rem;
    }
    
    /* Services Section */
    .service-card {
        padding: 1rem;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .service-card h4 {
        font-size: 0.9rem;
    }
    
    .service-card p {
        font-size: 0.8rem;
    }
    
    .service-card ul li {
        font-size: 0.75rem;
    }
    
    /* About Section */
    .about-image {
        height: 200px;
    }
    
    .about-stat {
        padding: 0.5rem;
    }
    
    .about-stat h3 {
        font-size: 1.1rem;
    }
    
    .about-stat p {
        font-size: 0.75rem;
    }
    
    /* Office Cards */
    .office-header {
        padding: 0.75rem;
    }
    
    .office-header h4 {
        font-size: 0.9rem;
    }
    
    .office-content {
        padding: 0.75rem;
    }
    
    .office-content p {
        font-size: 0.8rem;
    }
    
    .office-content ul li {
        font-size: 0.75rem;
    }
    
    /* Contact Section */
    .contact-info,
    .contact-form {
        padding: 1rem;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .contact-content h6 {
        font-size: 0.85rem;
    }
    
    .contact-content p {
        font-size: 0.75rem;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    .form-label {
        font-size: 0.8rem;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (orientation: landscape) and (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon,
    .contact-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .hero-section,
    footer {
        display: none !important;
    }
    
    .service-card,
    .office-card,
    .contact-info,
    .contact-form {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    body {
        font-size: 12pt !important;
        line-height: 1.4 !important;
    }
}