/* == VARIABLES & BASE == */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #e0f2fe;
    --secondary: #1e293b;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --white: #ffffff;
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--primary-light);
    z-index: -1;
    border-radius: 4px;
}

.highlight-text {
    color: var(--primary);
}

.text-primary {
    color: var(--primary);
}

.mt-3 {
    margin-top: 1rem;
}

/* == TYPOGRAPHY == */
h1,
h2,
h3,
h4 {
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* == BUTTONS == */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn i {
    font-size: 1.1em;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

/* == NAVBAR == */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    /* Garante que os elementos nunca ficam sobrepostos ou demasiado colados */
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    white-space: nowrap;
}

.logo i {
    color: var(--primary);
    font-size: 1.2em;
}

.logo span {
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 30px;
    flex: 1;
    /* Permite que ocupe o espaço a mais do meio */
    justify-content: center;
    /* Centraliza entre o logo e o botão */
}

.nav-links a {
    color: var(--secondary);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

/* == HERO SECTION == */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    z-index: -2;
}

/* Subtle decorative shapes */
.hero-bg::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 40px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
    font-weight: 600;
}

.stat i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* == SERVICES SECTION == */
.services {
    background-color: var(--bg-alt);
}

.section-title {
    max-width: 600px;
    margin: 0 auto 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

/* == ABOUT SECTION == */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(45deg, var(--primary-light), var(--bg-alt));
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    /* Simulated clean space using gradients since we avoid placeholders */
    background-image:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.3) 0%, transparent 60%),
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: var(--shadow-md);
}

/* Glassmorphism box inside the "image" */
.glass-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-sm);
}

.glass-overlay h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.glass-overlay p {
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.about-list {
    margin-top: 30px;
}

.about-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    color: var(--secondary);
}

.about-list i {
    background: var(--primary-light);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

/* == CONTACT SECTION == */
.contact {
    background-color: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, var(--primary-light) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item .icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--secondary);
}

.contact-item p {
    margin-bottom: 0;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary);
    font-size: 0.95rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    background-color: #f8fafc;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

textarea {
    resize: vertical;
}

/* == FOOTER == */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0.9;
}

.footer-logo i {
    color: var(--primary);
}

.footer-logo span {
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* == FLOATING WHATSAPP == */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    animation: bounce 2s infinite;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    animation: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

/* == ANIMATIONS == */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.6s;
}

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* == RESPONSIVE DESIGN == */
@media (max-width: 992px) {

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-main);
        flex-direction: column;
        padding: 100px 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: 0.4s ease-in-out;
        z-index: -1;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* == EXTENDED CONTACT FORM STYLES == */
.form-section-title {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}

.mt-4 {
    margin-top: 2rem;
}

.d-block {
    display: block;
}

.form-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.file-input {
    background-color: var(--white);
    padding: 10px 15px;
    border: 1px dashed #cbd5e1;
    cursor: pointer;
    width: 100%;
}

.file-input::file-selector-button {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    margin-right: 15px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.file-input::file-selector-button:hover {
    background-color: var(--primary);
    color: var(--white);
}

@media (max-width: 768px) {
    .form-row-3 {
        grid-template-columns: 1fr;
    }
}

/* == CUSTOM CURSOR & BUBBLE TRAIL (Rastro Limpeza) == */
body {
    /* Cursor em forma de pequeno diamante - Agora com contorno escuro para máximo contraste */
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%230ea5e9" stroke="%230284c7" stroke-width="2" stroke-linejoin="round" d="M12 2l2.4 7.6L22 12l-7.6 2.4L12 22l-2.4-7.6L2 12l7.6-2.4z"/></svg>') 12 12, auto;
}

a,
button,
.btn,
select,
input,
textarea,
.file-input::file-selector-button,
label {
    /* Variante interativa - Cor mais intensa e contorno mais forte */
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%230284c7" stroke="%23075985" stroke-width="2.5" stroke-linejoin="round" d="M12 2l2.4 7.6L22 12l-7.6 2.4L12 22l-2.4-7.6L2 12l7.6-2.4z"/></svg>') 12 12, pointer !important;
}

/* Bolhas / Espuma do Rato */
.clean-bubble {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    /* Gradiente mais visível com centro brilhante e azul suave */
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 1), rgba(14, 165, 233, 0.4));
    border: 1.5px solid rgba(2, 132, 199, 0.8);
    /* Borda mais escura para contraste */
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5), inset 0 0 5px rgba(255, 255, 255, 0.8);
    z-index: 99999;
    animation: bubbleFloatFade 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes bubbleFloatFade {
    0% {
        opacity: 1;
        /* Começa totalmente opaca para melhor visibilidade */
        transform: translate(-50%, -50%) scale(0.6);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -400%) scale(1.6) rotate(15deg);
    }
}