/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* =========================
   VARIÁVEIS
========================= */
:root {
    --bg-main: #1c1c1c;
    --bg-panel: rgba(255, 255, 255, 0.04);
    --bg-panel-hover: rgba(255, 255, 255, 0.06);
    --border-soft: rgba(44, 140, 122, 0.15);
    --border-strong: rgba(44, 140, 122, 0.28);
    --primary: #2C8C7A;
    --primary-dark: #236d60;
    --text-main: #ffffff;
    --text-soft: #d8d8d8;
    --text-muted: #bfc7c5;
    --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.16);
    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: 920px;
}

/* =========================
   BASE
========================= */
body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("fundo.png");
    background-size: cover;
    background-position: center;
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(44, 140, 122, 0.10), transparent 30%),
        radial-gradient(circle at bottom right, rgba(44, 140, 122, 0.08), transparent 25%);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 18px;
}

main {
    padding-bottom: 18px;
}

p {
    color: var(--text-soft);
    font-size: 14px;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    color: var(--text-main);
}

/* =========================
   HEADER
========================= */
header {
    padding: 18px 0 10px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.logo img {
    width: 320px;
}

nav ul {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    padding: 9px 14px;
    border-radius: 999px;
    transition: 0.28s ease;
}

nav a:hover,
nav a.active {
    background: var(--primary);
    color: #ffffff;
}

/* =========================
   BOTÕES
========================= */
.cs-btn,
.btn-primary,
.btn-plano,
.btn-portfolio,
.btn-whatsapp,
.btn-enviar,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: #101817;
    border: none;
    padding: 9px 18px;
    font-size: 14px;
    border-radius: 999px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.28s ease;
}

.cs-btn:hover,
.btn-primary:hover,
.btn-plano:hover,
.btn-portfolio:hover,
.btn-whatsapp:hover,
.btn-enviar:hover,
button:hover {
    background: #ffffff;
    color: #111111;
    transform: translateY(-2px);
}

.btn-portfolio-disabled {
    background: rgba(255, 255, 255, 0.08);
    color: #bfc7c5;
    cursor: not-allowed;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.08);
}

/* =========================
   HERO
========================= */
.hero {
    text-align: center;
    padding: 36px 16px;
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(5px);
    margin-bottom: 18px;
    box-shadow: var(--shadow-soft);
}

.hero img {
    width: 205px;
    margin: 0 auto 18px;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 18px;
    color: var(--text-soft);
    font-size: 17px;
}

/* =========================
   BLOCOS GERAIS
========================= */
.servicos,
.sobre,
.contato,
.portfolio,
.planos,
.resultado,
.resultado-placeholder,
.speedtest-box,
.cta-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 20px;
    backdrop-filter: blur(6px);
    margin-bottom: 16px;
    box-shadow: var(--shadow-soft);
}

.servicos h1,
.sobre h1,
.contato h1,
.portfolio h1,
.planos h1 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin-bottom: 10px;
}

.servicos h2,
.sobre h2,
.contato h2,
.portfolio h2,
.planos h2,
.cta-box h2 {
    margin-bottom: 14px;
    font-size: 22px;
}

.contato-descricao,
.portfolio-descricao {
    max-width: 760px;
    font-size: 17px;
    color: var(--text-soft);
    margin: 0 auto;
}

.planos-topo,
.portfolio,
.contato,
.cta-box {
    text-align: center;
}

.planos-topo .contato-descricao,
.portfolio .portfolio-descricao,
.contato .contato-descricao {
    margin-bottom: 16px;
}

.sobre-content p + p {
    margin-top: 8px;
}

/* =========================
   UTILITÁRIOS
========================= */
.action-gap {
    margin-top: 18px;
}

.action-gap-lg {
    margin-top: 22px;
}

.center-content,
.center-content .sobre-content,
.center-content h1,
.center-content h2,
.center-content p {
    text-align: center;
}

/* =========================
   CARDS PADRÃO
========================= */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(44,140,122,0.12);
    border-radius: var(--radius-md);
    padding: 14px;
    transition: 0.28s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(44,140,122,0.3);
    background: var(--bg-panel-hover);
}

.card-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.card p,
.sobre p,
.resultado p,
.resultado-placeholder p,
.cta-box p {
    color: #d5d5d5;
}

/* =========================
   CONTATO
========================= */
.contato h1,
.contato h2 {
    text-align: center;
}

.contato-info {
    display: grid;
    gap: 8px;
    margin: 20px 0 16px;
}

.contato-info p {
    color: var(--text-soft);
    font-size: 16px;
}

.contato-info a {
    color: var(--text-main);
    transition: 0.28s ease;
}

.contato-info a:hover {
    color: var(--primary);
}

.contato-acoes {
    margin-top: 8px;
    margin-bottom: 6px;
}

.formulario {
    max-width: 720px;
    margin: 16px auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(44,140,122,0.18);
    border-radius: 12px;
    padding: 13px 15px;
    color: var(--text-main);
    outline: none;
    transition: 0.28s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aeb7b5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(44,140,122,0.4);
    box-shadow: 0 0 0 3px rgba(44,140,122,0.12);
}

.form-group select {
    appearance: none;
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-info,
.form-privacy {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.form-privacy {
    margin-top: 4px;
}

.form-button {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

/* =========================
   PORTFÓLIO
========================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
    text-align: left;
}

.portfolio-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(44,140,122,0.12);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: 0.28s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    border-color: rgba(44,140,122,0.3);
    background: var(--bg-panel-hover);
}

.portfolio-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.portfolio-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.portfolio-card p {
    margin-bottom: 12px;
}

.portfolio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
}

.status-disponivel {
    background: rgba(44,140,122,0.15);
    color: #7be0c8;
    border: 1px solid rgba(44,140,122,0.3);
}

.status-desenvolvimento {
    background: rgba(255,193,7,0.12);
    color: #ffd566;
    border: 1px solid rgba(255,193,7,0.25);
}

.status-planejado {
    background: rgba(255,255,255,0.08);
    color: #d0d7d5;
    border: 1px solid rgba(255,255,255,0.12);
}

/* =========================
   PLANOS
========================= */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-button {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(44,140,122,0.3);
    color: #FFFFFF;
    padding: 11px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.28s ease;
    box-shadow: none;
}

.tab-button:hover,
.tab-button.active {
    background: var(--primary);
    color: #ffffff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.planos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.plano-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(44,140,122,0.12);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: 0.28s ease;
    text-align: left;
}

.plano-card:hover {
    transform: translateY(-4px);
    border-color: rgba(44,140,122,0.3);
    background: var(--bg-panel-hover);
}

.plano-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.preco-consulta {
    font-size: 17px;
    font-weight: 700;
    margin: 14px 0 16px;
    color: var(--primary);
}

.plano-card ul {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.plano-card li {
    color: var(--text-soft);
    position: relative;
    padding-left: 16px;
}

.plano-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.plano-destaque {
    border: 2px solid var(--primary);
    transform: scale(1.01);
    box-shadow: 0 0 18px rgba(44,140,122,0.18);
}

/* =========================
   SPEEDTEST / BOXES
========================= */
.speedtest-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 36px 18px 54px;
    text-align: center;
}

.subtitulo {
    max-width: 680px;
    margin: 0 auto 22px;
    font-size: 17px;
    color: #e0e0e0;
}

.metricas {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.metrica {
    min-width: 150px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(44,140,122,0.16);
}

.metrica-label {
    display: block;
    font-size: 14px;
    color: #cfcfcf;
    margin-bottom: 6px;
}

.form-group select {
    color: #ffffff;
    background-color: rgba(255,255,255,0.05);
}

.form-group select option {
    color: #000000;
    background: #ffffff;
}

.metrica-valor {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
}

.metrica-unidade {
    font-size: 13px;
    color: #cfcfcf;
}

.cta-box {
    text-align: center;
}

/* =========================
   FOOTER
========================= */
footer {
    padding: 10px 0 24px;
    text-align: center;
    color: #cccccc;
    font-size: 14px;
}

/* =========================
   WHATSAPP FLOAT
========================= */
.cs-whatsapp-float {
    position: fixed !important;
    right: 20px !important;
    bottom: 20px !important;
    left: auto !important;
    top: auto !important;
    z-index: 99999 !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: auto !important;
    max-width: none !important;
    margin: 0 !important;

    background: #25d366 !important;
    color: #ffffff !important;
    padding: 10px 14px !important;
    border-radius: 50px !important;

    font-size: 14px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    white-space: nowrap !important;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    animation: csWhatsappPulse 2s infinite;
}

.cs-whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35) !important;
    color: #ffffff !important;
}

.cs-whatsapp-float:visited,
.cs-whatsapp-float:focus,
.cs-whatsapp-float:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

.cs-whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cs-whatsapp-text {
    white-space: nowrap;
    color: #ffffff !important;
}

@keyframes csWhatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 900px) {
    .cards,
    .portfolio-grid,
    .planos-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 42px 16px;
    }

    .hero p,
    .contato-descricao,
    .portfolio-descricao {
        font-size: 16px;
    }

    .servicos,
    .sobre,
    .contato,
    .portfolio,
    .planos,
    .resultado,
    .resultado-placeholder,
    .speedtest-box,
    .cta-box {
        padding: 14px;
        margin-bottom: 10px;
    }

    .servicos h2,
    .sobre h2,
    .contato h2,
    .portfolio h2,
    .planos h2,
    .cta-box h2 {
        font-size: 24px;
    }

    .portfolio-actions,
    .form-button {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 14px;
    }

    .logo img,
    .hero img {
        width: 180px;
    }

    .hero h1,
    .servicos h1,
    .sobre h1,
    .contato h1,
    .portfolio h1,
    .planos h1 {
        font-size: 27px;
    }

    nav ul {
        gap: 8px;
    }

    nav a {
        padding: 8px 12px;
        font-size: 14px;
    }

    .tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-button,
    .btn-primary,
    .btn-plano,
    .btn-portfolio,
    .btn-whatsapp,
    .btn-enviar,
    .cs-btn,
    button {
        width: 100%;
    }

    .cs-whatsapp-text {
        display: none;
    }

    .cs-whatsapp-float {
        width: 56px !important;
        height: 56px !important;
        padding: 0 !important;
        border-radius: 50% !important;
    }
}