/* =========================================================
   EXCEL SUPPORT — RESPONSIVE OVERRIDES
   Desktop design is preserved; these rules improve tablets
   and phones without changing page content or functionality.
========================================================= */

html {
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 0;
}

img,
iframe,
video {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.menu-btn {
    border: 0;
    background: transparent;
    color: #0f172a;
    line-height: 1;
    padding: 10px;
    border-radius: 10px;
}

@media (max-width: 991px) {
    .container {
        width: min(92%, 720px);
    }

    .navbar {
        padding: 12px 0;
    }

    .navbar .container {
        position: relative;
    }

    .menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 25px;
        margin-left: auto;
    }

    .menu-btn:focus-visible {
        outline: 3px solid rgba(37, 99, 235, .3);
        outline-offset: 2px;
    }

    .nav-buttons,
    .navbar > .container > .call-btn {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        flex-direction: column;
        gap: 4px;
        padding: 12px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, .15);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li,
    .nav-links a {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 14px;
        border-radius: 10px;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: #eff6ff;
        color: #2563eb;
    }

    .hero,
    .page-hero,
    .service-hero,
    .contact-hero,
    .portfolio-hero,
    .faq-hero {
        padding-top: 125px;
        padding-bottom: 70px;
    }

    .hero-grid,
    .about-grid,
    .contact-grid,
    .contact-wrapper,
    .contact-box,
    .service-hero .service-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .hero-grid {
        text-align: center;
    }

    .hero h1,
    .page-hero h1,
    .service-hero h1,
    .contact-hero h1,
    .portfolio-hero h1,
    .faq-hero h1 {
        font-size: clamp(38px, 7vw, 50px);
    }

    .section-title h2,
    .about-grid h2,
    .cta h2,
    .about-cta h2,
    .contact-cta h2 {
        font-size: clamp(32px, 6vw, 42px);
    }

    .hero-buttons,
    .cta-buttons {
        justify-content: center;
    }

    .service-grid,
    .portfolio-grid,
    .testimonial-grid,
    .pricing-grid,
    .mission-grid,
    .why-about-grid,
    .hours-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-hero .service-image {
        margin-top: 0;
    }

    .contact-info,
    .contact-form,
    .contact-left,
    .contact-right {
        min-width: 0;
    }

    .map-box iframe {
        height: 360px;
    }

    .services,
    .why-us,
    .portfolio,
    .process,
    .testimonials,
    .faq,
    .contact,
    .about-company,
    .why-about,
    .our-values,
    .all-services,
    .why-services,
    .technology,
    .pricing,
    .contact-page,
    .contact-benefits,
    .map-section,
    .contact-faq,
    .portfolio-page,
    .faq-page,
    .blog-details,
    .service-benefits,
    .service-contact {
        padding-top: 72px;
        padding-bottom: 72px;
    }
}

@media (max-width: 700px) {
    .container {
        width: 91%;
    }

    .logo {
        font-size: 23px;
    }

    .hero,
    .page-hero,
    .service-hero,
    .contact-hero,
    .portfolio-hero,
    .faq-hero {
        padding-top: 105px;
        padding-bottom: 55px;
    }

    .hero h1,
    .page-hero h1,
    .service-hero h1,
    .contact-hero h1,
    .portfolio-hero h1,
    .faq-hero h1 {
        font-size: clamp(30px, 9vw, 38px);
        line-height: 1.18;
    }

    .hero p,
    .page-hero p,
    .service-hero p,
    .contact-hero p,
    .portfolio-hero p,
    .faq-hero p,
    .cta p,
    .about-cta p,
    .contact-cta p {
        font-size: 16px;
        line-height: 1.7;
    }

    .section-title {
        margin-bottom: 38px;
    }

    .section-title h2,
    .about-grid h2,
    .cta h2,
    .about-cta h2,
    .contact-cta h2 {
        font-size: 30px;
        line-height: 1.2;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        display: inline-flex;
        width: 100%;
        min-height: 52px;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 18px;
        text-align: center;
    }

    .service-grid,
    .portfolio-grid,
    .testimonial-grid,
    .pricing-grid,
    .mission-grid,
    .why-about-grid,
    .hours-grid,
    .why-grid,
    .process-grid,
    .benefit-grid,
    .values-grid,
    .tech-grid,
    .stats-grid,
    .counter-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .dashboard-card,
    .service-card,
    .testimonial-card,
    .price-card,
    .mission-card,
    .why-about-card,
    .why-service-box,
    .hours-card,
    .benefit-card,
    .value-card,
    .step,
    .contact-info,
    .contact-form,
    .contact-left,
    .contact-right,
    .contact-card {
        padding: 26px 20px;
    }

    .chart-area {
        height: 170px;
        gap: 9px;
    }

    .stats {
        gap: 12px;
        margin-top: 25px;
    }

    .stat h3 {
        font-size: 24px;
    }

    .stat p {
        font-size: 12px;
    }

    .project-card img,
    .blog-image {
        height: auto;
        min-height: 0;
    }

    .project-content {
        padding: 22px 18px;
    }

    .project-content h3,
    .blog-details h2 {
        overflow-wrap: anywhere;
    }

    .blog-details h2 {
        font-size: 27px;
    }

    .blog-details ul {
        margin-left: 18px;
    }

    .faq details,
    .faq-page details {
        padding: 18px;
    }

    .faq summary,
    .faq-page summary {
        font-size: 17px;
        line-height: 1.5;
    }

    .contact-item {
        align-items: flex-start;
        gap: 14px;
    }

    .contact-item i {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
        font-size: 18px;
    }

    .map-box iframe {
        height: 300px;
        border-radius: 14px;
    }

    .counter-box {
        padding: 20px;
    }

    .counter-box h2,
    .stat-box h2 {
        font-size: 42px;
    }

    .trusted-wrapper {
        gap: 10px;
    }

    .trusted-wrapper div {
        padding: 11px 15px;
        font-size: 14px;
    }

    .filter-buttons {
        gap: 9px;
    }

    .filter-buttons button {
        padding: 11px 15px;
    }

    .footer {
        padding: 52px 0;
    }

    .footer h2 {
        font-size: 30px;
    }

    .footer-links {
        gap: 14px 20px;
    }

    .whatsapp {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
        font-size: 29px;
    }
}

@media (max-width: 380px) {
    .container {
        width: 92%;
    }

    .logo {
        font-size: 21px;
    }

    .menu-btn {
        font-size: 23px;
        padding: 8px;
    }

    .hero h1,
    .page-hero h1,
    .service-hero h1,
    .contact-hero h1,
    .portfolio-hero h1,
    .faq-hero h1 {
        font-size: 28px;
    }

    .badge {
        padding: 8px 13px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Preserve intrinsic image proportions and accessible interaction states. */
img { height: auto; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #2684ff; outline-offset: 3px; }
.service-card { scroll-margin-top: 100px; }
.project-placeholder { min-height: 200px; display: flex; align-items: center; justify-content: center; padding: 24px; background: #edf3fa; color: #183654; text-align: center; }
.form-note { font-size: 14px; margin-top: 12px; }

html body [data-aos] { opacity: 1; transform: none; }
