/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Premium Blue Palette */
    --primary-blue: #0056b3;
    --dark-blue: #002d5e;
    --light-blue: #e6f0fa;
    --accent-cyan: #00b4d8;
    --text-main: #333333;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --whatsapp-green: #25D366;
    --whatsapp-hover: #128C7E;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-soft: 0 10px 30px rgba(0, 45, 94, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 86, 179, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--dark-blue);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

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

.text-blue {
    color: var(--primary-blue);
}

.highlight {
    color: var(--accent-cyan);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: none;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: white !important;
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 180, 216, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: 0.3s;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.text-based-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-drop {
    font-size: 2.2rem;
    color: var(--primary-blue);
    background: -webkit-linear-gradient(-45deg, var(--accent-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-cvd {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--primary-blue);
    line-height: 1;
}

.logo-desc {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dark-blue);
    font-weight: 600;
}

.nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-blue);
    position: relative;
}

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

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-blue);
    cursor: pointer;
}

/* Emergency Banner */
.emergency-banner {
    margin-top: 80px;
    background-color: #ff3b3b;
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.emergency-banner strong {
    font-weight: 700;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(0, 180, 216, 0.4));
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5), 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: rise 10s infinite ease-in-out;
}

.bubble-1 { width: 80px; height: 80px; left: 10%; top: 70%; animation-duration: 12s; }
.bubble-2 { width: 40px; height: 40px; left: 20%; top: 50%; animation-duration: 8s; animation-delay: 2s; }
.bubble-3 { width: 100px; height: 100px; left: 80%; top: 90%; animation-duration: 15s; }
.bubble-4 { width: 60px; height: 60px; left: 90%; top: 40%; animation-duration: 10s; animation-delay: 4s; }

@keyframes rise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-400px) scale(1.2); opacity: 0; }
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 86, 179, 0.1);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.hero-trust i {
    color: #ffb703;
    margin-right: 5px;
}

.hero-trust i.fa-check-circle {
    color: var(--primary-blue);
}

.hero-image {
    position: relative;
}

.shine-container {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.shine-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 10;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.glass-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    height: 500px;
    position: relative;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.floating-card strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark-blue);
}

.floating-card small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.top-card {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.bottom-card {
    bottom: 20px;
    right: 20px;
    animation-delay: 2s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Features Setup */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: left;
    transition: 0.3s;
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--accent-cyan);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

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

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Services */
.bg-light {
    background-color: var(--bg-light);
}

.services-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-box {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
    group: hover;
}

.service-box:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.service-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-highlight {
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.2);
}

.diferencial-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-cyan);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10;
}
.service-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,45,94,0.8), transparent);
}

.service-info {
    padding: 25px;
}

.service-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.service-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Before and After Carousel */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    padding: 10px;
}

.ba-card {
    position: relative;
    background: var(--bg-white);
    border-radius: 20px;
    padding: 15px;
    box-shadow: var(--shadow-soft);
}

.portfolio-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.ba-images {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 10px;
    cursor: ew-resize; /* Allows user to know they can drag */
}

.ba-img-left, .ba-img-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.ba-img-right {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.ba-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: white;
    cursor: ew-resize;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.ba-slider-handle::after {
    content: '< >';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    border: 3px solid white;
}

.ba-label {
    position: absolute;
    top: 30px;
    padding: 5px 15px;
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 5;
}

.before-label { left: 40px; }
.after-label { right: 40px; }

.ba-caption {
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 1.1rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: var(--shadow-soft);
    color: var(--primary-blue);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

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

/* Contact and Map Section */
.container-flex {
    display: flex;
    gap: 60px;
    align-items: center;
}

.contato-info {
    flex: 1;
}

.contato-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contato-info p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-list {
    list-style: none;
    margin-bottom: 40px;
}

.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-main);
}

.contact-list i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-top: 3px;
}

.contato-map {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    padding: 10px;
    background: white;
}

.contato-map iframe {
    border-radius: 10px;
}

.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(0, 180, 216, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 180, 216, 0); }
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: white;
    padding: 80px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    color: #a0aec0;
    max-width: 300px;
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0aec0;
}

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

.footer-contact p {
    color: #a0aec0;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.social-links a:hover {
    background: var(--accent-cyan);
}

.footer-bottom {
    background: #001f42;
    padding: 20px 0;
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
}

/* Floating WhatsApp */
.float-wpp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: var(--whatsapp-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: 0.3s;
}

.float-wpp:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.1);
}

.wpp-tooltip {
    position: absolute;
    right: 80px;
    background: white;
    color: var(--text-main);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    white-space: nowrap;
}

.float-wpp:hover .wpp-tooltip {
    opacity: 1;
    right: 85px;
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    position: relative;
    border-top: 4px solid #ffb703;
}

.review-stars {
    color: #ffb703;
    font-size: 0.9rem;
}

.review-text {
    font-style: italic;
    color: var(--text-light);
    margin-top: 15px;
    font-size: 0.95rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.review-author {
    font-weight: 700;
    color: var(--dark-blue);
    font-size: 1.05rem;
}

/* Micro Animation Classes */
.pop-animation {
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 { font-size: 2.8rem; }
    
    .hero-content p { max-width: 100%; margin: 0 auto 30px; }
    
    .hero-actions { justify-content: center; }
    
    .hero-trust { justify-content: center; }

    .top-card { left: 10px; }
    .bottom-card { right: 10px; }
    
    .container-flex { flex-direction: column; }
}

@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav.active { display: block; }
    
    .nav-list { flex-direction: column; gap: 15px; text-align: center; }
    
    .mobile-toggle { display: block; }
    .btn-nav { display: none; }
    
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 20px auto; }
    .social-links { justify-content: center; }
}
