/* ============================================================
   PIVA Educacional — Professores (Trabalhe na PIVA) CSS
   Self-contained: nav canônica + footer canônico (espelho de
   contato.css/homepage.css) + embeds de vídeo lazy.
   Tokens da paleta e .eyebrow-tag / .nav-dropdown* vêm de shared.css.
   ============================================================ */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* O preset Relume removeu a escala numerica de max-width do Tailwind (so existem
   xs/sm/md/lg/xl/prose/lead). Redefinimos as numeradas usadas nesta pagina com os
   valores padrao do Tailwind, para os containers limitarem a largura no desktop. */
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }

/* ============================================================
   NAV canônica (#nav-header-c) — sticky, fundo sólido.
   ============================================================ */
#nav-header-c {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-whisper, rgba(28, 28, 28, 0.08));
}

#nav-header-c.is-menu-open {
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#mobile-menu-c {
  max-height: calc(100dvh - 4.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-prog-chevron {
  flex-shrink: 0;
  transition: transform 250ms cubic-bezier(0.32, 0.72, 0, 1);
}
#mobile-menu-c details[open] .mobile-prog-chevron {
  transform: rotate(180deg);
}

#nav-header-c .nav-link,
#nav-header-c .nav-dropdown-btn {
  color: var(--text);
  transition: color 150ms cubic-bezier(0.32, 0.72, 0, 1);
}

#nav-header-c .nav-logo-link {
  display: inline-flex;
  align-items: center;
}

.nav-logo-img {
  height: 2rem;
  width: auto;
  display: block;
  user-select: none;
}

@media (max-width: 640px) {
  .nav-logo-img { height: 1.625rem; }
}

#nav-header-c .nav-link:hover,
#nav-header-c .nav-dropdown-btn:hover {
  color: var(--primary);
}

#nav-header-c .nav-hamburger {
  color: var(--text);
}

#nav-header-c .nav-cta-btn {
  background: var(--accent);
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-block;
  transition: background 150ms cubic-bezier(0.32, 0.72, 0, 1);
}

#nav-header-c .nav-cta-btn:hover {
  background: var(--accent-dark);
}

#nav-header-c .nav-cta-btn:active {
  transform: scale(0.98);
}

/* ============================================================
   Embed de vídeo (YouTube lazy) e do formulário — 16:9 responsivo.
   O iframe só entra no clique do thumbnail (ver professores.js).
   ============================================================ */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #0A3D42;
  box-shadow: 0 10px 30px -12px rgba(0, 137, 148, 0.35);
  cursor: pointer;
  transition:
    transform 300ms cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 300ms cubic-bezier(0.32, 0.72, 0, 1);
}

.video-embed:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -16px rgba(0, 137, 148, 0.45);
}

.video-embed img.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed .video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 61, 66, 0.28);
  transition: background 200ms cubic-bezier(0.32, 0.72, 0, 1);
  border: 0;
  cursor: pointer;
}

.video-embed:hover .video-play {
  background: rgba(10, 61, 66, 0.42);
}

.video-embed .video-play svg {
  width: 3.5rem;
  height: 3.5rem;
  filter: drop-shadow(0 4px 12px rgba(10, 61, 66, 0.35));
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.video-embed:hover .video-play svg {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .video-embed,
  .video-embed .video-play,
  .video-embed .video-play svg { transition: none; }
  .video-embed:hover { transform: none; }
}

/* Embed do formulário Google (altura própria, não 16:9) */
.form-embed {
  width: 100%;
  border: 0;
  border-radius: 0.75rem;
  background: var(--bg);
  box-shadow: 0 10px 30px -12px rgba(0, 137, 148, 0.22);
}

/* ============================================================
   FOOTER canônico (#footer-c) — espelho de contato.css/homepage.css
   ============================================================ */
#footer-c {
  background: var(--text);
  padding: 4.5rem 1.25rem 2.5rem;
}

@media (min-width: 768px) {
  #footer-c {
    padding: 5rem 3rem 2.5rem;
  }
}

.footer-c-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .footer-c-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-c-brand-name {
  font-family: 'Lora', serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 0.375rem;
}

.footer-c-brand-sub {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 237, 227, 0.45);
  display: block;
  margin-bottom: 1rem;
}

.footer-c-tagline {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.9375rem;
  color: rgba(245, 237, 227, 0.65);
  line-height: 1.5;
  max-width: 24ch;
  margin: 0;
}

.footer-c-col-title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 237, 227, 0.4);
  margin-bottom: 1.25rem;
}

.footer-c-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-c-links a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  color: rgba(245, 237, 227, 0.7);
  text-decoration: none;
  transition: color 150ms cubic-bezier(0.32, 0.72, 0, 1);
}

.footer-c-links a:hover {
  color: var(--secondary);
}

address.footer-c-address {
  font-style: normal;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  color: rgba(245, 237, 227, 0.7);
  line-height: 1.75;
}

address.footer-c-address a {
  color: rgba(245, 237, 227, 0.7);
  text-decoration: none;
  transition: color 150ms cubic-bezier(0.32, 0.72, 0, 1);
}

address.footer-c-address a:hover {
  color: var(--primary);
}

.footer-c-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-c-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  color: rgba(245, 237, 227, 0.7);
  text-decoration: none;
  transition: color 150ms cubic-bezier(0.32, 0.72, 0, 1);
}

.footer-c-social a:hover {
  color: var(--secondary);
}

.footer-c-bar {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(245, 237, 227, 0.1);
  max-width: 1280px;
  margin: 0 auto;
}

.footer-c-copy {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  color: rgba(245, 237, 227, 0.35);
  margin: 0;
}
