@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url(ultilitaria.css);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

:root {
    --verde-bg: #D1FAE5;
    --text-verde-color: #065F46;
    --blue-color-1: #2563EB;
    --blue-bg: #DBEAFE;
    --blue-bg-1: #F4F8FD;
    --text-purple-color: #6B21A8;
    --purple-bg: #F3E8FF;
    --text-verde-color-2: #059669;
    --orange-bg: #FFEDD5;
    --text-orange-color: #9A3412;
    --badge-neutral: #F8FAFC;
    --badge-border: #E5E7EB;
    --text-blue-2: #475569;
    --badge-bg: #F1F5F9;
    --gradiente-color: linear-gradient(90deg, #2563eb 0%, #4c6baf 43.33%, #059669 100%);
    --gradiente-color-1: linear-gradient(90deg, #EFF6FF, #ECFDF5);
    --text-color-1: #334155;
    --text-color-2: #94a3b8;
}

header {
    display: flex;
    flex-direction: row;
    padding: 10px 8px;
    width: 100%;
    height: 60px;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo img {
    width: 45px;
    filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.3));
}

.nav_links ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav_links ul li a {
    text-decoration: none;
    color: var(--text-color-1);
    font-weight: 500;
}

.nav_links ul li a:hover {
    color: var(--blue-color-1);
}

main {
    height: calc(100dvh - 60px);
    background-color: var(--blue-bg-1);
}

/* Menu Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color-1);
    transition: all 0.3s ease;
}

/* Badges - Classes Utilitárias */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.badge-verde {
    background-color: var(--verde-bg);
    color: var(--text-verde-color);
    border: 1px solid rgba(6, 95, 70, 0.1);
}

.badge-azul {
    background-color: var(--blue-bg);
    color: var(--blue-color-1);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.badge-roxo {
    background-color: var(--purple-bg);
    color: var(--text-purple-color);
    border: 1px solid rgba(107, 33, 168, 0.1);
}

.badge-laranja {
    background-color: var(--orange-bg);
    color: var(--text-orange-color);
    border: 1px solid rgba(154, 52, 18, 0.1);
}

.badge-cinza {
    background-color: var(--badge-bg);
    color: var(--text-blue-2);
    border: 1px solid var(--badge-border);
}

.badge-gradient {
    background: var(--gradiente-color);
    color: white;
    border: none;
}

.badge-sm {
    padding: 2px 6px;
    font-size: 0.6875rem;
}

.badge-lg {
    padding: 6px 10px;
    font-size: 0.8125rem;
}

.badge-icon {
    gap: 4px;
}

.badge-icon svg {
    width: 12px;
    height: 12px;
}

.d-flex {
    display: flex;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.main-direito {
    width: 50%;
}

.main-esquerdo {
    margin-top: 3rem;
}

.tittle h1 {
    line-height: 3.5rem;
    width: 100%;
}

.image-hero {
    position: relative;
}

.image-hero img {
    width: 450px;
    height: 450px;
    object-fit: cover;
    border-radius: 16px;
    filter: drop-shadow(0 7px 26px rgba(100, 100, 111, 0.2));
}

.label-photo {
    position: absolute;
    bottom: -10px;
    left: -10%;
    background-color: white;
    border-radius: 12px;
    width: fit-content;
    box-shadow: 0 7px 26px rgba(100, 100, 111, 0.2);
}

.label-photo img#label {
    display: block;
    width: 100%;
    max-width: 30px;
    height: auto;
    object-fit: contain;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-service {
    width: 280px;
    height: 270px;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 18px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.card-header-icon {
    background: #f4f6f8;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header-icon img {
    width: 32px;
    height: 32px;
}

.card-testimonial {
    width: 320px;
    min-height: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.star-rate {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.star-rate img {
    height: 20px;
}

.card-testimonial p {
    font-style: italic;
    margin: 10px 0;
}

.card-testimonial hr {
    margin: 15px 0;
    border: none;
    border-top: 1px solid var(--badge-border);
}

.card-region {
    width: 340px;
    min-height: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 6px solid transparent;
}

.border-top-green {
    border-top-color: #4caf50;
}

.border-top-blue {
    border-top-color: #2196f3;
}

.border-top-orange {
    border-top-color: #ff9800;
}

.border-top-purple {
    border-top-color: #9c27b0;
}

.small {
    font-size: 0.63rem;
}

.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    touch-action: pan-y;
}

.slides-container {
    display: flex;
    transition: transform 0.5s ease-out;
    padding: 40px 0;
    cursor: grab;
    will-change: transform;
}

.slides-container.grabbing {
    cursor: grabbing;
    transition: none;
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    transition: all 0.3s ease;
    transform: scale(0.9);
    opacity: 0.8;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.carousel-slide.active {
    transform: scale(1.001);
    opacity: 1;
    z-index: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.carousel-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 10%, rgb(0, 0, 0) 90%);
    color: #fff;
    padding: 15px;
    border-radius: 0 0 12px 12px;
    pointer-events: none;
}

.carousel-caption h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
}

.carousel-nav {
    text-align: center;
    margin-top: 15px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #333;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-control {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    margin: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    z-index: 2;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.9);
}

.icon-container {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FORMULÁRIO DE CONTATO */
.form-container {
    padding: 2rem;
    font-family: sans-serif;
    box-shadow: 0 18px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #334155;
    font-size: .9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3b82f6;
}

.form-group textarea {
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn svg {
    height: 1.25rem;
    width: 1.25rem;
}

/* FOOTER */
.footer {
    background-color: #0f172a;
    color: white;
    padding: 3rem 1rem;
    font-family: sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand,
.footer-section {
    flex: 1 1 220px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-brand .logo svg {
    width: 40px;
    height: 40px;
    background: linear-gradient(to right, #3b82f6, #10b981);
    border-radius: 0.25rem;
    padding: 0.25rem;
    color: white;
}

.footer-section h3 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
    color: #94a3b8;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* GALERIA MODAL */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.gallery-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: white;
}

.close-gallery {
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close-gallery:hover {
    color: #ccc;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    transform: scale(0.7);
    animation: growIn 0.6s linear forwards;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

@keyframes growIn {
    0% {
        transform: scale(0.7);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1010;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 20px;
}

.lightbox-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.lightbox-nav button:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 10px;
    max-width: 80%;
    margin: 0 auto;
}

@keyframes fade {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

/* ===========================
   BREAKPOINTS RESPONSIVOS
   =========================== */

/* Container breakpoints */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

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

/* Carousel responsivo */
@media (max-width: 900px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .carousel-slide {
        flex: 0 0 calc(100% - 20px);
    }
}

/* ===========================
   TABLET PORTRAIT (768px - 991px)
   =========================== */
@media (min-width: 768px) and (max-width: 991px) {

    /* Header */
    .nav_links,
    .nav_buttons {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    header.active {
        height: auto;
        flex-wrap: wrap;
        padding-bottom: 15px;
    }

    header.active .nav_links,
    header.active .nav_buttons {
        display: flex;
        width: 100%;
    }

    header.active .nav_links ul {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
        padding: 15px 0;
    }

    header.active .nav_buttons {
        flex-direction: column;
        gap: 0.8rem;
        padding-top: 10px;
    }

    header.active .menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    header.active .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    header.active .menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Layout principal */
    .main-direito {
        width: 100%;
    }

    main {
        height: auto;
    }

    .image-hero img {
        width: 350px;
        height: 350px;
    }

    .main-esquerdo {
        margin-top: 1rem;
    }

    .label-photo {
        left: -5%;
    }

    .tittle h1 {
        line-height: normal;
    }

    /* Cards responsivos */
    .card-service {
        width: 100%;
        max-width: 300px;
        height: auto;
        min-height: 250px;
    }

    .card-region,
    .card-testimonial {
        width: 100%;
        max-width: 350px;
    }

    /* Carousel */
    .carousel-slide {
        flex: 0 0 calc(50% - 20px);
    }

    .carousel-controls {
        display: none;
    }

    /* Formulário */
    .form-row {
        flex-direction: column;
    }

    .form-container {
        padding: 1.5rem;
    }

    /* Botões */
    .d-flex.flex-wrap button {
        width: 100% !important;
        text-align: center;
        justify-content: center;
    }
}

/* ===========================
   TABLET LANDSCAPE (992px - 1199px)
   =========================== */
@media (min-width: 992px) and (max-width: 1199px) {
    .main-direito {
        width: 100%;
    }

    .image-hero img {
        width: 400px;
        height: 400px;
    }

    .card-service {
        width: 100%;
        max-width: 280px;
    }

    .card-region,
    .card-testimonial {
        width: 100%;
        max-width: 320px;
    }

    .carousel-slide {
        flex: 0 0 calc(33.333% - 15px);
        margin: 0 7.5px;
    }

    .container {
        padding-right: 10px;
        padding-left: 10px;
    }
}

/* ===========================
   MOBILE (max-width: 767px)
   =========================== */
@media (max-width: 767px) {

    .nav_links,
    .nav_buttons {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    header.active {
        height: auto;
        flex-wrap: wrap;
        padding-bottom: 15px;
    }

    .logo img {
        width: 30px;
        filter: drop-shadow(0 0px 4px rgba(0, 0, 0, 0.3));
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    header.active .nav_links,
    header.active .nav_buttons {
        display: flex;
        width: 100%;
    }

    header.active .nav_links ul {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
        padding: 15px 0;
    }

    header.active .nav_buttons {
        flex-direction: column;
        gap: 0.8rem;
        padding-top: 10px;
    }

    header.active .menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    header.active .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    header.active .menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-direito {
        width: 100%;
    }

    .d-flex.flex-wrap button {
        width: 100% !important;
        text-align: center;
        justify-content: center;
    }

    main {
        height: auto;
    }

    .image-hero img {
        width: 300px;
        height: 300px;
    }

    .main-esquerdo {
        margin-top: 0rem;
    }

    .label-photo {
        left: -5%;
    }

    .tittle h1 {
        line-height: normal;
    }

    .carousel-controls {
        display: none;
    }

    .fs-14 {
        font-size: 14px;
    }

    .container-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-row {
        flex-direction: column;
    }

    .form-container {
        padding: 1rem;
    }
}


/* animações */
.animate-element {
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ===================================
   ANIMAÇÕES PRINCIPAIS OTIMIZADAS
   =================================== */

/* Fade In - Entrada suave de baixo para cima */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide In Left - Entrada da esquerda */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide In Right - Entrada da direita */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale In - Entrada com escala */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===================================
   ANIMAÇÕES ESPECÍFICAS DO SITE
   =================================== */

/* Animação para contadores */
.counter {
    transition: transform 0.3s ease;
}

.counter.animate {
    transform: scale(1.05);
}

/* Hover effects otimizados para cards */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Animações para elementos específicos do HTML existente */

/* Seção principal (main) */
main .main-direito {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

main .main-direito.animate-in {
    opacity: 1;
    transform: translateY(0);
}

main .main-esquerdo {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.2s;
}

main .main-esquerdo.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Seção sobre */
#sobre .main-direito {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

#sobre .main-direito.animate-in {
    opacity: 1;
    transform: translateX(0);
}

#sobre .main-esquerdo {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.2s;
}

#sobre .main-esquerdo.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Cards de serviços */
.card-service {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-service:nth-child(1) { transition-delay: 0.1s; }
.card-service:nth-child(2) { transition-delay: 0.2s; }
.card-service:nth-child(3) { transition-delay: 0.3s; }
.card-service:nth-child(4) { transition-delay: 0.4s; }

.card-service.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Cards de região */
.card-region {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-region:nth-child(1) { transition-delay: 0.1s; }
.card-region:nth-child(2) { transition-delay: 0.2s; }
.card-region:nth-child(3) { transition-delay: 0.3s; }

.card-region.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Cards de depoimentos */
.card-testimonial {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-testimonial:nth-child(1) { transition-delay: 0.1s; }
.card-testimonial:nth-child(2) { transition-delay: 0.2s; }
.card-testimonial:nth-child(3) { transition-delay: 0.3s; }

.card-testimonial.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Seção de contato */
#contato .container-grid > div:first-child {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

#contato .container-grid > div:first-child.animate-in {
    opacity: 1;
    transform: translateX(0);
}

#contato .form-container {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.2s;
}

#contato .form-container.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Títulos de seções */
.tittle {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tittle.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   ACESSIBILIDADE E PERFORMANCE
   =================================== */

/* Redução de movimento para usuários sensíveis */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .scale-in,
    .counter,
    .hover-lift,
    main .main-direito,
    main .main-esquerdo,
    #sobre .main-direito,
    #sobre .main-esquerdo,
    .card-service,
    .card-region,
    .card-testimonial,
    #contato .container-grid > div,
    .form-container,
    .tittle {
        transition: none !important;
        animation: none !important;
    }
    
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .scale-in,
    main .main-direito,
    main .main-esquerdo,
    #sobre .main-direito,
    #sobre .main-esquerdo,
    .card-service,
    .card-region,
    .card-testimonial,
    #contato .container-grid > div,
    .form-container,
    .tittle {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Loading state para evitar flash */
.loading .animate-element,
.loading main .main-direito,
.loading main .main-esquerdo,
.loading #sobre .main-direito,
.loading #sobre .main-esquerdo,
.loading .card-service,
.loading .card-region,
.loading .card-testimonial,
.loading #contato .container-grid > div,
.loading .form-container,
.loading .tittle {
    opacity: 0;
}

/* ===================================
   OTIMIZAÇÕES DE PERFORMANCE
   =================================== */

/* Otimização para GPU */
.animate-element,
main .main-direito,
main .main-esquerdo,
#sobre .main-direito,
#sobre .main-esquerdo,
.card-service,
.card-region,
.card-testimonial,
#contato .container-grid > div,
.form-container,
.tittle {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Remove will-change após animação para economizar recursos */
.animate-in {
    will-change: auto;
}

/* Otimização para dispositivos móveis */
@media (max-width: 768px) {
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .scale-in,
    main .main-direito,
    main .main-esquerdo,
    #sobre .main-direito,
    #sobre .main-esquerdo,
    .card-service,
    .card-region,
    .card-testimonial,
    #contato .container-grid > div,
    .form-container,
    .tittle {
        transition-duration: 0.4s; /* Animações mais rápidas no mobile */
    }
}