.header-hidden {
    transform: translateY(-100%);
}

/* Se a classe skip-splash estiver no html, a splash some antes do primeiro frame */
.skip-splash .splash-screen-overlay {
    display: none !important;
}

.splash-screen-overlay {
    z-index: 999999999999;

    position: fixed;
    inset: 0;

    background: var(--background-light);

    animation: sumir 5s ease-out forwards;
}

.splash-screen {
    width: 100%;
    height: 100dvh;

    perspective: 1000px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.splash-screen img {
    width: 90%;
    height: 90%;

    transform: rotateY(-180deg);
    transform-style: preserve-3d;

    animation: flip 3s linear forwards;
}

.splash-screen-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    bottom: 15px;
}

.splash-screen-text #name {
    color: #1d271d;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    text-align: center;
    text-transform: uppercase;
}

.review-stars {
    min-height: 14px;

    background-image: url('../assets/svgs/star.svg');
    background-repeat: repeat-x;
    background-size: contain;

    display: inline-block;
}

.button.google-reviews {
    margin-top: 20px;
    border-radius: 4px;
    padding: 0.75rem 2rem;
    background: #1c2437;
    background: radial-gradient(circle, rgb(28 36 55) 44%, rgb(44 59 95) 95%, rgb(0 19 75) 50%, rgba(224, 224, 224, 1) 100%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.button.bbb-reviews {
    margin-top: 20px;
    border-radius: 4px;
    padding: 0.75rem 2rem;
    background: #2d3344;
    background: radial-gradient(circle, rgb(45 51 68) 44%, rgb(56 69 97) 95%, rgb(30 45 92) 50%, rgba(224, 224, 224, 1) 100%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Services Grid */
.section-header {
    margin-bottom: 4rem;
}

.section-header:not(.ali-left) {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-header h2,
.section-header h1 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 48px);
    display: flex;
    flex-direction: column;
}

.section-header:not(.ali-left) h2,
.section-header:not(.ali-left) h1 {
    align-items: center;
}

.divider {
    margin-top: 1rem;
    height: 4px;
    width: 96px;
    background: var(--primary);
    border-radius: 9999px;
}

.divider.left-ali {
    margin: 0;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
}

.service-card .card-body {
    z-index: 1;
    position: relative;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.5rem;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    background: rgb(222 220 211 / 50%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover .card-body {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.img-container {
    height: 20rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.service-card:hover .img-container img {
    transform: scale(1.1);
}

.service-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.service-title h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.service-card p {
    font-size: 0.875rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    font-size: 0.75rem;
    color: #718096;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.step {
    padding: 1rem;
    text-align: center;
}

.step-num {
    width: 60px;
    height: 60px;
    background: #1a202c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    border: 4px solid #dfdcd3;
    box-shadow: 0 0 0 2px #1a202c;
}

.step-num.inactive {
    background: #c5b18b;
    box-shadow: 0 0 0 2px #c5b18b;
}

.step-num.final {
    background: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

/* Review Grid */
.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-card {
    background: rgba(224, 221, 213, 0.9);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
}

.chat-fab {
    z-index: 1;

    position: sticky;
    bottom: 1.5rem;
    left: calc(100% - 65px);

    margin: 1.5rem 0;
    border-radius: 50%;
    padding: 1rem;

    background: var(--primary);
    color: white;

    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);

    display: flex;

    transition: transform 0.3s;
}

.chat-fab:hover {
    transform: scale(1.1);
    background: #2d5632;
}

.glass-backdrop {
    background: rgba(190, 156, 110, 0.15);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(143, 114, 69, 0.3);
    box-shadow: 0 2px 0.3125rem rgba(0, 0, 0, 0.1);
}

.page-section .button {
    background: var(--primary);
    color: white;
}

footer {
    padding: 0.625rem;
}

/* Footer */
.footer-container {
    display: flex;
    justify-content: space-between;
}

.footer-logo-link {
    display: block;
}

.footer-bottom {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.developer-paragraph {
    font-size: 0.8rem;
    margin-top: 5px;
}

.developer-paragraph a {
    text-decoration: underline 1px #777;
    cursor: pointer;
}

.card-btns-wrapper {
    display: flex;
    gap: 0.3rem;
}

.card-btn {
    padding: 0.5rem 20px;
    border-radius: 4px;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
}

.card-btn:hover {
    transform: scale(1.05);
}

.card-btn.learn-more {
    background: #333;
    color: white;
    padding: 0.5rem 20px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
}

.view-more-btn {
    margin-top: 30px;
    border-radius: 2px;
    padding: 0.625rem 20px;

    background: black;
    color: white;

    font-weight: bold;

    align-self: center;

    display: inline-flex;
    cursor: pointer;
}

.view-more-btn:hover {
    transform: scale(1.05);
}

.button.get-in-touch:hover {
    background: #444;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: -16px;
    background: rgba(187, 147, 80, 0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.section-partners-logos {
    padding: 40px 0;
    background: rgb(194 192 179);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.carousel-viewport {
    padding: 20px;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
}

.carousel-container::-webkit-scrollbar {
    height: 4px;
}

.carousel-container::-webkit-scrollbar-thumb {
    border-radius: 12px;
    background-color: var(--secondary);
}

.carousel-track {
    width: max-content;
    display: flex;
    gap: 5px;
}

/* Aplica a animação apenas quando desejado */
.carousel-container[data-mode="auto"] .carousel-track {
    animation: infinite-scroll 180s linear infinite;
}

/* Pausa a animação no hover ou quando o usuário toca */
.carousel-container[data-mode="auto"]:hover .carousel-track,
.carousel-container[data-mode="auto"]:active .carousel-track {
    animation-play-state: paused;
}

@keyframes infinite-scroll {
    from {
        transform: translateX(0);
    }

    to {
        /* Move exatamente metade do track (um grupo inteiro) */
        transform: translateX(calc(-90% - 0.5rem));
    }
}

/* Reset para celular quando quiser apenas scroll manual */
.carousel-container[data-mode="manual"] .carousel-track {
    animation: none;
    width: auto;
}

#testimonials-cards-box {
    padding: 20px;
}

.testimonial-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    width: 300px;
    background-color: var(--surface-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.testimonial-card .review-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.testimonial-card .card-text {
    /* Mágica do truncamento em múltiplas linhas */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Número de linhas visíveis antes do "..." */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-card .author-name {
    font-weight: 600;
    font-style: normal;
    color: #333;
    /* Garante que o título não quebre o layout se for longo */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Desktop Grid override */
@media (width <=768px) {
    .review-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .services-grid {
        background: rgba(187, 147, 80, 0.17);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding: 20px;
        scroll-behavior: smooth;
        -ms-overflow-style: none;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }

    .service-card {
        flex-shrink: 0;
        width: 320px;
        scroll-snap-align: center;
    }

    .service-card::after {
        content: none;
    }
}

.chat-container {
    position: fixed;
    bottom: 1.5rem;
    right: 0.5rem;
    width: 320px;
    height: 450px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    z-index: 2;
}

.chat-header {
    background-color: var(--primary);
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.close-chat-btn {
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-chat-btn:hover {
    color: #66ff66;
}

.chat-messages {
    flex: 1;
    height: 300px;
    padding: 15px;
    overflow-y: auto;
    /* Scroll apenas nas mensagens */
    background: #dfdcd3;
}

/* Layout base da mensagem */
.message-wrapper {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

/* Container do nome + balão */
.message-content {
    display: flex;
    flex-direction: column;
    max-width: 75%;
}

/* Estilo do Nome */
.user-name {
    font-size: 11px;
    font-weight: bold;
    color: #888;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Alinhamento do Bot (Esquerda) */
.bot {
    justify-content: flex-start;
}

.bot .user-name {
    align-self: flex-start;
}

.bot .message-text {
    background: #e4e6eb;
    border-radius: 0 15px 15px 15px;
    /* Pontinha no topo esquerdo */
}

/* Alinhamento do Usuário (Direita) */
.user {
    justify-content: flex-end;
}

.user .message-content {
    align-items: flex-end;
}

/* Garante que o nome alinhe à direita */
.user .user-name {
    align-self: flex-end;
}

.user .message-text {
    background: var(--primary);
    color: white;
    border-radius: 15px 0 15px 15px;
    /* Pontinha no topo direito */
}

.message-text {
    padding: 10px 15px;
}

/* Estilo do Avatar */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    align-self: flex-end;
    /* Foto fica na base da mensagem */
}

.chat-input {
    padding: 10px 15px;
    border-top: 1px solid #ccc;
    display: flex;
    gap: 10px;
    background: white;
}

.chat-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #aaa;
    border-radius: 20px;
    font-size: 1rem;
    outline-offset: 2px;
    transition: border-color 0.3s ease;
}

.chat-input input:focus {
    border-color: var(--primary);
    outline: none;
}

.chat-input button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 18px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.loading-dots {
    display: inline-block;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

.projects-carousel-container {
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

.projects-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-carousel-btn.prev {
    left: 10px;
}

.projects-carousel-btn.next {
    right: 10px;
}

.projects-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease-in-out;
    padding: 1rem 0;
}

.projects-carousel-item {
    min-width: calc(33.333% - 1rem);
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.projects-carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.projects-carousel-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .projects-carousel-item {
        min-width: calc(80% - 1rem);
    }
}



/* Lightbox (overlay) */
.lightbox {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Imagem ampliada */
.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Botões de navegação */
.nav-button {
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 5px;
    transform: translateY(-50%);
    user-select: none;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Botão fechar */
.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

/* sr-only: Padrão de Acessibilidade para esconder visualmente, mas manter legível por leitores de ecrã */
.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;
}



/* index */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary);
    color: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transform: rotate(-5deg);
    transition: transform 0.3s;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.why-us-section {
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4rem 2rem;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    background: rgb(222 220 211 / 50%);
}



.dot-list li,
.check-list li {
    position: relative;
    padding-left: 14px;
    display: flex;
    align-items: center;
}

/* Criando o marcador via CSS */
.dot-list li::before {
    content: "";
    position: absolute;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    /* Cor do marcador */
    border-radius: 50%;
}

.check-list li {
    padding-left: 24px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--primary);
}

ul.bold li,
.bold {
    font-weight: bold;
}

.section-grid {
    display: grid;
    gap: 4rem;
}

.light-padding {
    border-radius: 2px;
    padding: 4rem;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    background: rgb(222 220 211 / 50%);
}

@media (min-width: 768px) {
    .section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.section-margin {
    margin-top: 3rem;
    margin-bottom: 6rem;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.margin-2-y {
    margin: 2rem 0;
}

.citation {
    border-left: 4px solid var(--secondary);
    padding-left: 1rem;
    color: rgba(107, 114, 128);
    font-style: italic;
}