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

/* Large Devices (Desktops, 1200px and up) */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 968px;
    }

    .hero__title {
        font-size: 3rem;
    }
}

/* Medium Devices (Tablets, 992px and down) */
@media screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__stats {
        justify-content: center;
    }

    .services__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

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

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

    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Small Devices (Large phones, 768px and down) */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* Navigation */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 1001;
    }

    .nav__menu.show {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav__link {
        font-size: 1.25rem;
    }

    .nav__toggle,
    .nav__close {
        display: block;
    }

    .nav__close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }

    /* Hero Section */
    .hero {
        padding-top: calc(var(--header-height) + 1rem);
        min-height: auto;
        padding-bottom: 2rem;
    }

    .hero__title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero__description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero__buttons {
        flex-direction: column;
        margin-bottom: 2rem;
    }

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

    .hero__visual {
        order: -1;
        margin-bottom: 2rem;
    }

    .hero__flag-container {
        gap: 1rem;
    }

    .flag {
        font-size: 3rem;
    }

    /* Sections */
    .section {
        padding: 3rem 0;
    }

    .section__title {
        font-size: 2rem;
    }

    .section__description {
        font-size: 1rem;
    }

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

    .service__card {
        padding: 1.5rem;
    }

    /* Process */
    .process__step {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .process__number {
        margin: 0 auto 1rem;
    }

    /* Testimonials */
    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .testimonial__card {
        padding: 1.5rem;
    }

    /* Contact */
    .contact__card {
        padding: 1rem;
    }

    .contact__form-wrapper {
        padding: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer__social {
        justify-content: center;
    }

    /* Float buttons */
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .scroll-top {
        bottom: 1rem;
        left: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Extra Small Devices (Phones, 576px and down) */
@media screen and (max-width: 576px) {
    :root {
        --h1-font-size: 2rem;
        --h2-font-size: 1.75rem;
        --h3-font-size: 1.5rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .hero__buttons {
        gap: 0.75rem;
    }

    .service__card,
    .testimonial__card,
    .contact__card,
    .contact__form-wrapper {
        padding: 1rem;
    }

    .section__header {
        margin-bottom: 2rem;
    }

    .process__step {
        margin-bottom: 2rem;
    }

    .whatsapp-float__tooltip {
        display: none;
    }

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

/* Ultra Small Devices (320px and down) */
@media screen and (max-width: 320px) {
    .hero__title {
        font-size: 1.5rem;
    }

    .hero__flag-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .flag {
        font-size: 2.5rem;
    }

    .hero__stats {
        gap: 0.5rem;
    }

    .stat__number {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* Landscape Phones */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + 1rem) 0 2rem;
    }

    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }

    .hero__title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .hero__description {
        margin-bottom: 1rem;
    }

    .hero__buttons {
        flex-direction: row;
        margin-bottom: 1rem;
    }

    .hero__stats {
        flex-direction: row;
        gap: 1rem;
    }

    .hero__visual {
        order: 0;
        margin-bottom: 0;
    }
}

/* High DPI Displays */
@media screen and (-webkit-min-device-pixel-ratio: 2),
screen and (min-resolution: 192dpi) {

    .hero__visual,
    .service__card,
    .testimonial__card {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {

    .hero__visual,
    .service__card,
    .testimonial__card,
    .contact__card,
    .contact__form-wrapper {
        background: #2d3748;
        color: white;
    }

    .form__input {
        background: #4a5568;
        border-color: #718096;
        color: white;
    }

    .form__label {
        background: #2d3748;
        color: #cbd5e0;
    }
}

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

    .flag {
        animation: none;
    }

    .whatsapp-float {
        animation: none;
    }
}

/* Print Styles */
@media print {

    .header,
    .whatsapp-float,
    .scroll-top,
    .hero__buttons,
    .contact__form-wrapper,
    .footer__social {
        display: none;
    }

    .hero {
        padding-top: 0;
        min-height: auto;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .section {
        padding: 1rem 0;
    }
}