/* Instituto Symbolic — Landing Page */

:root {
  --navy-950: #141D3B;
  --navy-900: #18244E;
  --navy-800: #1B2447;
  --navy-700: #24356B;
  --navy-600: #31427C;
  --ink: #2A3350;
  --slate: #3D4970;
  --muted: #5A6478;
  --blue-300: #7E93BE;
  --line: #C7D0E0;
  --bg: #F4F6FA;
  --bg-alt: #E4E9F3;
  --paper: #F8FAFC;
  --sky-200: #DCE3F2;
  --sky-300: #D8E0F0;
  --orange-600: #E8862E;
  --orange-400: #F2A65A;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Bricolage Grotesque', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --pad-x: 32px;
  --sec-top: 110px;
  --sec-bottom: 90px;
  --header-h: 108px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--bg);
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-800); }

h1, h2, h3, p { margin: 0; }

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.kicker { font-size: 13px; letter-spacing: 3px; font-weight: 600; color: var(--orange-600); }
.kicker-light { color: var(--sky-200); font-weight: 500; }
.kicker-blue { color: var(--blue-300); }

h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 1.7vw + 16px, 40px);
  line-height: 1.18;
  font-weight: 500;
  color: var(--navy-800);
  text-wrap: pretty;
}
.h2-big { font-size: clamp(30px, 2vw + 15px, 44px); line-height: 1.2; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background-color: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.site-header.scrolled,
.site-header.menu-open {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 28px rgba(27, 36, 71, 0.10);
  border-bottom-color: rgba(199, 208, 224, 0.7);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1200px; margin: 0 auto; padding: 18px var(--pad-x);
}
.logo { height: 72px; display: block; }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px;
  background: rgba(27, 36, 71, 0.06); border: none; border-radius: 12px; cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--navy-800); border-radius: 2px; }

.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; letter-spacing: 0.4px; font-weight: 600; }
.nav-link { position: relative; color: var(--navy-800); transition: color 0.2s ease; }
.nav-link:hover { color: var(--navy-600); }
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--navy-600); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); }

/* ===== Botões ===== */
.btn {
  display: inline-block; border-radius: 999px; font-weight: 600; font-size: 15px; text-align: center;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(27, 36, 71, 0.18); }
.btn-light { background: var(--paper); color: var(--navy-800); padding: 15px 28px; }
.btn-light:hover { background: var(--navy-800); color: var(--paper); }
.btn-outline { border: 1px solid var(--sky-200); color: var(--paper); padding: 15px 28px; font-weight: 500; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); color: #FFFFFF; }
.btn-dark { background: var(--navy-800); color: var(--bg); padding: 16px 32px; }
.btn-dark:hover { background: var(--navy-600); color: var(--paper); }
.btn-nav { padding: 12px 24px; }
.btn-sm { padding: 13px 26px; font-size: 14px; }

.btn:focus-visible, .nav-link:focus-visible, .burger:focus-visible, .footer-links a:focus-visible {
  outline: 2px solid var(--navy-600);
  outline-offset: 3px;
}

/* ===== Hero ===== */
.hero-wrap { max-width: 1200px; margin: 16px auto 0; padding: 0 var(--pad-x); }
.hero {
  position: relative; border-radius: 28px; overflow: hidden; background: var(--navy-700);
  display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: stretch;
}
.hero-text {
  padding: 72px 24px 72px 64px;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  animation: heroIn 0.9s var(--ease-out) both;
}
.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 2.9vw + 11px, 52px);
  line-height: 1.12; font-weight: 500; color: var(--paper); text-wrap: pretty;
}
.hero-text > p { font-size: 16px; line-height: 1.7; color: var(--sky-300); max-width: 52ch; }
.hero-text p.hero-quote {
  margin-top: 4px; font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--paper); max-width: none;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.hero-media { position: relative; min-height: 560px; animation: heroImgIn 1.1s var(--ease-out) 0.15s both; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero-tint { position: absolute; inset: 0; background: var(--navy-700); opacity: 0.28; mix-blend-mode: color; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #24356B 0%, rgba(36, 53, 107, 0.85) 8%, rgba(36, 53, 107, 0.35) 22%, rgba(36, 53, 107, 0) 38%),
    linear-gradient(0deg, rgba(36, 53, 107, 0.45) 0%, rgba(36, 53, 107, 0) 18%),
    linear-gradient(180deg, rgba(36, 53, 107, 0.3) 0%, rgba(36, 53, 107, 0) 14%),
    linear-gradient(270deg, rgba(36, 53, 107, 0.3) 0%, rgba(36, 53, 107, 0) 10%);
}
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } }
@keyframes heroImgIn { from { opacity: 0; transform: translateX(32px); } }

/* Zoom sutil nas fotos */
.zoom img { transition: transform 1.4s var(--ease-out); }
.zoom:hover img { transform: scale(1.04); }

/* ===== Sobre ===== */
.sobre {
  max-width: 1080px; margin: 0 auto;
  padding: var(--sec-top) var(--pad-x) var(--sec-bottom);
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px;
}
.sobre-title { display: flex; flex-direction: column; gap: 18px; }
.prose { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.8; color: var(--slate); }
.prose-tight { gap: 14px; }
.prose p.pull-quote { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--navy-600); }
.prose strong { color: var(--navy-800); }

/* ===== O que fazemos ===== */
.fazemos { background: var(--bg-alt); }
.fazemos-inner {
  max-width: 1200px; margin: 0 auto;
  padding: var(--sec-top) var(--pad-x) var(--sec-bottom);
  display: flex; flex-direction: column; gap: 48px;
}
.fazemos-head { max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.fazemos-head p { font-size: 16px; line-height: 1.8; color: var(--slate); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #FFFFFF; border-radius: 20px; padding: 34px 30px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(27, 36, 71, 0.14); }
.card-num { font-family: var(--serif); font-size: 34px; font-style: italic; color: var(--blue-300); line-height: 1; }
.card h3 { font-size: 17px; letter-spacing: 1.5px; color: var(--navy-800); font-weight: 600; }
.card p { font-size: 15px; line-height: 1.7; color: var(--slate); }
.card ul {
  margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.8; color: var(--slate);
  display: flex; flex-direction: column; gap: 2px;
}
.card-cta {
  position: relative; border-radius: 20px; overflow: hidden; background: var(--navy-700);
  min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end;
}
.card-cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.card-cta-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36, 53, 107, 0.45) 0%, rgba(27, 36, 71, 0.72) 60%, rgba(20, 29, 59, 0.9) 100%);
}
.card-cta-body { position: relative; margin-top: auto; padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 16px; }
.card-cta-quote { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.4; color: var(--paper); }
.card-cta .btn { align-self: flex-start; }

/* ===== Para quem é ===== */
.paraquem { max-width: 1080px; margin: 0 auto; padding: var(--sec-top) var(--pad-x); }
.paraquem-head { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.prows { display: flex; flex-direction: column; margin-top: 44px; }
.prow { display: grid; grid-template-columns: 340px 1fr; gap: 32px; padding: 28px 0; align-items: baseline; }
.prow h3 { font-size: 16px; letter-spacing: 1.5px; color: var(--navy-800); font-weight: 600; }
.prow p { font-size: 16px; line-height: 1.7; color: var(--slate); }

/* Linhas animáveis (substituem border-top/bottom do original) */
.lined { position: relative; }
.lined::before, .lined-b::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--line-color, var(--line));
}
.lined::before { top: 0; }
.lined-b::after { bottom: 0; }

/* ===== Diferencial ===== */
.diferencial { background: linear-gradient(150deg, #232F5C 0%, #1B2447 60%, #141D3B 100%); }
.dif-inner {
  max-width: 1200px; margin: 0 auto; padding: var(--sec-top) var(--pad-x);
  display: flex; flex-direction: column; gap: 52px;
}
.dif-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.dif-head h2 { color: #FFFFFF; line-height: 1.2; }
.dif-head p { font-size: 16px; color: var(--line); }
.dif-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; --line-color: rgba(242, 166, 90, 0.45); }
.dif-item { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; }
.dif-item h3 { font-size: 14px; letter-spacing: 1.5px; color: var(--orange-400); font-weight: 600; }
.dif-item p { font-size: 14px; line-height: 1.7; color: var(--line); }

/* ===== Crença ===== */
.crenca {
  max-width: 860px; margin: 0 auto; padding: var(--sec-top) var(--pad-x);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px;
}
.crenca-body { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.8; color: var(--slate); max-width: 62ch; }
.crenca-quote {
  margin-top: 6px; font-family: var(--serif); font-style: italic;
  font-size: 28px; line-height: 1.6; color: var(--navy-600); text-wrap: pretty;
}

/* ===== Katiusca ===== */
.katiusca { background: var(--bg-alt); }
.kat-inner {
  max-width: 1120px; margin: 0 auto; padding: var(--sec-top) var(--pad-x);
  display: grid; grid-template-columns: 400px 1fr; gap: 72px; align-items: center;
}
.kat-media { position: relative; width: 100%; max-width: 400px; }
.kat-frame { border-radius: 200px 200px 24px 24px; overflow: hidden; aspect-ratio: 4 / 5.2; }
.kat-frame img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  object-position: 38% 0%;
  transform: scale(1.22) translateY(-92px) translateX(-25px);
  transform-origin: 38% 0%;
}
.kat-badge {
  position: absolute; right: -18px; bottom: 28px;
  background: var(--navy-800); color: var(--bg); border-radius: 16px;
  padding: 16px 22px; font-size: 13px; letter-spacing: 1px; line-height: 1.5;
}
.kat-text { display: flex; flex-direction: column; gap: 16px; }

/* ===== Contato ===== */
.contato {
  max-width: 1080px; margin: 0 auto;
  padding: var(--sec-top) var(--pad-x) var(--sec-bottom);
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px;
}
.contato-left { display: flex; flex-direction: column; gap: 16px; }
.contato-left > p { font-size: 16px; line-height: 1.8; color: var(--slate); }
.contato-left p.contato-quote { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--navy-600); }
.contato-left .btn { align-self: flex-start; margin-top: 6px; }
.clist-intro { margin-bottom: 18px; font-size: 15px; color: var(--slate); }
.clist { display: flex; flex-direction: column; }
.clist-item { padding: 14px 0; font-size: 16px; color: var(--navy-800); display: flex; align-items: center; gap: 14px; }
.clist-num { font-family: var(--serif); font-style: italic; color: var(--orange-600); font-size: 18px; width: 26px; }

/* ===== CTA final ===== */
.cta-wrap { max-width: 1200px; margin: 0 auto 100px; padding: 0 var(--pad-x); }
.cta-panel {
  background: linear-gradient(120deg, #35477F 0%, #24356B 55%, #18244E 100%);
  background-size: 180% 180%;
  border-radius: 28px; padding: 84px 64px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
  animation: drift 16s ease-in-out infinite alternate;
}
.cta-panel h2 { color: var(--paper); max-width: 22ch; }
.cta-panel p { font-size: 16px; line-height: 1.8; color: var(--sky-300); max-width: 64ch; }
@keyframes drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 36px var(--pad-x);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px; font-size: 14px; color: var(--muted);
}
.footer-logo { height: 56px; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }

/* ===== Reveals (só com JS; sem JS tudo fica visível) ===== */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].visible { opacity: 1; animation: rise 0.9s var(--ease-out) backwards; }

.js [data-stagger] > * { opacity: 0; }
.js [data-stagger].visible > * { opacity: 1; animation: rise 0.7s var(--ease-out) backwards; }
.js [data-stagger].visible > *:nth-child(2) { animation-delay: 0.09s; }
.js [data-stagger].visible > *:nth-child(3) { animation-delay: 0.18s; }
.js [data-stagger].visible > *:nth-child(4) { animation-delay: 0.27s; }
.js [data-stagger].visible > *:nth-child(5) { animation-delay: 0.36s; }
.js [data-stagger].visible > *:nth-child(6) { animation-delay: 0.45s; }
.js [data-stagger].visible > *:nth-child(7) { animation-delay: 0.54s; }
.js [data-stagger].visible > *:nth-child(8) { animation-delay: 0.63s; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.js [data-lines] .lined::before,
.js [data-lines] .lined-b::after {
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--ease-out);
}
.js [data-lines].visible .lined::before,
.js [data-lines].visible .lined-b::after { transform: scaleX(1); }
.js [data-lines].visible .lined:nth-child(2)::before { transition-delay: 0.12s; }
.js [data-lines].visible .lined:nth-child(3)::before { transition-delay: 0.24s; }
.js [data-lines].visible .lined:nth-child(4)::before { transition-delay: 0.36s; }
.js [data-lines].visible .lined:nth-child(5)::before { transition-delay: 0.48s; }
.js [data-lines].visible .lined:nth-child(6)::before { transition-delay: 0.6s; }
.js [data-lines].visible .lined:nth-child(7)::before { transition-delay: 0.72s; }
.js [data-lines].visible .lined-b::after { transition-delay: 0.84s; }

/* ===== Tablet (≤1024px) ===== */
@media (max-width: 1024px) {
  :root { --pad-x: 28px; --sec-top: 80px; --sec-bottom: 70px; --header-h: 88px; }
  .header-inner { padding: 14px var(--pad-x); }
  .logo { height: 58px; }
  .burger { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: var(--pad-x); right: var(--pad-x);
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255, 255, 255, 0.99); padding: 10px 18px 18px;
    border-radius: 0 0 20px 20px; box-shadow: 0 18px 40px rgba(27, 36, 71, 0.14);
  }
  .site-header.menu-open .site-nav { display: flex; }
  .nav-link { padding: 12px 4px; }
  .nav-link::after { display: none; }
  .btn-nav { margin-top: 6px; }

  .hero-text { padding: 56px 24px 56px 40px; }

  .sobre { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .dif-grid { grid-template-columns: repeat(2, 1fr); }
  .prow { grid-template-columns: 1fr; gap: 10px; }
  .kat-inner { grid-template-columns: 1fr; gap: 48px; justify-items: center; }
  .contato { grid-template-columns: 1fr; gap: 48px; }
  .cta-panel { padding: 64px 40px; }
}

/* ===== Hero empilha e esconde a foto (≤768px) ===== */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { display: none; }
  .hero-text { padding: 48px 32px; }
}

/* ===== Mobile (≤700px) ===== */
@media (max-width: 700px) {
  :root { --pad-x: 20px; --sec-top: 64px; --sec-bottom: 56px; --header-h: 76px; }
  .header-inner { padding: 12px var(--pad-x); }
  .logo { height: 48px; }
  .hero-text { padding: 40px 24px 44px; }
  .sobre { gap: 28px; }
  .cards { grid-template-columns: 1fr; }
  .dif-grid { grid-template-columns: 1fr; }
  .kat-inner { gap: 40px; }
  .kat-badge { right: 0; }
  .contato { gap: 40px; }
  .cta-panel { padding: 48px 24px; }
}

/* ===== Acessibilidade: reduz movimento ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-stagger] > * { opacity: 1 !important; }
  .js [data-lines] .lined::before, .js [data-lines] .lined-b::after { transform: none !important; }
}
