/* A&V Sistemas — site institucional
   Cores da logo: azul-marinho #173956, cristal verde-água/azul.
   Para trocar a identidade, edite só as variáveis abaixo. */

:root {
  --paper: #F7FAFD;
  --white: #FFFFFF;
  --ink: #10304C;
  --navy: #173956;
  --teal: #1FB5B8;
  --teal-ink: #0A7A80;      /* verde-água para texto sobre fundo claro (contraste AA) */
  --sky: #3F7FBF;
  --mist: #E8F0F7;
  --line: #D3E0EC;
  --muted: #4A6277;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --max: 1160px;
  --cut: 40px; /* tamanho do canto cortado, igual às facetas da logo */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; color: var(--navy); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

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

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: 10px;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-teal { background: var(--teal); color: #062A3A; }
.btn-teal:hover { background: #3CCBCD; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 250, 253, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: auto; }
.brand-name { font: 800 1.3rem/1 var(--font-display); letter-spacing: -0.02em; color: var(--navy); }
.brand-name small { display: block; margin-top: 3px; font: 500 .72rem/1 var(--font-body); letter-spacing: 0; color: var(--muted); }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--teal); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../assets/facets.svg") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(100deg, transparent 18%, #000 62%);
  mask-image: linear-gradient(100deg, transparent 18%, #000 62%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 32px; padding-block: clamp(48px, 9vw, 112px); }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); font-weight: 800; max-width: 13ch; }
.hero-lead { margin-top: 24px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-mark { justify-self: center; width: min(100%, 440px); filter: drop-shadow(0 28px 40px rgba(16, 48, 76, .22)); animation: mark-in .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes mark-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Seções ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { max-width: 40rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.125rem; }

/* Sobre */
.about-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 80px); align-items: end; }
.about-top h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; }
.about-top p { color: var(--muted); font-size: 1.125rem; max-width: 46ch; }
.pillars { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--navy); }
.pillar { padding: 28px 28px 8px 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar h3 { font-size: 1.35rem; font-weight: 700; }
.pillar p { margin-top: 10px; color: var(--muted); }

/* Sistemas prontos */
.systems { background: var(--mist); }
.card-cut { filter: drop-shadow(0 2px 0 rgba(16, 48, 76, .06)) drop-shadow(0 18px 32px rgba(16, 48, 76, .10)); }
.card-cut > .card-body {
  background: var(--white);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.featured .card-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 4vw, 48px); }
.sys-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sys-title h3 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 600 .8rem/1.3 var(--font-body); }
.tag-live { background: #D8F4F2; color: #07666B; }
.tag-soon { background: var(--mist); color: var(--muted); }
.sys-desc { margin-top: 16px; color: var(--muted); }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px;
  background: var(--teal); clip-path: polygon(0 50%, 38% 100%, 100% 12%, 86% 0, 38% 70%, 14% 36%);
}
.sys-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { margin-top: 10px; font-size: .9rem; color: var(--muted); }

.media { display: flex; flex-direction: column; gap: 20px; }
.video {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: linear-gradient(135deg, var(--navy), #1F5A7E 60%, #1D8C9A);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  display: grid; place-items: center; color: #fff; text-align: center; overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-ph { display: grid; justify-items: center; gap: 10px; padding: 16px; }
.play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .7); display: grid; place-items: center; }
.play::after { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.video-ph span { font-weight: 600; }
.video-ph small { opacity: .8; }

.price { border-top: 1px solid var(--line); padding-top: 18px; }
.price-from { font-size: .95rem; color: var(--muted); }
.price-main { font: 800 clamp(2rem, 4vw, 2.75rem)/1.05 var(--font-display); letter-spacing: -0.02em; color: var(--navy); }
.price-main small { font: 500 1rem/1 var(--font-body); letter-spacing: 0; color: var(--muted); }
.price-note { margin-top: 6px; font-size: .95rem; color: var(--muted); }
.plans { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; font-size: .95rem; }
.plans li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.plans span:last-child { font-weight: 600; white-space: nowrap; }

.soon-grid { margin-top: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.soon .card-body { padding: clamp(22px, 3vw, 36px); height: 100%; display: flex; flex-direction: column; }
.soon h3 { font-size: 1.6rem; font-weight: 800; }
.soon .sys-desc { flex: 1; }
.soon .price { margin-top: 22px; }
.soon .price-main { font-size: 1.6rem; }
.soon .sys-actions { margin-top: 16px; }

/* Chamada final */
.cta { background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/facets.svg") left center / cover no-repeat; opacity: .22; mix-blend-mode: screen; -webkit-mask-image: linear-gradient(260deg, transparent 10%, #000 70%); mask-image: linear-gradient(260deg, transparent 10%, #000 70%); }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; padding-block: clamp(56px, 8vw, 96px); }
.cta h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; max-width: 16ch; }
.cta p { margin-top: 14px; color: #CFE0EE; max-width: 44ch; font-size: 1.125rem; }
.cta-side { display: grid; gap: 14px; justify-items: start; }
.cta-phone { font: 700 1.5rem/1.2 var(--font-display); color: #fff; text-decoration: none; }
.cta-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.cta-side small { color: #A9C2D6; }

/* Rodapé */
.site-footer { padding-block: 40px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .95rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.copy { width: 100%; font-size: .9rem; color: var(--muted); }

/* ---------- Páginas de texto (privacidade, termos) ---------- */
.doc { padding-block: clamp(40px, 7vw, 88px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; }
.doc .updated { margin-top: 10px; color: var(--muted); }
.doc h2 { margin-top: 40px; font-size: 1.4rem; font-weight: 700; }
.doc p, .doc li { margin-top: 12px; }
.doc ul { padding-left: 1.2em; margin: 0; }
.doc a { color: var(--teal-ink); text-underline-offset: 3px; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero .wrap, .about-top, .cta .wrap, .featured .card-body { grid-template-columns: 1fr; }
  .hero-mark { width: min(70%, 320px); justify-self: start; order: -1; }
  .hero::before { -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, transparent 70%); background-position: center top; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 24px 0 8px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .soon-grid { grid-template-columns: 1fr; }
  .nav { order: 3; width: 100%; gap: 22px; padding-bottom: 4px; }
}
@media (max-width: 520px) {
  .btn { width: 100%; }
  .btn-sm { width: auto; }
  .plans { grid-template-columns: 1fr; }
  .brand-name small { display: none; }
  .site-header .btn { display: none; }
  :root { --cut: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mark { animation: none; }
  .btn { transition: none; }
}
