/* ===========================
   TABLET MEDIA QUERIES (768px)
   =========================== */

@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    section {
        padding: 60px 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .dropdown-menu {
        min-width: 200px;
    }
}

/* ===========================
   MOBILE MEDIA QUERIES (768px and below)
   =========================== */

@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1rem;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

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

    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }

    /* Navigation */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 1rem 0;
        display: block;
    }

    .nav-link::after {
        display: none;
    }

    .dropdown {
        position: static;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        background: #f5f5f5;
        min-width: 100%;
        margin-top: 0;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    /* Hero Section */
    .hero {
        height: 70vh;
        margin-top: 70px;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

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

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* Sections */
    section {
        padding: 50px 1.5rem;
    }

    /* Full-width sections need inner padding override on mobile */
    .hero,
    .reviews-section,
    .why-choose-us,
    .cta-section,
    .stats-bar {
        padding-left: 0;
        padding-right: 0;
    }

    .hero {
        padding: 0;
    }

    .section-inner {
        padding: 0 1.5rem;
    }

    /* Stats Bar */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1.5rem;
        gap: 0;
    }

    .stat-item {
        padding: 1.2rem 0.5rem;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Hero trust */
    .hero-trust {
        gap: 0.6rem;
    }

    .trust-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.9rem;
    }

    .scroll-indicator {
        display: none;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2::after {
        width: 80px;
    }

    /* Service Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card-image {
        height: 180px;
    }

    .service-card-inner {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .service-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
        bottom: -24px;
    }

    /* Reviews */
    .reviews-carousel {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .review-card {
        padding: 1.5rem;
    }

    .review-header {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .reviews-nav {
        gap: 0.5rem;
    }

    .review-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

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

    .feature-card {
        padding: 2rem 1.5rem;
    }

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

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

    .testimonial-card {
        padding: 1.8rem;
    }

    .testimonial-quote {
        font-size: 2rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .testimonial-author {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-image {
        height: 200px;
    }

    .blog-content {
        padding: 1.5rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 60px 0;
    }

    .cta-content {
        padding: 0 1.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column ul {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        font-size: 0.9rem;
    }

    /* Mobile Sticky Buttons */
    .mobile-sticky-buttons {
        display: flex;
    }

    .sticky-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .sticky-btn .btn-label {
        right: 70px;
        font-size: 0.8rem;
    }
}

/* ===========================
   SMALL MOBILE DEVICES (480px and below)
   =========================== */

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1rem;
    }

    section {
        padding: 40px 1rem;
    }

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

    .hero {
        height: 60vh;
        margin-top: 60px;
        padding: 0;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .service-card-image {
        height: 160px;
    }

    .service-card-inner {
        padding: 2.2rem 1rem 1.2rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: -22px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .review-card {
        padding: 1.2rem;
    }

    .review-text {
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-quote {
        font-size: 1.8rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .testimonial-author {
        flex-direction: column;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }

    .sticky-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 15px;
        font-size: 1.2rem;
    }

    .sticky-btn .btn-label {
        display: none;
    }

    .nav-logo {
        gap: 0.5rem;
    }

    .logo-img {
        height: 40px;
    }

    .nav-container {
        padding: 0.8rem 1rem;
    }
}

/* ===========================
   EXTRA SMALL DEVICES (360px and below)
   =========================== */

@media (max-width: 360px) {
    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    section {
        padding: 30px 0.8rem;
    }

    .hero {
        height: 50vh;
        margin-top: 50px;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    .feature-card {
        padding: 1.2rem 0.8rem;
    }

    .cta-content h2 {
        font-size: 1.3rem;
    }

    .sticky-btn {
        width: 48px;
        height: 48px;
        bottom: 15px;
        right: 10px;
        font-size: 1.1rem;
    }
}

/* ===========================
   LANDSCAPE ORIENTATION (Mobile)
   =========================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 80vh;
    }

    section {
        padding: 40px 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media print {
    .navbar,
    .mobile-sticky-buttons,
    .footer {
        display: none;
    }

    body {
        background: white;
    }

    .hero-cta,
    .cta-buttons,
    .reviews-nav {
        display: none;
    }

    section {
        page-break-inside: avoid;
        box-shadow: none;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

    p {
        page-break-inside: avoid;
    }
}

/* ===========================
   HIGH RESOLUTION DISPLAYS
   =========================== */

@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    .service-card:hover {
        box-shadow: var(--shadow-xl);
    }

    .btn:hover {
        box-shadow: var(--shadow-lg);
    }
}

/* ===========================
   REDUCED MOTION
   =========================== */

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

    html {
        scroll-behavior: auto;
    }
}

/* ===========================
   DARK MODE SUPPORT
   =========================== */

@media (prefers-color-scheme: dark) {
    :root {
        --light-bg: #1a1a1a;
        --text-white: #f0f0f0;
    }

    body {
        background: #0f1419;
        color: var(--text-white);
    }

    .navbar {
        background: rgba(15, 20, 25, 0.95);
    }

    .nav-link {
        color: var(--text-white);
    }

    .nav-menu {
        background-color: #1a1a1a;
    }

    .service-card,
    .review-card,
    .testimonial-card,
    .blog-card {
        background: #1a1a1a;
        color: var(--text-white);
    }

    .feature-card.glass-effect {
        background: rgba(255, 255, 255, 0.1);
    }

    .blog-image {
        opacity: 0.9;
    }
}
