/* =========================================
   CSS VARIABLES & RESET
========================================= */
:root {
    --color-primary: #0B203E; /* Azul Marinho Escuro / Navy */
    --color-primary-light: #153360;
    --color-secondary: #B8860B; /* Dourado Clássico */
    --color-secondary-hover: #9c7109;
    
    --color-bg-base: #FFFFFF; /* Branco */
    --color-bg-cream: #FDFBF7; /* Bege/Creme muito suave */
    
    --color-text-main: #2C3E50; /* Cinza Ardósia / Escuro */
    --color-text-light: #596A7A;
    --color-white: #FFFFFF;
    
    --font-heading: 'Merriweather', serif; /* Clássica, Prestígio */
    --font-body: 'Lato', sans-serif; /* Ultra-legível */
    
    --transition: all 0.3s ease;
    --shadow-soft: 0 5px 20px rgba(11, 32, 62, 0.08);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.gold-text { color: var(--color-secondary); font-weight: 700; }

/* =========================================
   TYPOGRAPHY
========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.25;
    color: var(--color-primary);
}

.text-center { text-align: center; }

.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.6rem;
    letter-spacing: -0.5px;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
    margin: 1.5rem auto;
}

.divider-left {
    margin: 1.5rem 0;
}

.section-title p {
    color: var(--color-text-light);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
}

/* =========================================
   LAYOUT & UTILITIES
========================================= */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

.section {
    padding: 6rem 0;
}

.bg-white { background-color: var(--color-bg-base); }
.bg-cream { background-color: var(--color-bg-cream); }
.bg-navy { background-color: var(--color-primary); color: var(--color-white); }
.bg-navy h2 { color: var(--color-white); }
.bg-navy p { color: rgba(255, 255, 255, 0.85); }

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px; /* Slight curve, mostly straight */
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: 1px 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);
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.05rem;
}

/* =========================================
   HEADER
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-soft);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    flex-direction: column;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: 1px;
    line-height: 1;
}

.logo span {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--color-secondary);
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 4px;
}

.navbar-logo {
    height: 85px;
    object-fit: contain;
    transition: var(--transition);
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav a:not(.btn):hover {
    color: var(--color-secondary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient combining Navy and slight transparency */
    background: linear-gradient(to right, rgba(11, 32, 62, 0.85) 0%, rgba(11, 32, 62, 0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 4.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* =========================================
   CONSULTING SERVICES (GRID)
========================================= */
.services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.service-block {
    background-color: var(--color-bg-base);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 50px;
    border-radius: 4px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.service-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.block-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.block-header h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
}

.service-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.service-list li:last-child {
    margin-bottom: 0;
}

.service-list .icon {
    font-size: 1.5rem;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

.service-list .text {
    font-size: 1.1rem;
    color: var(--color-text-main);
    font-weight: 400;
}

/* =========================================
   LOCATION & TRUST
========================================= */
.location-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.location-text h2 {
    font-size: 2.4rem;
}

.location-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.address-box {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--color-secondary);
    padding: 20px 25px;
    font-size: 1.1rem;
    color: var(--color-white);
    line-height: 1.6;
}

.address-box strong {
    color: var(--color-secondary);
    display: inline-block;
    margin-bottom: 5px;
}

.location-map .image-frame {
    border: 8px solid var(--color-white);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* =========================================
   TRIAGE FORM
========================================= */
.triage-wrapper {
    max-width: 850px;
    margin: 0 auto;
    background-color: var(--color-bg-base);
    padding: 60px;
    border-radius: 4px;
    box-shadow: var(--shadow-card);
    border-top: 4px solid var(--color-primary);
}

.triage-header h2 {
    font-size: 2.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid rgba(11, 32, 62, 0.15);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-main);
    transition: var(--transition);
    border-radius: 2px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 1px var(--color-secondary);
}

/* =========================================
   FOOTER
========================================= */
.footer {
    padding: 40px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 0.9rem;
}

/* =========================================
   FLOATING WHATSAPP
========================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25D366; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.floating-whatsapp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 992px) {
    .services-container { grid-template-columns: 1fr; }
    .location-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .hero-content h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .navbar-logo {
        height: 55px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg-base);
        padding: 20px 0;
        box-shadow: var(--shadow-soft);
    }
    
    .nav.active { display: block; }
    .nav ul { flex-direction: column; gap: 20px; }
    .mobile-menu-btn { display: flex; }
    
    .hero {
        min-height: 100vh;
    }

    .hero-content h1 { 
        font-size: 2.2rem; 
        word-break: break-word;
        hyphens: auto;
    }

    .hero-content p {
        font-size: 1.05rem;
    }
    
    .triage-wrapper { padding: 40px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .service-block { padding: 30px 20px; }

    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}


/* Custom Modal */
.custom-modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(10, 25, 47, 0.7); backdrop-filter: blur(5px); justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.custom-modal.show { display: flex; opacity: 1; }
.modal-content { background-color: #F8F9FA; padding: 0; border-radius: 8px; box-shadow: 0 15px 40px rgba(0,0,0,0.2); width: 90%; max-width: 450px; text-align: center; overflow: hidden; transform: translateY(20px); transition: transform 0.3s ease; }
.custom-modal.show .modal-content { transform: translateY(0); }
.modal-header { background-color: #0A192F; padding: 2rem 1rem; border-bottom: 4px solid #C6A87C; }
.icon-success { display: inline-block; width: 60px; height: 60px; background-color: #C6A87C; color: #0A192F; border-radius: 50%; font-size: 36px; line-height: 60px; font-weight: bold; box-shadow: 0 0 0 8px rgba(198, 168, 124, 0.2); }
.modal-body { padding: 2rem; color: #4A5568; }
.modal-body h3 { font-family: 'Merriweather', serif; color: #0A192F; font-size: 1.8rem; margin-bottom: 1rem; }
.modal-body p { font-family: 'Lato', sans-serif; line-height: 1.6; }
.modal-footer { padding: 0 2rem 2rem 2rem; }
.modal-footer .btn { width: 100%; font-size: 1.1rem; padding: 12px 0; }
