/* ==========================================
   NIUCO - RESPONSIVE CSS
   Media Queries and Responsive Adjustments
   ========================================== */

/* --- 1. LARGE DESKTOPS (1400px and up) --- */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.75rem;
    }
    
    .feature-card {
        padding: 2.5rem;
    }
    
    .contact-form {
        padding: 3.5rem;
    }

    /* Results ultra-wide screens */
    .result-box { padding: 1.5rem; min-height: 170px; }
    .result-impact-text { font-size: 3.25rem; }
    .result-impact-section { padding: 1.5rem 2.5rem; }
}

/* --- 2. DESKTOPS (1200px to 1399px) --- */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
    /* Results large desktop adjustments */
    .result-box { padding: 1.75rem; }
    .result-impact-text { font-size: 2.75rem; }
    .result-impact-section { padding: 1.25rem 1.75rem; display: flex; justify-content: center; align-items: center; }
    .result-impact-section .light-feature { gap: 1rem; align-items: center; }
}

/* --- 3. TABLETS LANDSCAPE & SMALL DESKTOPS (992px to 1199px) --- */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    /* Navigation */
    .navbar {
        padding: 1rem 0;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Features */
    .feature-card {
        padding: 1.75rem;
    }
    
    .feature-icon {
        width: 65px;
        height: 65px;
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }
    
    /* .feature-title {
        font-size: 1.25rem;
    }
     */

    /* Benefits */
    .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 2.5rem;
    }
    
    /* Footer */
    .footer-title {
        font-size: 1.1rem;
    }
    
    .footer-link {
        font-size: 0.8rem;
    }

    /* Results tweaks for small desktop */
    .result-box { padding: 1.25rem; }
    .result-impact-text { font-size: 2.25rem; }
    .result-impact-section { display: flex; flex-direction: column; justify-content: center; padding: 1rem 1.25rem; }
    .result-impact-section .light-feature { display: flex; gap: 1rem; align-items: center; }
    .result-impact-section .feature-icon-square { width: 56px; height: 56px; }
}

/* --- 4. TABLETS PORTRAIT (768px to 991px) --- */
@media (min-width: 768px) and (max-width: 991px) {
    :root {
        --font-size-6xl: 2.5rem;
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
    }
    
    .container {
        max-width: 720px;
        padding: 0 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
        /* background: rgba(255, 255, 255, 0.98); */
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .navbar-collapse {
        background: var(--white);
        border-radius: var(--radius-lg);
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: var(--radius-md);
        transition: all var(--transition-fast);
    }
    
    .nav-link:hover {
        background: var(--gray-50);
    }
    
    .navbar-nav .btn-primary {
        margin: 0.75rem 0 0 0;
        width: 100%;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
        color: var(--text-main);
    }
    
    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 6rem 0 4rem;
    }
    
    .hero-content {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        margin-bottom: 3rem;
    }
    
    .hero-buttons .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    /* Features */
    .features-section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-description {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }
    
    .feature-card {
        padding: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }
    
    /* .feature-title {
        font-size: 1.25rem;
    } */

    /* Stories */
    .story-card {
        min-width: 550px;
    }
    
    /* Benefits */
    .benefits-section {
        padding: 4rem 0;
    }
    
    .benefits-image {
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .benefit-item {
        gap: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .benefit-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    /* Contact */
    .contact-section {
        padding: 4rem 0;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-links li {
        margin-bottom: 0.75rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .footer-divider {
        margin: 2.5rem 0;
    }
    
    .footer-copyright,
    .footer-certifications {
        text-align: center;
        font-size: 0.8rem;
    }

    /* Resultados Alcançados - tablet adjustments */
    /* Use bootstrap grid for layout; keep spacing and sizing */
    .result-impact { width: 100%; margin-bottom: 1rem; }
    .result-box {
        padding: 1rem;
    }
    .result-impact-text {
        font-size: 2rem;
    }
    .result-impact-section {
        padding: 0.75rem 1rem;
    }
    /* Keep feature icon left + text on tablet */
    .result-impact-section { padding: 0.75rem 1rem; }
    .result-impact-section .light-feature { display: flex; align-items: center; gap: 0.75rem; text-align: left; }
    .result-impact-section .feature-icon-square { width: 52px; height: 52px; }
}

/* --- 5. MOBILE LANDSCAPE (576px to 767px) --- */
@media (min-width: 576px) and (max-width: 767px) {
    :root {
        --font-size-6xl: 2.25rem;
        --font-size-5xl: 1.875rem;
        --font-size-4xl: 1.625rem;
        --font-size-3xl: 1.375rem;
    }
    
    .container {
        /* max-width: 540px; */
        padding: 0 1rem;
    }

    .container-sm {
        max-width: none!important;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
        color: var(--text-main);
    }
    
    .logo-img {
        height: 30px;
    }
    
    /* Hero */
    .hero-section {
        padding: 5rem 0 3rem;
    }
    
    h1.hero-title {
        font-size: 2.30rem;
    }
    .badge-news {
        display: grid;
        border-radius: 3px;
    }
    .badge-tag {
        border-radius: 3px;
        margin: 5px auto 8px;
        width: fit-content;
    }    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-stats .row {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.7);
        border-radius: var(--radius-lg);
        backdrop-filter: blur(10px);
    }

    /* Products */
    .products-subtext {
        text-align: left;
    }
    .feature-box {
        min-height: 0px;
    }
    
    /* Reality */
    .result-impact { width: 100%; margin-bottom: 1rem; }
    .result-box {
        padding: 1.25rem;
    }
    .result-impact-text {
        font-size: 1.75rem;
    }
    .result-impact-section {
        padding: 1rem;
        margin-top: 1rem;
        display: block;
        text-align: center;
        order: -1;
    }
    .result-impact-section .about-case-title,
    .result-impact-section .card-title-impact {
        text-align: center;
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    .result-impact-section .light-feature { display: grid; justify-items: center; gap: 0.5rem; }
    .result-impact-section .feature-icon-square { width: 48px; height: 48px; }
    .custom-nav-link {
        width: 100%;
    }

    /* Features */
    .features-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        text-align: left;
    }
    
    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
        margin: 0 auto 1.25rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
        font-weight: 700;
        /* text-align: center; */
    }
    
    .feature-description {
        text-align: center;
    }
    
    .feature-list li {
        padding-left: 1.5rem;
    }
    
    /* Benefits */
    .benefits-section {
        padding: 3rem 0;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .benefit-icon {
        margin: 0 auto;
    }
    
    /* Stories */
    .story-card {
        min-width: 420px;
        display: grid;
        width: 100%;
    }

    /* Contact */
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-form {
        padding: 1.75rem;
    }
    
    /* Footer */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-brand {
        margin-bottom: 2.5rem;
    }
    
    .footer > .row > .col-lg-4,
    .footer > .row > .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }
}

/* --- 6. MOBILE PORTRAIT (up to 575px) --- */
@media (max-width: 575px) {
    :root {
        --font-size-6xl: 2rem;
        --font-size-5xl: 1.75rem;
        --font-size-4xl: 1.5rem;
        --font-size-3xl: 1.25rem;
        --spacing-5xl: 4rem;
        --spacing-4xl: 3rem;
        --spacing-3xl: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .navbar-collapse {
        padding: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .nav-link {
        padding: 0.625rem 0.875rem !important;
        font-size: 0.9rem;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
        color: var(--text-main);
    }
    
    /* Hero Section */
    .hero-section {
        padding: 4rem 0 2.5rem;
        min-height: auto;
    }
    
    .hero-content {
        padding: 1.5rem 0;
    }
    
    /* .hero-title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
        line-height: 1.2;
    } */

    h1.hero-title {
        font-size: 2.30rem;
    }
    .badge-news {
        display: grid;
        border-radius: 10px;
    }
    .badge-tag {
        border-radius: 20px;
        margin: 5px auto 8px;
        width: fit-content;
    }    
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.75rem;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.875rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 260px;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .hero-stats .row {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.875rem;
        background: rgba(255, 255, 255, 0.8);
        border-radius: var(--radius-lg);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .hero-image {
        margin-top: 1.5rem;
    }

    .card-pos-provision {
        bottom: 0px;
        left: 6%;
        width: 320px;
    }

    .ui-card-header {
        text-align: center;
    }

    .card-pos-onboarding {
        top: 0px;
        left: 50px;
    }

    .card-pos-hardware {
        top: 170px;
    }

    .main-screen-window{
        display: none;
    }

    .impact-heading,
    .products-heading,
    .light-heading,
    .stories-heading,
    .integrations-heading{
        font-size: 2rem;
        text-align: left;
    }

    .support-heading{
        font-size: 2rem;
    }

    .support-card-title,
     .light-title{
        font-size: 1.4rem;
        margin-bottom: 3rem;
    }

    .impact-subheading{
        text-align: left;
    }

     /* Impact */
    .section-impact {
        padding: 5rem 0;
    }

     /* Products */
    .products-subtext {
        text-align: left;
    }
    .feature-box {
        min-height: 0px;
    }

    .section-light {
        padding: 3rem 0 5rem;
    }

   .section-stories,
    .section-products{
        padding: 3rem 0;
    }
    
      /* Reality */
    .custom-nav-link {
        width: 100%;
    }

    .light-img-col{
        min-height: 250px;
    }

     .result-impact-item{
        margin-bottom: 2rem;
    }

    /* Stories */
    .story-card {
        min-width: 360px;
        display: grid;
        width: 100%;
    }
    
     /* Integrações */
    .integrations-grid-wrapper {
        height: 500px;
        display: flex;
        gap: 15px;
    }

    .integration-col:first-of-type{
        display: none!important;
    }

    .section-integrations {
        padding: 3rem 0;
    }
    
    /* Features */
    .features-section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.875rem;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1.25rem;
        text-align: left;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
        margin: 0 auto 1.125rem;
    }
    
    .feature-title {
        font-size: 1rem;
    }
    
    .feature-description {
        font-size: 0.95rem;
        margin-bottom: 1.125rem;
        text-align: center;
    }
    
    .feature-list li {
        font-size: 0.875rem;
        padding-left: 1.375rem;
        margin-bottom: 0.5rem;
    }
    
    /* Benefits */
    .benefits-section {
        padding: 2.5rem 0;
    }
    
    .benefits-image {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .benefits-content .section-title {
        text-align: center;
        font-size: 1.75rem;
    }
    
    .benefits-content .section-description {
        text-align: center;
        font-size: 1rem;
    }
    
    .benefits-list {
        margin-top: 1.75rem;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 0.875rem;
        margin-bottom: 2rem;
        padding: 1.125rem;
        background: rgba(255, 255, 255, 0.6);
        border-radius: var(--radius-lg);
    }
    
    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        margin: 0 auto 0.75rem;
    }
    
    .benefit-content h5 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .benefit-content p {
        font-size: 0.9rem;
    }
    
    /* Contact */
    .contact-section {
        padding: 2.5rem 0;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .form-label {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
    }
    
    .form-control {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .section-cta {
        padding: 7rem 0;
    }

    .cta-wave-lines {
        top: 75%;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1.25rem;
        margin-top: 3rem;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .footer-logo {
        height: 28px;
        margin-bottom: 1rem;
    }
    
    .footer-brand p {
        font-size: 0.875rem;
    }
    
    .footer > .row > .col-lg-4,
    .footer > .row > .col-lg-2 {
        margin-bottom: 1.75rem;
        padding: 0 0.75rem;
    }
    
    .footer-title {
        font-size: 1.05rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .footer-links li {
        text-align: center;
        margin-bottom: 0.625rem;
    }
    
    .footer-link {
        font-size: 0.825rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1.25rem;
        gap: 0.75rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .footer-divider {
        margin: 2rem 0;
    }
    
    .footer-copyright,
    .footer-certifications {
        text-align: center;
        font-size: 0.75rem;
    }
    
    /* Back to Top Button */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.1rem;
    }
    .section-highlight-quote{
        background-color: var(--bg-body);
        padding: 2rem 0 6rem 0;
        text-align: center;
    }
    .section-highlight-quote-text{
        font-size: 1.5rem;
    }
}

/* Small screens: fine-tune Results section */
@media (max-width: 575px) {
    /* .result-impact { width: 100%; } */
    .result-box {
        padding: 0.875rem;
    }
    .result-impact-text {
        font-size: 1.5rem;
    }
    .result-impact-section { padding: 0.75rem 0.75rem; display: grid; justify-items: center; }
    .result-impact-section .about-case-title,
    .result-impact-section .card-title-impact {
        font-size: 1.1rem;
    }
    .result-impact-section .light-feature {
        display: grid;
        justify-items: center;
        text-align: center;
        gap: 0.5rem;
    }
}

/* --- 7. VERY SMALL MOBILES (up to 375px) --- */
@media (max-width: 375px) {
    :root {
        --font-size-6xl: 1.875rem;
        --font-size-5xl: 1.625rem;
        --spacing-5xl: 3.5rem;
        --spacing-4xl: 2.5rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    /* Hero */    
    h1.hero-title {
        font-size: 1.875rem;
    }

    .hero-buttons .btn {
        max-width: 220px;
        font-size: 0.875rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }

    /* Features */
    .section-title {
        font-size: 1.625rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    /* Stories */
    .story-card {
        min-width: 420px;
        display: grid;
        width: 100%;
    }
    
    /* Contact */
    .contact-form {
        padding: 1.25rem;
    }
    
    /* Footer */
    .footer-title {
        font-size: 1rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
}

/* --- 8. HIGH RESOLUTION DISPLAYS --- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .hero-image img,
    .benefits-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* --- 9. LANDSCAPE ORIENTATION --- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 5rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-image {
        margin-top: 1rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* --- 10. 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;
    }
    
    .hero-bg-animation .shape {
        animation: none;
    }
    
    .btn:hover,
    .feature-card:hover,
    .social-link:hover {
        transform: none !important;
    }
}