/* Custom Properties */
:root {
    --color-background: #0A0A0A;
    --color-surface: #161616;
    --color-surface-alt: #242424;
    --color-text: #FFFFFF;
    --color-text-muted: #B8B8B8;
    --color-brand: #F97316;
    --color-brand-hover: #EA580C;
    --color-on-brand: #0A0A0A;
    --color-accent-red: #DC2626;
    --color-border: #343434;
    --color-whatsapp: #25D366;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    --transition: all 0.3s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--color-brand);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-muted);
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

ul,
ol {
    list-style-position: inside;
    margin-bottom: var(--spacing-md);
}

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

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

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-brand), transparent);
    transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 10px var(--color-brand);
}

.section.is-visible::before {
    width: 80%;
}

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

/* Accessibility */
.pular-navegacao {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-brand);
    color: var(--color-on-brand);
    padding: 8px;
    z-index: 1000;
    transition: top 0.2s;
}

.pular-navegacao:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

/* Buttons */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-brand);
    color: var(--color-on-brand);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-align: center;
    min-height: 44px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Accessible touch target */
}

.btn-cta:hover,
.btn-cta:focus {
    background-color: var(--color-brand-hover);
    color: var(--color-on-brand);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.8), 0 0 40px rgba(249, 115, 22, 0.4);
    transform: translateY(-3px) scale(1.02);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    min-height: 44px;
}

.btn-link:hover {
    color: var(--color-brand-hover);
}

/* Header */
.header {
    background-color: #000000;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-brand);
}

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.9375rem;
}

.nav-list a:hover {
    color: var(--color-brand);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    left: 0;
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.menu-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--color-background);
    background-image: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
    padding: 6rem 0;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 1;
    animation: fadeInContent 0.8s ease-out forwards;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.hero-actions {
    margin-bottom: 2rem;
}

.hero-helper {
    font-size: 1rem;
    margin-top: 0.75rem;
    color: var(--color-text-muted);
}

.hero-info {
    font-size: 1rem;
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Sintomas */
.sintomas-list {
    list-style: none;
    margin-bottom: 2rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.sintomas-list li {
    padding: 1.25rem;
    border-radius: 8px;
    color: var(--color-text);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.sintomas-list li::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 60%, var(--color-accent-red) 100%);
    animation: spinBorder 2.5s linear infinite;
    z-index: -2;
}

.sintomas-list li::after {
    content: '';
    position: absolute;
    inset: 2px;
    background-color: var(--color-surface);
    border-radius: 6px;
    z-index: -1;
}

@keyframes spinBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sintomas-alerta {
    font-weight: 500;
    color: var(--color-text);
    background-color: rgba(220, 38, 38, 0.1);
    padding: 1rem;
    border-radius: 4px;
}

/* Abordagem */
.abordagem-content p {
    font-size: 1.125rem;
}

/* Serviços */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.servico-card {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--color-brand);
    transition: transform 0.3s ease;
}

.servico-card:hover {
    transform: translateY(-5px);
}

.servico-card h3 {
    margin-bottom: 1rem;
}

.tipos-transmissao {
    background-color: var(--color-surface-alt);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.section-cta-wrap {
    text-align: center;
}

/* Como Funciona */
.passos-list {
    list-style: none;
    counter-reset: passo;
    display: grid;
    gap: 1.5rem;
}

.passos-list li {
    position: relative;
    padding-left: 4rem;
    counter-increment: passo;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.passos-list li::before {
    content: counter(passo);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: var(--color-brand);
    color: var(--color-on-brand);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.passos-list strong {
    color: var(--color-text);
    display: block;
    margin-bottom: 0.25rem;
}

/* Localização */
.endereco-info {
    font-style: normal;
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.endereco-info p {
    margin-bottom: 0.5rem;
}

.endereco-info p:last-child {
    margin-bottom: 0;
}

.endereco-info strong {
    color: var(--color-text);
}

/* FAQ */
.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary h3 {
    margin: 0;
    font-size: 1.125rem;
    padding-right: 2rem;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-brand);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 1.25rem 1.25rem;
    margin: 0;
}

/* Final CTA */
.final-cta {
    text-align: center;
    background-color: var(--color-brand);
    color: var(--color-on-brand);
}

.final-cta h2,
.final-cta p {
    color: var(--color-on-brand);
}

.final-cta h2 {
    margin-bottom: 1rem;
}

.final-cta .btn-cta {
    background-color: var(--color-on-brand);
    color: var(--color-brand);
    margin-top: 1.5rem;
}

.final-cta .btn-cta:hover {
    background-color: var(--color-surface);
    color: var(--color-brand);
}

/* Footer */
.footer {
    background-color: var(--color-surface-alt);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--color-border);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.footer-copy {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.875rem;
    padding-bottom: 70px;
    /* Space for mobile CTA */
}


/* Media Queries */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background-color: var(--color-surface);
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid transparent;
    }

    .nav-menu.active {
        max-height: 400px;
        border-bottom-color: var(--color-border);
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--color-border);
    }

    .header-cta {
        display: none;
    }

    .hero {
        padding: 4rem 0;
    }

    .passos-list li {
        padding-left: 0;
        padding-top: 3.5rem;
    }

    .passos-list li::before {
        top: 0;
        transform: none;
    }
}

@media (min-width: 769px) {
    .footer-copy {
        padding-bottom: 0;
    }
}

/* Animações e Efeitos (Premium) */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

@keyframes pulseBrand {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6);
    }
    20% {
        box-shadow: 0 0 0 12px rgba(249, 115, 22, 0);
    }
    40% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6);
    }
    60% {
        box-shadow: 0 0 0 12px rgba(249, 115, 22, 0);
    }
    80%, 100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

.btn-cta {
    animation: pulseBrand 1.4s infinite;
}

.header-cta {
    animation: none;
}

.header {
    transition: background-color 0.3s ease;
}

.header-container {
    transition: height 0.3s ease;
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.header.scrolled .header-container {
    height: 60px;
}

/* Floating WhatsApp Button */
@keyframes pulseWhatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    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 {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-whatsapp);
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform 0.3s ease;
    animation: pulseWhatsapp 2s infinite;
}

.floating-whatsapp svg {
    width: 35px;
    height: 35px;
    fill: #FFF;
}

.whatsapp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-accent-red);
    color: white;
    font-size: 13px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 2px solid var(--color-whatsapp);
    z-index: 2;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: #FFF;
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 90px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

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

/* Image Grids and Utilities */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.blend-image {
    mix-blend-mode: lighten;
}

.rounded-shadow {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
}

.abordagem-grid,
.localizacao-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {

    .abordagem-grid,
    .localizacao-grid {
        grid-template-columns: 1fr 1fr;
    }
}