/* =========================================================
   RSOM Audiovisuais — folha de estilos
   Cor de destaque: alterar --acc para a cor do logótipo
   ========================================================= */
:root {
    --bg: #0b0b0f;
    --bg-2: #121218;
    --bg-3: #1a1a22;
    --line: #2a2a35;
    --txt: #ececf1;
    --mut: #9a9aab;
    --acc: #2b7bff;
    --acc-2: #5ec8ff;
    --ok: #3ad29f;
    --err: #ff4d6a;
    --r: 14px;
    --wrap: 1180px;
    --head: 'Archivo', system-ui, sans-serif;
    --body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--txt);
    font: 400 1.0625rem/1.65 var(--body);
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--acc); color: #000; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

.kicker {
    font: 600 .8rem/1 var(--body); text-transform: uppercase; letter-spacing: .18em;
    color: var(--acc-2); margin-bottom: 1.1em; display: flex; align-items: center; gap: .7em;
}
.kicker::before { content: ''; width: 26px; height: 2px; background: currentColor; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .95em 1.6em; border-radius: 999px; border: 0; cursor: pointer;
    background: linear-gradient(135deg, var(--acc), var(--acc-2));
    color: #fff; font: 700 .95rem/1 var(--body); text-decoration: none;
    box-shadow: 0 8px 30px -8px rgb(43 123 255 / .55);
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgb(43 123 255 / .7); }
.btn--ghost { background: transparent; color: var(--txt); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .35); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn--sm { padding: .7em 1.2em; font-size: .85rem; }
.btn--full { width: 100%; padding: 1.1em; font-size: 1rem; }
.btn[disabled] { filter: grayscale(.6) brightness(.8); cursor: wait; transform: none; }

/* ---------- Topo ---------- */
.topo {
    position: fixed; inset: 0 0 auto; z-index: 50; height: 84px;
    transition: background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.topo.is-solid { background: rgb(11 11 15 / .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.topo__in { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.marca { text-decoration: none; display: flex; align-items: center; }
.marca img { height: 62px; width: auto; }
.marca__txt { font: 900 1.75rem/1 var(--head); letter-spacing: -.04em; }
.marca__txt span { color: var(--acc); }
.marca__txt--sm { font-size: 1.3rem; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--mut); transition: color .2s; position: relative; }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--txt); }
.nav a.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--acc); border-radius: 2px; }

.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--txt); margin: 5px 0; transition: transform .3s, opacity .3s; border-radius: 2px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
    padding: 120px 0 40px; overflow: hidden; isolation: isolate;
    background:
        linear-gradient(180deg, rgb(11 11 15 / .35) 0%, rgb(11 11 15 / .55) 55%, var(--bg) 100%),
        var(--hero-img, radial-gradient(ellipse 80% 60% at 50% 0%, #0b1d44 0%, var(--bg) 70%)) center / cover no-repeat;
}
.hero::after { /* grelha subtil tipo LED */
    content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35;
    background-image: radial-gradient(rgb(255 255 255 / .09) 1px, transparent 1.4px);
    background-size: 14px 14px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero__luzes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__luzes i {
    position: absolute; top: -10%; width: 34vmax; height: 120vh; transform-origin: 50% 0;
    background: linear-gradient(180deg, rgb(120 170 255 / .35), transparent 75%);
    clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
    filter: blur(6px); mix-blend-mode: screen; animation: varrer 9s ease-in-out infinite alternate;
}
.hero__luzes i:nth-child(1) { left: 2%;  --a: 18deg;  animation-delay: -2s; }
.hero__luzes i:nth-child(2) { left: 26%; --a: -14deg; animation-delay: -5s; background: linear-gradient(180deg, rgb(60 110 255 / .3), transparent 70%); }
.hero__luzes i:nth-child(3) { left: 50%; --a: 12deg;  animation-delay: -1s; background: linear-gradient(180deg, rgb(200 225 255 / .28), transparent 70%); }
.hero__luzes i:nth-child(4) { left: 72%; --a: -20deg; animation-delay: -7s; }
@keyframes varrer { from { transform: rotate(var(--a)); } to { transform: rotate(calc(var(--a) * -1)); } }

.hero__in { position: relative; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); font-weight: 900; letter-spacing: -.035em; max-width: 17ch; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--acc), var(--acc-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c9c9d4; max-width: 46ch; margin: 1.4em 0 2em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 70px;
    background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.hero__stats div { background: rgb(18 18 24 / .85); backdrop-filter: blur(8px); padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.hero__stats strong { font: 900 2rem/1 var(--head); color: var(--acc-2); }
.hero__stats span { color: var(--mut); font-size: .9rem; }

/* ---------- Secções ---------- */
.sec { padding: clamp(80px, 11vw, 140px) 0; }
.sec--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec__head { max-width: 680px; margin-bottom: 56px; }
.sec__head p:not(.kicker) { color: var(--mut); font-size: 1.1rem; }

.duo { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.duo__txt p { color: #c4c4cf; }
.duo__media img, .placeholder { border-radius: calc(var(--r) * 1.4); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.placeholder {
    display: grid; place-items: center; border: 1px solid var(--line);
    background:
        radial-gradient(circle at 30% 20%, rgb(43 123 255 / .35), transparent 50%),
        radial-gradient(circle at 80% 90%, rgb(94 200 255 / .2), transparent 55%),
        var(--bg-3);
}
.duo__media .placeholder img { width: 62%; max-width: 401px; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; opacity: .9; filter: drop-shadow(0 10px 40px rgb(43 123 255 / .5)); }
.placeholder span { font: 900 clamp(3rem, 8vw, 6rem)/1 var(--head); letter-spacing: -.05em; color: rgb(255 255 255 / .08); }

.checks { list-style: none; padding: 0; margin: 1.8em 0 0; display: grid; gap: .7em; }
.checks li { display: flex; gap: .8em; align-items: flex-start; font-weight: 500; }
.checks li::before {
    content: ''; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
    background: rgb(43 123 255 / .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235ec8ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Cards áreas */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
    position: relative; padding: 32px 26px 30px; border-radius: var(--r); overflow: hidden;
    background: var(--bg-3); border: 1px solid var(--line);
    transition: transform .3s, border-color .3s;
}
.card::before {
    content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
    background: radial-gradient(circle at 50% 0%, rgb(43 123 255 / .22), transparent 65%);
}
.card:hover { transform: translateY(-6px); border-color: rgb(43 123 255 / .5); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card__ico {
    width: 52px; height: 52px; padding: 12px; margin-bottom: 26px; border-radius: 12px;
    background: rgb(43 123 255 / .12); stroke: var(--acc); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.card p { color: var(--mut); font-size: .97rem; margin: 0; }

/* Tags eventos */
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.tags li {
    padding: .8em 1.3em; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2);
    font-weight: 500; transition: border-color .2s, color .2s, background .2s;
}
.tags li:hover { border-color: var(--acc); color: #fff; background: rgb(43 123 255 / .08); }

/* Galeria */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.galeria__item { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; }
.galeria__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.galeria__item:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgb(0 0 0 / .92); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: 8px; }
.lightbox button { position: absolute; top: 14px; right: 18px; font-size: 2.4rem; background: none; border: 0; color: #fff; cursor: pointer; }

/* Faixa CTA */
.faixa { padding: clamp(70px, 9vw, 110px) 0; text-align: center; position: relative; overflow: hidden;
    background: radial-gradient(ellipse 60% 120% at 50% 100%, rgb(43 123 255 / .28), transparent 70%), var(--bg); }
.faixa__in { max-width: 720px; }
.faixa p { color: #c4c4cf; font-size: 1.15rem; margin-bottom: 1.8em; }

/* ---------- Contacto ---------- */
.contacto { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.lista-contactos { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.lista-contactos li { display: flex; flex-direction: column; }
.lista-contactos .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--mut); margin-bottom: 2px; }
.lista-contactos a { font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.lista-contactos a:hover { color: var(--acc-2); }
.lista-contactos .nota { font-size: .8rem; color: var(--mut); margin-top: -12px; }
.redes { display: flex; gap: 10px; margin-bottom: 28px; }
.redes a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.redes a:hover { background: var(--acc); border-color: var(--acc); color: #000; }
.redes svg { width: 20px; height: 20px; fill: currentColor; }
.mapa { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; }
.mapa iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* Formulário */
.form { background: var(--bg-2); border: 1px solid var(--line); border-radius: calc(var(--r) * 1.4); padding: clamp(24px, 4vw, 40px); }
.form h3 { font-size: 1.7rem; }
.form__sub { color: var(--mut); margin-bottom: 26px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.campo { display: block; margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.campo > span, .campo legend { display: block; font-size: .85rem; font-weight: 600; color: #c4c4cf; margin-bottom: 7px; padding: 0; }
.campo input, .campo textarea {
    width: 100%; background: var(--bg); color: var(--txt); border: 1px solid var(--line); border-radius: 10px;
    padding: .85em 1em; font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.campo input::placeholder, .campo textarea::placeholder { color: #5f5f6e; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgb(43 123 255 / .2); }
.campo input[type="date"] { color-scheme: dark; }
.campo textarea { resize: vertical; min-height: 120px; }
.campo.is-invalid input, .campo.is-invalid textarea { border-color: var(--err); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .55em 1.05em; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-size: .92rem; transition: all .2s; user-select: none; }
.chip input:checked + span { background: var(--acc); border-color: var(--acc); color: #fff; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--acc-2); outline-offset: 2px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--mut); margin: 4px 0 22px; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--acc); width: 18px; height: 18px; flex: none; }
.consent.is-invalid { color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.aviso { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; font-size: .95rem; }
.aviso--ok { background: rgb(58 210 159 / .12); color: var(--ok); border: 1px solid rgb(58 210 159 / .35); }
.aviso--erro { background: rgb(255 77 106 / .1); color: var(--err); border: 1px solid rgb(255 77 106 / .35); }

/* ---------- Rodapé ---------- */
.rodape { border-top: 1px solid var(--line); padding: 30px 0; font-size: .88rem; color: var(--mut); }
.rodape__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rodape p { margin: 0; }
.topo-link { text-decoration: none; }
.topo-link:hover { color: var(--txt); }

/* ---------- Animações de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__luzes i { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .menu-btn { display: block; z-index: 2; }
    .nav {
        position: fixed; inset: 84px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
        background: rgb(11 11 15 / .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
        padding: 8px 20px 24px; transform: translateY(-12px); opacity: 0; visibility: hidden;
        transition: opacity .25s, transform .25s, visibility .25s;
    }
    .nav.is-open { opacity: 1; transform: none; visibility: visible; }
    .nav a:not(.btn) { padding: 16px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); color: var(--txt); }
    .nav a.is-active::after { display: none; }
    .nav .btn { margin-top: 18px; padding: 1em; font-size: 1rem; }
    .topo.menu-aberto { background: rgb(11 11 15 / .97); }

    .duo, .contacto { grid-template-columns: 1fr; }
    .duo__media { order: -1; }
    .duo__media img, .placeholder { aspect-ratio: 16/10; }
}
@media (max-width: 600px) {
    .cards, .grid2 { grid-template-columns: 1fr; }
    .hero { padding-top: 110px; }
    .hero__stats { grid-template-columns: 1fr; margin-top: 50px; }
    .hero__stats div { flex-direction: row; align-items: baseline; gap: 12px; padding: 16px 20px; }
    .hero__stats strong { font-size: 1.6rem; min-width: 64px; }
    .hero__ctas .btn { flex: 1 1 100%; }
    .rodape__in { flex-direction: column; text-align: center; }
}
.rodape__logo { height: 44px; width: auto; opacity: .85; }
@media (max-width: 600px) { .marca img { height: 52px; } }

/* ---------- Norton Audio ---------- */
.norton { position: relative; overflow: hidden;
    background: radial-gradient(ellipse 70% 60% at 85% 10%, rgb(43 123 255 / .14), transparent 70%), var(--bg); }
.grad { background: linear-gradient(90deg, var(--acc), var(--acc-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.norton__head { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; margin-bottom: 56px; }
.norton__head p:not(.kicker) { color: #c4c4cf; font-size: 1.08rem; }
.norton__marca {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    padding: 40px 28px; border-radius: calc(var(--r) * 1.4); text-decoration: none; min-height: 220px;
    background: linear-gradient(145deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line);
    transition: border-color .3s, transform .3s;
}
.norton__marca img { max-width: 280px; max-height: 90px; width: auto; height: auto; }
.norton__txt { font: 900 clamp(2.4rem, 4.5vw, 3.4rem)/.9 var(--head); letter-spacing: .02em; text-align: center; }
.norton__txt small { display: block; font-weight: 500; font-size: .38em; letter-spacing: .62em; margin-top: .55em; padding-left: .62em; color: var(--mut); }

.sistemas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sistema {
    display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: var(--r);
    background: var(--bg-2); border: 1px solid var(--line); transition: border-color .3s, transform .3s;
}
.sistema:hover { transform: translateY(-6px); border-color: rgb(43 123 255 / .5); }
.sistema--top { background: linear-gradient(160deg, rgb(43 123 255 / .2), var(--bg-2) 60%); border-color: rgb(43 123 255 / .45); }
.sistema__marca { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--mut); }
.sistema h3 { font-size: 2.8rem; font-weight: 900; margin: .25em 0 .15em; letter-spacing: -.03em; }
.sistema__tipo { color: var(--acc-2); font-weight: 600; font-size: 1rem; margin: 0; }
.norton__destaque {
    font: 700 clamp(1.35rem, 2.6vw, 2rem)/1.3 var(--head); letter-spacing: -.015em; max-width: 920px;
    margin: 0 0 44px; padding-left: 24px; border-left: 3px solid var(--acc);
}

@media (max-width: 1024px) { .sistemas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .norton__head { grid-template-columns: 1fr; } .norton__marca { min-height: 0; padding: 30px; } }
@media (max-width: 480px) { .sistemas { grid-template-columns: 1fr; } }
