/* RESET E CONFIGURAÇÕES GLOBAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --roxo-principal: #483d8b;
    --roxo-escuro: #2e2563;
    --amarelo: #fcba03;
    --amarelo-hover: #f39c12;
    --vermelho-emergencia: #e74c3c;
    --vermelho-emergencia-hover: #c0392b;
    --branco: #ffffff;
    --cinza-claro: #f7f7f7;
    --cinza-medio: #eeeeee;
    --preto: #222222;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Cabin", sans-serif;
    background-color: var(--roxo-principal);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1 {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* CABEÇALHO */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(72, 61, 139, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: var(--amarelo);
    padding: 10px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 80px;
    opacity: 0.98;
}

header .logo img {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* NAVEGAÇÃO */
nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--branco);
    padding: 8px 16px;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-block;
}

nav ul li a:hover {
    background-color: var(--amarelo-hover);
    color: var(--branco);
    transform: translateY(-2px);
}

/* BOTÃO EMERGÊNCIA */
.btn-emergencia {
    background-color: var(--vermelho-emergencia) !important;
    color: var(--branco) !important;
    padding: 10px 18px !important;
    border-radius: 5px;
    font-weight: 600 !important;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
    animation: pulse-emergency 2s infinite;
}

.btn-emergencia:hover {
    background-color: var(--vermelho-emergencia-hover) !important;
    transform: translateY(-2px) scale(1.05);
}

@keyframes pulse-emergency {
    0%, 100% {
        box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 3px 20px rgba(231, 76, 60, 0.7);
    }
}

/* MENU HAMBÚRGUER */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--branco);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* RESPONSIVIDADE DO MENU */
@media (max-width: 968px) {
    header {
        padding: 10px 15px;
        height: 70px;
    }

    header .logo img {
        height: 50px;
        width: auto;
        max-width: 140px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 70px;
        right: 0;
        left: 0;
        background: rgba(72, 61, 139, 0.98);
        backdrop-filter: blur(10px);
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    nav ul.show {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 15px 20px;
        text-align: center;
        font-size: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SLIDESHOW */
.slideshow {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #000;
    margin-top: 0;
}

.slideshow .slide {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
}

.slideshow .slide.active {
    display: block;
}

.slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caption {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(72, 61, 139, 0.40);
    color: var(--amarelo);
    padding: 20px 40px;
    border-radius: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    max-width: 90%;
}

.caption h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.slide.active .caption {
    opacity: 1;
}

.fade {
    animation: fadeIn 1.5s;
}

@keyframes fadeIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .slideshow {
        height: 300px;
    }

    .caption h1 {
        font-size: 0.9rem;
    }

    .caption {
        padding: 12px 20px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .slideshow {
        height: 250px;
    }

    .caption h1 {
        font-size: 0.8rem;
    }

    .caption {
        padding: 10px 15px;
        bottom: 15px;
    }
}

/* SEÇÃO SOBRE */
.conteudo {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--cinza-claro);
    scroll-margin-top: 80px;
}

.conteudo h2 {
    font-size: 2.5rem;
    color: var(--roxo-principal);
    margin-bottom: 30px;
}

.conteudo p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 20px;
    color: #555;
}

@media (max-width: 768px) {
    .conteudo {
        padding: 50px 20px;
        scroll-margin-top: 70px;
    }

    .conteudo h2 {
        font-size: 2rem;
    }

    .conteudo p {
        font-size: 1rem;
    }
}

/* SEÇÃO SERVIÇOS */
.servicos {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--roxo-principal) 0%, var(--roxo-escuro) 100%);
    color: var(--branco);
    scroll-margin-top: 80px;
}

.servicos h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--amarelo);
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.servico-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.servico-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.servico-icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.servico-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--amarelo);
}

.servico-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .servicos {
        padding: 50px 20px;
        scroll-margin-top: 70px;
    }

    .servicos h2 {
        font-size: 2rem;
    }

    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* SEÇÃO VÍDEO */
.video-section {
    padding: 60px 20px;
    background-color: var(--cinza-medio);
    scroll-margin-top: 80px;
}

.video-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--roxo-principal);
    margin-bottom: 50px;
}

.video-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* CARD INFORMATIVO */
.info-card {
    background: linear-gradient(135deg, var(--roxo-principal) 0%, var(--roxo-escuro) 100%);
    color: var(--branco);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card h3 {
    color: var(--amarelo);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card ul li {
    padding: 12px 0;
    font-size: 1.05rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card ul li:last-child {
    border-bottom: none;
}

.info-card .contact-info {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.info-card .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.info-card .contact-item .icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-card .contact-item strong {
    display: block;
    color: var(--amarelo);
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.info-card .contact-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 968px) {
    .video-section {
        padding: 50px 20px;
        scroll-margin-top: 70px;
    }

    .video-section h2 {
        font-size: 2rem;
    }

    .video-content-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .info-card {
        padding: 25px 20px;
    }

    .info-card h3 {
        font-size: 1.3rem;
    }

    .info-card ul li {
        font-size: 0.95rem;
    }
}

/* CARROSSEL DE PROJETOS */
.galeria-section {
    padding: 60px 20px;
    background: var(--cinza-claro);
    scroll-margin-top: 80px;
}

.galeria-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--roxo-principal);
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel {
    overflow: hidden;
    flex: 1;
    border-radius: 15px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(72, 61, 139, 0.9);
    color: var(--amarelo);
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.carousel-btn {
    background: var(--roxo-principal);
    color: var(--branco);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--roxo-escuro);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--roxo-principal);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .galeria-section {
        padding: 50px 20px;
        scroll-margin-top: 70px;
    }

    .galeria-section h2 {
        font-size: 2rem;
    }

    .carousel-container {
        gap: 10px;
    }

    .carousel-item img {
        height: 300px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-caption {
        font-size: 0.9rem;
        padding: 10px 20px;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        gap: 5px;
    }

    .carousel-item img {
        height: 250px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .carousel-caption {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
}

/* SEÇÃO CONTATO - OTIMIZADA E ALINHADA */
.contato-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--roxo-escuro) 0%, var(--roxo-principal) 100%);
    color: var(--branco);
    scroll-margin-top: 80px;
}

.contato-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--amarelo);
}

.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.contato-info h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--amarelo);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
}

.info-item .icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--amarelo);
    font-size: 0.85rem;
}

.info-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* FORMULÁRIO - REDUZIDO E ALINHADO */
.contato-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--amarelo);
    font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    font-family: "Cabin", sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--amarelo);
    background: var(--branco);
    box-shadow: 0 0 10px rgba(252, 186, 3, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-submit {
    width: 100%;
    padding: 10px;
    background: var(--amarelo);
    color: var(--roxo-escuro);
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-submit:hover {
    background: var(--amarelo-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 968px) {
    .contato-section {
        padding: 50px 20px;
        scroll-margin-top: 70px;
    }

    .contato-section h2 {
        font-size: 2rem;
    }

    .contato-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contato-form {
        padding: 20px 15px;
    }

    .info-item {
        padding: 10px;
    }

    .info-item .icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .contato-section {
        padding: 40px 15px;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.8rem;
        padding: 7px 9px;
    }

    .btn-submit {
        font-size: 0.85rem;
        padding: 9px;
    }
}

/* BOTÃO WHATSAPP FLUTUANTE */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--branco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* RODAPÉ */
footer {
    background-color: var(--preto);
    color: var(--branco);
    text-align: center;
    padding: 40px 20px;
}

footer p {
    margin: 10px 0;
    font-size: 0.95rem;
}

footer p:first-child {
    font-weight: 600;
    color: var(--amarelo);
}

@media (max-width: 768px) {
    footer {
        padding: 30px 15px;
    }

    footer p {
        font-size: 0.85rem;
    }
}

/* ANIMAÇÃO DE ENTRADA */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.8s ease-out;
}

/* SCROLLBAR PERSONALIZADA */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--roxo-escuro);
}

::-webkit-scrollbar-thumb {
    background: var(--amarelo);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--amarelo-hover);
}

/* Mobile scrollbar mais fino */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 6px;
    }
}