/* ==========================================
   Responsive Design - Mobile & Tablet
   ========================================== */

/* ========== Tablet Styles (768px - 1024px) ========== */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.7rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .service-content {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

/* ========== Mobile Styles (max-width: 768px) ========== */
@media screen and (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    /* Top Bar */
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-bar-left,
    .top-bar-right {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    /* Header & Navigation */
    .mobile-menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-white);
        box-shadow: var(--shadow-hover);
        transition: left 0.3s ease;
        z-index: 2000;
        overflow-y: auto;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 0;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    nav ul li a {
        display: block;
        padding: 15px 10px;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1500;
    }

    .mobile-overlay.active {
        display: block;
    }

    .mobile-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        cursor: pointer;
        color: var(--text-dark);
    }

    /* Hero Section */
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Service Hero */
    .service-hero {
        padding: 60px 0;
    }

    .service-hero h1 {
        font-size: 2rem;
    }

    .service-hero p {
        font-size: 1rem;
    }

    /* Sections */
    section {
        padding: 50px 0;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Service Content */
    .service-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-main {
        padding: 30px 20px;
    }

    .service-sidebar {
        position: static;
    }

    /* Contact Section */
    .contact-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    /* Blog Grid */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* About Content */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Values Grid */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* CTA Section */
    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    /* Map */
    .map-container iframe {
        height: 300px;
    }
}

/* ========== Small Mobile (max-width: 480px) ========== */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-icon {
        font-size: 2.8rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .logo img {
        height: 50px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* ========== Print Styles ========== */
@media print {
    .top-bar,
    header,
    nav,
    .mobile-menu-toggle,
    .hero-buttons,
    .cta-section,
    footer {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        text-decoration: underline;
    }
}
