/*
 * O ramo tecnológico do site.
 *
 * Folha própria, e não um ramo da página principal: a home é uma experiência
 * de vídeo em ecrã inteiro com cenas presas ao scroll, e essa página existe
 * para ser sentida. Esta existe para ser lida e para gerar um contacto — e
 * carrega em segundos numa rede móvel, que é onde metade das visitas chega.
 */

:root {
    --navy: #081527;
    --navy-2: #0d1f35;
    --ink: #142033;
    --ink-2: #33455e;
    --muted: #62718a;
    --faint: #8496ab;
    --blue: #1279ad;
    --blue-bright: #1ba8e6;
    --green: #16785a;
    --paper: #ffffff;
    --soft: #f2f6fb;
    --soft-2: #e7eff8;
    --line: #dbe4f0;
    --line-strong: #c3d0e0;
    --shadow: 0 14px 38px rgba(16, 30, 54, .07);
    --radius: 12px;
    --display: Sora, "Segoe UI", system-ui, -apple-system, sans-serif;
    --body: "Public Sans", Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink-2);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 3px;
    border-radius: 3px;
}
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 68ch; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.15rem, 5vw, 3.35rem); line-height: 1.05; letter-spacing: -.025em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.14; letter-spacing: -.018em; font-weight: 600; }
h3 { font-size: 1.14rem; line-height: 1.3; letter-spacing: -.008em; font-weight: 600; }
p { margin: 0 0 16px; }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
    font-family: var(--display); font-size: .72rem; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
    margin: 0 0 14px;
}

/* ---------- topo ---------- */
.top {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.top-logo { width: 118px; }
.top-nav { display: flex; align-items: center; gap: 22px; font-size: .93rem; }
.top-nav a { color: var(--ink-2); }
.top-cta {
    background: var(--navy); color: #fff; padding: 9px 17px; border-radius: 8px;
    font-family: var(--display); font-weight: 600; font-size: .88rem;
}
.top-cta:hover { background: var(--navy-2); text-decoration: none; }
@media (max-width: 780px) { .top-nav .hide-sm { display: none; } }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--soft) 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.hero-inner { padding: 68px 0 60px; max-width: 44rem; }
.hero p.lead { font-size: 1.16rem; color: var(--ink-2); margin: 20px 0 28px; max-width: 40rem; }
.hero-note { font-size: .92rem; color: var(--muted); margin-top: 22px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
    display: inline-block; font-family: var(--display); font-weight: 600; font-size: .95rem;
    padding: 13px 22px; border-radius: 9px; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); text-decoration: none; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--muted); text-decoration: none; }

/* ---------- secções ---------- */
section { padding: 62px 0; }
section.tint { background: var(--soft); border-block: 1px solid var(--line); }
.sec-head { max-width: 46rem; margin-bottom: 34px; }
.sec-head p { color: var(--muted); margin: 12px 0 0; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card p + p { margin-top: 10px; }

/* Sintomas: uma lista de coisas que a pessoa reconhece, não cartões iguais. */
.symptoms { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-width: 52rem; }
.symptoms li {
    padding: 15px 0 15px 30px; border-bottom: 1px solid var(--line);
    position: relative; color: var(--ink-2);
}
.symptoms li::before {
    content: ""; position: absolute; left: 4px; top: 25px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--blue-bright);
}
.symptoms li:last-child { border-bottom: 0; }

/* Processo: uma sequência real, por isso é numerada. */
.steps { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; gap: 26px; }
.steps li { counter-increment: p; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps li::before {
    content: counter(p);
    font-family: var(--display); font-weight: 700; font-size: .95rem;
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--soft-2); color: var(--navy);
}
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Casos: o trabalho real, com endereço à vista. */
.cases { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.case { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.case-shot { aspect-ratio: 16 / 10; background: var(--soft-2); object-fit: cover; width: 100%; }
.case-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case-brand { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.case-url { font-size: .82rem; color: var(--faint); }
.case p { font-size: .93rem; color: var(--muted); margin: 0; }
.case blockquote { margin: 6px 0 0; padding: 12px 14px; background: var(--soft); border-radius: 8px; font-size: .9rem; color: var(--ink-2); }
.case blockquote cite { display: block; margin-top: 6px; font-style: normal; font-size: .82rem; color: var(--faint); }

/* ---------- fundador ---------- */
.founder { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.founder .skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.founder .skills span {
    font-family: var(--display); font-size: .78rem; font-weight: 500;
    padding: 5px 11px; border-radius: 20px; background: var(--soft-2); color: var(--ink-2);
}

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.faq summary { cursor: pointer; padding: 16px 20px; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1rem; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 16px 20px; }
.faq .answer p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- formulário ---------- */
.form-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow); max-width: 46rem;
}
.fields { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field-full { grid-column: 1 / -1; }
label { display: block; font-family: var(--display); font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
input, textarea {
    width: 100%; padding: 11px 13px; font: inherit; font-size: .96rem;
    border: 1px solid var(--line-strong); border-radius: 8px;
    background: var(--paper); color: var(--ink); font-family: var(--body);
}
textarea { min-height: 110px; resize: vertical; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: .85rem; color: var(--muted); margin: 16px 0 0; }
.status { font-size: .93rem; margin: 16px 0 0; min-height: 1.4em; }
.status.ok { color: var(--green); font-weight: 600; }
.status.err { color: #b3261e; font-weight: 600; }

/* ---------- rodapé ---------- */
.foot { background: var(--navy); color: #c8d6e8; padding: 46px 0 34px; font-size: .92rem; }
.foot a { color: #e8f1fa; }
.foot-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.foot h4 { color: #fff; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 12px; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot-logo { width: 128px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.foot-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .13); font-size: .84rem; color: #90a6c0; display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- migalhas ---------- */
.crumbs { font-size: .84rem; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; color: var(--line-strong); }

/* ---------- WhatsApp ---------- */
.wa {
    position: fixed; right: 20px; bottom: 20px; z-index: 45;
    display: inline-flex; align-items: center; gap: 9px;
    background: #1f9c4d; color: #fff; padding: 12px 17px; border-radius: 30px;
    font-family: var(--display); font-weight: 600; font-size: .88rem;
    box-shadow: 0 10px 26px rgba(16, 30, 54, .22);
}
.wa:hover { text-decoration: none; background: #1a8944; }
@media (max-width: 560px) { .wa span { display: none; } .wa { padding: 14px; border-radius: 50%; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}
