/* Motion system */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.is-in {
  opacity: 1;
  transform: none;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.is-in {
  opacity: 1;
  transform: none;
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.18s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.3s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.42s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.54s; }

.hero-quote {
  opacity: 0;
  animation: hero-rise 1s 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-banner {
  transform: scale(1.06);
  animation: hero-zoom 12s ease-out forwards;
}

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-zoom {
  to {
    transform: scale(1);
  }
}

.btn {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-gold:hover {
  box-shadow: 0 12px 26px rgba(172, 124, 29, 0.32);
}

.price-card,
.inside-card,
.learn-grid article,
.topic-list article,
.content-card,
.faq-list details {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.price-card:hover,
.inside-card:hover,
.topic-list article:hover,
.content-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(27, 42, 34, 0.14);
}

.learn-grid article:hover {
  transform: translateY(-4px);
}

.about-photo img,
.book-photo,
.inside-card img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-photo:hover img,
.book-showcase:hover .book-photo,
.inside-card:hover img {
  transform: scale(1.04);
}

.whatsapp-fab {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.04);
}

.site-header {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(27, 42, 34, 0.08);
}

/* Inner page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0c372d 0%, #0a2c25 55%, #091e1b 100%);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4.25rem);
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(231, 189, 92, 0.16), transparent 34%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  color: var(--gold-2);
}

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.05;
  margin: 0 0 12px;
  max-width: 16ch;
}

.page-hero p {
  margin: 0;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.page-content {
  padding: 64px 0;
}

.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.content-stack {
  display: grid;
  gap: 18px;
}

.content-stack h2,
.content-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin: 0 0 10px;
}

.content-stack p,
.content-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 12px;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.topic-list article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.topic-list h3 {
  font-family: 'Cormorant Garamond', serif;
  margin: 10px 0 6px;
}

.topic-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.login-box {
  max-width: 420px;
  margin: 0 auto;
}

.values-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.values-row span {
  display: grid;
  place-items: center;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green);
}

@media (max-width: 900px) {
  .topic-list,
  .contact-grid,
  .values-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .topic-list,
  .contact-grid,
  .values-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-scale,
  .hero-copy > *,
  .hero-quote,
  .hero-banner {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
