/* ==========================================================================
   INTEGRA SOLUÇÃO API - ESTILOS PRINCIPAIS
   ========================================================================== */

/* ==========================================================================
   1. CSS VARIABLES & ROOT
   ========================================================================== */
:root {
    /* Colors */
    --primary-color: #1ef9cd;
    --secondary-color: #36aec2;
    --accent-color: #ffc107;
    
    --background-light: #fbfefe;
    --background-dark: #175961;
    --background-grey: #e5e5e4;
    
    --text-dark: #040d0e;
    --text-light: #fbfefe;
    --text-accent-1: #36aec2;
    --text-accent-2: #1ef9cd;
    --text-accent-3: #175961;
    --text-accent-4: #187e8a;
    --text-secondary: #6c757d;
    
    /* Effects */
    --box-shadow: 0px 8px 14px rgba(0, 0, 0, 0.150);
    --border-radius: 18px;
    
    /* Typography */
    --font-family: "Montserrat", sans-serif;
    --font-size-base: 16px;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-bold: 700;
    
    /* Layout */
    --container-max-width: 1440px;
    --container-padding: 50px;
}

/* ==========================================================================
   2. BASE STYLES
   ========================================================================== */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    background-color: var(--background-light);
    line-height: 1.6;
    color: var(--text-dark);
}

/* ==========================================================================
   3. CONTAINER SYSTEM (Consistente em todo o site)
   ========================================================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* Section Utilities */
.section-title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: var(--text-accent-1);
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background-color: var(--text-accent-3);
    margin: 8px auto 0;
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
header {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 0;
    z-index: 1000;
    transition: background 0.3s;
}

.header-logo {
    display: block;
    line-height: 0;
}

.header-logo img {
    height: 50px;
    display: block;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.menu li {
    margin: 0;
}

.menu a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px;
    transition: color 0.3s;
}

.menu a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.3s;
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
    height: 100vh;
    background: url('./assets/img/background-hero.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero .container {
    height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    margin-right: 40px;
    margin-top: 30px;
    flex: 1;
}

.hero-text h2 {
    font-size: clamp(36px, 2.8vw, 46px);
    font-weight: 700;
    line-height: 1;
    color: var(--text-light);
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.hero-text h1 {
    font-size: clamp(70px, 5.5vw, 90px);
    font-weight: 700;
    line-height: 1;
    color: var(--text-accent-2);
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.hero-text p {
    font-size: clamp(26px, 2.1vw, 34px);
    font-weight: 300;
    line-height: 1;
    color: var(--text-light);
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.hero-case {
    text-align: left;
    margin: 50px 0 0 0;
    padding: 0;
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-light);
}

.hero-case img {
    max-width: 250px;
    min-width: 200px;
    margin-top: 15px;
    display: block;
}

.hero-img {
    width: 100%;
    max-width: 700px;
    object-fit: contain;
    filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.5));
    align-self: flex-end;
    flex-shrink: 0;
}

.hero-bottom {
    background-color: var(--background-dark);
    width: 100%;
    height: 130px;
    position: absolute;
    bottom: 0;
    z-index: -1;
}

/* ==========================================================================
   6. API SECTION
   ========================================================================== */
.api-section {
    margin: 0 auto;
}

/* API Cards */
.api-cards-wrapper {
    margin-top: -150px;
    position: relative;
    z-index: 10;
}

.api-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.api-card {
    padding: 30px;
    background-color: hsla(180, 60%, 99%, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: left;
}

.api-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.api-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 16px 0 12px;
}

.api-card p {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.6;
}

/* API Content */
.api-content-wrapper {
    margin-top: 80px;
}

.api-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.api-integration-img {
    width: 100%;
    height: auto;
}

.api-content-text h2 {
    font-size: clamp(24px, 3vw, 48px);
    font-weight: 700;
    color: var(--text-accent-1);
    margin: 0 0 20px;
}

.api-content-text h3 {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 700;
    color: var(--text-dark);
    margin: 30px 0 15px;
}

.api-content-text p {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.api-content-text ul {
    font-size: 16px;
    list-style: inside;
    font-weight: 400;
    color: var(--text-dark);
    padding-left: 0;
}

.api-content-text li {
    margin: 10px 0;
}

/* API Types */
.api-types-wrapper {
    margin-top: 60px;
}

.api-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.api-type-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-accent-3);
    margin: 16px 0;
}

.api-type-item p {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark);
}

/* API Certification */
.api-cert-wrapper {
    width: 100%;
    margin-top: 80px;
    background-color: var(--background-grey);
    padding: 100px 0;
}

.api-cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.api-cert-text h2 {
    font-size: clamp(24px, 3vw, 48px);
    font-weight: 700;
    color: var(--text-accent-1);
    margin-bottom: 20px;
}

.api-cert-text p {
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.api-cert-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
}

.api-cert-benefits {
    margin-top: 60px;
}

.api-cert-benefits h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.api-cert-benefit {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 30px;
}

.api-cert-benefit-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.api-cert-benefit-text {
    margin-left: 20px;
}

.api-cert-benefit-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-accent-4);
    margin-bottom: 10px;
}

.api-cert-benefit-text p {
    font-size: 15px;
    line-height: 1.6;
}

.benefit-accent {
    position: relative;
    right: -100px;
}

/* ==========================================================================
   7. CASES SECTION (CAROUSEL)
   ========================================================================== */
.cases-section {
    position: relative;
    background: var(--background-light);
    padding: 80px 0;
}

.cases-section .container {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 500px;
}

.carousel {
    display: flex;
    flex-wrap: nowrap;
    transform: translateX(0);
    transition: transform 0.5s ease-in-out;
    width: 100%;
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    gap: 60px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.slide img {
    max-width: 380px;
    min-width: 200px;
    height: auto;
    object-fit: contain;
}

.slide-content {
    max-width: 520px;
}

.slide-content h3 {
    color: var(--text-accent-1);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
}

.slide-content ul {
    font-size: 16px;
    list-style: inside;
    font-weight: 400;
    color: var(--text-dark);
    margin-top: 20px;
}

.slide-content li {
    margin: 10px 0;
}

.control-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-accent-3);
    font-size: 90px;
    width: 15%;
    height: 100%;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-button.left {
    left: 0;
}

.control-button.right {
    right: 0;
}

.control-button:hover {
    color: var(--secondary-color);
}

.control-button.left:hover {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0%, rgba(0,0,0,0) 100%);
}

.control-button.right:hover {
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.05) 0%, rgba(0,0,0,0) 100%);
}

.indicators {
    display: flex;
    justify-content: center;
    margin: 30px 0 0;
    gap: 8px;
    position: relative;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background-color 0.3s ease;
    pointer-events: auto;
}

.dot.active {
    background-color: var(--text-accent-1);
}

/* ==========================================================================
   8. ABOUT US SECTION
   ========================================================================== */
.about-us-section {
    width: 100%;
    background-color: var(--background-grey);
    display: flex;
    align-items: center;
}

.about-us-section .container {
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
}

.about-us-grid {
    position: relative;
    min-height: 500px;
}

.about-us-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin-top: 80px;
}

.about-us-content {
    position: absolute;
    top: 35px;
    left: 40%;
    max-width: 650px;
    z-index: 1;
    color: var(--text-light);
}

.about-us-content h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 30px;
}

.about-us-content p {
    font-size: clamp(16px, 1.5vw, 17px);
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

/* ==========================================================================
   9. CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 80px 0;
    background-color: var(--background-grey);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-content {
    text-align: center;
}

.contact-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-accent-1);
    margin-bottom: 20px;
    position: relative;
}

.contact-content h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--text-accent-3);
    margin: 8px auto 0;
}

.contact-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 20px 0;
}

.contact-content p {
    font-size: 16px;
    color: var(--text-dark);
}

.contact-info {
    margin-top: 40px;
}

.contact-info h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-accent-1);
    margin-bottom: 10px;
}

.contact-info a {
    font-size: 18px;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--text-accent-1);
}

/* Contact Form */
.contact-form-wrapper {
    background-color: #53bbb8;
    padding: 40px;
    border-radius: 24px;
    width: 100%;
}

.contact-form-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 30px;
}

.input-field {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 12px;
    border: none;
    color: var(--text-secondary);
    background-color: var(--background-light);
    font-family: var(--font-family);
    font-size: 15px;
}

.input-field:focus {
    outline: 2px solid var(--primary-color);
}

.message-textarea {
    height: 120px;
    resize: vertical;
}

.captcha-container {
    margin: 20px 0;
}

.captcha-container label {
    display: block;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 10px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.captcha-row img {
    border-radius: 8px;
    flex-shrink: 0;
}

.captcha-row button {
    white-space: nowrap;
    flex: 1;
    min-width: 180px;
}

.submit-button {
    font-weight: 700;
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    font-size: 16px;
}

.submit-button:hover {
    background-color: var(--text-accent-3);
    color: var(--text-light);
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================================================
   10. FOOTER STYLES (já estavam no HTML, movendo para cá)
   ========================================================================== */
.footer {
    background: linear-gradient(180deg, #175961, #175961);
    color: #ffffff;
    padding-top: 70px;
    font-family: Arial, sans-serif;
}

.footer-wrapper {
    width: 100%;
    max-width: 1350px;
    margin: auto;
    padding: 0 25px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 45px;
}

.footer-column h4 {
    font-size: 17px;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #cbd5e1;
    text-decoration: none;
    transition: .3s;
}

.footer-column a:hover {
    color: #53bbb8;
    padding-left: 4px;
}

.footer-logo img {
    width: 180px;
    margin-bottom: 20px;
}

.footer-description {
    color: #cbd5e1;
    line-height: 1.7;
    max-width: 320px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #cbd5e1;
    line-height: 1.6;
}

.footer-certifications {
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-top: 55px;
    padding: 35px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cert-item {
    display: flex;
    justify-content: center;
}

.cert-item img {
    width: 100%;
    max-width: 1100px;
    max-height: 180px;
    object-fit: contain;
}

.footer-bottom {
    text-align: center;
    padding: 28px 20px;
}

.footer-bottom p {
    color: #cbd5e1;
    font-size: 14px;
}

/* ==========================================================================
   11. RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet Large (1280px) */
@media (max-width: 1280px) {
    :root {
        --container-padding: 40px;
    }
    
    .hero-text {
        margin-right: 10px;
    }
    
    .hero-img {
        max-width: 650px;
    }
    
    .benefit-accent {
        right: -50px;
    }
}

/* Tablet (1024px) */
@media (max-width: 1024px) {
    :root {
        --container-padding: 30px;
    }
    
    .hero-text {
        margin-right: 0;
    }
    
    .hero-img {
        max-width: 600px;
    }
    
    .api-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .api-content-grid {
        grid-template-columns: 1fr;
    }
    
    .api-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .api-cert-grid {
        grid-template-columns: 1fr;
    }
    
    .api-cert-img {
        order: -1;
        margin: 0 auto 40px;
    }
    
    .benefit-accent {
        right: 0;
    }
    
    .about-us-content {
        top: 20px;
        left: 40%;
    }\n    
    .about-us-content h2 {
        margin-bottom: 20px;
    }
    
    .about-us-content p {
        margin-bottom: 10px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Mobile Large (970px) */
@media (max-width: 970px) {
    .about-us-section {
        background: linear-gradient(160deg, #18808d 0%, #249fab 100%);
        padding: 70px 0;
    }
    
    .about-us-grid {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }
    
    .about-us-img {
        width: 250px;
        height: auto;
        align-self: flex-end;
        margin-bottom: 20px;
    }
    
    .about-us-content {
        position: static;
        max-width: 100%;
        text-align: center;
        color: var(--text-light);
    }
    
    .about-us-content h2 {
        font-size: 24px;
        color: var(--text-light);
    }
    
    .about-us-content p {
        color: var(--text-light);
        text-align: justify;
    }
}

/* Mobile (768px) */
@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }
    
    /* Menu Mobile */
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 65px;
        right: 0;
        background: rgba(0, 0, 0, 0.5);
        width: 200px;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
        padding: 20px 0;
    }
    
    .menu li {
        margin: 10px 0;
        text-align: center;
    }
    
    .menu a {
        font-size: 20px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu.active {
        display: flex;
        animation: slideIn 0.3s forwards;
    }
    
    /* Hero Mobile */
    .hero {
        height: auto;
        min-height: 100vh;
    }
    
    .hero .container {
        flex-direction: column;
        padding: 80px 20px 0;
        height: auto;
        min-height: 100vh;
        justify-content: flex-start;
    }
    
    .hero-img {
        width: 100%;
        max-width: 100%;
        height: auto;
        order: 1;
        margin-top: 20px;
    }
    
    .hero-text {
        background-color: var(--background-dark);
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        padding: 40px 20px;
        text-align: center;
        align-items: center;
        margin-top: auto;
        order: 2;
    }
    
    .hero-text h2 {
        font-size: 7.2vw;
        white-space: normal;
    }
    
    .hero-text h1 {
        font-size: 14vw;
        white-space: normal;
    }
    
    .hero-text p {
        font-size: 5.4vw;
        white-space: normal;
    }
    
    .hero-case {
        font-size: 5vw;
        text-align: center;
        margin-top: 30px;
    }
    
    .hero-case img {
        max-width: 260px;
        margin: 10px auto;
    }
    
    .hero-bottom {
        display: none;
    }
    
    /* API Section Mobile */
    .api-cards-wrapper {
        margin-top: -70px;
    }
    
    .api-types-grid {
        grid-template-columns: 1fr;
    }
    
    /* Cases Mobile */
    .cases-section {
        padding: 40px 0;
    }
    
    .cases-section .container {
        overflow: hidden;
        width: 100%;
    }
    
    .slide {
        flex-direction: column;
        gap: 30px;
        padding: 0;
    }
    
    .slide img {
        max-width: 280px;
    }
    
    .slide-content {
        text-align: center;
        padding: 0 20px;
    }
    
    .control-button {
        font-size: 60px;
        width: 20%;
    }
    
    /* About Mobile */
    .about-us-section {
        padding: 50px 0;
    }
    
    .about-us-grid {
        padding: 0 20px;
    }
    
    .about-us-img {
        display: none;
    }
    
    .about-us-content {
        padding: 0 20px;
    }
    
    .about-us-content p {
        text-align: justify;
    }
    
    /* Footer Mobile */
    .footer {
        padding-top: 50px;
    }
    
    .footer-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-description {
        max-width: 100%;
        margin: auto;
    }
    
    .footer-logo img {
        margin: 0 auto 20px;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .footer-column a:hover {
        padding-left: 0;
    }
    
    .cert-item img {
        max-height: 120px;
    }
}

/* Mobile Small (480px) */
@media (max-width: 480px) {
    .footer-column h4 {
        font-size: 16px;
    }
    
    .footer-bottom p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .control-button {
        font-size: 40px;
    }
}

/* ==========================================================================
   12. ANIMATIONS
   ========================================================================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   13. UTILITY CLASSES
   ========================================================================== */
.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
