/* =========================================================
   Regenti — shared stylesheet (tokens, base components)
   Used by: home.html, eventos.html
   ========================================================= */

/* ---------- Font: General Sans (variable) ---------- */
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-VariableItalic.woff2') format('woff2');
  font-weight: 200 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --color-regenti: #081E3F;
  --color-regenti-light: #12305A;
  --color-regenti-accent: #91D400;
  --color-regenti-accent-dark: #7AB800;

  --color-bg: #FAFAFA;
  --color-bg-alt: #F5F7FA;
  --color-bg-elevated: #FFFFFF;

  --color-border: #E2E6EC;
  --color-border-strong: #C9D0D9;

  --color-text: #081E3F;
  --color-text-muted: #5A6A7E;
  --color-text-faint: #9AA5B5;

  /* Single typeface across the entire site — General Sans (variable).
     Display and mono fall back to the same family so visual hierarchy
     comes from weight/size/letter-spacing instead of typeface swaps. */
  --font-sans: 'General Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'General Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'General Sans', ui-monospace, monospace;

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-soft: cubic-bezier(0.45, 0, 0.55, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}
::selection { background: rgba(145, 212, 0, 0.30); color: var(--color-regenti); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Keyframes ---------- */
@keyframes fly-out-up {
  to { transform: translateY(-100%); opacity: 0; }
}
@keyframes fly-in-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}
@keyframes draw-line {
  from { stroke-dashoffset: var(--len); }
  to   { stroke-dashoffset: 0; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes word-blur-in {
  from { opacity: 0; filter: blur(8px); transform: translateY(8px); }
  to   { opacity: 1; filter: blur(0);   transform: translateY(0); }
}
@keyframes header-in {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dot-pop {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 0.35; transform: scale(1); }
}
@keyframes scroll-hint {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes grid-pulse {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.18; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(250, 250, 250, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(8, 30, 63, 0.05);
  transition: box-shadow 400ms var(--ease-smooth), border-color 400ms var(--ease-smooth);
  animation: header-in 0.6s var(--ease-smooth) both;
}
.site-header.scrolled {
  box-shadow: 0 4px 24px -16px rgba(8, 30, 63, 0.18);
  border-bottom-color: rgba(8, 30, 63, 0.08);
}
.site-header .inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 48px;
  height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
}
@media (max-width: 900px) { .site-header .inner { padding: 0 24px; } }

.wordmark {
  display: flex; flex-direction: column; gap: 2px; line-height: 1;
}
.wordmark .row { display: flex; align-items: center; gap: 10px; }
.wordmark img { height: 30px; width: auto; }
.wordmark .sub {
  font-family: var(--font-sans);
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(8, 30, 63, 0.5); font-weight: 500;
  margin-top: 2px; padding-left: 1px;
}

.nav { display: none; align-items: center; gap: 40px; }
@media (min-width: 1024px) { .nav { display: flex; } }

.nav-item {
  position: relative;
  font-family: var(--font-sans);
  font-size: 14px; letter-spacing: 0.02em; font-weight: 500;
  color: rgba(8, 30, 63, 0.64);
  transition: color 280ms var(--ease-smooth);
  cursor: pointer; padding: 4px 0;
}
.nav-item:hover { color: var(--color-regenti); }
.nav-item .text-stack {
  position: relative; display: inline-block;
  height: 1.25em; line-height: 1.25em; vertical-align: bottom;
}
.nav-item .text-stack > span { display: block; }
.nav-item .text-stack > .b { display: none; }
/* Animated underline shared between hover + active */
.nav-item::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: var(--color-regenti-accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 380ms var(--ease-smooth);
}
.nav-item:hover::after,
.nav-item.active::after { transform: scaleX(1); }
.nav-item.active { color: var(--color-regenti); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 14px; letter-spacing: 0.02em; font-weight: 600;
  padding: 16px 28px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: color 280ms var(--ease-smooth),
              background 280ms var(--ease-smooth),
              transform 200ms var(--ease-smooth),
              border-color 280ms var(--ease-smooth),
              box-shadow 280ms var(--ease-smooth);
  white-space: nowrap;
  position: relative;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--color-regenti); color: white; }
.btn--primary:hover { background: var(--color-regenti-light); }
.btn--ghost {
  background: transparent;
  color: var(--color-regenti);
  border-color: rgba(8, 30, 63, 0.15);
}
.btn--ghost:hover { border-color: rgba(8, 30, 63, 0.30); }
.btn--accent { background: var(--color-regenti-accent); color: var(--color-regenti); font-weight: 700; }
.btn--accent:hover { background: var(--color-regenti-accent-dark); }
.btn .arrow { display: inline-flex; transition: transform 280ms var(--ease-smooth); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--sm { padding: 11px 20px; font-size: 13px; }

/* Brand word — matches the logo. Use anywhere "Regenti" appears as the
   brand name in display text. Pair with <em> for the product modifier. */
.brand-word {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--color-regenti);
}
.brand-word .ti { color: var(--color-regenti-accent-dark); }

/* ---------- Sections ---------- */
main { padding-top: 80px; }
.section { padding: 112px 48px; position: relative; }
@media (min-width: 1024px) { .section { padding: 160px 48px; } }
@media (max-width: 900px)  { .section { padding: 80px 24px; } }
.section .container { max-width: 1280px; margin: 0 auto; }
.section--alt { background: var(--color-bg-alt); }
.section--regenti { background: var(--color-regenti); color: white; }

/* ---------- Eyebrow / mono kicker ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(8, 30, 63, 0.5);
}
.kicker.on-dark { color: rgba(255,255,255,0.55); }
.kicker--accent { color: var(--color-regenti-accent-dark); }

/* ---------- Reveal & WordBlurReveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 900ms var(--ease-smooth), transform 900ms var(--ease-smooth);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.wbr {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--color-regenti);
  margin: 0;
  text-wrap: balance;
}
.wbr em { font-style: italic; font-weight: 400; color: var(--color-regenti-accent-dark); }
.wbr .word {
  display: inline-block;
  opacity: 0; filter: blur(8px); transform: translateY(8px);
}
.wbr.in-view .word { animation: word-blur-in 800ms var(--ease-smooth) forwards; }

/* ---------- Section heading helper ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 64px;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
  color: var(--color-regenti);
  text-wrap: balance;
}
.section-head h2 em { font-style: italic; font-weight: 400; color: var(--color-regenti-accent-dark); }
.section-head p {
  font-size: 17px; line-height: 1.6; color: var(--color-text-muted);
  margin: 0; max-width: 480px;
}

/* ---------- FanAnimation ---------- */
.fan-wrap { position: relative; width: 100%; }
.fan-wrap svg {
  width: 100%; height: 100%;
  overflow: visible;
  animation: breathe 6s var(--ease-in-out-soft) infinite;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}
.fan-line {
  stroke: var(--color-regenti);
  stroke-width: 0.6;
  fill: none;
  opacity: 0.16;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: draw-line 0.8s var(--ease-smooth) forwards;
}
.fan-arc {
  stroke: var(--color-regenti);
  stroke-width: 0.6;
  fill: none;
  opacity: 0.13;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: draw-line 1.2s var(--ease-smooth) forwards;
}
.fan-dot {
  fill: var(--color-regenti);
  opacity: 0;
  transform-origin: center; transform-box: fill-box;
  animation: dot-pop 0.5s var(--ease-smooth) forwards;
}
.conductor {
  fill: var(--color-regenti);
  opacity: 0;
  transform-origin: center; transform-box: fill-box;
  animation: dot-pop 0.4s var(--ease-smooth) forwards;
}
.conductor-ring {
  fill: none;
  stroke: var(--color-regenti-accent);
  stroke-width: 0.8;
  opacity: 0;
  animation: dot-pop 0.6s var(--ease-smooth) 0.4s forwards;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--color-regenti);
  color: rgba(255,255,255,0.85);
  padding: 80px 48px 40px;
}
@media (max-width: 900px) { footer.site-footer { padding: 64px 24px 32px; } }
footer .inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 48px;
}
@media (min-width: 900px) {
  footer .inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 80px; }
}
footer h4 {
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); font-weight: 600;
  margin: 0 0 20px;
}
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
footer ul a { font-size: 14px; color: rgba(255,255,255,0.85); transition: color 240ms; }
footer ul a:hover { color: var(--color-regenti-accent); }

footer .wordmark-foot { display: flex; flex-direction: column; gap: 10px; }
footer .wordmark-foot .name {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  line-height: 1;
}
footer .wordmark-foot .name .ti { color: var(--color-regenti-accent); }
footer .tag {
  font-family: var(--font-display); font-style: italic;
  font-size: 18px; color: rgba(255,255,255,0.7);
  max-width: 320px; line-height: 1.4;
}
footer .email { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,0.85); }

footer .bottom {
  max-width: 1280px; margin: 64px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
footer .socials { display: flex; gap: 16px; }
footer .socials a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  transition: all 240ms;
}
footer .socials a:hover { border-color: var(--color-regenti-accent); color: var(--color-regenti-accent); }

/* ---------- Navegação mobile (compartilhada) ---------- */
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; flex: none;
  width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer;
  color: var(--color-regenti); border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: rgba(8, 30, 63, 0.06); }
.nav-toggle .bars { position: relative; width: 22px; height: 14px; }
.nav-toggle .bars span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease-smooth), opacity .2s ease;
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1023px) { .nav-toggle { display: inline-flex; } }

.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(250, 250, 250, 0.98);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(8, 30, 63, 0.08);
  box-shadow: 0 24px 48px -28px rgba(8, 30, 63, 0.35);
  transform: translateY(-10px); opacity: 0;
  visibility: hidden; pointer-events: none;
  transition: transform .32s var(--ease-smooth), opacity .32s ease, visibility .32s;
}
.mobile-menu.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu ul { list-style: none; margin: 0; padding: 8px 24px 20px; display: flex; flex-direction: column; }
.mobile-menu a {
  display: block; padding: 16px 4px;
  font-family: var(--font-sans); font-size: 18px; font-weight: 500;
  color: var(--color-regenti);
  border-bottom: 1px solid rgba(8, 30, 63, 0.07);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a.active { color: var(--color-regenti-accent-dark); }
@media (min-width: 1024px) { .mobile-menu { display: none; } }
