/* =========================================
   VARIÁVEIS E RESET
   ========================================= */
:root {
    --color-primary: #0a2540; /* Azul Marinho Profundo */
    --color-secondary: #c5a059; /* Dourado Elegante */
    --color-secondary-hover: #b08d4b;
    --color-text: #334155;
    --color-bg: #f8fafc;
    --color-white: #ffffff;
    --color-light-gray: #e2e8f0;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilitários */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.text-center { text-align: center; }
.text-justify { text-align: justify; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
    margin: 10px auto 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-secondary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

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

/* Animação Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   HEADER
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-white);
    font-weight: 700;
}

.logo span {
    color: var(--color-secondary);
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--color-light-gray);
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-white);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-white);
    transition: var(--transition);
}

/* =========================================
   HERO SECTION
   ========================================= */
#hero {
    height: 100vh;
    /* IMAGEM DO ESCRITÓRIO AQUI */
    background: linear-gradient(rgba(10, 37, 64, 0.85), rgba(10, 37, 64, 0.7)), url('Gemini_Generated_Image_n7giv9n7giv9n7gi.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-credentials {
    font-size: 0.9rem;
    color: var(--color-secondary);
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.badge {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* =========================================
   SERVIÇOS
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--color-secondary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: #64748b;
    font-size: 0.95rem;
}

.service-cta {
    margin-top: 50px;
    text-align: center;
}

/* =========================================
   SOBRE
   ========================================= */
#sobre {
    background-color: var(--color-white);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    /* Fix para evitar que imagens verticais estourem o layout */
    max-height: 600px;
    overflow: hidden;
    border-radius: 8px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    filter: grayscale(20%);
    transition: var(--transition);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image:hover img {
    filter: grayscale(0%);
}

/* Linha do Tempo Visual */
.timeline {
    margin-top: 30px;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--color-light-gray);
}

.timeline-item {
    margin-bottom: 25px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    border: 2px solid var(--color-white);
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin: 5px 0;
}

.timeline-content p {
    font-size: 0.9rem;
    color: #64748b;
}

.about-details {
    margin-top: 20px;
    font-style: italic;
    color: #64748b;
}

/* =========================================
   DIFERENCIAIS
   ========================================= */
#diferenciais {
    background-color: var(--color-primary);
    color: var(--color-white);
}

#diferenciais .section-title {
    color: var(--color-white);
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.diff-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
}

.diff-icon {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.diff-card h3 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.diff-card p {
    font-size: 0.9rem;
    color: var(--color-light-gray);
}

/* =========================================
   DEPOIMENTOS
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: var(--color-light-gray);
    z-index: 0;
}

.testimonial-text {
    position: relative;
    z-index: 1;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--color-text);
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-primary);
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--color-secondary);
}

/* =========================================
   FAQ
   ========================================= */
#faq {
    background-color: var(--color-bg);
}

.accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.accordion-item {
    background-color: var(--color-white);
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--color-primary);
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #f1f5f9;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    background-color: #fff;
}

.accordion-content p {
    padding-bottom: 20px;
    color: #64748b;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* =========================================
   CONTATO
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info-card {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 40px;
    border-radius: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-light-gray);
    border-radius: 4px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

/* Toast de sucesso */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #10b981;
    color: white;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 1001;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
}

#toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: var(--color-primary);
    color: var(--color-light-gray);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    margin: 0 10px;
    font-size: 0.9rem;
}

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

.disclaimer {
    font-size: 0.8rem;
    margin-top: 20px;
    opacity: 0.6;
}

/* Botão Flutuante WhatsApp */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.float-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* =========================================
   RESPONSIVIDADE
   ========================================= */
@media (max-width: 768px) {
    /* garantir que nada escape da viewport */
    html,
    body {
        overflow-x: hidden;
    }

    /* header deve ser sólido no mobile para não deixar o hero aparecer */
    header {
        background-color: var(--color-primary) !important;
        backdrop-filter: none;
    }

    /* hero sem fixed para evitar bugs e overflow móveis */
    #hero {
        background-attachment: scroll;
    }

    /* container ocupa toda a largura e respeita padding */
    .container {
        width: 100%;
        padding: 0 15px;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--color-primary);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 80px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .about-wrapper, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info-card {
        order: -1;
    }
}