/* ==========================================================================
   DATAECON - Global Styles
   ========================================================================== */

:root {
    --color-bg: #191919;
    --color-surface: #1e1e1e;
    --color-surface-alt: #111111;
    --color-primary: #00c1c6;
    --color-secondary: #008491;
    --color-text: #ffffff;
    --color-muted: #b3b3b3;
    --gradient-primary: linear-gradient(135deg, #00c1c6, #008491);

    --nav-height: 72px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-pill: 999px;

    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Exo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    background-color: var(--color-bg);
    color: var(--color-text);
    text-rendering: optimizeLegibility;
}

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

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

a:hover {
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

button {
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    position: relative;
}

.section {
    padding: 4.5rem 0;
}

.section-title {
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section-heading {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.section-heading span {
    color: var(--color-primary);
}

.section--muted {
    background: #141414;
}

.section--surface {
    background: var(--color-surface);
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(0);
    transition: background-color var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base), transform var(--transition-fast);
}

.site-header-inner {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(25, 25, 25, 0.96);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo img {
    height: 50px;
}

.nav-logo-text {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    font-size: 0.9rem;
}

.nav-links a {
    color: var(--color-muted);
    font-weight: 400;
    position: relative;
    padding-bottom: 0.15rem;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-fast);
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-header.is-scrolled {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(18px);
    background: rgba(10, 10, 10, 0.9);
}

/* Hamburger */
.nav-toggle {
    display: none;
    position: relative;
    width: 36px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    position: absolute;
    left: 4px;
    right: 4px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-text);
    transition: transform var(--transition-fast), opacity var(--transition-fast), top var(--transition-fast), bottom var(--transition-fast);
}

.nav-toggle span:nth-child(1) {
    top: 8px;
}

.nav-toggle span:nth-child(2) {
    top: 15px;
}

.nav-toggle span:nth-child(3) {
    bottom: 8px;
}

.nav-toggle.is-active span:nth-child(1) {
    top: 15px;
    transform: rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    bottom: 15px;
    transform: rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
}

.btn--primary {
    background: var(--gradient-primary);
    color: #191919;
    box-shadow: 0 14px 35px rgba(0, 193, 198, 0.35);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 45px rgba(0, 193, 198, 0.5);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: rgba(0, 193, 198, 0.6);
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background: rgba(0, 193, 198, 0.08);
    border-color: var(--color-primary);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.06);
}

.btn--small {
    padding-inline: 1.2rem;
    padding-block: 0.55rem;
    font-size: 0.8rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    padding-top: var(--nav-height);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 193, 198, 0.18), transparent 55%),
        radial-gradient(circle at 85% 80%, rgba(0, 132, 145, 0.22), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr);
    align-items: center;
    padding: 3.5rem 0 4.5rem;
}

.hero-content {
    max-width: 620px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--color-muted);
    max-width: 32rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-meta-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.65;
}

/* ==========================================================================
   Serviços (Nossos Serviços)
   ========================================================================== */

.services-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

.service-card-link {
    display: block;
}

.service-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.6rem 1.8rem;
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-fast);
}

.service-card:hover,
.service-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.7);
    border-color: var(--color-secondary);
}

.service-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1.2rem;
    color: var(--color-primary);
}

.service-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.service-card-list {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.service-card-list span {
    display: block;
}

/* ==========================================================================
   Diferenciais
   ========================================================================== */

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

.feature-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.6rem 1.5rem 1.7rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-fast);
}

.feature-card:hover,
.feature-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.75);
    border-color: rgba(0, 193, 198, 0.5);
}

.feature-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 0.9rem;
    color: var(--color-primary);
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.feature-description {
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* ==========================================================================
   Sobre / Equipe
   ========================================================================== */

.about-subtitle {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: 2.2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.team-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.8rem 1.6rem 1.6rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-fast);
}

.team-card:hover,
.team-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.8);
    border-color: rgba(0, 193, 198, 0.4);
}

.team-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.team-photo-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 193, 198, 0.32), rgba(0, 132, 145, 0.5));
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 600;
    color: #191919;
}

.team-name {
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.team-role {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.team-bio {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.team-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    background: rgba(0, 193, 198, 0.12);
    border: 1px solid rgba(0, 193, 198, 0.7);
    color: var(--color-primary);
}

.team-links {
    display: flex;
    gap: 0.7rem;
    font-size: 0.85rem;
}

.team-links a {
    color: var(--color-muted);
}

.team-links a:hover,
.team-links a:focus-visible {
    color: var(--color-primary);
}

/* ==========================================================================
   Contato
   ========================================================================== */

.contact-section {
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 4.5rem;
}

.contact-subtitle {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

.contact-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-phone {
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.contact-phone span {
    color: var(--color-primary);
}

/* ==========================================================================
   Service Pages
   ========================================================================== */

.inner-page {
    padding-top: var(--nav-height);
}

.service-hero {
    padding: 4.5rem 0 3.5rem;
    background: radial-gradient(circle at 20% 0, rgba(0, 193, 198, 0.26), transparent 60%), #191919;
}

.service-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr);
    gap: 1.75rem;
}

.service-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.service-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.service-subtitle {
    font-size: 0.98rem;
    color: var(--color-muted);
    max-width: 34rem;
}

.service-meta {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.service-layout {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
}

.service-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr);
    gap: 2rem;
}

.service-list-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.service-list li + li {
    margin-top: 0.35rem;
}

.service-list strong {
    color: var(--color-primary);
    font-weight: 600;
}

.service-audience {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.service-cta {
    text-align: center;
    padding: 3rem 0 3.5rem;
    background: #141414;
}

.service-cta p {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: 1.7rem;
}

/* Back link on inner pages */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-muted);
}

.back-link svg {
    width: 14px;
    height: 14px;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--color-primary);
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #191919;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
    z-index: 9999;
    cursor: pointer;
    animation: whatsapp-pulse 1.8s infinite ease-in-out;
}

.whatsapp-float svg {
    width: 26px;
    height: 26px;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    bottom: 50%;
    transform: translateY(50%);
    background: #000000;
    color: #ffffff;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus-visible .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(50%) translateX(-2px);
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--color-surface-alt);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 2.4rem 0 2.1rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
}

.footer-logo {
    height: 40px;
}

.footer-text {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.footer-social {
    display: flex;
    gap: 0.9rem;
}

.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--color-muted);
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.footer-social a:hover,
.footer-social a:focus-visible {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(0, 193, 198, 0.12);
}

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767.98px) {
    .nav {
        position: fixed;
        inset-inline: 0;
        top: var(--nav-height);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(18px);
        padding: 1.25rem 1.5rem 1.4rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-base), transform var(--transition-base);
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
    }

    .nav-cta {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-toggle {
        display: block;
    }

    .site-header.nav-open .nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hero-inner {
        padding-top: 2.5rem;
        padding-bottom: 3.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .services-section,
    .section,
    .contact-section {
        padding-inline: 0;
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.4fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.4fr);
    }

    .service-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    }
}