:root {
    --primary-blue: #026992;
    --dark-blue: #153147;
    --bg-light: #FAF8F6;
    --bg-white: #FFFFFF;
    --text-main: #272123;
    --gray-accent: #C7BD84;
    --gray-light: #E0DFD8;
    --gray-dark: #AFAFAF;
    
    /* Admin Colors */
    --success-green: #2ecc71;
    --warning-orange: #f39c12;
    --danger-red: #e74c3c;
}

/* -- RESET & GLOBAL
----------------------------------*/
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-blue);
    margin-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* -- UTILS
----------------------------------*/
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-blue);
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.direita { float: right; }
.esquerda { float: left; }
.agulha { clear: both; }

.coluna {
    display: flex;
    flex-direction: column;
}

.row-evenly {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.row-left {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

/* Width Utils */
.p { width: 50px !important; }
.m { width: 70px !important; }
.g { width: 100px !important; }
.gg { width: 200px !important; }
.xg { width: 255px !important; }
.xgg { width: 350px !important; }
.auto { width: 100%; }

/* Height Utils */
.h-pp { height: 24px !important; }
.h-p { height: 50px !important; }
.h-m { height: 70px !important; }
.h-g { height: 100px !important; }

/* Gap Utils */
.gap-pp { gap: 2px !important; }
.gap-p { gap: 5px !important; }
.gap-m { gap: 10px !important; }
.gap-g { gap: 15px !important; }
.gap-gg { gap: 20px !important; }
.m-auto { margin: auto; }

/* -- HEADER / NAVBAR
----------------------------------*/
nav {
    background-color: var(--dark-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo-link img {
    height: 50px;
}

#nav-itens {
    display: flex;
    gap: 30px;
    align-items: center;
}

#nav-itens li {
    height: 100%;
    display: flex;
    align-items: center;
}

#nav-itens li a {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

#nav-itens li a:not(.btn-nav)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: var(--gray-accent);
    transition: width 0.3s ease;
}

#nav-itens li a:not(.btn-nav):hover::after,
#nav-itens li a.active::after {
    width: 100%;
}

.btn-nav {
    border: 1px solid var(--gray-accent);
    padding: 8px 20px !important;
    border-radius: 8px;
    color: var(--gray-accent) !important;
}

.btn-nav:hover {
    background-color: var(--gray-accent);
    color: var(--dark-blue) !important;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
    }

    .menu-toggle {
        display: flex;
    }

    #nav-itens {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background-color: var(--dark-blue);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    #nav-itens.active {
        max-height: 500px;
        padding: 10px 0;
    }

    #nav-itens li {
        width: 100%;
        justify-content: center;
        padding: 12px 0;
    }
}

/* -- HERO SECTION (Public)
----------------------------------*/
#hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    padding: 6rem 10%;
    align-items: center;
    background-color: var(--bg-light);
    min-height: 85vh;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: var(--text-main);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
}

.btn-cta {
    background-color: var(--primary-blue);
    color: white;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 15px rgba(2, 105, 146, 0.3);
    border: 2px solid transparent;
}

.btn-cta:hover {
    background-color: transparent;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.trust-badge {
    margin-top: 10px;
}

.trust-badge img {
    height: 90px;
    object-fit: contain;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* -- SERVICES SECTION (Public)
----------------------------------*/
.sessao-servicos {
    padding: 6rem 10% 4rem;
    background-color: var(--bg-white);
    text-align: center;
}

.titulo-servicos {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.titulo-servicos::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-blue);
    margin: 15px auto 0;
    border-radius: 2px;
}

.carrossel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.item-servico {
    flex: 1 1 220px;
    max-width: 260px;
    background-color: var(--bg-light);
    padding: 40px 25px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.item-servico:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--gray-accent);
    background-color: #fff;
}

.item-servico img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.item-servico:hover img {
    transform: scale(1.1);
}

.item-servico span {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-blue);
    font-family: 'Montserrat', sans-serif;
}

.item-servico a {
    display: none;
}

/* -- FOOTER (Public)
----------------------------------*/
.bloco-final {
    padding: 4rem 10%;
    background-color: var(--dark-blue);
    color: white;
    text-align: center;
}

.bloco-final h2 {
    color: white;
    margin-bottom: 20px;
}

/* -- FORMS (Unified)
----------------------------------*/
form {
    text-align: left;
    max-width: 100%;
    margin: auto;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-main);
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 8px 10px;
    margin: 4px 0 10px 0;
    display: inline-block;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    min-height: 40px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(2, 105, 146, 0.1);
}

button, input[type="submit"] {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 10px 20px;
}

button:hover, input[type="submit"]:hover {
    background-color: var(--dark-blue);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* -- FORMULÁRIO (Migrado e Modernizado)
----------------------------------*/
.section-atendimento {
    display: flex;
    justify-content: space-between;
    margin: 30px;
    padding: 20px;
    text-align: center;
}

.section-atendimento div {
    flex: 1;
}

.section-atendimento h2 {
    font-size: 36px;
    color: var(--dark-blue);
}
.section-atendimento p {
    font-size: 24px;
}

.form-area {
    padding: 30px;
    max-width: 900px;
    margin: auto;
    width: 600px;
}

.form-area h2 {
    border-left: 3px solid var(--primary-blue); /* Cor atualizada */
    padding-left: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}

.form-group select, 
.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 10px;
    background: transparent;
    color: var(--text-main);
    font-family: inherit;
}

.form-group select:focus, 
.form-group input:focus, 
.form-group textarea:focus {
    border: 2px solid var(--primary-blue); /* Cor atualizada */
    outline: none;
    box-shadow: 0 0 5px rgba(2, 105, 146, 0.5);
    transition: 0.3s ease-in-out;
}

/* Tratamento de erros */
.erro-input {
    border: 2px solid var(--danger-red) !important;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
    transition: 0.3s linear;
}

span.error {
    display: none;
    color: var(--danger-red);
    font-size: 14px;
    margin-top: -10px;
    text-align: left;
}

/* Botões */
.btn-enviar {
    background: var(--primary-blue); /* Cor atualizada */
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

.btn-enviar:hover {
    background-color: var(--dark-blue);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: 0.3s ease-in-out;
}

/* Responsividade do Formulário */
@media (max-width: 1100px) {
    .section-atendimento {
        display: block;
        text-align: center;
        gap: 20px;
    }

    .form-area {
        width: 100%;
        max-width: 500px;
    }
}

/* -- PUBLIC SITE RESTORATION (Footer, Services, Extras) -- */

/* Footer Structure */
footer {
    background-color: var(--dark-blue);
    color: #fff;
    padding-top: 4rem;
    padding-bottom: 2rem;
    font-family: 'Open Sans', sans-serif;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--gray-accent);
}

.footer-logo-img {
    max-width: 180px;
    margin-bottom: 15px;
}

.footer-about p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-nav-links ul li {
    margin-bottom: 10px;
}

.footer-nav-links ul li a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-nav-links ul li a:hover {
    color: var(--gray-accent);
    padding-left: 5px;
}

.footer-contact p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-map iframe {
    border-radius: 8px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.social-links a:hover img {
    transform: translateY(-5px);
}

/* Services Description Section */
.descricao-servicos {
    padding: 4rem 10%;
    background-color: var(--bg-light);
}

.descricao-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.item-descricao {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    /* Hidden state managed by .hidden class */
    transition: all 0.6s ease;
}

.item-descricao.direita {
    flex-direction: row-reverse;
}

.img-descricao {
    flex: 1;
    display: flex;
    justify-content: center;
}

.img-descricao img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
}

.texto-descricao {
    flex: 1.2;
}

.texto-descricao h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.texto-descricao p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

/* Mobile Responsiveness for Services & Footer */
@media (max-width: 768px) {
    .item-descricao, 
    .item-descricao.direita {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    #hero {
        grid-template-columns: 1fr;
        padding: 4rem 7%;
        text-align: center;
        min-height: auto;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        align-items: center;
    }

    .hero-image {
        display: none;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

/* Cookie Banner */
.cookie-banner-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 20px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    border-left: 5px solid var(--primary-blue);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-main);
}

.btn-cookie {
    background-color: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-cookie:hover {
    background-color: var(--dark-blue);
}

.hidden-cookie {
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
}

/* Chat Trigger (WhatsApp) */
.chat-trigger {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.chat-trigger:hover {
    transform: scale(1.1);
}

.chat-trigger img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}
