/* ==========================================================================
   Trívia Sistemas — styles.css
   Mobile-first · tokens em :root · dark mode via prefers-color-scheme
   ========================================================================== */

:root {
  /* Marca */
  --navy-900: #071330;
  --navy-800: #0B1B3A;
  --navy-700: #12285A;
  --navy-600: #1C3A7A;
  --teal-400: #14C8B4;
  --teal-300: #5FE0D1;
  --teal-ink: #0A7A6E;          /* teal para texto sobre claro (AA) */

  /* Superfícies (tema claro) */
  --bg: #FFFFFF;
  --bg-tint: #F3F6FB;
  --surface: #FFFFFF;
  --surface-2: #F7F9FC;
  --border: #DFE5EF;
  --text: #0B1B3A;
  --text-muted: #4A5878;
  --accent-text: var(--teal-ink);
  --shadow-sm: 0 1px 2px rgba(11, 27, 58, .06), 0 2px 8px rgba(11, 27, 58, .05);
  --shadow-lg: 0 24px 60px -20px rgba(11, 27, 58, .35);

  /* Tipografia */
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --gutter: 1.25rem;
  --max: 1180px;
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 68px;
  --focus: 0 0 0 3px var(--bg), 0 0 0 6px var(--teal-400);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071330;
    --bg-tint: #0A1A3A;
    --surface: #0E2147;
    --surface-2: #0B1B3A;
    --border: #1F3567;
    --text: #EAF0FA;
    --text-muted: #A7B4CF;
    --accent-text: var(--teal-300);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .6);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--teal-400); color: var(--navy-900);
  padding: .7rem 1rem; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1.2 var(--font-body);
  padding: .8rem 1.3rem; min-height: 44px;
  border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn--primary { background: var(--teal-400); color: var(--navy-900); box-shadow: 0 8px 24px -10px rgba(20, 200, 180, .8); }
.btn--primary:hover { background: var(--teal-300); transform: translateY(-1px); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn--sm { padding: .55rem 1.1rem; font-size: .95rem; min-height: 40px; }
.btn--lg { padding: .95rem 1.6rem; }
.btn--block { width: 100%; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 700 .78rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 1rem;
}
.eyebrow--on-dark { color: var(--teal-300); }
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(20, 200, 180, .2);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; position: relative; min-height: 44px; text-decoration: none; color: #fff; font: 800 1.15rem var(--font-head); }
.brand-logo { height: 46px; width: auto; }
.brand-logo--dark { display: none; }

/* Estado "rolado" (fundo sólido) */
.site-header.is-solid {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
@supports not (background: color-mix(in srgb, red, blue)) {
  .site-header.is-solid { background: var(--bg); }
}
.site-header.is-solid .brand-logo--dark { display: block; }
.site-header.is-solid .brand-logo--light { display: none; }
@media (prefers-color-scheme: dark) {
  .site-header.is-solid .brand-logo--dark { display: none; }
  .site-header.is-solid .brand-logo--light { display: block; }
}

/* Toggle hambúrguer */
.nav-toggle {
  position: relative; z-index: 60;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06);
  color: #fff; cursor: pointer; display: grid; place-items: center;
}
.site-header.is-solid .nav-toggle { color: var(--text); border-color: var(--border); background: var(--surface); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Menu mobile (painel) */
.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--navy-800);
  border-top: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .5);
  padding: .75rem var(--gutter) 1.5rem;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform .25s var(--ease), opacity .2s, visibility 0s .25s;
}
.site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.nav-list a:not(.btn) {
  display: block; padding: .9rem .25rem; color: #EAF0FA; text-decoration: none;
  font: 600 1.05rem var(--font-head); border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-list a:not(.btn):hover { color: var(--teal-300); }
.nav-cta { margin-top: 1.1rem; }
.nav-cta .btn { width: 100%; }
/* Header fica sólido escuro com o menu aberto (mobile) */
.site-header.menu-open { background: var(--navy-800); box-shadow: none; }
.site-header.menu-open .brand-logo--dark { display: none; }
.site-header.menu-open .brand-logo--light { display: block; }
.site-header.menu-open .nav-toggle { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; background: none; border: 0; box-shadow: none; padding: 0;
    max-height: none; overflow: visible; transform: none; opacity: 1; visibility: visible;
  }
  .nav-list { display: flex; align-items: center; gap: .25rem; }
  .nav-list a:not(.btn) {
    border: 0; padding: .55rem .8rem; border-radius: 999px;
    font: 500 .95rem var(--font-body); color: rgba(255, 255, 255, .86);
  }
  .nav-list a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .08); }
  .site-header.is-solid .nav-list a:not(.btn) { color: var(--text-muted); }
  .site-header.is-solid .nav-list a:not(.btn):hover { color: var(--text); background: var(--bg-tint); }
  .nav-cta { margin: 0 0 0 .75rem; }
  .nav-cta .btn { width: auto; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-800); color: #fff;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(20, 200, 180, .22), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, rgba(28, 58, 122, .9), transparent 70%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(80% 70% at 60% 35%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-title {
  font-size: clamp(2.15rem, 1.4rem + 3.6vw, 3.9rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.06; margin-bottom: 1.25rem;
}
.hl {
  background: linear-gradient(90deg, var(--teal-400), var(--teal-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: #C3CEE4; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 2rem; }
.hero-actions .btn { flex: 1 1 100%; }
@media (min-width: 480px) { .hero-actions .btn { flex: 0 0 auto; } }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: #A9B7D3; font-size: .93rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-points li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: rgba(20, 200, 180, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2314C8B4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* Visual do hero (mockups em CSS) */
.hero-visual { position: relative; max-width: 560px; width: 100%; margin-inline: auto; padding: 1.5rem 0 2rem; }
.mock {
  background: rgba(14, 33, 71, .82);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: .7rem .9rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.mock-bar i:first-child { background: #FF6B6B; opacity: .8; }
.mock-url {
  margin-left: .6rem; font: 500 .72rem var(--font-body); color: #8A9AC0;
  background: rgba(255, 255, 255, .05); padding: .25rem .7rem; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.mock-body { display: grid; grid-template-columns: 44px 1fr; min-height: 230px; }
.mock-side { display: flex; flex-direction: column; gap: 10px; padding: 14px 10px; border-right: 1px solid rgba(255, 255, 255, .06); }
.mock-side b { height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .07); }
.mock-side b.on { background: rgba(20, 200, 180, .5); }
.mock-main { padding: 14px; display: grid; gap: 14px; min-width: 0; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 10px; display: grid; gap: 7px; }
.kpi span { height: 6px; width: 60%; border-radius: 4px; background: rgba(255, 255, 255, .15); }
.kpi strong { height: 12px; width: 80%; border-radius: 4px; background: rgba(255, 255, 255, .35); }
.kpi--accent strong { background: var(--teal-400); }
.mock-chart { width: 100%; height: 96px; }
.mock-line { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 2.2s .4s var(--ease) forwards; }
.mock-rows { display: grid; gap: 8px; }
.mock-rows i { height: 10px; border-radius: 4px; background: rgba(255, 255, 255, .07); }
.mock-rows i:nth-child(2) { width: 85%; }
.mock-rows i:nth-child(3) { width: 65%; }

.mock--card { position: absolute; padding: .8rem 1rem; }
.mock--api {
  left: -2%; bottom: 0; display: grid; gap: .25rem;
  font: 500 .78rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #D6DEEE; animation: float 7s ease-in-out infinite;
}
.mock--api code { white-space: nowrap; }
.c-k { color: var(--teal-300); font-weight: 700; }
.c-ok { color: #8BE9C9; }
.mock--phone {
  right: -2%; top: 0; width: 96px; height: 170px; border-radius: 20px;
  display: flex; flex-direction: column; gap: 8px; padding: 22px 12px 12px;
  animation: float 8s 1s ease-in-out infinite reverse;
}
.phone-notch { position: absolute; top: 8px; left: 50%; width: 30px; height: 5px; margin-left: -15px; border-radius: 4px; background: rgba(255, 255, 255, .2); }
.mock--phone b { height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .08); }
.mock--phone b.short { height: 14px; width: 70%; }
.phone-btn { margin-top: auto; height: 20px; border-radius: 999px; background: var(--teal-400); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 479px) {
  .mock--phone { width: 78px; height: 140px; right: 0; }
  .mock--api { left: 0; }
}

@media (min-width: 960px) {
  .hero { padding: calc(var(--header-h) + 5rem) 0 7rem; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .hero-visual { margin: 0; }
}

/* ==========================================================================
   Seções
   ========================================================================== */
.section { padding: 4.5rem 0; }
.section--tint { background: var(--bg-tint); }
@media (min-width: 960px) { .section { padding: 7rem 0; } }

.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-lead { color: var(--text-muted); font-size: 1.08rem; }
.section-head--on-dark .section-lead { color: #B5C2DC; }

/* ---------- Serviços ---------- */
.cards { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--teal-400), transparent);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card p { color: var(--text-muted); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  box-shadow: 0 10px 22px -12px rgba(11, 27, 58, .7);
}
.card-icon svg, .feature-icon svg, .ci svg {
  width: 26px; height: 26px; fill: none; stroke: var(--teal-400); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.ticks { display: grid; gap: .5rem; margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--border); font-size: .94rem; }
.ticks li { display: flex; gap: .55rem; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 2px; background: var(--teal-400); transform: translateY(-2px); }

/* ---------- Processo ---------- */
.steps { display: grid; gap: 1.1rem; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem 1.4rem;
}
.step p { color: var(--text-muted); margin: 0; }
.step-num {
  display: inline-block; font: 800 2.6rem/1 var(--font-head); letter-spacing: -.04em; margin-bottom: 1rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent-text);
}
@media (min-width: 1100px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 2.9rem; right: -1.1rem; width: 1.1rem; height: 2px;
    background: linear-gradient(90deg, var(--teal-400), transparent);
  }
}

/* ---------- Diferenciais ---------- */
.split { display: grid; gap: 3rem; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; } }
.tech { margin-top: 2rem; }
.tech-label { font: 700 .82rem var(--font-head); text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  font-size: .9rem; font-weight: 500; padding: .45rem .85rem; border-radius: 999px;
  background: var(--bg-tint); border: 1px solid var(--border);
}
.features { display: grid; gap: 1rem; }
.feature {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  padding: 1.35rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
}
.feature h3 { margin-bottom: .3rem; }
.feature p { margin: 0; color: var(--text-muted); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(20, 200, 180, .12);
}
.feature-icon svg { stroke: var(--accent-text); }

/* ---------- Projetos (escuro) ---------- */
.section--dark {
  position: relative; isolation: isolate; color: #fff;
  background: radial-gradient(70% 60% at 100% 0%, rgba(20, 200, 180, .14), transparent 60%), var(--navy-800);
}
.section--dark h2 { color: #fff; }
.projects { display: grid; gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.project { background: var(--navy-800); padding: 1.75rem 1.5rem; transition: background-color .3s; }
.project:hover { background: var(--navy-700); }
.project h3 { color: #fff; }
.project p { color: #B5C2DC; margin: 0; }
.project-tag {
  display: inline-block; margin-bottom: 1rem; padding: .25rem .65rem; border-radius: 999px;
  font: 700 .7rem var(--font-head); letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-300); border: 1px solid rgba(20, 200, 180, .4);
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.25rem 2.75rem 1.25rem 0; font: 700 1.08rem/1.4 var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .25rem; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%230A7A6E' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .25s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: rgba(20, 200, 180, .14); }
.faq summary:hover { color: var(--accent-text); }
.faq-body { padding: 0 2.75rem 1.4rem 0; color: var(--text-muted); }
.faq-body p { margin: 0; }

/* ---------- Contato ---------- */
.contact { padding-top: 0; }
.section.contact { padding-top: 1rem; }
.contact-card {
  display: grid; gap: 2.25rem; position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-800); color: #fff; border-radius: 28px;
  padding: 2.25rem 1.25rem;
  box-shadow: var(--shadow-lg);
}
.contact-card::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -200px; top: -240px;
  background: radial-gradient(circle, rgba(20, 200, 180, .3), transparent 65%);
}
.contact-card h2 { color: #fff; }
.contact-lead { color: #B5C2DC; }
.contact-list { display: grid; gap: 1.1rem; margin-top: 2rem; }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: center; min-width: 0; }
.contact-list a { color: #fff; font-weight: 600; text-decoration-color: rgba(20, 200, 180, .6); text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--teal-300); }
.contact-item { display: grid; gap: .1rem; min-width: 0; }
.contact-label { font: 700 .72rem/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: #8FA0C2; }
.contact-text { color: #D6DEEE; }
.ci { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.ci svg { width: 22px; height: 22px; }

.contact-form {
  display: grid; gap: 1rem; min-width: 0;
  background: var(--surface); color: var(--text);
  border-radius: 20px; padding: 1.4rem;
}
.field { display: grid; gap: .4rem; min-width: 0; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: .92rem; }
.opt { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; font: 400 1rem/1.4 var(--font-body); color: var(--text);
  background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 12px;
  padding: .7rem .9rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-ink); box-shadow: 0 0 0 4px rgba(20, 200, 180, .2); }
.field [aria-invalid="true"] { border-color: #C2334D; }
.field-error { color: #C2334D; font-size: .85rem; margin: 0; }
@media (prefers-color-scheme: dark) {
  .field [aria-invalid="true"] { border-color: #FF8A9B; }
  .field-error { color: #FF8A9B; }
}
.form-note { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--text-muted); text-align: center; }
.form-status { margin: 0; font-size: .92rem; font-weight: 600; color: var(--accent-text); text-align: center; }
.form-status:empty { display: none; }
.form-status.is-pending { color: var(--text-muted); }
.form-status.is-error { color: #C2334D; }
@media (prefers-color-scheme: dark) { .form-status.is-error { color: #FF8A9B; } }

/* Retorno do envio sem fetch (?contato=ok|erro ou #contato-ok / #contato-erro) */
.form-flash { display: none; margin: 0; padding: .8rem 1rem; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.form-flash:target, .form-flash.is-shown { display: block; }
.form-flash--ok { background: rgba(20, 200, 180, .14); color: var(--accent-text); border: 1px solid rgba(20, 200, 180, .45); }
.form-flash--error { background: rgba(194, 51, 77, .1); color: #C2334D; border: 1px solid rgba(194, 51, 77, .35); }
@media (prefers-color-scheme: dark) { .form-flash--error { color: #FF8A9B; } }

/* Honeypot: fora da tela (não usar display:none, alguns bots ignoram campos ocultos assim) */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Turnstile: reserva altura para evitar salto de layout (65px normal / 140px compacto) */
.captcha { min-height: 65px; display: grid; justify-items: center; min-width: 0; }
.captcha .cf-turnstile { width: 100%; max-width: 100%; display: flex; justify-content: center; }
/* Abaixo de ~425px a caixa fica < 300px e o JS usa o formato compacto (150x140) */
@media (max-width: 424px) { .captcha { min-height: 140px; } }
.form-noscript { margin: 0; font-size: .88rem; color: var(--text-muted); text-align: center; }

.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn.is-loading::before {
  content: ""; width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Elementos que só fazem sentido com JS (ex.: e-mail montado no rodapé) */
html:not(.js) .js-only { display: none; }

@media (min-width: 960px) {
  .contact-card { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; padding: 3.5rem; align-items: center; }
  .contact-form { padding: 2rem; }
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.site-footer { background: var(--navy-900); color: #B5C2DC; padding: 3.5rem 0 1.5rem; margin-top: 4.5rem; font-size: .95rem; }
@media (min-width: 960px) { .site-footer { margin-top: 7rem; } }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.3fr; } }
.footer-brand img { height: 52px; width: auto; margin-bottom: 1rem; }
.footer-nav ul { display: grid; gap: .5rem; }
.footer-nav a, .footer-contact a { color: #D6DEEE; text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--teal-300); text-decoration: underline; text-underline-offset: 4px; }
.footer-contact { display: grid; gap: .5rem; align-content: start; overflow-wrap: anywhere; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-top: 1.5rem; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.to-top { color: var(--teal-300); text-decoration: none; font-weight: 600; }

/* ==========================================================================
   Reveal (IntersectionObserver)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Movimento reduzido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .mock-line { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
}
