/* =========================================================
   Centro Educacional Felizardo — Design System
   Paleta extraída da logo: bordô, creme, amarelo quente, marrons.
   ========================================================= */

:root {
  /* cores */
  --cream:        #F7EFDF;
  --cream-dark:   #EDE1C8;
  --paper:        #FFFCF6;
  --maroon:       #7B2E28;
  --maroon-dark:  #5A211D;
  --maroon-light: #9A473E;
  --yellow:       #E4A73B;
  --yellow-soft:  #F0C87C;
  --brown:        #8C6039;
  --brown-soft:   #B98D5E;
  --ink:          #2E2419;
  --ink-soft:     #5B4B3C;
  --green:        #7C8B5E;

  /* tipografia */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* layout */
  --container-w: 1280px;
  --section-pad: clamp(72px, 10vw, 148px);
  --radius-organic: 62% 38% 55% 45% / 48% 42% 58% 52%;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .container { padding: 0 22px; }
}

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 18px;
  display: inline-block;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--yellow);
  margin-right: 10px;
  vertical-align: middle;
}
.eyebrow--light { color: var(--yellow-soft); }
.eyebrow--light::before { background: var(--yellow-soft); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.12;
  color: var(--maroon-dark);
  letter-spacing: -0.01em;
}
.section-title--center { text-align: center; max-width: 760px; margin: 0 auto; }
.section-title--light { color: var(--paper); }
.section-title em, .hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--yellow);
}

.section-lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-top: 18px;
}

.editorial-copy {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-top: 20px;
}
.editorial-copy:first-of-type { margin-top: 26px; }

.section { padding: var(--section-pad) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 64px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), background 0.3s ease, color 0.3s ease, border-color .3s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--maroon);
  color: var(--paper);
}
.btn-primary:hover { background: var(--maroon-dark); transform: translateY(-2px); }
.btn-primary.btn-light { background: var(--yellow); color: var(--maroon-dark); }
.btn-primary.btn-light:hover { background: var(--yellow-soft); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover { border-color: var(--paper); transform: translateY(-2px); }

/* =========================================================
   PLACEHOLDER DE FOTOGRAFIA
   Componente reutilizável — substituir por <img> real depois.
   Basta trocar a div .photo-placeholder por uma tag <img>.
   ========================================================= */
.photo-placeholder {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 15% 10%, rgba(228,167,59,0.35), transparent 55%),
    linear-gradient(155deg, var(--brown-soft) 0%, var(--maroon) 55%, var(--maroon-dark) 100%);
  isolation: isolate;
}
.photo-placeholder::after {
  content: attr(data-caption);
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 78%;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 252, 246, 0.82);
  line-height: 1.6;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.photo-placeholder .grain {
  position: absolute; inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* itens que também têm figcaption: legenda fica embaixo com scrim,
   e o rótulo de instrução (data-caption) encolhe para o topo, sem sobrepor */
.photo-placeholder:has(figcaption) {
  display: flex;
}
.photo-placeholder:has(figcaption)::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(0deg, rgba(20,10,8,0.78) 0%, rgba(20,10,8,0.28) 55%, transparent 100%);
  z-index: 1;
}
.photo-placeholder:has(figcaption)::after {
  top: 14px;
  left: 14px;
  right: 14px;
  transform: none;
  width: auto;
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(255, 252, 246, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-frame { border-radius: 6px; }
.photo-frame--tall { aspect-ratio: 4 / 5; }
.photo-frame--wide { aspect-ratio: 16 / 10; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s ease, box-shadow .4s ease;
}
.site-header.is-scrolled {
  background: rgba(247, 239, 223, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(46, 36, 25, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  transition: padding 0.4s ease;
}
.is-scrolled .header-inner { padding-top: 12px; padding-bottom: 12px; }

/* faixa fixa no topo: matrículas abertas */
.matricula-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--maroon-dark);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-align: center;
}
.matricula-bar strong {
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.matricula-bar-cta {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.matricula-bar:hover { background: var(--yellow-soft); }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--paper);
  letter-spacing: 0.01em;
  transition: color 0.4s ease;
}
.is-scrolled .brand-name { color: var(--maroon-dark); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,252,246,0.92);
  transition: color 0.3s ease, opacity .3s ease;
  position: relative;
}
.is-scrolled .main-nav a { color: var(--ink-soft); }
.main-nav a:not(.nav-cta):hover { opacity: 0.7; }
.nav-cta {
  padding: 11px 22px;
  border-radius: 4px;
  background: var(--yellow);
  color: var(--maroon-dark) !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--yellow-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--paper);
  transition: all 0.3s ease;
}
.is-scrolled .nav-toggle span { background: var(--maroon-dark); }
/* aberto: fica acima do painel e vira um X */
.nav-toggle { position: relative; z-index: 2; }
.nav-toggle.is-open span { background: var(--maroon-dark); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media { background: var(--maroon-dark); }
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; /* roda como GIF: sem toque, sem pausa */
}
/* esconde o botão de play que o iPhone mostra quando bloqueia o autoplay */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(24,15,10,0.86) 0%, rgba(24,15,10,0.42) 46%, rgba(24,15,10,0.15) 68%, rgba(24,15,10,0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(64px, 9vw, 120px);
  padding-top: 160px;
  max-width: 760px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(54px, 9vw, 116px);
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.hero-content .eyebrow,
.hero-title { text-shadow: 0 2px 18px rgba(20,10,8,0.55); }

/* bolinha pulsante da faixa de matrículas */
.matricula-dot {
  position: relative;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--maroon);
}
.matricula-dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--maroon);
  animation: dot-pulse 1.8s ease-out infinite;
}
@keyframes dot-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .matricula-dot::after { animation: none; }
}

.hero-subtitle {
  margin-top: 26px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255,252,246,0.88);
  max-width: 480px;
}
.hero-actions {
  margin-top: 42px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--yellow);
}

/* indicador "mouse" — dispositivos com ponteiro fino (desktop) */
.hint-mouse {
  display: block;
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255,252,246,0.6);
  border-radius: 20px;
  position: relative;
}
.hint-mouse-dot {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  background: var(--yellow);
  border-radius: 50%;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  70% { top: 24px; opacity: 0; }
  100% { top: 24px; opacity: 0; }
}

/* indicador "dedo" — dispositivos de toque, mesmo estilo minimalista */
.hint-finger { display: none; }
.hint-finger-anim {
  transform-box: fill-box;
  transform-origin: center;
  animation: fingerSwipe 1.8s ease-in-out infinite;
}
@keyframes fingerSwipe {
  0%   { transform: translateY(8px); opacity: 0; }
  20%  { opacity: 1; }
  70%  { transform: translateY(-14px); opacity: 1; }
  100% { transform: translateY(-14px); opacity: 0; }
}

@media (hover: none), (pointer: coarse) {
  .hint-mouse { display: none; }
  .hint-finger { display: block; }
}

/* =========================================================
   NOVA FASE — editorial split
   ========================================================= */
.editorial-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.editorial-media { position: relative; }
/* vídeo vertical (9:16): limita a largura para caber na altura da tela */
.editorial-media--video {
  width: min(100%, calc(80vh * 464 / 832));
  margin-inline: auto;
}
.video-frame {
  aspect-ratio: 464 / 832;
  overflow: hidden;
  background: var(--maroon-dark);
}
.feedback-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ring-decor {
  position: absolute;
  width: 130px; height: 130px;
  border: 1.5px solid var(--yellow);
  border-radius: 50%;
  bottom: -40px; left: -40px;
  z-index: -1;
}
.ring-decor::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1.5px solid var(--maroon-light);
  border-radius: 50%;
  opacity: 0.5;
}

/* =========================================================
   NOSSA HISTÓRIA
   ========================================================= */
.historia { background: var(--paper); }
.historia-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.historia-head .section-lead { margin-top: 22px; }
.historia-list { margin: 0; padding: 0; list-style: none; }
.historia-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(46,36,25,0.12);
}
.historia-item:first-child { padding-top: 0; }
.historia-item:last-child { border-bottom: 0; }
.historia-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 34px;
  line-height: 1;
  color: var(--yellow);
}
.historia-item h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 500;
  color: var(--maroon-dark);
  line-height: 1.2;
}
.historia-memoria {
  font-style: italic;
  font-weight: 400;
  font-size: 0.7em;
  color: var(--brown);
}
.historia-item p {
  margin-top: 10px;
  font-size: 16.5px;
  color: var(--ink-soft);
}

/* =========================================================
   ATIVIDADES — ballet, inglês, educação física
   ========================================================= */
.atividades { background: var(--cream-dark); }
.atividades-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.atividade {
  background: var(--paper);
  border-radius: 8px;
  padding: 36px 30px;
  box-shadow: 0 10px 30px rgba(90,33,29,0.06);
}
.atividade-icon {
  display: inline-flex;
  width: 60px; height: 60px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--yellow-soft);
}
.atividade h3 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--maroon-dark);
}
.atividade p {
  margin-top: 10px;
  font-size: 16px;
  color: var(--ink-soft);
}
.atividades-cta { margin-top: 44px; text-align: center; }

/* =========================================================
   A INFÂNCIA ACONTECE AQUI — mosaic editorial
   ========================================================= */
.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 18px;
}
.mosaic-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}
/* a e b são fotos em pé (3:4): ocupam a altura toda para não cortar */
.mosaic-item--a { grid-column: 1 / 3; grid-row: 1 / 3; }
.mosaic-item--b { grid-column: 3 / 5; grid-row: 1 / 3; }
.mosaic-item--c { grid-column: 5 / 7; grid-row: 1 / 2; }
.mosaic-item--d { grid-column: 5 / 7; grid-row: 2 / 3; }

.mosaic-item--photo { background: var(--maroon-dark); }
.mosaic-item--photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.mosaic-item--photo::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(20,10,8,0.7) 0%, rgba(20,10,8,0.2) 60%, transparent 100%);
  z-index: 1;
}

.mosaic-item figcaption {
  position: absolute;
  left: 18px; bottom: 16px;
  right: 18px;
  color: var(--paper);
  font-size: 13.5px;
  font-weight: 500;
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

/* =========================================================
   NOVA QUADRA
   ========================================================= */
.quadra {
  background: var(--maroon);
  color: var(--paper);
}
.quadra-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.quadra .eyebrow { color: var(--yellow-soft); }
.quadra .eyebrow::before { background: var(--yellow-soft); }
.quadra .section-title { color: var(--paper); }
.quadra .editorial-copy { color: rgba(255,252,246,0.82); }

.quadra-media { position: relative; }
.status-badge {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--yellow);
  color: var(--maroon-dark);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 3px;
  z-index: 3;
}

/* comparação antes/depois: a foto "depois" é recortada pela posição do range */
.compare {
  position: relative;
  overflow: hidden;
  background: var(--maroon-dark);
  --pos: 50%;
}
.compare img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.compare-after {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}
.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--paper);
  z-index: 2;
  pointer-events: none;
}
.compare-handle::after {
  content: "‹ ›";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--maroon-dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.compare-label {
  position: absolute;
  bottom: 16px;
  background: rgba(20,10,8,0.6);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
  z-index: 2;
  pointer-events: none;
}
.compare-label--before { left: 16px; }
.compare-label--after {
  right: 16px;
  /* texto longo quebra em duas linhas em vez de cobrir o "Antes" */
  max-width: calc(100% - 120px);
  text-align: right;
  line-height: 1.35;
}
.compare-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
  touch-action: pan-y;
}

.compare-note {
  margin-top: 12px;
  font-size: 12.5px;
  font-style: italic;
  color: rgba(255,252,246,0.65);
}

.progress-indicator { margin-top: 40px; max-width: 400px; }
.progress-track {
  height: 3px;
  background: rgba(255,252,246,0.22);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 58%;
  background: var(--yellow);
  border-radius: 2px;
}
.progress-label {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,252,246,0.7);
  letter-spacing: 0.02em;
}

/* =========================================================
   NOVIDADES — editorial blocks
   ========================================================= */
.novidades-list { display: flex; flex-direction: column; gap: 110px; }
.novidade {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.novidade-media { aspect-ratio: 5/4; border-radius: 6px; overflow: hidden; }
.novidade-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.novidade--reverse .novidade-media { order: 2; }
.novidade-number {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--yellow);
  letter-spacing: 0.05em;
}
.novidade-text h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  color: var(--maroon-dark);
  margin-top: 12px;
}
.novidade-text p {
  margin-top: 16px;
  color: var(--ink-soft);
  max-width: 400px;
  font-size: 16.5px;
}

/* =========================================================
   GALERIA — fotos em pé (3:4), sem corte
   ========================================================= */
.galeria { background: var(--cream-dark); }
.album {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.album-wrap { position: relative; }
.album-arrow { display: none; }
.album-item {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  border-radius: 5px;
  overflow: hidden;
}

.album-item--photo { background: var(--maroon-dark); }
.album-item--photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.album-item--photo:has(figcaption)::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(20,10,8,0.7) 0%, rgba(20,10,8,0.2) 60%, transparent 100%);
  z-index: 1;
}

.album-item figcaption {
  position: absolute;
  left: 14px; bottom: 12px; right: 14px;
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 500;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* =========================================================
   PARA OS PAIS
   ========================================================= */
.pais { background: var(--paper); }
.pais-inner { text-align: center; max-width: 780px; }
.pais-copy {
  margin-top: 28px;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.75;
}
.pais-copy:first-of-type { margin-top: 32px; }

/* =========================================================
   CONTATO
   ========================================================= */
.contato {
  background: var(--maroon-dark);
  color: var(--paper);
  text-align: center;
}
.contato-inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.contato-copy {
  margin-top: 22px;
  font-size: 18px;
  color: rgba(255,252,246,0.82);
  max-width: 460px;
}
.contato .btn { margin-top: 36px; }

.contato-info {
  margin-top: 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,252,246,0.16);
  /* mais largo que o texto acima, para os três itens caberem lado a lado */
  width: min(880px, calc(100vw - 64px));
  flex-shrink: 0;
  justify-content: center;
}
.contato-info .contato-value { white-space: nowrap; }
.contato-info-item { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.contato-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow-soft);
}
.contato-value { font-size: 15px; color: rgba(255,252,246,0.9); line-height: 1.5; }
a.contato-value { transition: color 0.2s; }
a.contato-value:hover { color: var(--yellow-soft); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(247,239,223,0.72);
  padding: 72px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247,239,223,0.12);
}
.brand--footer .brand-name { color: var(--paper); font-size: 18px; }
.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.footer-heading {
  font-weight: 600;
  color: var(--yellow-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  padding-top: 28px;
  font-size: 13px;
  color: rgba(247,239,223,0.45);
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(.22,1,.36,1), transform 0.9s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-content .reveal:nth-child(1) { transition-delay: .05s; }
.hero-content .reveal:nth-child(2) { transition-delay: .15s; }
.hero-content .reveal:nth-child(3) { transition-delay: .28s; }
.hero-content .reveal:nth-child(4) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 26px;
    z-index: 1;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.22,1,.36,1), box-shadow 0.4s;
  }
  .main-nav.is-open {
    transform: translateX(0);
    box-shadow: -10px 0 40px rgba(0,0,0,0.12);
  }
  .main-nav a { color: var(--ink) !important; font-size: 17px; }
  .nav-cta { color: var(--maroon-dark) !important; }
  .nav-toggle { display: flex; }

  .editorial-grid, .quadra-grid, .novidade, .historia-grid {
    grid-template-columns: 1fr;
  }
  .atividades-list { grid-template-columns: 1fr; gap: 16px; }
  .atividade { padding: 28px 24px; }
  .novidade--reverse .novidade-media { order: 0; }
  .editorial-media { order: -1; }

  .mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto 200px;
  }
  .mosaic-item--a { grid-column: 1 / 2; grid-row: 1 / 2; }
  .mosaic-item--b { grid-column: 2 / 3; grid-row: 1 / 2; }
  .mosaic-item--a, .mosaic-item--b { align-self: start; aspect-ratio: 3 / 4; }
  .mosaic-item--c { grid-column: 1 / 2; grid-row: 2 / 3; }
  .mosaic-item--d { grid-column: 2 / 3; grid-row: 2 / 3; }

  .contato-info { flex-direction: column; align-items: center; gap: 28px; }
  .contato-info .contato-value { white-space: normal; }
}

@media (max-width: 600px) {
  .hero-content { padding-top: 130px; }
  .matricula-bar { gap: 8px; padding: 9px 12px; font-size: 12.5px; letter-spacing: 0.02em; }
  .matricula-bar strong { letter-spacing: 0.06em; }
  .footer-inner { flex-direction: column; }

  /* galeria vira um carrossel deslizável, mostrando a ponta da próxima foto */
  .album {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .album::-webkit-scrollbar { display: none; }

  .compare-label { font-size: 10.5px; letter-spacing: 0.06em; padding: 5px 10px; bottom: 12px; }
  .compare-label--before { left: 12px; }
  .compare-label--after { right: 12px; max-width: 52%; }
  .album-item { scroll-snap-align: start; }

  /* setas indicando que dá para deslizar */
  .album-arrow {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px; height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--paper);
    color: var(--maroon-dark);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    cursor: pointer;
    z-index: 3;
  }
  .album-arrow[hidden] { display: none; }
  .album-arrow--prev { left: 8px; }
  .album-arrow--next { right: 8px; animation: arrow-nudge 1.6s ease-in-out infinite; }
}

@keyframes arrow-nudge {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(5px); }
}

@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
  .album-arrow--next { animation: none; }
}
