/* CORE VARIABLES */
:root {
    --color-gold: #ceb36b;
    --color-gold-hover: #b89e5a;
    --color-dark: #2a3538;
    --color-white: #ffffff;
    --color-bg: #0f1112;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
}

body {
    background-color: var(--color-bg);
    color: var(--color-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
}

p {
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 300;
}

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

ul {
    list-style: none;
}

/* CANVAS BACKGROUND */
#fixed-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 60% 50%, #1f2a2e 0%, #000000 100%);
    pointer-events: none !important;
}

/* UTILITIES */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
    position: relative;
    z-index: 2;
}

.text-gold { color: var(--color-gold); }

.section-padding {
    padding: 100px 0;
    position: relative;
    background: transparent !important;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

/* HEADER & NAV */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    background: rgba(15, 17, 18, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 5%;
    z-index: 2;
    width: 350px;
    flex-shrink: 0;
}

.logo-bg-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    box-shadow: 20px 0 30px rgba(0,0,0,0.5);
}

.logo-wrapper img {
    height: 45px;
    position: relative;
    z-index: 5;
}

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

.main-nav a {
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-gold);
}

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

.nav-cta {
    padding-right: 5%;
}

/* HAMBURGER BTN */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Above overlay */
    padding: 0;
    margin-right: 20%;
}
.hamburger-btn span {
    width: 30px;
    height: 3px;
    background: var(--color-white);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}
.hamburger-btn.active span:nth-child(1) { transform: rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.hamburger-btn.active span:nth-child(3) { transform: rotate(-45deg); }

/* MOBILE NAV OVERLAY */
.mobile-nav-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(10, 12, 14, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.close-mobile-nav {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 3rem;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: color 0.3s;
}
.close-mobile-nav:hover { color: var(--color-gold); }
.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.mobile-nav-links {
    list-style: none;
    text-align: center;
}
.mobile-nav-links li { margin: 1.5rem 0; }
.mobile-link {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.mobile-link:hover { color: var(--color-gold); }

/* BUTTONS */
.btn {
    display: inline-block;
    background: var(--color-gold);
    color: #000;
    padding: 1.2rem 3rem;
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(206, 179, 107, 0.15);
    border: none;
    text-align: center;
}

.btn:hover {
    transform: translateY(-5px) scale(1.02);
    background: var(--color-gold-hover);
    box-shadow: 0 15px 30px rgba(206, 179, 107, 0.4);
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 700px;
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.hero-image-wrapper {
    position: absolute;
    right: 5%;
    bottom: 0;
    height: 85vh;
    max-height: 800px;
    z-index: 1;
    pointer-events: none;
}

.hero-image {
    height: 100%;
    object-fit: contain;
    object-position: bottom right;
    filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.5));
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 20%);
    mask-image: linear-gradient(to top, transparent 0%, black 20%);
}

/* FLOATING TAGS */
.hero-tags {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.floating-tag {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(206, 179, 107, 0.3);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
}

.floating-tag::before {
    content: '';
    display: inline-block;
    width: 20px; height: 20px; 
    background: var(--color-gold); 
    border-radius: 50%; z-index: 2; 
    box-shadow: 0 0 15px rgba(206,179,107,0.5);
    flex-shrink: 0;
}

.tag-1 { top: 25%; left: -350px; }
.tag-2 { top: 45%; left: -450px; }
.tag-3 { bottom: 30%; left: -300px; }
.tag-4 { top: 15%; left: -250px; }

/* COMPARISON */
.comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
}

.comp-col { padding: 4rem; }

.comp-col.provance {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(to bottom, rgba(206, 179, 107, 0.05), transparent);
}

.comp-list li {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    display: flex;
    gap: 15px;
    color: rgba(255, 255, 255, 0.9);
}

/* PILARES GESTÃO */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.pillar-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    padding: 3rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.pillar-card:hover {
    border-color: var(--color-gold);
    background: rgba(206, 179, 107, 0.05);
    transform: translateY(-5px);
}

.pillar-number {
    font-size: 4rem;
    opacity: 0.1;
    font-weight: 700;
    position: absolute;
    top: 10px;
    right: 20px;
}

/* DIAGNÓSTICO E SERVIÇOS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--color-gold);
    background: rgba(0,0,0,0.5);
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
}

/* DNA & LIDERANÇA */
.dna-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.dna-image img {
    width: 100%;
    border-radius: 8px;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 20%);
    mask-image: linear-gradient(to top, transparent 0%, black 20%);
}

.mission-box {
    background: rgba(206, 179, 107, 0.05);
    border-left: 3px solid var(--color-gold);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* REVIEWS */
.reviews-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.review-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 8px;
    width: calc(33.333% - 20px);
    min-width: 300px;
}

.stars { color: var(--color-gold); margin-bottom: 1rem; letter-spacing: 2px;}

/* MODAL FORMS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: rgba(20, 25, 28, 0.95);
    border: 1px solid rgba(206, 179, 107, 0.3);
    border-radius: 12px;
    width: 90vw;
    max-width: 800px;
    height: 80vh;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(40px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 2rem;
    color: var(--color-gold);
    cursor: pointer;
    background: rgba(0,0,0,0.8);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    z-index: 9999;
}
.close-modal:hover { color: var(--color-white); }

.form-group {
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
}

.modal-subtitle {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    text-align: center;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .modal-subtitle { white-space: normal; }
    .modal-card { padding: 2rem 1.5rem; height: 85vh; width: 95vw; }
}

.diagnostic-tag {
    background: rgba(206,179,107,0.1);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid var(--color-gold);
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.3s;
}
.diagnostic-tag:hover {
    background: var(--color-gold);
    color: var(--color-black);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 16px !important; /* Previne auto-zoom no iOS Safari */
    outline: none;
    transition: border-color 0.3s;
    -webkit-appearance: none;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--color-gold);
}

/* CUSTOM CURSOR */
#cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 1px solid var(--color-gold);
    background: rgba(206, 179, 107, 0.2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    display: none;
}

@media (hover: none) { #cursor-follower { display: none !important; } }
@media (min-width: 1025px) { #cursor-follower { display: block; } }

/* STATS BAR */
.stats-bar {
    padding: 50px 0;
    border-top: 1px solid rgba(206, 179, 107, 0.15);
    border-bottom: 1px solid rgba(206, 179, 107, 0.15);
    background: linear-gradient(180deg, rgba(206,179,107,0.03) 0%, transparent 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
    font-weight: 500;
}

.results-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 30px 0 0;
}

.result-tag {
    background: rgba(206,179,107,0.08);
    border: 1px solid rgba(206,179,107,0.25);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-tag::before {
    content: '\2713';
    color: var(--color-gold);
    font-weight: 700;
}

/* FLOATING WHATSAPP */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    z-index: 999;
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 2px solid white;
}

.floating-wa:hover {
    transform: scale(1.1);
}

.floating-wa svg {
    width: 35px;
    height: 35px;
    fill: white;
}

@media (max-width: 768px) {
    .floating-wa {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }

    .floating-wa svg {
        width: 30px;
        height: 30px;
    }
}

/* RESPONSIVENESS */
@media (max-width: 1024px) {
    .hero-image-wrapper { width: 50%; opacity: 0.8; right: -5%; }
    .pillars-grid { grid-template-columns: 1fr 1fr; }
    .comparison-table { grid-template-columns: 1fr; }
    .dna-grid { grid-template-columns: 1fr; }
    .hero-tags { transform: scale(0.8); right: 20%; }
    .tag-3, .tag-4 { display: none; }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-wrapper { width: 62% !important; }
    .hamburger-btn { display: flex; }
    .main-nav, .nav-cta { display: none; }
    .hero { flex-direction: column; justify-content: center; text-align: center; padding-top: 100px; height: auto; }
    .hero-content { margin-top: 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero-image-wrapper { position: relative; width: 100%; height: 50vh; opacity: 1; right: auto; margin-top: 2rem;}
    .hero-tags { transform: scale(0.65); right: auto; left: 0%; z-index: 10; pointer-events: none;}
    .tag-1 { top: 35%; left: -25%; right: auto; }
    .tag-2 { top: 50%; left: auto; right: -25%; }
    .tag-3 { display: flex !important; bottom: 5%; left: -30%; right: auto; }
    .tag-4 { display: flex !important; top: 65%; left: auto; right: -25%; }
    .pillars-grid { grid-template-columns: 1fr; }
    .review-card { width: 100%; }
    .comp-col { padding: 2rem; }
    .modal-card { padding: 3rem 1.5rem 1.5rem 1.5rem; height: auto; max-height: 90vh; width: 95vw; }
    .form-group input, .form-group select { padding: 0.8rem; margin-bottom: 5px; } /* Compress to fit */
    .form-group { margin-bottom: 0.8rem; }
    .close-modal { top: 10px; right: 10px; font-size: 2.2rem; }
    .section-padding { padding: 60px 0; }
    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: 1.8rem; line-height: 1.2; } /* Force max 3 lines via smaller font */
    .jornada .timeline-container > div:first-child { left: 10px !important; transform: none !important; }
    .jornada .timeline-item { flex-direction: column !important; text-align: left !important; gap: 10px; margin-bottom: 3.5rem !important; align-items: flex-start !important; overflow: visible; }
    .jornada .timeline-item > div:empty { display: none !important; }
    .jornada .timeline-item > div { width: 100% !important; padding: 0 0 0 40px !important; text-align: left !important; }
    .jornada .timeline-item > .timeline-dot { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin-left: 0; box-shadow: 0 0 10px rgba(206,179,107,0.5); }
    .jornada .timeline-item h3 { font-size: 1.15rem; }
    .jornada .timeline-item p { margin-top: 8px; }
}
