/* =========================================================================
   ARQUIVO GERADO — concatenação manual de fonts.css + colors-and-type.css +
   landing.css, nessa ordem. Existe só para reduzir de 3 para 1 requisição
   HTTP de CSS render-blocking no carregamento da página (achado do
   PageSpeed Insights). Este tema não tem build tool (sem npm/webpack).

   IMPORTANTE: se algum dos 3 arquivos-fonte for editado, este arquivo
   precisa ser regenerado manualmente (recolar o conteúdo atualizado aqui,
   na mesma ordem). Os arquivos-fonte continuam no tema (usados também pelo
   add_editor_style() em functions.php, para preview no editor de blocos).
   ========================================================================= */

/* ───────────────────────── fonts.css ───────────────────────── */

/* Raleway — minimum weights needed: 400, 500, 600, 700, 800 */
@font-face { font-family:"Raleway"; src:url("../fonts/Raleway-Regular.ttf")     format("truetype"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Raleway"; src:url("../fonts/Raleway-Medium.ttf")      format("truetype"); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"Raleway"; src:url("../fonts/Raleway-SemiBold.ttf")    format("truetype"); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:"Raleway"; src:url("../fonts/Raleway-Bold.ttf")        format("truetype"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Raleway"; src:url("../fonts/Raleway-ExtraBold.ttf")   format("truetype"); font-weight:800; font-style:normal; font-display:swap; }
/* Variable fallback for any weight we didn't ship a static for */
@font-face { font-family:"Raleway"; src:url("../fonts/Raleway-VariableFont_wght.ttf") format("truetype-variations"); font-weight:100 900; font-style:normal; font-display:swap; }

/* ───────────────────── colors-and-type.css ───────────────────── */

/* =========================================================================
   SIMCORP — Colors & Type Tokens
   Source: "Manual da Marca - SIMCORP V1.0" (Agosto/2020) + simcorp.com.br
   ========================================================================= */

/* --- Webfont: Raleway (self-hosted variable font) ----------------------- */

:root {
  /* ============================================================
     COLORS — Primary palette
     The brand pairs deep navy ("solidity") with two greens
     ("life & proximity"). The greens always appear as gradients
     in the SIMCORP mark.
     ============================================================ */
  --sc-blue-900:        #023859;  /* primary navy - dominant on type, footers, headers */
  --sc-blue-700:        #024873;  /* slightly lighter navy - used in gradients with blue-900 */
  --sc-green-500:       #84BF04;  /* signature lime/leaf green - CTAs, accents */
  --sc-green-300:       #ACBF65;  /* muted olive green - gradients & soft accents */

  /* Brand gradients (per manual: greens are constructed as gradients) */
  --sc-gradient-green:  linear-gradient(135deg, #84BF04 0%, #ACBF65 100%);
  --sc-gradient-blue:   linear-gradient(135deg, #023859 0%, #024873 100%);
  --sc-gradient-brand:  linear-gradient(135deg, #024873 0%, #023859 60%, #84BF04 100%);

  /* ============================================================
     COLORS — Secondary palette
     Used pontualmente (occasionally) for complex compositions,
     highlights and details.
     ============================================================ */
  --sc-blue-500:        #0079C1;  /* bright corporate blue - links, info */
  --sc-gray-700:        #4D4D4D;  /* body text on light backgrounds */
  --sc-gray-400:        #B3B3B3;  /* dividers, muted text, borders */
  --sc-gray-50:         #EFF1EF;  /* page wash / soft backgrounds */

  /* ============================================================
     SEMANTIC TOKENS — Foreground
     ============================================================ */
  --fg-1:               var(--sc-blue-900);   /* headings, primary type */
  --fg-2:               var(--sc-gray-700);   /* body text */
  --fg-3:               var(--sc-gray-400);   /* muted / captions */
  --fg-on-brand:        #FFFFFF;              /* type on navy / green */
  --fg-link:            var(--sc-blue-500);
  --fg-link-hover:      var(--sc-blue-700);
  --fg-success:         var(--sc-green-500);
  --fg-danger:          #C0392B;              /* derived — not in manual; flagged */
  --fg-warning:         #E67E22;              /* derived — not in manual; flagged */

  /* ============================================================
     SEMANTIC TOKENS — Background / Surface
     ============================================================ */
  --bg-page:            #FFFFFF;
  --bg-soft:            var(--sc-gray-50);
  --bg-surface:         #FFFFFF;
  --bg-surface-alt:     #F7F8F7;
  --bg-inverse:         var(--sc-blue-900);
  --bg-accent:          var(--sc-green-500);

  /* ============================================================
     SEMANTIC TOKENS — Borders
     ============================================================ */
  --border-subtle:      #E4E7E5;
  --border-default:     var(--sc-gray-400);
  --border-strong:      var(--sc-blue-900);
  --border-focus:       var(--sc-blue-500);

  /* ============================================================
     TYPE — Family
     The brand uses ONE family: Raleway, in Regular / SemiBold /
     ExtraBold (manual). We expose additional weights (500/700) for
     UI density flexibility.
     ============================================================ */
  --font-sans:          "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display:       "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:          ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --weight-regular:     400;
  --weight-medium:      500;
  --weight-semibold:    600;
  --weight-bold:        700;
  --weight-extrabold:   800;

  /* ============================================================
     TYPE — Scale (modular, base 16px)
     ============================================================ */
  --fs-12:              0.75rem;   /* 12 — overline / micro */
  --fs-14:              0.875rem;  /* 14 — caption */
  --fs-16:              1rem;      /* 16 — body */
  --fs-18:              1.125rem;  /* 18 — body-lg / lead */
  --fs-20:              1.25rem;   /* 20 — h5 */
  --fs-24:              1.5rem;    /* 24 — h4 */
  --fs-32:              2rem;      /* 32 — h3 */
  --fs-40:              2.5rem;    /* 40 — h2 */
  --fs-56:              3.5rem;    /* 56 — h1 / display */
  --fs-72:              4.5rem;    /* 72 — hero display */

  /* ============================================================
     TYPE — Line height & letter spacing
     ============================================================ */
  --lh-tight:           1.1;
  --lh-snug:            1.25;
  --lh-normal:          1.5;
  --lh-relaxed:         1.65;

  --tracking-tight:     -0.01em;
  --tracking-normal:    0;
  --tracking-wide:      0.04em;
  --tracking-caps:      0.08em;  /* all-caps headings, eyebrows, buttons */

  /* ============================================================
     RADII — modest, corporate. The mark itself has soft curves
     but UI cards on the live site are mostly square/lightly rounded.
     ============================================================ */
  --radius-none:        0;
  --radius-sm:          2px;
  --radius-md:          4px;
  --radius-lg:          8px;
  --radius-xl:          12px;
  --radius-pill:        999px;

  /* ============================================================
     SHADOWS — soft, low-contrast. Corporate B2B, not playful.
     ============================================================ */
  --shadow-none:        none;
  --shadow-xs:          0 1px 2px rgba(2, 56, 89, 0.06);
  --shadow-sm:          0 2px 6px rgba(2, 56, 89, 0.08);
  --shadow-md:          0 6px 18px rgba(2, 56, 89, 0.10);
  --shadow-lg:          0 14px 40px rgba(2, 56, 89, 0.14);
  --shadow-focus:       0 0 0 3px rgba(0, 121, 193, 0.30);

  /* ============================================================
     SPACING — 4px base
     ============================================================ */
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ============================================================
     MOTION — short, professional. No bouncy easings.
     ============================================================ */
  --ease-out:           cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:        cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast:      120ms;
  --duration-base:      200ms;
  --duration-slow:      320ms;
}

/* =========================================================================
   SEMANTIC ELEMENT STYLES
   ========================================================================= */
html, body {
  font-family: var(--font-sans);
  color: var(--fg-2);
  background: var(--bg-page);
  font-size: var(--fs-16);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--fg-1);
  font-weight: var(--weight-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4) 0;
}

h1 { font-size: var(--fs-56); font-weight: var(--weight-extrabold); }
h2 { font-size: var(--fs-40); font-weight: var(--weight-extrabold); }
h3 { font-size: var(--fs-32); font-weight: var(--weight-bold);     }
h4 { font-size: var(--fs-24); font-weight: var(--weight-semibold); }
h5 { font-size: var(--fs-20); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-normal); }
h6 {
  font-size: var(--fs-14);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--sc-green-500);
}

p {
  margin: 0 0 var(--space-4) 0;
  font-size: var(--fs-16);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
}

.lead {
  font-size: var(--fs-18);
  line-height: var(--lh-relaxed);
  color: var(--fg-1);
  font-weight: var(--weight-medium);
}

.eyebrow {
  font-size: var(--fs-12);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--sc-green-500);
}

a {
  color: var(--fg-link);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--fg-link-hover); }

small, .caption { font-size: var(--fs-14); color: var(--fg-3); }

code, kbd, samp, .mono {
  font-family: var(--font-mono);
  font-size: 0.95em;
  background: var(--bg-soft);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
}

hr {
  border: 0;
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-8) 0;
}

/* ───────────────────────── landing.css ───────────────────────── */

/* =========================================================================
   KLAVEN Landing Page — local styles, on top of SIMCORP design tokens.
   ========================================================================= */

* { box-sizing: border-box; }
/* No global smooth-scroll — we use behavior:'smooth' in JS handlers only,
   so programmatic jumps from tools can land instantly. */
/* A causa real do sticky do header "sumindo" era outra (o wrapper
   wp-block-template-part colapsando de altura — ver style.css), não a
   conversão overflow-y:visible->auto que a regra abaixo tentava evitar
   (essa teoria foi descartada depois de confirmada ao vivo, mas a regra
   ficou aqui sem necessidade). A combinação overflow-x:clip + overflow-y:
   visible no <html> raiz é historicamente instável entre navegadores —
   suspeita de causar um espaço em branco grande no fim da página
   especificamente no Chrome iOS (não reproduzido no Safari do mesmo
   aparelho). Removida a regra do <html>; a contenção de overflow horizontal
   (por causa do honeypot do formulário, off-screen via left:-9999px) agora
   é feita no <body>, mais previsível entre navegadores. */
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--fg-1);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* ─── Layout primitives ─── */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.section { padding: 112px 0; position: relative; }
.section-tight { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  background:
    radial-gradient(circle at 18% 22%, rgba(132,191,4,0.12), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(0,121,193,0.18), transparent 50%),
    linear-gradient(135deg, #023b5b 0%, #012a44 100%);
  color: #fff;
}
.section-dark h1,
.section-dark h2,
.section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.78); }

/* ─── Eyebrow ─── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sc-blue-900);
  background: rgba(132,191,4,0.18);
  border: 1px solid rgba(132,191,4,0.45);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--sc-green-500);
  box-shadow: 0 0 0 3px rgba(132,191,4,0.25);
}
.eyebrow.on-dark {
  color: #fff;
  background: rgba(132,191,4,0.15);
  border-color: rgba(132,191,4,0.55);
}

/* ─── Display headings ─── */
.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--sc-blue-900);
  margin: 0 0 22px 0;
}
.h-display .accent {
  background: linear-gradient(135deg, #84BF04 0%, #6FA303 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--sc-blue-900);
  margin: 0 0 20px 0;
}
.lead-large {
  font-size: 19px;
  line-height: 1.6;
  color: var(--fg-2);
  font-weight: 500;
  max-width: 62ch;
  margin: 0 0 32px 0;
}
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head .lead-large { margin-left: auto; margin-right: auto; }

/* ─── Buttons ─── */
.btn {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn-primary {
  background: var(--sc-green-500);
  color: var(--sc-blue-900);
  box-shadow: 0 6px 18px rgba(132,191,4,0.30);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #84BF04 0%, #6FA303 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(132,191,4,0.40);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--sc-blue-900);
  color: #fff;
}
.btn-secondary:hover {
  background: linear-gradient(135deg, #024873 0%, #023859 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--sc-blue-900);
  border: 1.5px solid var(--sc-gray-400);
}
.btn-ghost:hover {
  border-color: var(--sc-blue-900);
  color: var(--sc-blue-900);
  transform: translateY(-1px);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--sc-blue-900);
  border-color: #fff;
}
.btn-link {
  background: transparent; padding: 6px 0;
  text-transform: none; letter-spacing: 0; font-size: 14px;
  color: var(--sc-blue-700);
}
.btn-link:hover { color: var(--sc-green-500); }
.btn .arrow { transition: transform var(--duration-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Cards & primitives ─── */
.card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(132,191,4,0.45);
  box-shadow: var(--shadow-md);
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
}
.pill .d { width: 6px; height: 6px; border-radius: 50%; }
.pill.success { background: #EAF6D4; color: #4A6E03; }
.pill.success .d { background: #84BF04; }
.pill.info    { background: #DDEEF8; color: #024873; }
.pill.info .d { background: #0079C1; }
.pill.warn    { background: #FCEED9; color: #8A4F0C; }
.pill.warn .d { background: #E67E22; }
.pill.muted   { background: #EFF1EF; color: #4D4D4D; }
.pill.muted .d { background: #B3B3B3; }

/* ─── Reveal: no-op (content visible always). We had a fade-in animation
   here but the iframe screenshot tooling captures it stuck at frame 0,
   which hides content. Keep .reveal as a placeholder hook for future use. */
.reveal { opacity: 1; }

/* ─── Grain texture for hero, light ─── */
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ─── Subtle KLAVEN dotted background ─── */
.dotted-bg {
  background-image: radial-gradient(rgba(2,56,89,0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -11px -11px;
}

/* ─── Floating cards animation ─── */
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
@keyframes slide-in-card {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ticker {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(132,191,4,0.18), transparent);
  background-size: 200% 100%;
  animation: shimmer 2.4s linear infinite;
}

/* ─── Scrollbar polish for embedded mock ─── */
.mock-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.mock-scroll::-webkit-scrollbar-thumb { background: rgba(2,56,89,0.18); border-radius: 999px; }

/* ─── Small util ─── */
.divider { height: 1px; background: var(--border-subtle); }
.kicker {
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sc-green-500);
}
.text-muted { color: var(--fg-3); }
.mono { font-family: var(--font-mono); }

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
}
