/*
Theme Name: Inteligência Online TV
Theme URI: https://inteligenciaonline.tv.br
Author: M4R Inteligência Digital
Description: Tema Warm Editorial retro-futurista. Full-width com container centralizado.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: io-theme
*/

/* ─────────────────────────────────────
   VARIÁVEIS
───────────────────────────────────── */
:root {
  --cream:    #F2EDE4;
  --cream2:   #EDE6D8;
  --ink:      #1A1712;
  --terra:    #D4522A;
  --terra-lt: #F0906E;
  --forest:   #2A5C45;
  --plum:     #5C3F7A;
  --amber:    #C4963A;
  --white:    #FDFAF5;
  --rule:     rgba(26,23,18,0.12);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Syne', sans-serif;
  --font-mono:    'Space Mono', 'Courier New', monospace;

  --shadow-card: 6px 6px 0 var(--ink);
  --transition:  0.22s ease;

  /*
    CONTAINER — largura máxima do conteúdo interno.
    O fundo das seções sempre vai 100% da tela.
    O conteúdo respira com padding lateral de 5%.
  */
  --container-max: 1200px;
  --container-pad: var(--section-pad-h); /* alias — mantém compatibilidade */
  --section-pad-h:  8%;   /* margem horizontal uniforme de todas as seções */

  /* ── Ritmo vertical de seções ── */
  --section-pad-v:  72px;   /* padrão desktop */
}

/* ─────────────────────────────────────
   RESET
───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}
/* Grain sutil */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9000; opacity: 0.45;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ─────────────────────────────────────
   LAYOUT — regra central do projeto

   .io-section  → fundo 100% da tela
   .io-wrap     → conteúdo centralizado com max-width
───────────────────────────────────── */
.page-wrap {
  width: 100%;
  overflow-x: hidden;
}

/* Wrapper interno — usado DENTRO de cada seção */
.io-wrap {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-pad-h);
  padding-right: var(--section-pad-h);
}

/* Versão estreita para texto editorial */
.io-wrap--narrow {
  max-width: 780px;
}

/* ─────────────────────────────────────
   TIPOGRAFIA
───────────────────────────────────── */
.kicker {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 8px; display: block;
}
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400; font-style: italic;
  color: var(--ink); line-height: 1.15;
}
.sec-title strong {
  font-style: normal; font-family: var(--font-body);
  font-weight: 800; color: var(--terra);
}
.sec-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}
.sec-header .sec-count {
  font-family: var(--font-body); font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  color: rgba(26,23,18,0.07); line-height: 1; flex-shrink: 0;
}

/* ─────────────────────────────────────
   BOTÕES
───────────────────────────────────── */
.io-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 11px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 11px 22px; cursor: pointer;
  text-decoration: none; transition: var(--transition);
}
.io-btn--hero   { background: var(--cream); color: var(--ink); }
.io-btn--hero:hover { background: var(--terra); color: #fff; }
.io-btn--primary{ background: var(--terra); color: #fff; }
.io-btn--primary:hover { background: var(--ink); }
.io-btn--dark   { background: var(--ink); color: var(--cream); }
.io-btn--dark:hover { background: var(--terra); }
.io-btn--outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.io-btn--outline:hover { background: var(--ink); color: var(--cream); }

/* ─────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ─────────────────────────────────────
   CURSOR
───────────────────────────────────── */
.io-cursor {
  width: 10px; height: 10px;
  border: 1.5px solid var(--terra); border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width 0.2s, height 0.2s;
}
.io-cursor.hover { width: 36px; height: 36px; background: rgba(212,82,42,0.1); }
.io-cursor-dot {
  width: 4px; height: 4px; background: var(--terra);
  border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
}

/* ─────────────────────────────────────
   RESPONSIVO GLOBAL
───────────────────────────────────── */
@media (max-width: 768px) {
  :root { --container-pad: 8%; }
  .sec-header { flex-direction: column; align-items: flex-start; gap: 4px; }
  .sec-header .sec-count { display: none; }
  * { cursor: auto !important; }
  .io-cursor, .io-cursor-dot { display: none; }
}

@media (max-width: 480px) {
  :root { --container-pad: 4%; }
  .io-btn { font-size: 10px; padding: 9px 16px; }
}

/* ─────────────────────────────────────
   RITMO VERTICAL — responsivo
───────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-pad-v: 52px; --section-pad-h: 5%; }
}
@media (max-width: 480px) {
  :root { --section-pad-v: 40px; --section-pad-h: 4%; }
}
