/* ==========================================================================
   Cabeto TEC — Site institucional
   Tema claro (mockups) + tema escuro
   ========================================================================== */

/* ---------- Fontes (alojadas localmente) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/inter-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora";  font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/sora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora";  font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/sora-latin-700-normal.woff2") format("woff2"); }

/* ---------- Cores ---------- */
:root {
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Sora", "Inter", system-ui, sans-serif;

    --brand: #1470B8;
    --brand-bright: #1A90ED;
    --red: #E30613;
    --red-x: #FF0841;

    --page: #FFFFFF;          /* secções brancas */
    --sky: #C7E6FF;           /* hero, serviços, caixa do formulário */
    --night: #000000;         /* menu, cartões da cronologia */
    --night-2: #000000;       /* parceiros e rodapé */
    --on-night: #EAF3FF;

    --ink: #000000;           /* texto principal */
    --ink-soft: #343434;      /* textos legais, rótulos */
    --ink-muted: #4D4D4D;
    --title: #1470B8;         /* títulos de secção */
    --hero-title: #000000;

    --card: #1470B8;          /* cartões de serviços / vagas */
    --on-card: #EAF3FF;

    --tl-card: #000000;
    --tl-card-border: transparent;
    --tl-year: #1A90ED;
    --tl-line: #1470B8;
    --tl-dot: #E30613;

    --field-bg: #FFFFFF;
    --field-border: #8CC7F6;
    --field-text: #343434;
    --link: #1A90ED;

    --faq-q: #1470B8;
    --faq-line: #1470B8;
    --faq-open: #E30613;
    --faq-open-line: #343434;
    --faq-a: #343434;

    --map-border: #1470B8;
    --footer-line: #136CB2;
    --switch-knob: #D9D9D9;
    --nav-border: transparent;
    --nav-shadow: 0 14px 34px -12px rgba(0, 32, 64, .45);

    --header-top: 42px;
    --header-top-scrolled: 12px;
    --header-h: 68px;

    color-scheme: light;
}

[data-theme="dark"] {
    --page: #0B1118;
    --sky: #0E2133;
    --night: #000000;
    --night-2: #04070B;
    --on-night: #EAF3FF;

    --ink: #E4EBF3;
    --ink-soft: #C3CDD8;
    --ink-muted: #A9B5C2;
    --title: #4BA8F2;
    --hero-title: #FFFFFF;

    --card: #1468AE;
    --on-card: #EAF3FF;

    --tl-card: #111C29;
    --tl-card-border: rgba(234, 243, 255, .07);
    --tl-year: #3EA6F5;
    --tl-line: #1A7FD0;
    --tl-dot: #F0182A;

    --field-bg: #0B1118;
    --field-border: #2A5D8B;
    --field-text: #E4EBF3;
    --link: #5CB4F6;

    --faq-q: #5CB0F2;
    --faq-line: #22527D;
    --faq-open: #FF4757;
    --faq-open-line: #8C99A8;
    --faq-a: #C3CDD8;

    --map-border: #2A5D8B;
    --footer-line: #1A5F98;
    --switch-knob: #D9D9D9;
    --nav-border: rgba(234, 243, 255, .09);
    --nav-shadow: 0 14px 34px -10px rgba(0, 0, 0, .8);

    color-scheme: dark;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 27px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body, .hero, .section, .site-footer, .navbar, .contact-form, .timeline__card, .service-card {
    transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 300;
    padding: 10px 16px; border-radius: 10px;
    background: var(--brand); color: #fff; text-decoration: none; font-weight: 600;
    transition: top .2s;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Títulos ---------- */
.title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 34px;
    line-height: 40px;
    letter-spacing: 0;
    color: var(--title);
}
.title--display { font-family: var(--font-display); font-size: 32px; }
.title--light { color: var(--on-night); }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 999px; cursor: pointer;
    text-decoration: none; white-space: nowrap;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn--primary { background: var(--brand); color: #EAF3FF; }
.btn--primary:hover { background: #0F5F9E; box-shadow: 0 10px 22px -10px rgba(20, 112, 184, .8); }
.btn--primary:active { transform: translateY(1px); }
[data-theme="dark"] .btn--primary:hover { background: #1A80D2; }

/* ==========================================================================
   Menu fixo (flutuante)
   ========================================================================== */
.site-header {
    position: fixed;
    left: 0; right: 0;
    top: var(--header-top);
    z-index: 100;
    pointer-events: none;
    transition: top .35s cubic-bezier(.2, .7, .2, 1);
}
.site-header.is-scrolled { top: var(--header-top-scrolled); }
.site-header .container { position: relative; }

.navbar {
    pointer-events: auto;
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h);
    padding: 0 34px 0 26px;
    background: var(--night);
    border: 1px solid var(--nav-border);
    border-radius: 34px;
    transition: box-shadow .35s ease, background-color .35s ease;
}
.is-scrolled .navbar { box-shadow: var(--nav-shadow); }

.navbar__brand { display: block; flex: none; }
.navbar__brand img { width: 162px; height: 33px; }

.navbar__menu {
    display: flex; align-items: center; gap: 58px;
    margin: 0; padding: 0; list-style: none;
}
.navbar__menu a {
    position: relative;
    display: block;
    color: var(--on-night);
    text-decoration: none;
    font-size: 16px; line-height: 20px;
    font-weight: 400;
    padding: 6px 0;
    transition: color .2s ease;
}
.navbar__menu a:hover { color: #7FC1F7; }
.navbar__menu a.is-active { color: var(--red); font-weight: 600; }
.navbar__theme { display: none; }

.navbar__burger {
    display: none;
    position: relative;
    width: 44px; height: 44px; padding: 0;
    background: none; border: 0; cursor: pointer;
    color: var(--on-night);
    border-radius: 12px;
}
.navbar__burger span {
    position: absolute; left: 6px; width: 33px; height: 5.5px; border-radius: 3px;
    background: currentColor;
    transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.navbar__burger span:nth-child(1) { top: 8px; }
.navbar__burger span:nth-child(2) { top: 19.5px; }
.navbar__burger span:nth-child(3) { top: 31px; }
.menu-open .navbar__burger span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.menu-open .navbar__burger span:nth-child(2) { opacity: 0; }
.menu-open .navbar__burger span:nth-child(3) { top: 19.5px; transform: rotate(-45deg); }

/* ---------- Seletor de tema ---------- */
.theme-bar { display: flex; justify-content: flex-end; padding-top: calc(var(--header-top) + var(--header-h) + 12px); }
.theme-switch {
    position: relative;
    display: inline-flex;
    width: 73px; height: 36px;
    padding: 0;
    background: #000;
    border-radius: 18px;
}
.theme-switch::before {
    content: "";
    position: absolute; top: 2px; left: 2px;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--switch-knob);
    transition: transform .35s cubic-bezier(.4, .1, .2, 1);
}
[data-theme="dark"] .theme-switch::before { transform: translateX(37px); }
.theme-switch__btn {
    position: relative; z-index: 1;
    display: grid; place-items: center;
    width: 36.5px; height: 36px; padding: 0;
    background: none; border: 0; border-radius: 50%;
    color: #EAF3FF; cursor: pointer;
    transition: color .3s ease;
}
.theme-switch__btn:hover { color: #7FC1F7; }
html:not([data-theme="dark"]) .theme-switch__btn[data-theme-set="light"],
[data-theme="dark"] .theme-switch__btn[data-theme-set="dark"] { color: var(--brand); cursor: default; }
.theme-switch__btn svg { width: 20px; height: 20px; }
.theme-switch__btn[data-theme-set="dark"] svg { width: 14px; height: 18px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; background: var(--sky); }
.hero__content { text-align: center; }

.hero--home .hero__content { padding: 90px 0 179px; }
.hero__title {
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 40px;
    line-height: 48px;
    letter-spacing: 0;
    color: var(--hero-title);
}
.hero__text { max-width: 520px; margin: 17px auto 0; color: var(--ink); }
.btn--hero {
    margin-top: 18px;
    height: 56px; padding: 0 43px;
    font-size: 16px; font-weight: 700;
}

/* hero das páginas internas */
.hero--page { min-height: 407px; }
.hero--page .hero__content { padding: 90px 0 48px; }
.hero--page .hero__title { max-width: 900px; }
.hero__subtitle { margin-top: 9px; color: var(--ink-soft); }
.hero--page .hero__subtitle { max-width: 730px; margin-inline: auto; }

/* ---------- Seta entre secções ---------- */
.section-arrow {
    position: absolute; z-index: 0;
    left: 50%; top: -41px;
    width: 104px; height: 104px; margin-left: -52px;
    border-radius: 50%;
    background: inherit;
    color: var(--brand);
    display: flex; justify-content: center;
    padding-top: 26px;
    transition: background-color .35s ease;
}
.section-arrow__icon { width: 36px; height: 25px; animation: arrow-bob 1.6s ease-in-out infinite; }
.section-arrow:hover .section-arrow__icon { animation-duration: .9s; }
@keyframes arrow-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(9px); }
}
@keyframes arrow-bob-sm {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}
.section-arrow:focus-visible { outline-offset: -6px; border-radius: 50%; }
.section-arrow--dark { top: -38px; padding-top: 26px; }
[data-theme="dark"] .section-arrow { color: var(--brand-bright); }

.section { position: relative; }
.section > .container { position: relative; z-index: 1; }

/* ==========================================================================
   Sobre (Quem somos / Porquê nós / Cronologia)
   ========================================================================== */
.section--about { background: var(--page); padding: 46px 0 39px; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 600fr) minmax(0, 569fr);
    column-gap: 31px;
    align-items: center;
}
.split + .split { margin-top: 33px; }
.split__media img { width: 100%; }
.split__media--team { margin-left: -6px; margin-right: 5px; }
.split__media--rounded img { border-radius: 20px; }
[data-theme="dark"] .split__media--team img { border-radius: 20px; }
.split__body .title + p { margin-top: 17px; }
.split__body p + p { margin-top: 17px; }
.split--who .split__body { padding-top: 23px; }

/* Cronologia */
.timeline-block { margin-top: 45px; }
.timeline-block .title { padding-left: 2px; }
.timeline-block__lead { margin-top: 13px; padding-left: 3px; font-family: var(--font-display); font-size: 16px; line-height: 24px; }

.timeline {
    position: relative;
    list-style: none;
    margin: 20px 0 0; padding: 0;
}
.timeline::before {                 /* linha vertical */
    content: "";
    position: absolute;
    left: 50%; top: 90px; bottom: 0;
    width: 8px; margin-left: -5px;
    background: var(--tl-line);
    transition: background-color .35s ease;
}
.timeline__item { position: relative; display: flex; }
.timeline__item--right { justify-content: flex-end; }
.timeline__item::before {           /* ponto */
    content: "";
    position: absolute; z-index: 2;
    left: 50%; top: 71px;
    width: 38px; height: 38px; margin-left: -20px;
    border-radius: 50%;
    background: var(--tl-dot);
}
.timeline__item:last-child::after { /* corta a linha depois do último ponto */
    content: "";
    position: absolute; z-index: 1;
    left: 50%; top: 90px; bottom: -1px;
    width: 12px; margin-left: -7px;
    background: var(--page);
    transition: background-color .35s ease;
}
.timeline__item:nth-child(2) { margin-top: -53px; }
.timeline__item:nth-child(3) { margin-top: 0; }
.timeline__item:nth-child(4) { margin-top: -38px; }
.timeline__item:nth-child(n+5) { margin-top: -45px; }

.timeline__card {
    width: calc(50% - 140px);
    max-width: 460px;
    min-height: 191px;
    padding: 29px 34px 23px;
    background: var(--tl-card);
    border: 1px solid var(--tl-card-border);
    border-radius: 8px;
    color: var(--on-night);
}
.timeline__item--left .timeline__card { margin-left: 1px; }
.timeline__year {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 32px; line-height: 40px;
    color: var(--tl-year);
}
.timeline__card p { margin-top: 16px; }

/* ==========================================================================
   Serviços
   ========================================================================== */
.section--services { background: var(--sky); padding: 64px 0 79px; }
.services__lead { margin-top: 15px; text-align: justify; hyphens: none; }
.services__lead strong { font-weight: 700; }

.services-grid {
    display: grid;
    margin-top: 19px;
    grid-template-columns: minmax(0, 411fr) minmax(0, 411fr) minmax(0, 357fr);
    grid-auto-rows: minmax(256px, auto);
    column-gap: 11px;
    row-gap: 19px;
    grid-template-areas:
        "rep    infra  web"
        "mkt    cons   web"
        "social social email";
}
.service-card--rep    { grid-area: rep; }
.service-card--infra  { grid-area: infra; }
.service-card--web    { grid-area: web; }
.service-card--mkt    { grid-area: mkt; }
.service-card--cons   { grid-area: cons; }
.service-card--social { grid-area: social; }
.service-card--email  { grid-area: email; }

.service-card {
    padding: 24px 19px 17px;
    background: var(--card);
    color: var(--on-card);
    border-radius: 8px;
    transition: transform .3s ease, box-shadow .3s ease, background-color .35s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -18px rgba(5, 45, 80, .6); }
.service-card__icon { height: 60px; display: flex; align-items: flex-end; margin-left: -3px; }
.service-card__title {
    margin-top: 16px;
    font-size: 20px; line-height: 24px; font-weight: 600;
    letter-spacing: -0.005em;
}
.service-card p { margin-top: 19px; font-size: 16px; line-height: 24px; font-weight: 400; }
.service-card p + p { margin-top: 24px; }
.service-card--web { padding-left: 16px; padding-right: 12px; }
.service-card--web .service-card__icon { margin-left: -2px; }
.service-card--social p { padding-right: 40px; }
.service-card--social .service-card__icon { height: 51px; }

/* ==========================================================================
   Parceiros
   ========================================================================== */
.section--partners { background: var(--night-2); color: var(--on-night); padding: 47px 0 73px; }
.section--partners .container { padding-left: 1px; }
.partners__lead { margin-top: 16px; }
.partners-marquee {
    --gap: 80px;
    --scale: 1;
    display: flex;
    gap: var(--gap);
    margin-top: 46px;
    overflow: hidden;
    user-select: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.partners {
    flex-shrink: 0;
    min-width: 100%;
    display: flex; align-items: center; justify-content: space-around; gap: var(--gap);
    margin: 0; padding: 0; list-style: none;
    animation: partners-scroll var(--duration, 30s) linear infinite;
}
.partners-marquee:hover .partners,
.partners-marquee:focus-within .partners { animation-play-state: paused; }
@keyframes partners-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-100% - var(--gap))); }
}
.partners__item { flex: none; }
.partners__item a { display: block; border-radius: 6px; }
.partners__item img {
    width: auto; max-width: none;
    height: calc(var(--h, 56px) * var(--scale));
    transition: transform .25s ease;
}
.partners__item:hover img { transform: scale(1.06); }

/* ==========================================================================
   Contactos + formulário
   ========================================================================== */
.section--contact { background: var(--page); padding: 79px 0 67px; }

.contact {
    display: grid;
    grid-template-columns: minmax(0, 505fr) minmax(0, 662fr);
    grid-template-rows: auto auto;
    grid-template-areas:
        "info form"
        "map  form";
    column-gap: 33px;
    row-gap: 75px;
}
.contact__info { grid-area: info; padding-left: 1px; }
.contact__info .title + p { margin-top: 16px; }
.contact__info p + p { margin-top: 17px; }

.contact__list { margin: 31px 0 0; padding: 0; list-style: none; }
.contact__list li { display: flex; align-items: center; gap: 13px; min-height: 27px; }
.contact__list li + li { margin-top: 17px; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--brand-bright); }
.contact__icon { width: 24px; flex: none; color: var(--brand); }
.contact__icon--phone { width: 21px; height: 21px; margin-right: 3px; }
.contact__icon--wa { width: 24px; height: 24px; }
.contact__icon--mail { width: 24px; height: 18px; }
[data-theme="dark"] .contact__icon { color: var(--brand-bright); }

.contact__map {
    grid-area: map;
    align-self: end;
    height: 313px;
    border: 1px solid var(--map-border);
    border-radius: 24px;
    overflow: hidden;
    background: #EEF2F5;
}
.contact__map iframe { display: block; width: 100%; height: 100%; border: 0; }
[data-theme="dark"] .contact__map { background: #1B232C; }
[data-theme="dark"] .contact__map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7) brightness(.95); }

.contact-form {
    grid-area: form;
    align-self: end;
    padding: 38px 57px 25px 68px;
    background: var(--sky);
    border-radius: 20px;
}
.contact-form__row {
    display: grid;
    grid-template-columns: minmax(0, 273fr) minmax(0, 251fr);
    gap: 14px;
}
.field { display: flex; flex-direction: column; }
.field + .field, .contact-form__row + .field { margin-top: 14px; }
.field--subject + .field { margin-top: 21px; }
.contact-form__row .field + .field { margin-top: 0; }
.field label {
    margin-bottom: 14px;
    font-weight: 600; font-size: 16px; line-height: 20px;
    color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
    width: 100%;
    height: 49px;
    padding: 0 16px;
    background: var(--field-bg);
    border: 1px solid var(--field-border);
    border-radius: 15px;
    color: var(--field-text);
    font-size: 16px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .35s ease;
}
.field textarea { height: 208px; padding: 12px 16px; line-height: 24px; resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--brand-bright);
    box-shadow: 0 0 0 3px rgba(26, 144, 237, .22);
}
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); }
.field input::placeholder, .field textarea::placeholder { color: #9AA6B2; font-weight: 300; opacity: 1; }
[data-theme="dark"] .field input::placeholder, [data-theme="dark"] .field textarea::placeholder { color: #66778A; }

.select { position: relative; }
.select select {
    appearance: none; -webkit-appearance: none;
    padding-left: 10px; padding-right: 48px;
    font-weight: 300; color: var(--ink-muted);
    cursor: pointer;
}
[data-theme="dark"] .select select { color: var(--field-text); }
.select select option { color: #222; background: #fff; }
.select__chevron {
    position: absolute; right: 19px; top: 50%; margin-top: -4px;
    width: 14px; height: 8px;
    color: var(--brand-bright);
    pointer-events: none;
}

.field--check {
    flex-direction: row; align-items: flex-start; gap: 16px;
    margin-top: 15px !important;
}
.field--check input {
    flex: none;
    appearance: none; -webkit-appearance: none;
    width: 20px; height: 19px; margin: 0; padding: 0;
    border: 1px solid var(--field-border); border-radius: 0;
    background: var(--field-bg);
    cursor: pointer; position: relative;
}
.field--check input::after {
    content: ""; position: absolute; left: 6px; top: 2px;
    width: 6px; height: 10px;
    border: solid #fff; border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .15s ease;
}
.field--check input:checked { background: var(--brand); border-color: var(--brand); }
.field--check input:checked::after { transform: rotate(45deg) scale(1); }
.field--check label {
    margin: -4px 0 0;
    font-weight: 400; line-height: 27px;
    color: var(--ink-soft);
}
.field--check label a { color: var(--link); text-decoration: none; }
.field--check label a:hover { text-decoration: underline; }

.btn--submit {
    margin-top: 13px;
    height: 49px; padding: 0 18px;
    min-width: 193px;
    font-size: 16px; font-weight: 300; text-transform: uppercase; letter-spacing: .01em;
}
.btn--submit[disabled] { opacity: .7; cursor: progress; }

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
    display: none;
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 15px; line-height: 22px;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: #E2F6E9; color: #135C2E; border: 1px solid #9ED9B3; }
.form-status.is-error   { background: #FDE7E9; color: #8E0A13; border: 1px solid #F3A6AD; }
[data-theme="dark"] .form-status.is-success { background: #0F2A1B; color: #9BE3B5; border-color: #1E5A37; }
[data-theme="dark"] .form-status.is-error   { background: #2E0E12; color: #FFB1B8; border-color: #6B1D25; }

/* ---------- FAQ ---------- */
.faq { margin-top: 66px; }
.faq__title { text-align: center; }
.faq__list { max-width: 840px; margin: 3px auto 0; padding-left: 1px; }
.faq__q button {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    width: 100%;
    padding: 17px 0 28px;
    background: none; border: 0; border-bottom: 1px solid var(--faq-line);
    color: var(--faq-q);
    font-size: 16px; line-height: 27px; font-weight: 400;
    text-align: left; cursor: pointer;
    transition: color .25s ease, border-color .25s ease;
}
.faq__q button:hover { color: var(--brand-bright); }
.faq__item.is-open .faq__q button { color: var(--faq-open); border-bottom-color: var(--faq-open-line); }
.faq__icon { position: relative; flex: none; width: 19px; height: 19px; color: var(--faq-q); }
.faq__icon::before, .faq__icon::after {
    content: ""; position: absolute; left: -0.5px; top: 50%;
    width: 20px; height: 2px; margin-top: -1px;
    background: currentColor; border-radius: 1px;
    transition: transform .3s ease;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon { color: var(--red-x); }
[data-theme="dark"] .faq__item.is-open .faq__icon { color: var(--faq-open); }
.faq__item.is-open .faq__icon::before { transform: rotate(45deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(135deg); }
.faq__a p { padding: 18px 0 30px; color: var(--faq-a); }
.js .faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.js .faq__a > div { min-height: 0; overflow: hidden; }
.js .faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item:first-child .faq__q button { padding-top: 17px; }

/* ==========================================================================
   Páginas internas (recrutamento, legais, 404)
   ========================================================================== */
.section--page { background: var(--page); padding: 51px 0 37px; color: var(--ink-soft); }
.prose p { text-align: justify; }
.prose p + p { margin-top: 11px; }
.prose strong { font-weight: 700; color: var(--ink-soft); }
.prose a { color: var(--brand); font-weight: 700; }
[data-theme="dark"] .prose a { color: var(--link); }
.prose h2 {
    margin-top: 34px;
    font-size: 22px; line-height: 29px; font-weight: 700;
    color: var(--ink-soft);
}
.prose h2 + p { margin-top: 1px; }
.prose .gap { margin-top: 27px; }

/* Recrutamento */
.jobs-intro p + p { margin-top: 11px; }
.jobs-intro p:last-child { margin-top: 14px; }
.jobs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 44px 0 0; padding: 0; list-style: none;
}
.job-card {
    padding: 17px 17px 24px;
    background: var(--card);
    color: var(--on-card);
    border-radius: 8px;
    transition: transform .3s ease, box-shadow .3s ease, background-color .35s ease;
}
.job-card:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -18px rgba(5, 45, 80, .6); }
.job-card__icon { width: auto; height: 66px; color: #EAF3FF; }
.job-card__title { margin-top: 17px; font-size: 22px; line-height: 27px; font-weight: 700; }
.job-card p { margin-top: 19px; }

.apply { margin-top: 27px; }
.apply .title { padding-left: 1px; }
.apply__intro { margin-top: 16px; padding-left: 1px; }
.apply__intro strong { color: var(--ink-soft); }
.apply__intro a { color: inherit; text-decoration: none; font-weight: 700; }
.apply__intro a:hover { color: var(--brand-bright); }
.apply__list { margin: 14px 0 0; padding: 0 0 0 89px; list-style: none; }
.apply__list ul { margin: 0; padding: 0 0 0 19px; list-style: none; }
.apply__outro { margin-top: 17px; padding-left: 1px; }

/* 404 */
.section--404 { background: var(--page); overflow: hidden; padding: 0; }
.robot {
    position: relative; left: 50%;
    width: max(100%, 980px);
    transform: translateX(-50%);
    margin-top: 35px;
}
.robot svg { width: 100%; height: auto; }
[data-theme="dark"] .robot [fill="#2D2A44"] { fill: #A9B7D3; }
[data-theme="dark"] .robot [fill="#2A4074"] { fill: #6E93D6; }
[data-theme="dark"] .robot [fill="#EEE8E0"] { fill: #EAF3FF; }
.not-found__action { position: relative; text-align: center; margin-top: -57px; padding: 0 0 42px; }
.not-found__action .btn { height: 52px; padding: 0 30px; font-weight: 700; }

/* ==========================================================================
   Rodapé
   ========================================================================== */
.site-footer {
    background: var(--night-2);
    color: var(--on-night);
    padding-top: 51px;
    border-bottom: 3px solid var(--red);
}
[data-theme="dark"] .site-footer { border-top: 1px solid rgba(234, 243, 255, .06); }
.site-footer a { text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: #7FC1F7; }
.site-footer__grid {
    display: grid;
    grid-template-columns: 600px 430px 1fr;
    grid-template-areas: "brand menu support";
}
.site-footer__brand { grid-area: brand; padding-left: 1px; }
.site-footer__menu { grid-area: menu; }
.site-footer__support { grid-area: support; }
.site-footer__logo img { width: 131px; height: 27px; }
.site-footer__brand address { margin-top: 24px; }
.site-footer__brand address p + p { margin-top: 13px; }
.site-footer__col { padding-top: 1px; }
.site-footer__title { font-size: 16px; line-height: 27px; font-weight: 400; }
.site-footer__col ul { margin: 14px 0 0; padding: 0; list-style: none; }
.site-footer__bottom {
    display: flex; align-items: center; justify-content: space-between;
    width: min(1060px, 100% - 40px);
    margin: 30px auto 0;
    padding: 17px 0 27px 2px;
    border-top: 1px solid var(--footer-line);
}
.site-footer__bottom ul { display: flex; gap: 59px; margin: 0; padding: 0; list-style: none; }

/* ==========================================================================
   Responsivo
   ========================================================================== */

/* Ecrãs médios */
@media (max-width: 1199px) {
    .services-grid { column-gap: 12px; }
    .site-footer__grid { grid-template-columns: 1.4fr 1fr auto; }
    .timeline__card { width: calc(50% - 60px); }
}

/* Menu compacto (hambúrguer) */
@media (max-width: 959px) {
    :root { --header-top: 17px; --header-top-scrolled: 10px; --header-h: 66px; }
    .navbar { padding: 0 20px 0 12px; border-radius: 33px; }
    .navbar__brand img { width: 131px; height: 27px; }
    .navbar__burger { display: block; }
    .navbar__menu {
        position: absolute; left: 0; right: 0; top: calc(100% + 10px);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 10px;
        background: var(--night);
        border: 1px solid var(--nav-border);
        border-radius: 26px;
        box-shadow: var(--nav-shadow);
        opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98);
        transform-origin: top center;
        transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
    }
    .menu-open .navbar__menu {
        opacity: 1; visibility: visible; transform: none;
        transition: opacity .25s ease, transform .25s ease;
    }
    .navbar__menu li + li { border-top: 1px solid rgba(234, 243, 255, .08); }
    .navbar__menu a { padding: 15px 18px; font-size: 17px; border-radius: 16px; }
    .navbar__menu a:hover { background: rgba(234, 243, 255, .06); }
    .navbar__theme {
        display: flex; align-items: center; justify-content: space-between;
        padding: 12px 12px 6px 18px; color: var(--on-night); font-size: 17px;
    }
    .navbar__theme .theme-switch { border: 1px solid rgba(234, 243, 255, .18); }

    .theme-bar { justify-content: center; padding-top: calc(var(--header-top) + var(--header-h) + 10px); }
}

/* Tablet */
@media (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "rep    infra"
            "mkt    cons"
            "web    web"
            "social social"
            "email  email";
        grid-auto-rows: auto;
    }
    .service-card--social p { padding-right: 0; }
    .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
    .contact-form { padding: 32px 28px 25px; }
    .contact-form__row { grid-template-columns: 1fr; }
    .partners-marquee { --gap: 64px; }
    .jobs { grid-template-columns: 1fr; gap: 18px; }
    .apply__list { padding-left: 40px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Telemóvel (mockup mobile) */
@media (max-width: 767px) {
    body { font-size: 14px; line-height: 24px; }

    .title { font-size: 24px; line-height: 30px; letter-spacing: 0; }
    .title--display { font-family: var(--font-body); }

    /* hero */
    .hero--home .hero__content { padding: 39px 0 99px; }
    .hero__title {
        max-width: 370px;
        font-family: var(--font-body);
        font-size: 28px; line-height: 34px; letter-spacing: 0;
    }
    .hero__text { max-width: 316px; margin-top: 25px; }
    .btn--hero { margin-top: 19px; height: 51px; padding: 0 25px; font-size: 14px; }
    .hero--page { min-height: 0; }
    .hero--page .hero__content { padding: 39px 0 63px; }
    .hero--page .hero__title { max-width: 320px; }
    .hero__subtitle { margin-top: 4px; color: var(--ink); }
    .hero--page .hero__subtitle { max-width: 340px; margin-top: 0; }
    .hero--404 .hero__subtitle { margin-top: 11px; }
    .hero--404 .hero__content { padding-bottom: 52px; }

    .section-arrow { top: -25px; width: 72px; height: 72px; margin-left: -36px; padding-top: 19px; }
    .section-arrow__icon { width: 26px; height: 18px; animation-name: arrow-bob-sm; }
    .section-arrow--dark { top: -23px; }

    /* sobre */
    .section--about { padding: 41px 0 25px; }
    .split { grid-template-columns: 1fr; }
    .split + .split { margin-top: 17px; }
    .split__media--team { margin: 0; }
    .split--who .split__body { padding-top: 0; margin-top: 25px; }
    .split--why .split__media { order: -1; margin-bottom: 25px; }
    .split__media--rounded img { border-radius: 20px; }
    .split__body .title + p { margin-top: 16px; }
    .split__body p + p { margin-top: 17px; }

    .timeline-block { margin-top: 25px; }
    .timeline-block__lead { display: none; }
    .timeline { margin-top: 26px; }
    .timeline::before { left: 13px; top: 35px; margin-left: -4px; }
    .timeline__item, .timeline__item--right { justify-content: flex-start; padding-left: 42px; margin-top: 17px !important; }
    .timeline__item:first-child { margin-top: 0 !important; }
    .timeline__item::before { left: 13px; top: 22px; width: 27px; height: 27px; margin-left: -13px; }
    .timeline__item:last-child::after { left: 13px; top: 36px; margin-left: -6px; }
    .timeline__card, .timeline__item--left .timeline__card {
        width: 100%; max-width: none; min-height: 157px; margin: 0;
        padding: 21px 16px 22px;
    }
    .timeline__year { font-family: var(--font-body); font-size: 24px; line-height: 30px; }
    .timeline__card p { margin-top: 9px; }

    /* serviços */
    .section--services { padding: 24px 0 51px; }
    .services__lead { margin-top: 16px; text-align: left; }
    .services-grid {
        margin-top: 17px;
        grid-template-columns: 1fr;
        grid-template-areas: none;
        row-gap: 17px;
    }
    .services-grid .service-card { grid-area: auto; }
    .service-card { padding: 24px 20px 24px; }
    .service-card--web { padding-left: 16px; padding-right: 16px; }
    .service-card p { margin-top: 18px; font-size: 14px; line-height: 21.5px; }
    .service-card p + p { margin-top: 21px; }

    /* parceiros */
    .section--partners { padding: 35px 0 59px; }
    .partners__lead { margin-top: 16px; }
    .partners-marquee { --gap: 44px; --scale: .8; margin-top: 26px; }

    /* contactos */
    .section--contact { padding: 25px 0 25px; }
    .contact {
        grid-template-columns: 1fr;
        grid-template-areas: "info" "form" "map";
        row-gap: 0;
    }
    .contact__info .title + p { margin-top: 16px; }
    .contact__info p + p { margin-top: 17px; }
    .contact__list { margin-top: 16px; }
    .contact__list li + li { margin-top: 14px; }
    .contact-form { margin-top: 9px; padding: 27px 29px 32px 24px; }
    .contact-form__row { gap: 0; }
    .contact-form__row .field + .field { margin-top: 17px; }
    .field + .field, .contact-form__row + .field, .field--subject + .field { margin-top: 17px; }
    .field label { font-size: 14px; margin-bottom: 8px; }
    .field input, .field select, .field textarea { font-size: 14px; }
    .select select { padding-left: 19px; }
    .field--check { gap: 21px; margin-top: 18px !important; }
    .field--check input { width: 24px; }
    .field--check label { margin: -3px 0 0; line-height: 25px; text-align: justify; }
    .btn--submit { margin-top: 5px; height: 42px; min-width: 214px; font-size: 14px; }
    .contact__map { margin-top: 22px; height: 264px; }

    .faq { margin-top: 25px; }
    .faq__title { text-align: left; }
    .faq__list { margin-top: 0; }
    .faq__q button { padding: 15px 0 14px; font-size: 14px; line-height: 24px; gap: 16px; }
    .faq__item:first-child .faq__q button { padding-top: 15px; }
    .faq__a p { padding: 12px 0 0; }

    /* páginas internas */
    .section--page { padding: 16px 0 40px; }
    .prose h2 { margin-top: 30px; font-size: 18px; line-height: 24px; }
    .jobs { margin-top: 20px; gap: 18px; }
    .job-card { padding: 18px 18px 38px; }
    .job-card__icon { width: auto; height: 52px; }
    .job-card__title { margin-top: 7px; font-size: 18px; line-height: 24px; }
    .job-card p { margin-top: 10px; font-size: 14px; line-height: 21px; }
    .apply { margin-top: 28px; }
    .apply__intro { margin-top: 8px; }
    .apply__list { margin-top: 6px; padding-left: 0; }
    .apply__list ul { padding-left: 16px; }
    .apply__outro { margin-top: 8px; }

    .robot { width: max(100%, 980px); margin-top: 32px; }
    .not-found__action { margin-top: 4px; padding-bottom: 48px; }

    /* rodapé */
    .site-footer__grid {
        grid-template-columns: 1fr auto;
        grid-template-areas: "brand menu" "support .";
    }
    .site-footer__title { font-size: 14px; line-height: 24px; }
    .site-footer__logo img { width: 131px; height: 27px; }
    .site-footer__brand address { margin-top: 20px; }
    .site-footer__brand address p + p { margin-top: 23px; }
    .site-footer__menu { padding-top: 10px; }
    .site-footer__col ul { margin-top: 13px; }
    .site-footer__support { margin-top: 25px; padding-top: 0; }
    .site-footer__support ul { margin-top: 12px; }
    .site-footer__bottom {
        flex-direction: column; align-items: stretch;
        width: min(1200px, 100% - 38px);
        margin-top: 33px; padding: 8px 0 30px;
    }
    .site-footer__bottom p { text-align: center; }
    .site-footer__bottom ul { justify-content: space-between; margin-top: 15px; gap: 16px; }
}

@media (max-width: 380px) {
    .hero__title { font-size: 25px; line-height: 31px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .section-arrow__icon { animation: none !important; }
    /* sem animação: mostra os logótipos parados, em várias linhas */
    .partners-marquee { -webkit-mask-image: none; mask-image: none; }
    .partners { animation: none !important; flex-wrap: wrap; justify-content: center; row-gap: 28px; flex-shrink: 1; }
    .partners[aria-hidden="true"] { display: none; }
}

.prose a.link-plain { color: inherit; font-weight: inherit; text-decoration: underline; text-decoration-color: var(--field-border); text-underline-offset: 3px; }
.timeline__item:nth-child(2)::before,
.timeline__item:nth-child(3)::before { top: 77px; }
@media (max-width: 767px) {
    .timeline__item:nth-child(2)::before,
    .timeline__item:nth-child(3)::before { top: 22px; }
}
.section--404 .section-arrow { z-index: 2; }

/* ==========================================================================
   Aviso de cookies
   ========================================================================== */
.cookie-banner {
    position: fixed; z-index: 200;
    left: 0; right: 0; bottom: 24px;
    margin: 0 auto;
    display: flex; align-items: center; gap: 19px;
    width: min(560px, calc(100% - 48px));
    padding: 14px 17px 14px 17px;
    background: #373737;
    color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55);
    font-size: 14px; line-height: 20px;
    opacity: 0;
    transform: translateY(calc(100% + 32px));
    transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .35s ease;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner p { flex: 1; margin: 0; }
.cookie-banner a { color: #9ECFF8; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner a:hover { color: #C7E6FF; }
.cookie-banner__btn {
    flex: none;
    height: 38px; padding: 0 16px;
    background: #1B6FB7; color: #FFFFFF;
    border: 0; border-radius: 19px;
    font-size: 14px; font-weight: 500;
    cursor: pointer;
    transition: background-color .2s ease;
}
.cookie-banner__btn:hover { background: #165C99; }
.cookie-banner__btn:focus-visible { outline: 2px solid #9ECFF8; outline-offset: 2px; }
[data-theme="dark"] .cookie-banner { border: 1px solid rgba(234, 243, 255, .08); }

@media (max-width: 767px) {
    .cookie-banner {
        bottom: 12px;
        width: calc(100% - 24px);
        gap: 14px;
        padding: 14px 14px 14px 16px;
    }
}
@media (max-width: 420px) {
    .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; }
    .cookie-banner__btn { align-self: flex-end; }
}
