/* ============ ROOT & RESETS ============ */
:root {
  --ink: #171410;
  --paper: #F7F5F0;
  --paper-deep: #EFEBE2;
  --yellow: #FFC400;
  --yellow-deep: #D9A400;
  --charcoal: #1C1A16;
  --stone: #8C887E;
  --stone-light: #DEDAD0;
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow-deep);
  font-weight: 700;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; text-decoration: none; }

/* ============ ANIMAÇÕES & MARKERS ============ */
.marker {
  position: relative;
  white-space: normal;
  font-weight: 700;
  z-index: 1;
}
.marker::before {
  content: "";
  position: absolute;
  left: -3px; right: -3px;
  bottom: 0.05em;
  height: 0.5em;
  background: var(--yellow);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(.4,0,.2,1);
}
.marker.on-dark::before { background: var(--yellow); opacity: 0.9; }
.is-visible .marker::before { transform: scaleX(1); }
.is-visible .marker:nth-of-type(2)::before { transition-delay: 0.15s; }
.is-visible .marker:nth-of-type(3)::before { transition-delay: 0.3s; }

.on-dark .statement .marker { 
  color: inherit; 
  transition: color 0.4s ease-in-out;
}
.is-visible .on-dark .statement .marker { 
  color: var(--ink); 
}
.on-dark .statement .marker::before { 
  background: var(--yellow); 
  opacity: 1; 
  height: 105%;
  bottom: -2px;
}

/* ============ IMAGENS DE BACKGROUND DAS SEÇÕES ============ */
/* Seção Cultura: Imagem escura com overlay para garantir contraste */
.hotsite-bg-cultura {
  background-image: linear-gradient(rgba(28, 26, 22, 0.92), rgba(28, 26, 22, 0.92)), url('../images/rodney-ribeiro-3.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Seção Formatos: Textura ou foto sutil clara */
.hotsite-bg-formatos {
  background-image: linear-gradient(rgba(239, 235, 226, 0.85), rgba(239, 235, 226, 0.85)), url('../images/rodney-ribeiro-4.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Seção Bio Rápida: Textura ou foto sutil clara */
.hotsite-bg-bio {
  background-image: linear-gradient(rgba(239, 235, 226, 0.85), rgba(239, 235, 226, 0.85)), url('../images/rodney-ribeiro-5.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============ NETWORK MOTIF ============ */
.network { position: absolute; pointer-events: none; opacity: 0.3; }
.network circle { fill: var(--ink); }
.network line { stroke: var(--ink); stroke-width: 1.4; }
.on-dark .network circle { fill: var(--yellow); }
.on-dark .network line { stroke: var(--stone); }

/* ============ NAV BAR ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247,245,240,0.0); transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: rgba(247,245,240,0.88); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--stone-light);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-mark { display: flex; align-items: center; gap: 10px; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.15rem; }
.logo-mark .dot { width: 10px; height: 10px; background: var(--yellow); border-radius: 50%; display: inline-block; }
.logo-mark span.sub { font-family: 'Space Mono'; font-weight: 400; font-size: 0.7rem; color: var(--stone); letter-spacing: 0.12em; margin-left: 6px; }
.nav-links { display: flex; gap: 32px; align-items: center; font-size: 0.92rem; font-weight: 600; }
.nav-links a { position: relative; padding: 4px 0; transition: color 0.2s; }
.nav-links a:hover { color: var(--yellow-deep); }
.nav-cta {
  background: var(--ink); color: #ffffff; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.88rem; transition: background 0.2s, transform 0.2s, color 0.2s; cursor: pointer; border: none;
}
.nav-cta:hover { background: var(--yellow-deep); color: var(--ink); transform: translateY(-1px); }
.nav-toggle { display: none; }

/* ============ HERO ============ */
.hero { position: relative; padding: 160px 0 120px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero-title { font-size: clamp(3.4rem, 9.5vw, 7.4rem); text-transform: uppercase; }
.hero-title .line1 { color: var(--ink); display: block; }
.hero-title .line2 { display: block; color: transparent; -webkit-text-stroke: 2px var(--stone); margin-top: -0.18em; }
.hero-bar { width: 64px; height: 8px; background: var(--yellow); margin-bottom: 28px; transform: scaleX(0); transform-origin: left; animation: growBar 1s 0.4s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes growBar { to { transform: scaleX(1); } }
.hero-sub { font-size: 1.18rem; max-width: 520px; color: #4A463F; margin: 26px 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(255,196,0,0.7); }
.hero-art { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; }
.hero-art img { width: 100%; height: auto; border-radius: 24px; object-fit: cover; }
.hero-eyebrow-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hero-eyebrow-row .rule { height: 1px; flex: 1; background: var(--stone-light); }

/* ============ SECTIONS PADDINGS (Padrão de Respiro) ============ */
.section { padding: 130px 0; position: relative; }
.section.tight { padding: 130px 0; }
.section-on-dark { color: var(--paper); }
.section-on-dark .eyebrow { color: var(--yellow); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1); }
.is-visible.reveal { opacity: 1; transform: translateY(0); }

/* ============ SOBRE ============ */
.about-grid { display: grid; grid-template-columns: 0.95fr 1.3fr; gap: 64px; align-items: center; }
.about-portrait { position: relative; border-radius: 18px; overflow: hidden; display: flex; }
.about-portrait img { width: 100%; height: auto; object-fit: cover; }
.about-portrait .tag { position: absolute; bottom: 22px; left: 22px; background: var(--yellow); color: var(--ink); font-family: 'Space Mono'; font-size: 0.72rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; letter-spacing: 0.06em; z-index: 2; }
.about-heading { font-size: clamp(2.1rem, 4vw, 3rem); margin: 14px 0 22px; }
.about-text { font-size: 1.08rem; color: #4A463F; max-width: 560px; }
.about-text + .about-text { margin-top: 16px; }

/* ============ DIAGRAMAÇÃO SESSÃO CULTURA (Duas Colunas) ============ */
.cultura-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  margin-top: 32px;
  align-items: start;
}
.cultura-heading {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--paper);
  line-height: 1.25;
}
.statement {
  font-size: 1.15rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: #D8D5CE;
}

/* ============ PALESTRAS ============ */
.content-heading { font-size: clamp(2.1rem, 4vw, 3rem); margin: 14px 0 50px; max-width: 600px; }
.content-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.ccard { background: var(--paper-deep); border: 1px solid var(--stone-light); border-radius: 16px; padding: 30px 26px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.ccard:hover { transform: translateY(-6px); border-color: var(--yellow); box-shadow: 0 16px 32px -22px rgba(0,0,0,0.35); }
.ccard .num { font-family: 'Space Mono'; font-size: 0.78rem; color: var(--yellow-deep); font-weight: 700; letter-spacing: 0.1em; display: block; margin-bottom: 14px; }
.ccard h3 { font-size: 1.18rem; margin-bottom: 10px; font-weight: 700; }
.ccard p { color: #4A463F; font-size: 0.97rem; }
.chips-label { font-family: 'Space Mono'; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); margin-bottom: 14px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 18px; font-size: 0.88rem; font-weight: 600; transition: background 0.2s, color 0.2s; }
.chip:hover { background: var(--ink); color: var(--paper); }

/* ============ FORMATOS ============ */
.formats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fcard { border: 1px solid var(--stone-light); border-radius: 18px; overflow: hidden; background: rgba(247, 245, 240, 0.9); backdrop-filter: blur(5px); transition: transform 0.25s, box-shadow 0.25s; }
.fcard:hover { transform: translateY(-6px); box-shadow: 0 18px 36px -24px rgba(0,0,0,0.3); }
.fcard-icon { background: var(--ink); padding: 42px 26px 28px; display: flex; justify-content: flex-start; }
.fcard-icon svg { width: 44px; height: 44px; stroke: var(--yellow); }
.fcard-body { padding: 26px; }
.fcard-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.fcard-body p { color: #4A463F; font-size: 0.96rem; }

/* ============ EMPRESAS E INSTITUIÇÕES ============ */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 120px; /* Força todas as linhas atuais e futuras a terem exatamente a mesma altura */
    gap: 14px;
    width: 100%;
}

/* Atualize a classe do tile para se adaptar ao novo comportamento do grid */
.logo-tile {
    border: 1.5px solid var(--stone-light);
    border-radius: 12px;
    width: 100%;
    height: 100%; /* Preenche os 90px estipulados pelo grid-auto-rows */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px; /* Espaçamento interno seguro para as marcas */
    overflow: hidden;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
    background-color: #fff;
}
.logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-tile:hover { border-color: var(--yellow); color: var(--ink); transform: translateY(-3px); }

/* Ajuste Fino de Escopo: Padronização Milimétrica do Botão "Seu Negócio" */
a.logo-tile.cta {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.92rem;
  display: flex; width: 100%; height: 100%; text-decoration: none;
}
a.logo-tile.cta:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* ============ BIO ============ */
.bio-grid { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 60px; }
.bio-list { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.bio-list li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; align-items: start; font-size: 1.02rem; color: #3C3833; padding-bottom: 22px; border-bottom: 1px solid var(--stone-light); }
.bio-list li:last-child { border-bottom: none; }
.bio-list .bullet { width: 10px; height: 10px; background: var(--yellow); border-radius: 2px; margin-top: 8px; transform: rotate(45deg); }
.bio-list strong { color: var(--ink); }

/* ============ FOOTER ============ */
.cta { background: var(--charcoal); color: var(--paper); padding: 30px 0 30px; position: relative; overflow: hidden; }
.cta-title { font-size: clamp(2.6rem, 7vw, 5.2rem); text-transform: uppercase; }
.cta-title .line1 { color: var(--paper); }
.cta-title .line2 { color: var(--yellow); }
.cta-sub { font-size: 1.15rem; color: #C9C5BC; max-width: 520px; margin: 24px 0 40px; }
.cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; padding-bottom: 70px; border-bottom: 1px solid #3A3631; }
.cta-contact { display: flex; flex-direction: column; gap: 14px; }
.cta-contact a { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.05rem; transition: color 0.2s; }
.cta-contact a:hover { color: var(--yellow); }
.cta-contact .label { font-family: 'Space Mono'; font-size: 0.7rem; color: var(--stone); letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-bottom: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; color: var(--stone); }
.footer-socials { display: flex; gap: 18px; align-items: center; }
.footer-socials a { color: var(--paper); transition: color 0.2s, transform 0.2s; display: inline-flex; }
.footer-socials a:hover { color: var(--yellow); transform: translateY(-2px); }
.footer-socials svg { width: 22px; height: 22px; fill: currentColor; }

/* ============ MODAL SYSTEM ============ */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(23, 20, 16, 0.65); backdrop-filter: blur(8px); z-index: 200;
  display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-container {
  background: var(--paper); border: 1px solid var(--stone-light); border-radius: 24px;
  padding: 40px; width: 100%; max-width: 540px; position: relative;
  box-shadow: 0 24px 64px -16px rgba(0,0,0,0.3); transform: translateY(20px); transition: transform 0.3s ease;
}
.modal-overlay.active .modal-container { transform: translateY(0); }
.modal-close { position: absolute; top: 24px; right: 24px; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--stone); transition: color 0.2s; }
.modal-close:hover { color: var(--ink); }
.modal-container h3 { font-size: 1.8rem; margin-bottom: 8px; color: var(--ink); }
.modal-container p { font-size: 0.95rem; color: #4A463F; margin-bottom: 28px; }

/* ============ FORMULÁRIO (CONTACT FORM 7 CLEAN DESIGN) ============ */
.wpcf7-form-control-container { display: block; margin-bottom: 16px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%; padding: 14px 18px; border: 1.5px solid var(--stone-light);
  background: var(--paper-deep); border-radius: 10px; font-family: 'Inter', sans-serif;
  color: var(--ink); font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus {
  border-color: var(--yellow-deep); outline: none; box-shadow: 0 0 0 3px rgba(255,196,0,0.15);
}
.wpcf7 textarea { height: 110px; resize: none; }
.wpcf7 input[type="submit"] {
  background: var(--ink); color: #ffffff; border: none; padding: 15px 32px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; width: 100%; transition: background 0.2s, transform 0.2s; margin-top: 8px;
}
.wpcf7 input[type="submit"]:hover { background: var(--yellow-deep); color: var(--ink); }

/* Mensagens de validação do CF7 */
.wpcf7 .wpcf7-not-valid-tip { font-size: 0.8rem; color: #dc3232; margin-top: 4px; font-weight: 600; }
.wpcf7 .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; border: 2px solid transparent; }
.wpcf7 .wpcf7-status-mail-sent { border-color: #46b450; background: rgba(70, 180, 80, 0.1); color: #46b450; }
.wpcf7 .wpcf7-status-validation-failed, .wpcf7 .wpcf7-status-aborted { border-color: #dc3232; background: rgba(220, 50, 50, 0.1); color: #dc3232; }

/* ============ RESPONSIVE ============ */
@media (max-width: 920px){
  .hero-grid, .about-grid, .bio-grid, .cultura-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 140px 0 90px; }
  .content-cards, .formats-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
  .nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); padding: 24px 32px; gap: 18px; box-shadow: 0 12px 24px -16px rgba(0,0,0,0.2); }
  .nav-cta { margin-top: 6px; align-self: flex-start; }
}
@media (max-width: 600px){
  .wrap { padding: 0 22px; }
  .section, .section.tight { padding: 90px 0; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-container { padding: 30px 20px; }
}
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
  .reveal, .is-visible.reveal { opacity: 1; transform: none; }
  .marker::before { transform: scaleX(1); }
}
:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 3px; }