/* ==========================================================================
   RESPONSIVE DESIGN - ESTILO WEVY.CLOUD
   Mobile-First com breakpoints otimizados
   ========================================================================== */

/* ==========================================================================
   LARGE DESKTOPS - 1440px and above
   ========================================================================== */

@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
}

/* ==========================================================================
   TABLETS LANDSCAPE & SMALL LAPTOPS - 1024px to 1279px
   ========================================================================== */

@media (max-width: 1279px) {
    :root {
        --section-padding: 100px;
        --container-padding: 24px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .differentials-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 em tablet também */
        gap: 32px;
        max-width: 900px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   TABLETS PORTRAIT - 768px to 1023px
   ========================================================================== */

@media (max-width: 1023px) {
    :root {
        --section-padding: 80px;
        --gap-xl: 48px;
    }
    
    /* Header & Navigation */
    .menu-toggle {
        display: flex;
        z-index: 100000;
        position: relative;
    }
    
    /* Menu styles moved to mobile-fix.css to avoid conflicts */
    
    /* Hero - TABLET */
    .hero {
        min-height: 70vh;
        padding: 100px 25px 60px;
    }
    
    .hero-content {
        padding: 20px 15px;
        max-width: 100%;
    }
    
    /* Buttons - TABLET */
    .hero-cta .btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
    
    .hero-cta {
        gap: 12px;
    }
    
    /* Esconder "Role para descobrir" no tablet */
    .hero-scroll {
        display: none !important;
    }
    
    .hero-title {
        font-size: 24px !important;
        margin-bottom: 18px;
        line-height: 1.5;
        word-wrap: break-word;
        text-align: center;
    }
    
    .hero-title span {
        font-size: 24px !important;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
        margin-bottom: 25px;
        line-height: 1.7;
        word-wrap: break-word;
        text-align: center;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image-placeholder {
        height: 400px;
        font-size: 64px;
    }
    
    .about-image-real {
        height: 400px;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Service Category */
    .service-category {
        padding: 32px;
    }
    
    .service-items {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MOBILE - 576px to 767px
   ========================================================================== */

@media (max-width: 767px) {
    :root {
        --section-padding: 64px;
        --container-padding: 20px;
        --gap-lg: 32px;
    }
    
    /* Typography */
    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    h3 { font-size: 24px; }
    h4 { font-size: 20px; }
    
    p { font-size: 16px; }
    
    /* Header */
    .navbar {
        padding: 16px 0;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .nav-menu {
        width: 100%;
    }
    
    /* Hero - MOBILE */
    .hero {
        min-height: 100vh;
        padding: 100px 10px 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        padding: 15px 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 18px !important;
        margin-bottom: 15px;
        line-height: 1.5;
        word-wrap: break-word;
        text-align: center;
    }
    
    .hero-title span {
        font-size: 18px !important;
    }
    
    .hero-subtitle {
        font-size: 12px !important;
        margin-bottom: 25px;
        line-height: 1.7;
        word-wrap: break-word;
        text-align: center;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-scroll {
        display: none;
    }
    
    /* Buttons - MOBILE */
    .btn {
        padding: 10px 18px !important;
        font-size: 13px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .btn-lg {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 100%;
    }
    
    /* Section Header */
    .section-header {
        margin-bottom: 48px;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    .service-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .service-card h3 {
        font-size: 18px;
    }
    
    .service-card p {
        font-size: 15px;
    }
    
    /* Differentials */
    .differentials-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .differential-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .differential-item h3 {
        font-size: 20px;
    }
    
    .differential-item p {
        font-size: 15px;
    }
    
    /* Stats Section */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    /* Testimonials */
    .testimonials-carousel {
        padding: 0 50px;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Partners */
    .partners-grid {
        grid-template-columns: repeat(3, 1fr); /* Mantém 3 colunas no tablet */
        gap: 16px;
    }
    
    .partner-item {
        padding: 32px 20px;
        height: 120px; /* Altura menor no tablet */
    }
    
    .partner-logo-img {
        max-width: 100px;
        max-height: 50px;
    }
    
    .partner-logo-img.google-cloud-larger {
        max-width: 200px; /* Google Cloud máximo tamanho no mobile */
        max-height: 100px;
    }
    
    .partner-logo i {
        font-size: 28px;
    }
    
    .partner-logo span {
        font-size: 14px;
    }
    
    /* Service Category */
    .service-category {
        padding: 24px;
        margin-bottom: 48px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
        padding-bottom: 20px;
    }
    
    .category-header i {
        font-size: 28px;
    }
    
    .category-header h3 {
        font-size: 24px;
    }
    
    .service-item {
        padding: 20px;
        gap: 16px;
    }
    
    .service-item i {
        font-size: 20px;
    }
    
    .service-item-icon {
        width: 20px;
        height: 20px;
    }
    
    .service-content h4 {
        font-size: 16px;
    }
    
    .service-content p {
        font-size: 14px;
    }
    
    /* About */
    .about-values {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 32px;
    }
    
    .value-item {
        padding: 20px;
    }
    
    .value-item i {
        font-size: 20px;
    }
    
    .value-item h4 {
        font-size: 15px;
    }
    
    .value-item p {
        font-size: 13px;
    }
    
    .about-image-placeholder {
        height: 320px;
        font-size: 56px;
    }
    
    .about-image-real {
        height: 320px;
    }
    
    /* Contact */
    .contact-info h3 {
        font-size: 28px;
    }
    
    .contact-item {
        padding: 20px;
        flex-direction: column;
        gap: 12px;
    }
    
    .contact-item i {
        font-size: 20px;
    }
    
    .contact-item h4 {
        font-size: 15px;
    }
    
    .contact-item p,
    .contact-item a {
        font-size: 14px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 64px 0 32px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .footer-section h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 14px;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
    
    /* WhatsApp Button */
    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 26px;
        bottom: 24px;
        right: 24px;
    }
}

/* ==========================================================================
   SMALL MOBILE - 480px to 575px
   ========================================================================== */

@media (max-width: 575px) {
    :root {
        --section-padding: 56px;
        --container-padding: 16px;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .hero-title {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
    
    .service-card {
        padding: 24px 20px;
    }
    
    .service-category {
        padding: 20px;
    }
    
    .category-header h3 {
        font-size: 22px;
    }
    
    /* Testimonials - Mobile */
    .testimonials {
        padding: 3rem 0;
    }
    
    .testimonials-carousel {
        padding: 0 50px;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding-top: 1rem;
    }
    
    .author-info {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .author-details {
        order: 1;
    }
    
    .company-logo {
        order: 2;
        margin: 0 auto;
    }
    
    .author-image {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }
    
    .author-info h4 {
        font-size: 1rem;
    }
    
    .author-role {
        font-size: 0.85rem;
    }
    
    .company-logo {
        width: 120px;
        height: 42px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 5px;
    }
    
    .carousel-btn.next {
        right: 5px;
    }
    
    .carousel-indicators {
        margin-top: 1.5rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas no mobile */
    }
    
    .partner-item {
        height: 110px; /* Altura menor no mobile */
    }
    
    .contact-form-wrapper {
        padding: 24px 20px;
    }
    
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* ==========================================================================
   EXTRA SMALL MOBILE - 320px to 479px
   ========================================================================== */

@media (max-width: 479px) {
    :root {
        --section-padding: 48px;
    }
    
    .hero-title {
        font-size: 30px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .service-card,
    .differential-item {
        padding: 20px 16px;
    }
    
    .service-icon,
    .differential-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    /* Stats Section Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    /* Category Header */
        font-size: 20px;
    }
    
    .service-item {
        padding: 16px;
    }
    
    .contact-form-wrapper {
        padding: 20px 16px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .about-image-placeholder {
        height: 280px;
        font-size: 48px;
    }
    
    .about-image-real {
        height: 280px;
    }
    
    .value-item {
        padding: 16px;
    }
}

/* ==========================================================================
   LANDSCAPE ORIENTATION
   ========================================================================== */

@media (max-height: 700px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 48px;
    }
    
    .hero-scroll {
        display: none;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    :root {
        --section-padding: 64px;
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 36px;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }
}

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

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

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

@media print {
    .header,
    .whatsapp-float,
    .hero-scroll,
    .btn,
    .menu-toggle,
    .hero-background {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    * {
        box-shadow: none !important;
        border: 1px solid #e0e0e0 !important;
    }
    
    .section-title,
    .hero-title {
        color: black !important;
    }
}

/* ==========================================================================
   DESKTOP - Menu Centralizado (min-width: 1024px)
   ========================================================================== */

@media (min-width: 1024px) {
    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .nav-menu {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        justify-content: center;
        pointer-events: none;
        /* Reset mobile styles */
        right: auto;
        top: auto;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        z-index: auto;
    }
    
    .nav-menu li {
        pointer-events: all;
        width: auto;
        display: inline-block;
    }
    
    .nav-link {
        color: var(--gray-700);
        font-size: 0.9375rem;
        padding: 0;
        width: auto;
    }
    
    .nav-cta {
        /* Reset mobile styles */
        position: relative;
        right: auto;
        top: auto;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
        transform: translateX(0);
        z-index: 10;
    }
    
    .nav-cta {
        /* Reset mobile styles */
        position: relative;
        right: auto;
        top: auto;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
        transform: translateX(0);
        z-index: 10;
    }
    
    .navbar .logo {
        margin-left: -2rem;
        z-index: 10;
    }
    
    .navbar .nav-cta {
        margin-right: -2rem;
    }
}

/* ==========================================================================
   DARK MODE SUPPORT (Optional)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    /* Ready for dark mode implementation */
    /*
    :root {
        --bg-white: #0f1419;
        --bg-light: #1a1f28;
        --bg-gray: #252d38;
        --text-primary: #ffffff;
        --text-secondary: #a8b8c8;
        --text-light: #6b7c8e;
        --border-color: #2a3441;
    }
    */
}

/* ==========================================================================
   HIGH CONTRAST MODE
   ========================================================================== */

@media (prefers-contrast: high) {
    .btn,
    .service-card,
    .differential-item,
    .partner-item,
    .service-item,
    .value-item,
    .contact-item {
        border-width: 2px !important;
    }
    
    .nav-link:hover,
    .footer-section ul li a:hover {
        text-decoration: underline;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-background::before,
    .hero-background::after {
        animation: none !important;
    }
    
    .hero-scroll {
        animation: none !important;
    }
}

/* ==========================================================================
   TOUCH DEVICES
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .service-card:hover,
    .differential-item:hover,
    .partner-item:hover,
    .service-item:hover {
        transform: none;
    }
    
    /* Larger tap targets */
    .btn,
    .nav-link {
        min-height: 44px;
        min-width: 44px;
    }
}