/* ==========================================
   IMPORTAÇÕES E VARIÁVEIS GLOBAIS
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400..700;1,400..700&display=swap');


:root {
    --color-primary: rgba(26, 67, 132, 1);
    --color-secondary: rgba(34, 160, 220, 1);
    --color-tertiary: rgba(119, 119, 119, 1);
    --color-quaternary: rgba(245, 245, 245, 1);
    --color-white: rgba(255, 255, 255, 1);
    --color-black: rgba(0, 0, 0, 1);
}

/* ==========================================
   RESET E ESTILOS GLOBAIS
   ========================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Ubuntu', 'Cabin', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.material-symbols-rounded {
    color: var(--color-white);
    font-variation-settings:
    'FILL' 0,
    'wght' 500,
    'GRAD' 0,
    'opsz' 48;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ==========================================
   HEADER E NAVEGAÇÃO
   ========================================== */

.header {
    min-height: 160px;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: min-height 0.3s ease, box-shadow 0.3s ease;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    transition: height 0.3s ease;
}

.header.scrolled {
    min-height: 100px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled::before {
    height: 6px;
}

.header.scrolled .logo {
    height: 70px;
}

.header.scrolled .logo img {
    max-width: 250px;
}

.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    padding: 0 10%;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    height: 120px;
    transition: height 0.3s ease;
}

.logo img {
    height: 100%;
    width: auto;
    max-width: 450px;
    object-fit: contain;
    transition: max-width 0.3s ease;
}

.menu {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.menu a {
    text-decoration: none;
    color: var(--color-tertiary);
    font-weight: 500;
    font-size: 18px;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: var(--color-secondary);
}

.menu a.active {
    color: var(--color-primary);
    font-weight: 700;
}

/* ==========================================
   SEÇÃO PRINCIPAL (HERO)
   ========================================== */

.section-main {
    height: 100vh;
    /* padding-top: 160px; */
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--color-primary);
    padding: 40px 0;
}

.content > * {
    z-index: 1;
    position: relative;
}

.content-bg {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60%;
    pointer-events: none;
    z-index: 0;
    background-image: url('assets/bg.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    -webkit-mask-image: linear-gradient(
        to right,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.3) 20%,
        rgba(0,0,0,0.85) 50%,
        rgba(0,0,0,1) 100%
    );
    mask-image: linear-gradient(
        to right,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.3) 20%,
        rgba(0,0,0,0.85) 50%,
        rgba(0,0,0,1) 100%
    );
}

.slogan {
    margin-left: 10%;
    margin-right: 10%;
    max-width: 800px;
    width: 80%;
    color: var(--color-white);
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 300;
    line-height: 1.4;
    margin-top: 40px;
}

.hero-actions {
    position: absolute;
    left: 10%;
    bottom: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-schedule {
    display: inline-flex;
    text-decoration: none;
}

.hero-schedule button {
    font-family: 'Ubuntu', sans-serif;
    border: 2px solid var(--color-secondary);
    color: var(--color-white);
    background-color: var(--color-secondary);
    padding: 15px 30px;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-schedule button:hover {
    background-color: var(--color-white);
    color: var(--color-secondary);
}

.slogan b {
    font-weight: 700;
}

.content-icon {
    font-size: 48px;
    animation: bounce 2s infinite;
    position: static;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* ==========================================
   SEÇÃO DE APRESENTAÇÃO
   ========================================== */

.section-apresentation {
    padding: 80px 10%;
    background-color: var(--color-quaternary);
    display: flex;
    min-height: 100vh;
    position: relative;
}

.section-apresentation-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
    width: 100%;
}

.title-section {
    font-size: clamp(28px, 4vw, 40px);
    color: var(--color-primary);
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-right: 20%;
}

.content-cards {
    margin-top: 4em;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    /* border-radius: 18px; */
}

.card:hover {
    transform: translateY(-5px);
}

.card-content {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    height: 55%;
    width: 100%;
    background-color: var(--color-white);
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-content > span {
    font-weight: 500;
    font-size: clamp(18px, 2vw, 24px);
    color: var(--color-tertiary);
    line-height: 1.4;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    height: 45%;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-icon.top,
.card-content.top {
    border-radius: 18px 18px 0 0;
}

.card-icon.bottom,
.card-content.bottom {
    margin-top: 10px;
    border-radius: 0 0 18px 18px;
}

.card-icon span {
    font-size: clamp(48px, 6vw, 64px);
    font-variation-settings: 'OPSZ' 64,'wght' 500, 'FILL' 1, 'GRAD' 0;
}

.card-icon img {
    width: clamp(64px, 12vw, 110px);
    height: clamp(64px, 12vw, 110px);
    object-fit: contain;
    display: block;
}

.card-icon.light {
    background-color: var(--color-secondary);
}

/* ==========================================
   SEÇÃO DE SERVIÇOS
   ========================================== */

.section-services {
    background-color: var(--color-white);
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    position: relative;
}

.section-services-content {
    display: flex;
    position: relative;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    height: 100%;
}

.service-description {
    color: var(--color-tertiary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 18px;
    font-weight: 400;
    padding: 40px 2% 40px 10%;
    flex: 1;
    max-width: 55%;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.service-description .title-section {
    margin: 0 0 20px 0;
}

.service-description p {
    margin: 10px 0;
    line-height: 1.6;
}

.description-text {
    padding-right: 30%;
}

.service-image {
    position: absolute;
    left: 55%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    width: 45%;
    max-width: 800px;
}

.service-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.services {
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 5% 40px 10%;
    flex: 1;
    min-width: 280px;
    position: relative;
    z-index: 0;
    min-height: 100vh;
}

.services-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    margin-left: 10%;
}

.services h1 {
    margin: 0 0 30px 0;
    font-size: clamp(24px, 3vw, 28px);
    font-weight: 700;
}

.services-select {
    display: none;
    width: 100%;
}

.services-select select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    outline: none;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--color-white) 50%),
                      linear-gradient(135deg, var(--color-white) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.services-select select option {
    color: var(--color-black);
}

#services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-item {
    padding: 10px 0 10px 15px;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(14px, 1.5vw, 16px);
    color: var(--color-white);
}

.service-item:hover {
    border-left-color: var(--color-secondary);
    padding-left: 20px;
}

.service-item.active {
    border-left-color: var(--color-secondary);
    font-weight: 700;
    padding-left: 20px;
}

/* ==========================================
   SEÇÃO DE AGENDAMENTO
   ========================================== */

.label-agenda {
    background-color: var(--color-secondary);
    color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.label-agenda span {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 500;
}

.label-agenda button {
    font-family: 'Ubuntu', sans-serif;
    border: 2px solid var(--color-white);
    color: var(--color-white);
    background-color: transparent;
    padding: 15px 30px;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.label-agenda button:hover {
    background-color: var(--color-white);
    color: var(--color-secondary);
}

/* ==========================================
   SEÇÃO DE TECNOLOGIAS
   ========================================== */

.section-tecnologias {
    background-color: var(--color-quaternary);
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.section-tecnologias-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    padding: 160px 10% 80px;
    width: 100%;
    overflow-x: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin-top: 120px;
    margin: 120px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    overflow: visible;
    filter: drop-shadow(0px 10px 40px rgba(0, 0, 0, 0.12));
}

.tecnologias-carousel {
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    max-width: 1200px;
    padding: 100px 0;
}

.tecnologias-list {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
    padding: 0 20px;
}

.carousel-btn {
    /* background-color: var(--color-white); */
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--color-primary);
}

.carousel-btn:hover .material-symbols-rounded {
    color: var(--color-white);
}

.carousel-btn .material-symbols-rounded {
    color: var(--color-primary);
    font-size: 32px;
    transition: color 0.3s ease;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    background-color: var(--color-white);
}

.carousel-btn:disabled:hover .material-symbols-rounded {
    color: var(--color-primary);
}

.carousel-indicators {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: var(--color-primary);
    width: 30px;
    border-radius: 6px;
}

.tec-card {
    background-color: var(--color-white);
    min-width: calc((100% - 60px) / 3);
    width: calc((100% - 60px) / 3);
    max-width: 365px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 18px;
    position: relative;
    padding: 80px 20px 40px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.tec-card:hover {
    transform: translateY(-5px);
}

.icon-tec {
    position: absolute;
    top: -80px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 8px solid var(--color-white);
}

.icon-tec img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.tec-card h2 {
    color: var(--color-primary);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    margin: 20px 0 10px 0;
}

.tec-card span {
    color: var(--color-tertiary);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 500;
    text-align: center;
    margin: 10px 0 0 0;
    line-height: 1.4;
}

/* ==========================================
   SEÇÃO DE CONTATOS
   ========================================== */
.section-contatos {
    background-color: var(--color-primary);
    display: flex;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.section-contatos::before {
    content: "Contato";
    position: absolute;
    left: -100px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: clamp(80px, 15vw, 150px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    z-index: 0;
}

.section-contatos-content {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    flex-direction: row;
}

.section-contatos-content > div:first-child {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 120px 5% 80px 10%;
    justify-content: center;
}

.section-contatos-content > div:first-child h1 {
    font-size: clamp(32px, 5vw, 52px);
    margin-bottom: 40px;
}

.contact-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
    flex: 1;
}

.section-contatos-content .contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 280px;
}

.section-contatos-content .contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: var(--color-white);
    min-width: 250px;
}

.section-contatos-content .title-section {
    color: var(--color-white);
    margin-bottom: 40px;
}

.section-contatos-content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.section-contatos-content input,
.section-contatos-content textarea {
    background-color: var(--color-white);
    border: none;
    padding: 18px 20px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    border-radius: 8px;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.section-contatos-content input:focus,
.section-contatos-content textarea:focus {
    box-shadow: 0 0 0 3px rgba(62, 207, 170, 0.3);
}

.section-contatos-content input::placeholder,
.section-contatos-content textarea::placeholder {
    color: #aaa;
}

.section-contatos-content textarea {
    min-height: 150px;
    resize: vertical;
}

.section-contatos-content form button {
    background-color: #3ECFAA;
    color: var(--color-white);
    border: none;
    padding: 18px 40px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-contatos-content form button:hover {
    background-color: #35b897;
    transform: translateY(-2px);
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); */
}

.section-contatos-content .contact-info h2 {
    color: var(--color-secondary);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    margin: 20px 0 10px 0;
}

.section-contatos-content .contact-info h2:first-child {
    margin-top: 0;
}

.section-contatos-content .contact-info p {
    font-size: clamp(18px, 2.5vw, 24px);
    margin: 5px 0;
    font-weight: 400;
}

.img-mapa {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-width: 300px;
}

.img-mapa iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    display: block;
    border: 0;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    color: var(--color-white);
    width: 100%;
    min-height: 300px;
    background-color: rgba(44, 44, 44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

.footer-logo {
    max-width: 350px;
    height: auto;
    margin: 0 0 20px 0;
}

.footer h1 {
    font-size: clamp(32px, 5vw, 52px);
    margin: 0 0 10px 0;
}

.footer span {
    font-weight: 400;
    font-size: clamp(14px, 1.5vw, 16px);
}

/* ==========================================
   MEDIA QUERIES - RESPONSIVIDADE
   ========================================== */

/* Tablets e telas médias */
@media (max-width: 1024px) {
    .header-content {
        padding: 0 5%;
    }

    .content-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tec-card {
        min-width: calc((100% - 30px) / 2);
        width: calc((100% - 30px) / 2);
    }

    .section-services-content {
        flex-direction: column;
    }

    .service-description {
        max-width: 100%;
        padding: 40px 5%;
    }

    .description-text {
        padding-right: 0;
    }

    .service-image {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 80%;
        margin: 40px auto;
    }

    .services {
        padding: 40px 5%;
        width: 100%;
    }

    .section-contatos-content {
        flex-direction: column;
    }

    .section-contatos-content > div:first-child {
        width: 100%;
        padding: 60px 5%;
    }

    .img-mapa {
        min-height: 400px;
    }
}

/* Mobile e telas pequenas */
@media (max-width: 768px) {
    .logo img {
        max-width: 250px;
    }
    .header {
        min-height: 120px;
        position: static;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 20px 5%;
    }

    .menu {
        gap: 15px;
        justify-content: center;
    }

    .menu a {
        font-size: 16px;
    }

    .slogan {
        width: 85%;
        margin: 20px 10%;
    }

    .hero-actions {
        left: 10%;
        bottom: 40px;
        gap: 12px;
    }

    .content-icon {
        font-size: 36px;
    }

    .section-apresentation {
        padding: 60px 5%;
    }

    .content-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 2em;
    }

    .card {
        min-height: 350px;
    }

    .service-image {
        display: none;
    }

    .section-services {
        min-height: auto;
    }

    .section-services-content {
        min-height: 100vh;
        /* padding: 30px 0 60px; */
    }

    .service-description,
    .services {
        min-height: auto;
    }

    .services {
        order: 1;
        height: auto;
        flex: none;
        padding: 30px 5% 20px;
    }

    .service-description {
        order: 2;
        padding: 20px 5% 40px;
    }

    .services-content {
        margin-left: 0;
    }

    #services-list {
        display: none;
    }

    .services-select {
        display: block;
    }

    .carousel-wrapper {
        gap: 15px;
        margin-top: 100px;
    }
    
    .tecnologias-carousel {
        padding: 100px 0;
    }
    
    .tecnologias-list {
        gap: 20px;
        padding: 0 10px;
    }
    
    .tec-card {
        min-width: 100%;
        width: 100%;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    
    .carousel-btn .material-symbols-rounded {
        font-size: 28px;
    }

    .section-tecnologias-content {
        padding: 140px 5% 60px;
    }

    .contact-content {
        flex-direction: column;
        gap: 30px;
    }

    .section-contatos::before {
        display: none;
    }

    .section-contatos-content > div:first-child h1 {
        margin-bottom: 30px;
    }

    .img-mapa {
        min-height: 300px;
    }
}

/* Telas muito pequenas */
@media (max-width: 480px) {
    .header-content {
        padding: 15px 5%;
    }

    .menu {
        /* flex-direction: column; */
        gap: 10px;
    }

    .label-agenda {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .label-agenda button {
        width: 100%;
        padding: 15px 20px;
    }

    .card-content > span {
        font-size: 18px;
    }
}

/* ==========================================
   SETAS DE NAVEGAÇÃO
   ========================================== */

.section-arrow,
.footer-arrow {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--color-tertiary);
}

.section-arrow {
    position: absolute;
    bottom: 40px;
    left: 10%;
    animation: bounce 2s infinite;
    z-index: 10;
}

.section-arrow:hover {
    opacity: 0.8;
}

.footer-arrow {
    position: absolute;
    bottom: 40px;
    right: 10%;
    /* font-size: 48px; */
}

.footer-arrow:hover {
    transform: translateY(-5px);
    opacity: 0.8;
}