@import url("sakura-tokens.css");

html {
  scroll-behavior: smooth;
}

body.inst-site {
  font-family: var(--font-sans);
  color: var(--sakura-text);
  background: #fff;
  padding-top: 72px;
  position: relative;
}

/* Pétalas sakura */
.sakura-petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

body.inst-site > :not(.sakura-petals) {
  position: relative;
  z-index: 1;
}

.sakura-petal {
  position: absolute;
  top: -10%;
  left: var(--left);
  width: var(--size);
  height: var(--size);
  opacity: 0;
  animation: sakura-fall var(--duration) linear var(--delay) infinite;
}

.sakura-petal svg {
  width: 100%;
  height: 100%;
  color: #ffb6c1;
  opacity: 0.6;
}

@keyframes sakura-fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate3d(var(--drift-half), 50vh, 0) rotate(180deg);
  }
  100% {
    transform: translate3d(var(--drift), 110vh, 0) rotate(360deg);
    opacity: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

/* ── HEADER ── */
body.inst-site > .inst-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  width: 100%;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: visible;
}

body.inst-site > .inst-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(255, 134, 152, 0.12);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.inst-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.inst-logo img {
  display: block;
  width: auto;
  height: auto;
  max-height: 48px;
}

@media (min-width: 992px) {
  .inst-logo img {
    max-height: 58px;
  }
}

.inst-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  flex-wrap: wrap;
}

.inst-nav a {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inst-nav a:hover {
  color: var(--sakura-pink);
}

.menu-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  position: relative;
  z-index: 1002;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── HERO / BANNER (estilo original) ── */
.banner {
  background: url("../images/wallpaper.webp") no-repeat right bottom;
  background-size: cover;
  padding: 120px 0 100px;
  position: relative;
  color: #000;
  text-align: center;
}

@media (min-width: 1024px) {
  .banner {
    padding: 150px 0 130px;
  }
}

.banner-overlay {
  position: relative;
  z-index: 2;
}

.banner-text {
  padding-right: 0;
  margin: 40px auto 0;
  max-width: 900px;
  text-align: center;
}

.hero-pill {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.8);
  color: #ff6b9d;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.banner-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.05;
  color: #000;
  margin-bottom: 18px;
  text-transform: none;
}

.hero-title-accent {
  color: #ff6b9d;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #6b7280;
  max-width: 820px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.button-banner {
  margin-top: 6px;
  min-height: 44px;
  padding: 0 28px;
  border-radius: 6px;
  font-size: 16px;
  background: #ff6b9d;
  color: #fff;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.button-banner i {
  font-size: 14px;
}

.button-banner:hover {
  background: #ff5c92;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.button-banner-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: #1f1f1f;
  border: 1px solid #e5e7eb;
  backdrop-filter: blur(6px);
}

.button-banner-secondary:hover {
  background: #ff6b9d;
  color: #fff;
  border-color: #ff6b9d;
}

.svg-wave {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 0;
}

/* ── SECTIONS COMMON ── */
.inst-section {
  padding: 4.5rem 0;
}

.inst-section-title {
  font-family: var(--font-serif);
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.inst-line {
  width: 120px;
  height: 3px;
  background: var(--sakura-pink);
  margin: 0.75rem auto 1.25rem;
  position: relative;
}

.inst-line::before,
.inst-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--sakura-pink);
  transform: translateY(-50%) rotate(45deg);
}

.inst-line::before {
  left: -12px;
}

.inst-line::after {
  right: -12px;
}

.inst-subtitle {
  text-align: center;
  color: var(--sakura-muted);
  max-width: 820px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

/* ── QUEM SOMOS + PROFESSORAS ── */
.inst-about-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.inst-about-text h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #444;
}

.inst-about-text p {
  color: var(--sakura-muted);
  margin-bottom: 0.75rem;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.teacher-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid #f3e8ea;
}

.teacher-image {
  height: 280px;
  overflow: hidden;
}

.teacher-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.teacher-content {
  padding: 1.5rem;
}

.teacher-content h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.teacher-role {
  display: block;
  color: var(--sakura-pink);
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0.35rem 0 0.75rem;
}

.teacher-content p {
  color: var(--sakura-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ── CURSOS ── */
.inst-cursos {
  position: relative;
  overflow: hidden;
  background: url("../images/walpaperSomos.webp") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

.inst-cursos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(224, 242, 254, 0.88) 0%,
    rgba(186, 230, 253, 0.78) 45%,
    rgba(224, 242, 254, 0.88) 100%
  );
  z-index: 0;
}

.cursos-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.cursos-petals .sakura-petal svg {
  color: #ffb6c1;
  opacity: 0.75;
}

.inst-cursos .container {
  position: relative;
  z-index: 1;
}

.course-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto 2rem;
}

.course-row:last-of-type {
  margin-bottom: 1.25rem;
}

.course-row.reverse {
  grid-template-columns: 1fr auto;
}

.course-row.reverse .course-icon {
  order: 2;
}

.course-row.reverse .course-body {
  order: 1;
  text-align: right;
}

.course-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--sakura-pink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(255, 134, 152, 0.35);
}

.course-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.course-icon.kids-icon img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: none;
  background: transparent;
  display: block;
}

.course-icon.kids-icon {
  background: var(--sakura-pink);
  font-size: inherit;
}

.course-body h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.course-body p {
  color: var(--sakura-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* ── INTENSIVO N5 (dentro de Nossos Cursos) ── */
.n5-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding-top: 0.25rem;
}

.n5-icon {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--sakura-pink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.n5-icon img {
  width: 65%;
  filter: brightness(0) invert(1);
}

.n5-body h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.n5-body p {
  color: var(--sakura-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.btn-disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.9;
}

/* ── LIVRO EBOOK ── */
.inst-livro {
  background: linear-gradient(90deg, #ffe566 0%, #ffb347 100%);
  padding: 3rem 1rem 3.5rem;
}

.livro-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  gap: 0;
}

.livro-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}

.livro-subtitle {
  font-size: 1rem;
  color: #333;
  margin: 0 0 2rem;
}

.livro-cover {
  width: min(280px, 72vw);
  margin: 0 auto 2rem;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.livro-desc {
  margin: 0 0 1rem;
  color: #333;
  line-height: 1.65;
  max-width: 560px;
}

.livro-stack .btn-ebook {
  margin-top: 0.5rem;
}

.btn-ebook {
  background: var(--sakura-green);
  color: #fff;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  border-radius: 4px;
}

.btn-ebook:hover {
  background: var(--sakura-green-dark);
}

/* ── VÍDEOS ── */
.inst-videos {
  padding: 3rem 0;
  background: #fff;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.videos-grid iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 8px;
}

/* ── CONTATO ── */
.inst-contato {
  background: var(--sakura-pink);
  color: #fff;
  padding: 3rem 0;
}

.contato-inner {
  text-align: left;
}

.inst-contato h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.contato-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.contato-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
}

.contato-links i {
  font-size: 1.35rem;
  width: 1.5rem;
  text-align: center;
}

.contato-links a:hover {
  opacity: 0.9;
}

/* ── FOOTER ── */
.inst-footer {
  background: #fff;
  padding: 1.5rem 0 0;
  text-align: center;
}

.inst-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.inst-social img {
  width: 32px;
  height: 32px;
}

.inst-copy {
  background: #111;
  color: #aaa;
  font-size: 0.75rem;
  padding: 0.65rem;
  margin-top: 1rem;
}

.inst-copy span {
  color: var(--sakura-pink);
}

@media (max-width: 900px) {
  .inst-header-inner {
    position: relative;
  }

  .inst-nav-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001;
  }

  .inst-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 1rem;
    box-shadow: var(--shadow);
    margin: 0;
  }

  .inst-nav li {
    width: 100%;
  }

  .inst-nav a {
    display: block;
    padding: 0.85rem 0.5rem;
  }

  .inst-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .teacher-grid,
  .videos-grid {
    grid-template-columns: 1fr;
  }

  .course-row,
  .course-row.reverse,
  .n5-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }

  .course-row.reverse .course-icon,
  .course-row.reverse .course-body,
  .course-row .course-icon,
  .course-row .course-body,
  .n5-row .n5-icon,
  .n5-row .n5-body {
    order: initial;
    text-align: center;
  }

  .course-row .course-icon,
  .course-row.reverse .course-icon {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
  }

  .n5-row .n5-icon {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
  }

  .course-row .course-body,
  .course-row.reverse .course-body,
  .n5-row .n5-body {
    width: 100%;
    max-width: 100%;
  }

  .course-row.reverse .course-body {
    text-align: center;
  }

  .course-icon,
  .n5-icon {
    margin: 0 auto;
  }

  .course-body .btn,
  .n5-body .btn,
  .course-body .btn-disabled {
    margin-left: auto;
    margin-right: auto;
  }
}
