/* ==========================================================
   Computer System Service — folha de estilos
   Ideia central: o anel do "C" do logótipo e os círculos do
   cartaz formam o topo; os serviços são unidades de rack.
   ========================================================== */

:root {
  --ink: #062b3f;
  --ink-2: #0b3a54;
  --cyan: #05b6d1;
  --cyan-deep: #04788c;
  --ice: #eaf6f9;
  --white: #ffffff;
  --text: #17394b;
  --muted: #4a6676;
  --line: #cfe5ec;
  --led: #b8e04a;

  --font-head: "Chakra Petch", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 76px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0; }
ul, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

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

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font: 600 1rem/1 var(--font-head);
  color: var(--ink); background: var(--cyan);
  border: 2px solid var(--cyan); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--small { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand span { font: 700 1.05rem/1.1 var(--font-head); color: var(--ink); max-width: 11ch; }

.menu { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.menu a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:not(.btn):hover { border-color: var(--cyan); }

.menu-btn { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--ice); cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-btn i:nth-of-type(1) { top: 16px; }
.menu-btn i:nth-of-type(2) { top: 22px; }
.menu-btn i:nth-of-type(3) { top: 28px; }
.menu-btn[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- topo (hero) ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) var(--section-y); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero h1 { font-size: clamp(2.35rem, 5.4vw, 4.35rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
.lead { margin-top: 24px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 52ch; color: var(--muted); }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* composição circular */
.orbit { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin-inline: auto; }
.orbit__disc { position: absolute; inset: 4% 2% 2% 8%; border-radius: 50%; background: var(--cyan); }
.orbit__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: var(--ink); stroke-linecap: round; transform-origin: 50% 50%; }
.ring--a { stroke-width: 1.4; stroke-dasharray: 205 90; transform: rotate(-38deg); }
.ring--b { stroke-width: .6; stroke-dasharray: 150 110; transform: rotate(130deg); }

.orbit__pic { position: absolute; margin: 0; border-radius: 50%; overflow: hidden; background: var(--ice); border: 6px solid #fff; box-shadow: 0 0 0 3px var(--ink); }
.orbit__pic img { width: 100%; height: 100%; object-fit: cover; }
.orbit__pic--main { width: 70%; aspect-ratio: 1; left: 11%; top: 14%; }
.orbit__pic--cam  { width: 36%; aspect-ratio: 1; right: 0;  bottom: 5%; }
.orbit__pic--fan  { width: 25%; aspect-ratio: 1; right: 9%; top: 3%; }

.led { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--led); box-shadow: 0 0 0 4px rgba(184,224,74,.28), 0 0 14px 2px rgba(184,224,74,.8); }
.led--a { left: 4%;  top: 52%; }
.led--b { left: 9%;  top: 60%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(5,182,209,.25), 0 0 14px 2px rgba(5,182,209,.8); }
.led--c { left: 14%; top: 68%; }

/* ---------- serviços ---------- */
.services { background: var(--ice); padding-block: var(--section-y); }
.services__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.services__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.services h2, .about h2, .contact h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 700; line-height: 1.1; text-wrap: balance; }
.services__intro p { margin-top: 18px; color: var(--muted); max-width: 44ch; }
.services__photo { margin-top: 32px; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 22px; }

.rack { display: grid; gap: 10px; }
.unit {
  position: relative;
  display: grid; gap: 4px;
  padding: 20px 56px 20px 60px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .2s, transform .2s;
}
/* orelha esquerda do rack, com LED */
.unit::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 40px;
  background: var(--ink); border-radius: 11px 0 0 11px;
}
.unit__led {
  position: absolute; left: 14px; top: 24px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--led); box-shadow: 0 0 0 3px rgba(184,224,74,.25), 0 0 10px 1px rgba(184,224,74,.85);
  transition: background .2s, box-shadow .2s;
}
/* orelha direita, com parafusos */
.unit::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 30px; transform: translateY(-50%);
  background:
    radial-gradient(circle at 50% 25%, var(--line) 0 2.5px, transparent 3px),
    radial-gradient(circle at 50% 75%, var(--line) 0 2.5px, transparent 3px);
}
.unit:hover { border-color: var(--cyan); }
.unit:hover .unit__led { background: var(--cyan); box-shadow: 0 0 0 3px rgba(5,182,209,.25), 0 0 10px 1px rgba(5,182,209,.85); }
.unit h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.unit p { font-size: .98rem; color: var(--muted); max-width: 62ch; }

.more { margin-top: 10px; background: var(--ink); border-radius: 12px; color: #fff; }
.more summary {
  list-style: none; cursor: pointer; padding: 18px 24px; font: 600 1.05rem/1.3 var(--font-head);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--cyan); transition: transform .25s; }
.more[open] summary::after { transform: rotate(45deg); }
.more ul { padding: 4px 24px 22px; display: grid; gap: 10px; }
.more li { position: relative; padding-left: 22px; font-size: .98rem; color: #d3e8ef; }
.more li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--led); }

/* ---------- frase de diferencial ---------- */
.statement { background: var(--cyan); padding-block: clamp(48px, 7vw, 88px); }
.statement p { font: 600 clamp(1.5rem, 3.6vw, 2.7rem)/1.2 var(--font-head); color: var(--ink); max-width: 28ch; text-wrap: balance; }

/* ---------- sobre ---------- */
.about { padding-block: var(--section-y); }
.about__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__text p { margin-top: 20px; max-width: 58ch; }
.about__text h2 + p { margin-top: 24px; }

.about__photos { position: relative; aspect-ratio: 1 / 1.05; }
.about__photos img { position: absolute; object-fit: cover; border-radius: 22px; }
.about__photos .p1 { width: 58%; height: 78%; left: 0; top: 0; }
.about__photos .p2 { width: 52%; height: 70%; right: 0; bottom: 0; border: 8px solid #fff; border-radius: 26px; }

.creed { margin-top: clamp(48px, 7vw, 88px); border-top: 2px solid var(--ink); }
.creed > div { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 4fr); gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.creed dt { font: 700 1.5rem/1.2 var(--font-head); color: var(--ink); }
.creed dd { max-width: 70ch; }

.values { margin-top: clamp(40px, 6vw, 72px); }
.values > h3 { font-size: 1.5rem; font-weight: 700; }
.values__grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.values h4 { font-size: 1.15rem; font-weight: 600; color: var(--cyan-deep); }
.values p { margin-top: 10px; font-size: .98rem; color: var(--muted); }

/* ---------- contacto ---------- */
.contact { background: var(--ink); color: #d3e8ef; padding-block: var(--section-y); }
.contact h2 { color: #fff; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact__info > p { margin-top: 18px; max-width: 44ch; }

.phones { margin-top: 36px; display: grid; gap: 4px; }
.phones a { font: 700 clamp(1.9rem, 4.2vw, 3rem)/1.15 var(--font-head); color: #fff; text-decoration: none; width: fit-content; border-bottom: 3px solid transparent; transition: border-color .2s, color .2s; }
.phones a:hover { color: var(--cyan); border-color: var(--cyan); }

.reach { margin-top: 36px; display: grid; gap: 20px; }
.reach span { display: block; font-size: .9rem; color: #8fb5c4; margin-bottom: 2px; }
.reach a { color: #fff; font-weight: 500; text-underline-offset: 4px; overflow-wrap: anywhere; }
.reach a:hover { color: var(--cyan); }

.form { background: var(--ink-2); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 18px; }
.form h3 { color: #fff; font-size: 1.4rem; }
.form label { display: grid; gap: 6px; }
.form label span { font-size: .92rem; font-weight: 500; color: #b7d3dd; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: #fff; background: var(--ink);
  border: 1.5px solid rgba(255,255,255,.22); border-radius: 12px; padding: 13px 14px;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #b7d3dd 50%), linear-gradient(135deg, #b7d3dd 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(5,182,209,.3); }
.form [aria-invalid="true"] { border-color: #ff9d8a; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form__status { min-height: 1.5em; font-size: .95rem; color: var(--led); }
.form__status.is-error { color: #ffb4a4; }

/* ---------- rodapé ---------- */
.site-footer { background: #041e2d; color: #9fc0cd; padding-block: 32px; font-size: .95rem; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.foot__brand { display: flex; align-items: center; gap: 12px; }
.foot__brand strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.05rem; }
.foot__brand span { display: block; font-size: .88rem; }
.foot a { color: #fff; text-underline-offset: 4px; }
.foot a:hover { color: var(--cyan); }

/* ---------- movimento: um único momento no carregamento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .ring { stroke-dashoffset: 400; animation: draw 1.6s cubic-bezier(.2,.7,.2,1) .15s forwards; }
  .ring--b { animation-delay: .45s; }
  .orbit__disc { animation: pop .8s cubic-bezier(.2,.8,.2,1) both; }
  .orbit__pic { animation: pop .7s cubic-bezier(.2,.8,.2,1) both; }
  .orbit__pic--main { animation-delay: .25s; }
  .orbit__pic--fan  { animation-delay: .55s; }
  .orbit__pic--cam  { animation-delay: .75s; }
  .led { animation: pop .4s ease both; }
  .led--a { animation-delay: 1.0s; } .led--b { animation-delay: 1.15s; } .led--c { animation-delay: 1.3s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .hero__grid, .services__grid, .about__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .services__intro { position: static; }
  .services__photo { aspect-ratio: 16 / 9; }
  .orbit { max-width: 460px; }
  .about__photos { max-width: 520px; }
  .values__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .menu.is-open { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 16px; }
}

@media (max-width: 560px) {
  .creed > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .unit { padding: 18px 20px 18px 56px; }
  .unit::after { display: none; }
  .actions .btn, .form__actions .btn { width: 100%; }
}

/* ---------- formulário: campo-armadilha e botão a enviar ---------- */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn:disabled:hover { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
