/* ────────────────────────────────────────────────────────────────────────
   site.css — componentes do site institucional Kyndas
   Paleta institucional Kyndas em tons verdes. Complementa o tailwind.css
   compilado: aqui ficam apenas componentes com estado/animação que não
   compensa expressar em utilitárias (modal, formulário, toast, reveal, nav).
   ──────────────────────────────────────────────────────────────────────── */

:root {
  --forest: #072014;
  --forest-900: #0a2a1a;
  --forest-700: #13402a;
  --emerald: #186b4b;
  --emerald-600: #15795a;
  --mint: #a4f3ca;
  --gold: #8dbd96;
  --gold-light: #cde9d6;
  --acrylic: #bbbcb9;
  --paper: #f8f9fa;
  --ink: #0f1f17;
  --muted: #4d5d54;
  --line: #dbe5de;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* Marca: a logo institucional é apenas KYNDAS. Produto não entra no lockup. */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  text-decoration: none;
  min-width: 0;
}
.brand-seal {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255,255,255,.34), rgba(255,255,255,.05));
  border: 1px solid rgba(164, 243, 202, .42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 12px 26px -18px rgba(7,32,20,.65);
  color: var(--gold-light);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.28rem;
  line-height: 1;
}
.brand-word {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: var(--forest);
  letter-spacing: .02em;
  font-size: clamp(1.18rem, 2.2vw, 1.48rem);
  line-height: 1;
}
.brand-word-on-dark { color: #fff; }
.brand-word-gold { color: var(--gold-light); }
.brand-mini {
  display: block;
  margin-top: .18rem;
  color: var(--emerald-600);
  font-size: .54rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.brand-glass {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(187,188,185,.5);
  background:
    linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,255,255,.28)),
    linear-gradient(135deg, rgba(164,243,202,.22), rgba(24,107,75,.10));
  box-shadow: 0 24px 58px -28px rgba(7, 32, 20, .42), inset 0 1px 0 rgba(255,255,255,.8);
}
.brand-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.45), transparent 38%);
  pointer-events: none;
}
.gold-rule {
  width: 54px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

/* ─── NAVBAR: estado ao rolar ─────────────────────────────────────────── */
#navbar {
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 24px -12px rgba(7, 32, 20, 0.25);
  border-bottom-color: rgba(7, 32, 20, 0.08);
}

/* ─── MOBILE NAV ──────────────────────────────────────────────────────── */
#mobileNav {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--forest);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
#mobileNav.open { transform: translateX(0); }
#mobileNav a { font-size: 1.25rem; font-weight: 600; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }

/* ─── REVEAL ON SCROLL ────────────────────────────────────────────────── */
/* Só esconde quando há JS (html.js). Sem JS, todo o conteúdo aparece. */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
html.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── MODAL (login) ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(7, 32, 20, .55);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 36px; width: 100%; max-width: 440px;
  position: relative;
  transform: translateY(20px) scale(.97);
  transition: transform .25s ease;
  box-shadow: 0 24px 60px rgba(7, 32, 20, .25);
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--muted);
  font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 6px;
}
.modal-close:hover { color: var(--ink); }
.modal-panel { display: none; }
.modal-panel.active { display: block; }
.modal-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; color: var(--ink); font-family: 'Montserrat', sans-serif; }
.modal-sub { font-size: .85rem; color: var(--muted); margin-bottom: 22px; line-height: 1.6; }

/* ─── FORM CONTROLS ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; font-family: 'Manrope', sans-serif;
}
.form-control {
  width: 100%; background: #f1f6f2;
  border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px;
  font-family: 'Manrope', sans-serif; font-size: .9rem;
  color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(24, 107, 75, .12); }
.form-control::placeholder { color: rgba(15, 31, 23, .4); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; appearance: none; }

/* ─── TOAST ───────────────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--forest); border-radius: 12px;
  padding: 14px 20px; font-size: .88rem; color: #f1f6f2;
  z-index: 8000; transform: translateY(20px);
  opacity: 0; transition: opacity .3s, transform .3s;
  pointer-events: none; max-width: 320px;
  font-family: 'Manrope', sans-serif;
  box-shadow: 0 12px 32px -4px rgba(7, 32, 20, .35);
}
#toast.show { opacity: 1; transform: translateY(0); }
#toast.success { background: var(--emerald-600); }
#toast.error { background: #b3261e; }

/* ─── FORM SUCCESS ────────────────────────────────────────────────────── */
.form-success-msg { display: none; text-align: center; padding: 32px 20px; }
.form-success-msg.visible { display: block; }
.form-success-msg .check { font-size: 2.5rem; margin-bottom: 12px; }

/* ─── ARTICLE BODY (blog) ─────────────────────────────────────────────── */
.article-body { color: #344c3e; font-size: 1.05rem; line-height: 1.75; }
.article-body > * + * { margin-top: 1.25rem; }
.article-body h2 { font-family: 'Montserrat', sans-serif; color: var(--forest); font-size: 1.6rem; font-weight: 800; line-height: 1.25; margin-top: 2.5rem; }
.article-body h3 { font-family: 'Montserrat', sans-serif; color: var(--forest); font-size: 1.2rem; font-weight: 700; margin-top: 1.75rem; }
.article-body p { color: #3c4f44; }
.article-body strong { color: var(--forest); font-weight: 700; }
.article-body a { color: var(--emerald-600); font-weight: 600; text-decoration: underline; }
.article-body ul, .article-body ol { padding-left: 1.25rem; }
.article-body li { margin-top: .5rem; }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body blockquote { border-left: 4px solid var(--mint); background: #f1f6f2; padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; font-style: italic; color: var(--forest); }

/* ─── FAQ ─────────────────────────────────────────────────────────────── */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform .2s ease; }
