/* =========================================
   NINE - Inteligência Emocional
   v2 - Recriação fiel da referência
========================================= */

:root {
  --teal-deep: #14313d;
  --teal-mid: #1d3a47;
  --cream: #f0e6d0;
  --cream-warm: #ebe0c5;
  --parchment: #f5ecd6;
  --gold: #c9a55a;
  --gold-bright: #e6c378;
  --gold-deep: #8c6e35;
  --ink: #2a2418;
  --ink-soft: #4a3f2c;

  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-ui: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Site frame - mimics narrow Canva layout */
.site {
  max-width: 854px;
  margin: 0 auto;
  background: var(--cream);
  box-shadow: 0 0 60px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

/* ============ NAV (subtle, floating) ============ */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(20, 49, 61, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 165, 90, 0.3);
  border-radius: 999px;
  padding: 8px 8px 8px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-ui);
  transition: all 0.3s ease;
}
.nav-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--gold-bright);
  font-size: 18px;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0;
}
.nav ul a {
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.nav ul a:hover { color: var(--gold-bright); background: rgba(201, 165, 90, 0.1); }
.nav-cta {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--teal-deep) !important;
  padding: 8px 18px !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: linear-gradient(180deg, #f5d997, var(--gold-bright)) !important; color: var(--teal-deep) !important; }
.nav-toggle { display: none; background: none; border: none; color: var(--cream); cursor: pointer; font-size: 18px; padding: 8px; }

@media (max-width: 720px) {
  .nav { padding: 8px 16px; }
  .nav ul { display: none; }
  .nav.open { flex-direction: column; border-radius: 24px; align-items: stretch; padding: 16px; }
  .nav.open ul { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
  .nav-toggle { display: block; }
}

/* ============ HERO (banner image with overlay text) ============ */
.hero {
  position: relative;
  width: 100%;
  background: var(--teal-deep);
}
.hero-banner {
  position: relative;
  width: 100%;
  display: block;
}
.hero-banner img {
  width: 100%;
  display: block;
}
/* Glow on lanterns */
.hero-banner::before, .hero-banner::after {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 130, 0.45), transparent 60%);
  pointer-events: none;
  animation: lanternFlicker 4s ease-in-out infinite;
  mix-blend-mode: screen;
}
.hero-banner::before { top: 12%; left: 6%; }
.hero-banner::after { top: 12%; right: 6%; animation-delay: -2s; }
@keyframes lanternFlicker {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-cta {
  background: var(--teal-deep);
  padding: 32px 24px 48px;
  text-align: center;
  position: relative;
}
.hero-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.cta-row { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 50%, var(--gold-deep));
  color: var(--teal-deep);
  border: 1px solid var(--gold-deep);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201, 165, 90, 0.5); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(240, 230, 208, 0.4);
}
.btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn-ghost.dark { color: var(--teal-deep); border-color: var(--gold-deep); }
.btn-ghost.dark:hover { color: var(--gold-deep); border-color: var(--gold-deep); background: rgba(201,165,90,0.05); }

/* ============ VIDEO SECTION ============ */
.video-section {
  background: var(--teal-deep);
  position: relative;
  padding: 0 0 60px;
}
.video-ribbon {
  width: 100%;
  display: block;
}
.video-section h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 400;
  color: var(--cream);
  text-align: center;
  padding: 24px 24px 28px;
  font-style: normal;
}
.video-section h2 strong { color: var(--gold-bright); font-weight: 700; }
.video-wrap {
  position: relative;
  margin: 0 auto;
  width: calc(100% - 48px);
  max-width: 720px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 2px rgba(201, 165, 90, 0.4);
  cursor: pointer;
  aspect-ratio: 16/10;
  background: #000;
}
.video-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease, filter 0.4s ease; }
.video-wrap:hover img { transform: scale(1.04); filter: brightness(1.1); }
.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}
.video-wrap:hover .video-play { transform: translate(-50%, -50%) scale(1.12); background: var(--gold-bright); }
.video-play::before {
  content: '';
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--teal-deep);
  margin-left: 5px;
}
.video-caption {
  margin: 28px auto 0;
  padding: 0 32px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--cream);
  text-align: center;
  line-height: 1.5;
  max-width: 680px;
}

/* ============ STORY (light parchment) ============ */
.story {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
  padding: 60px 32px;
  position: relative;
}
.story::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' /%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.78 0 0 0 0 0.6 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.story-inner { position: relative; z-index: 2; }
.story h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.story p { font-size: 16px; line-height: 1.75; margin-bottom: 14px; color: var(--ink-soft); }
.story p strong { color: var(--teal-deep); font-weight: 700; }
.story-image { border-radius: 4px; overflow: hidden; box-shadow: 0 8px 24px rgba(20,49,61,0.2); }
.story-image img { width: 100%; display: block; }

/* ============ TRAVESSIA (dark with arch frame) ============ */
.travessia {
  background: var(--teal-deep);
  padding: 0;
  position: relative;
  overflow: hidden;
  color: var(--cream);
}
.travessia-frame {
  position: relative;
  padding: 70px 40px 80px;
}
/* Decorative arch corners */
.travessia-frame::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(201, 165, 90, 0.3);
  border-radius: 200px 200px 8px 8px / 80px 80px 8px 8px;
  pointer-events: none;
}
.travessia-frame::after {
  content: '';
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(201, 165, 90, 0.15);
  border-radius: 200px 200px 8px 8px / 80px 80px 8px 8px;
  pointer-events: none;
}
.bird {
  position: absolute;
  width: 60px; height: 30px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}
.bird.b1 { top: 10%; left: 6%; animation: float 9s ease-in-out infinite; }
.bird.b2 { top: 14%; right: 8%; animation: float 11s ease-in-out infinite -3s; }
.bird.b3 { top: 60%; right: 14%; transform: scale(0.7); animation: float 13s ease-in-out infinite -6s; }
@keyframes float { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(15px, -18px); } }

.travessia h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(32px, 5.5vw, 48px);
  font-weight: 600;
  color: var(--cream);
  text-align: center;
  margin-bottom: 32px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
}
.travessia-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.75;
  color: var(--cream);
  position: relative;
  z-index: 2;
}
.travessia-text p { margin-bottom: 18px; }
.travessia-text strong { color: var(--gold-bright); font-weight: 700; }
.travessia-quote {
  margin-top: 32px !important;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px) !important;
  color: var(--cream) !important;
  line-height: 1.5 !important;
}

/* ============ SESSAO (parchment with ornate gold frame) ============ */
.sessao {
  background: var(--parchment);
  padding: 0;
  position: relative;
}
.sessao::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' /%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.78 0 0 0 0 0.6 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.ornate-frame {
  position: relative;
  margin: 0;
  padding: 60px 36px 70px;
  background:
    linear-gradient(180deg, rgba(20, 49, 61, 0.04), transparent 8%, transparent 92%, rgba(20, 49, 61, 0.04));
  z-index: 2;
}
/* Outer teal-and-gold ornate borders */
.ornate-frame::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px; right: 12px; bottom: 12px;
  border: 8px solid var(--teal-deep);
  border-radius: 4px;
  pointer-events: none;
}
.ornate-frame::after {
  content: '';
  position: absolute;
  top: 22px; left: 22px; right: 22px; bottom: 22px;
  border: 1px solid var(--gold);
  pointer-events: none;
  background: 
    linear-gradient(45deg, var(--gold) 0 1px, transparent 1px) top left/16px 16px no-repeat,
    linear-gradient(-45deg, var(--gold) 0 1px, transparent 1px) top right/16px 16px no-repeat,
    linear-gradient(135deg, var(--gold) 0 1px, transparent 1px) bottom left/16px 16px no-repeat,
    linear-gradient(-135deg, var(--gold) 0 1px, transparent 1px) bottom right/16px 16px no-repeat;
}

.sessao h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 700;
  color: var(--teal-deep);
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 3;
}
.sessao-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 32px;
  position: relative;
  z-index: 3;
}
.sessao-block.reverse { direction: rtl; }
.sessao-block.reverse > * { direction: ltr; }
.sessao-block p { margin-bottom: 14px; line-height: 1.7; color: var(--ink); font-size: 15px; }
.sessao-block strong { color: var(--teal-deep); font-weight: 700; }
.sessao-image { border-radius: 3px; overflow: hidden; box-shadow: 0 6px 20px rgba(20,49,61,0.18); }
.sessao-image img { width: 100%; display: block; }

.sessao-quote {
  text-align: center;
  margin: 36px auto 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(140, 110, 53, 0.25);
  position: relative;
  z-index: 3;
}
.sessao-quote p { font-size: 16px; line-height: 1.75; max-width: 680px; margin: 0 auto 14px; }
.sessao-quote strong { color: var(--teal-deep); }

/* Corner ornaments (gold flourishes) */
.corner {
  position: absolute;
  width: 36px; height: 36px;
  z-index: 4;
  pointer-events: none;
}
.corner svg { width: 100%; height: 100%; display: block; }
.corner.tl { top: 4px; left: 4px; }
.corner.tr { top: 4px; right: 4px; transform: scaleX(-1); }
.corner.bl { bottom: 4px; left: 4px; transform: scaleY(-1); }
.corner.br { bottom: 4px; right: 4px; transform: scale(-1, -1); }

/* ============ FINAL ============ */
.final {
  background: var(--cream);
  padding: 80px 24px 30px;
  text-align: center;
  position: relative;
}
.final h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.8vw, 44px);
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 16px;
  line-height: 1.1;
}
.final p.lead {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 22px);
  font-style: italic;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.5;
}
.final-image { margin: 32px -24px 0; }
.final-image img { width: 100%; display: block; }

/* ============ FOOTER ============ */
.footer {
  background: var(--teal-deep);
  color: rgba(240, 230, 208, 0.75);
  padding: 50px 32px 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--gold-bright);
  font-style: italic;
  margin-bottom: 4px;
  font-weight: 700;
}
.footer-brand p { font-size: 13px; line-height: 1.6; max-width: 280px; }
.footer h4 {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; font-size: 13px; }
.footer ul a { color: rgba(240, 230, 208, 0.75); text-decoration: none; transition: color 0.3s; }
.footer ul a:hover { color: var(--gold-bright); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 165, 90, 0.2);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(240, 230, 208, 0.5);
  font-family: var(--font-ui);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 720px) {
  .hero-cta { padding: 24px 16px 36px; }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .video-section h2 { font-size: 22px; padding: 20px 16px; }
  .video-wrap { width: calc(100% - 32px); border-radius: 10px; }
  .video-caption { padding: 0 24px; font-size: 15px; }

  .story { padding: 48px 24px; }
  .story-grid { grid-template-columns: 1fr; gap: 24px; }
  .story-image { order: -1; }

  .travessia-frame { padding: 50px 24px 60px; }
  .travessia-text { font-size: 15px; }

  .ornate-frame { padding: 50px 22px 60px; }
  .ornate-frame::before { top: 8px; left: 8px; right: 8px; bottom: 8px; }
  .ornate-frame::after { top: 16px; left: 16px; right: 16px; bottom: 16px; }
  .sessao-block { grid-template-columns: 1fr; gap: 20px; }
  .sessao-block.reverse { direction: ltr; }

  .final { padding: 60px 20px 24px; }

  .footer { padding: 40px 24px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Hide nav-toggle by default on desktop */
@media (min-width: 721px) {
  .nav-toggle { display: none; }
}
