/* YUP — paleta oficial (guia de marca) */
:root {
  --yup-primary: #0b3c66;
  --yup-secondary: #1f5e8c;
  --yup-light-blue: #e6f0f7;
  --yup-pink: #f24887;
  --yup-pink-soft: #f9a8c3;
  --yup-yellow: #ffd84d;
  --yup-yellow-light: #fff3b0;
  --yup-white: #ffffff;
  --yup-gray-bg: #f5f7fa;
  --yup-gray-border: #d1d5db;
  --yup-gray-text: #6b7280;
  --yup-text: #111827;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(11, 60, 102, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--yup-text);
  background: var(--yup-gray-bg);
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Cabeçalho — texto claro sobre azul primário (contraste AA) */
.site-header {
  background: var(--yup-primary);
  color: var(--yup-white);
  padding: 1rem 0;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
}

.logo-yup {
  height: auto;
  max-width: 100%;
  display: block;
}

.logo-yup--header {
  width: min(180px, 62vw);
}

.logo-yup--footer {
  width: auto;
  height: 1em;
  display: inline-block;
  vertical-align: -0.2em;
  margin: 0 0.2em;
}

/* Vídeo — fundo azul claro de apoio */
.video-section {
  padding: 3rem 0 4rem;
  background: var(--yup-light-blue);
}

.section-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yup-primary);
  text-align: center;
}

.section-desc {
  margin: 0.75rem auto 1.75rem;
  max-width: 32rem;
  text-align: center;
  color: var(--yup-gray-text);
  font-size: 0.95rem;
}

.video-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--yup-white);
  border: 3px solid var(--yup-yellow);
  box-shadow: var(--shadow);
}

.video-player {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  background: #000;
}

/* YouTube 16:9 responsivo */
.video-frame--youtube {
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
}

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

.video-fallback {
  margin: 1.25rem 0 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.video-fallback-link {
  display: inline-block;
  padding: 1.1rem 2.25rem;
  min-width: min(22rem, 100%);
  max-width: 100%;
  font-weight: 700;
  font-size: clamp(0.9rem, 3.8vw, 1.15rem);
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.2;
  color: var(--yup-white);
  background: var(--yup-pink);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.video-fallback-link:hover {
  background: var(--yup-pink-soft);
  color: var(--yup-text);
}

/* Rodapé */
.site-footer {
  padding: 1.5rem 0;
  background: var(--yup-primary);
  color: var(--yup-white);
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.35rem;
}

.footer-after-logo {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .video-section {
    padding: 3.5rem 0 5rem;
  }
}
