/* ==========================================================================
   VS TECH — página profissional (versão 2027, corporativa)
   Conceito: consultor de infraestrutura. Azul-petróleo como cor institucional,
   âmbar (cor de cabo/sinalização) só para a ação principal. Títulos em
   Archivo condensado, texto em Public Sans.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --bg: #ffffff;
    --tint: #f1f5f6;
    --line: #dbe2e5;
    --text: #10202b;
    --muted: #4c5c66;
    --primary: #0e4a5c;
    --primary-deep: #0a3846;
    --primary-soft: #d8e9ee;
    --link: #0e4a5c;
    --accent: #f2b705;
    --on-accent: #1d1600;
    --on-primary: #ffffff;
    --shadow: 0 18px 40px -18px rgba(10, 56, 70, 0.35);

    --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
    --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius: 6px;
    --topbar-h: 72px;
    --wrap: 1180px;
}

[data-theme="dark"] {
    --bg: #0b1a20;
    --tint: #10242c;
    --line: #234049;
    --text: #e7eef0;
    --muted: #a8b9c0;
    --primary: #0e4a5c;
    --primary-deep: #08303c;
    --primary-soft: #16343e;
    --link: #7cc4d8;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-padding-top: calc(var(--topbar-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

a {
    color: var(--link);
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

body.menu-open {
    overflow: hidden;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 28px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    padding: 10px 14px;
    background: var(--accent);
    color: var(--on-accent);
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

h1, h2, h3 {
    font-family: var(--display);
    font-stretch: 85%;
    color: var(--text);
}

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: var(--radius);
    font-family: var(--body);
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-accent {
    background: var(--accent);
    color: var(--on-accent);
}

.btn-accent:hover {
    background: #ffc929;
}

.btn-outline {
    border-color: var(--primary);
    color: var(--link);
}

[data-theme="dark"] .btn-outline {
    border-color: var(--link);
}

.btn-outline:hover {
    background: var(--primary-soft);
}

.btn-light {
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ---------- Barra superior ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--topbar-h);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--primary);
}

.brand-mark svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-mark .mark-v { stroke: #ffffff; stroke-width: 5; }
.brand-mark .mark-pulse { stroke: var(--accent); stroke-width: 3.2; }

[data-theme="dark"] .brand-mark { box-shadow: inset 0 0 0 1px var(--line); }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-family: var(--display);
    font-stretch: 85%;
    font-weight: 800;
    font-size: 1.25rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    padding: 8px 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
}

.nav-link:hover {
    background: var(--tint);
}

.nav-link.active {
    color: var(--link);
    box-shadow: inset 0 -3px 0 var(--accent);
    border-radius: 0;
}

.nav-cta {
    margin-left: 12px;
    padding: 10px 18px;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.nav-cta:hover {
    background: #ffc929;
}

.topbar-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Status de atendimento ---------- */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--muted);
    flex-shrink: 0;
}

.status-indicator.is-open { color: #1c7a47; }
.status-indicator.is-open .status-dot { background: #22a35d; box-shadow: 0 0 0 4px rgba(34, 163, 93, 0.18); }
.status-indicator.is-closed { color: #8a5a00; }
.status-indicator.is-closed .status-dot { background: #d99100; }

[data-theme="dark"] .status-indicator.is-open { color: #5fd394; }
[data-theme="dark"] .status-indicator.is-closed { color: #f2c14e; }

.status-on-dark.is-open { color: #7fe0a9; }
.status-on-dark.is-closed { color: #ffd166; }

/* ---------- Hero ---------- */
.hero {
    padding: 72px 0 88px;
    overflow: hidden;
    isolation: isolate; /* mantém a barra âmbar do cartão dentro do hero */
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.2vw, 4.5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.015em;
    margin-bottom: 24px;
    max-width: 15ch;
    text-wrap: balance;
}

.hero-lead {
    font-size: 1.1875rem;
    line-height: 1.65;
    color: var(--muted);
    max-width: 50ch;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.facts dt {
    font-family: var(--display);
    font-stretch: 85%;
    font-weight: 800;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--link);
}

.facts dd {
    margin-top: 6px;
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.4;
}

/* Cartão de atendimento */
.hero-card {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 36px 32px 32px;
    background: var(--primary);
    color: var(--on-primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-right: 28px;
}

/* Barra âmbar atrás do cartão: o único elemento decorativo da página */
.hero-card::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 36px;
    right: -28px;
    bottom: -28px;
    width: 58%;
    background: var(--accent);
    border-radius: var(--radius);
}

.hero-card-name {
    font-family: var(--display);
    font-stretch: 85%;
    font-weight: 800;
    font-size: 1.75rem;
    line-height: 1.1;
}

.hero-card-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 24px 0;
    padding: 24px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-card-list li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: baseline;
    font-size: 0.9375rem;
    line-height: 1.45;
}

.hero-card-list i {
    color: var(--accent);
    text-align: center;
}

/* ---------- Faixa de ferramentas ---------- */
.tools {
    background: var(--tint);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.tools-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.tools-label {
    font-size: 0.9375rem;
    color: var(--muted);
    flex-shrink: 0;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    font-family: var(--display);
    font-stretch: 85%;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

/* ---------- Blocos ---------- */
.block {
    padding: 96px 0;
}

.block-tint {
    background: var(--tint);
}

.block-head {
    max-width: 640px;
    margin-bottom: 48px;
}

.block-head h2 {
    font-size: clamp(2.1rem, 3.6vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.block-head p {
    font-size: 1.125rem;
    color: var(--muted);
}

/* Serviços */
.services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 40px;
}

.service {
    padding-top: 20px;
    border-top: 2px solid var(--line);
}

.service > i {
    font-size: 1.375rem;
    color: var(--link);
    margin-bottom: 14px;
}

.service h3 {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.service p {
    color: var(--muted);
}

.service-main {
    grid-column: 1 / -1;
    padding: 40px;
    border: 0;
    border-radius: var(--radius);
    background: var(--primary);
    color: #ffffff;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 48px;
}

.service-main > i,
.service-main h3 {
    grid-column: 1;
}

.service-main p {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
}

.service-main .service-link {
    grid-column: 2;
    grid-row: 3;
}

.service-main > i {
    color: var(--accent);
    font-size: 1.75rem;
}

.service-main h3 {
    color: #ffffff;
    font-size: clamp(1.75rem, 2.6vw, 2.25rem);
    margin-bottom: 14px;
    max-width: 18ch;
}

.service-main p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.125rem;
    max-width: 58ch;
}

.service-link {
    align-self: flex-start;
    margin-top: 24px;
    color: #ffffff;
    font-weight: 600;
    text-underline-offset: 4px;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
}

/* Obter serviços: etapas numeradas (é de fato uma sequência) */
.steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding-top: 64px;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-family: var(--display);
    font-stretch: 85%;
    font-weight: 800;
    font-size: 1.25rem;
}

.steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    left: 56px;
    right: -20px;
    height: 2px;
    background: var(--line);
}

.steps h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.steps p {
    color: var(--muted);
}

/* ---------- Contato (faixa institucional) ---------- */
.cta {
    background: var(--primary-deep);
    color: #ffffff;
    padding: 96px 0;
}

.cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
    align-items: center;
}

.cta h2 {
    color: #ffffff;
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 16px;
    max-width: 16ch;
}

.cta-lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1875rem;
    max-width: 48ch;
    margin-bottom: 32px;
}

.cta-info > div {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-info > div:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-info dt {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

.cta-info dd {
    font-size: 1.125rem;
    font-weight: 500;
}

.cta-info a {
    color: #ffffff;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, 0.4);
}

.cta-info a:hover {
    text-decoration-color: var(--accent);
}

.cta-info .status-indicator {
    display: flex;
    margin-top: 6px;
}

/* ---------- Rodapé ---------- */
.footer {
    background: var(--primary-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    padding: 24px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
    .nav-link {
        padding: 8px 8px;
    }

    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px 32px;
    }

    .steps li:nth-child(3)::after {
        display: none;
    }
}

@media (max-width: 960px) {
    :root {
        --topbar-h: 64px;
    }

    .hamburger {
        display: flex;
    }

    .topbar-tools {
        margin-left: auto;
    }

    .nav {
        display: none;
        position: fixed;
        top: var(--topbar-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
        padding: 12px 20px 24px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
    }

    .nav.active {
        display: flex;
    }

    .nav-link {
        padding: 12px;
        font-size: 1.0625rem;
    }

    .nav-link.active {
        box-shadow: inset 3px 0 0 var(--accent);
    }

    .nav-cta {
        margin: 10px 0 0;
        padding: 14px;
        text-align: center;
    }

    .hero-grid,
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-card {
        max-width: 480px;
    }

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

    .service-main {
        grid-template-columns: 1fr;
    }

    .service-main > *,
    .service-main p,
    .service-main .service-link {
        grid-column: 1;
        grid-row: auto;
    }

    .tools-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 620px) {
    .wrap {
        padding: 0 18px;
    }

    .hero {
        padding: 40px 0 56px;
    }

    .hero-lead {
        font-size: 1.0625rem;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .facts {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 36px;
    }

    .facts > div {
        display: grid;
        grid-template-columns: 96px 1fr;
        align-items: baseline;
        gap: 12px;
    }

    .facts dt {
        font-size: 1.875rem;
    }

    .facts dd {
        margin: 0;
    }

    .hero-card {
        padding: 28px 24px 24px;
        margin-right: 18px;
    }

    .hero-card::before {
        right: -18px;
        bottom: -18px;
    }

    .block,
    .cta {
        padding: 64px 0;
    }

    .services,
    .steps {
        grid-template-columns: 1fr;
    }

    .service-main {
        padding: 28px 24px;
    }

    .steps li::after {
        display: none;
    }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
