/* =====================================================================
   Faculdade SEUNE — Landing de abertura
   Identidade visual alinhada ao ecossistema SEUNE (inscricao.seune.edu.br):
   azul-marinho institucional + laranja de destaque, tipografia Inter.
   ===================================================================== */

:root {
  /* Cores SEUNE */
  --navy-950: #04122f;
  --navy-900: #061c46;   /* fundo base */
  --navy-800: #0a2d6f;   /* header / superfícies elevadas */
  --navy-card: #102a5e;  /* base dos cards */
  --navy-line: #1e3c78;  /* bordas */
  --orange: #f57c00;
  --orange-hover: #e66e00;

  --ink: #f4f6fb;
  --ink-soft: #c3cfe6;
  --ink-mute: #8ea0c6;

  --radius: 20px;
  --radius-sm: 12px;
  --shell: 1080px;

  /* Microlabels em monoespaçada — assinatura tipográfica do
     ecossistema SEUNE (kickers, badges, tags). */
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.21, 0.84, 0.35, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--navy-900);
  background-image: radial-gradient(
    130% 90% at 50% -10%,
    #0c3370 0%,
    var(--navy-900) 52%,
    var(--navy-950) 100%
  );
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 22px;
}

/* ---------------------------------------------------------------------
   Fundo decorativo — grade sutil + brilhos que flutuam lentamente
   --------------------------------------------------------------------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-fx__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(105% 85% at 50% 0%, #000 5%, transparent 75%);
          mask-image: radial-gradient(105% 85% at 50% 0%, #000 5%, transparent 75%);
}

.bg-fx__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}

.bg-fx__glow--orange {
  width: 540px;
  height: 540px;
  top: -180px;
  right: -160px;
  background: radial-gradient(circle, rgba(245, 124, 0, 0.22), transparent 68%);
  animation: drift 22s var(--ease) infinite;
}

.bg-fx__glow--blue {
  width: 620px;
  height: 620px;
  bottom: -260px;
  left: -200px;
  background: radial-gradient(circle, rgba(56, 110, 220, 0.28), transparent 70%);
  animation: drift 28s var(--ease) infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(34px, 30px); }
}

/* ---------------------------------------------------------------------
   Cabeçalho
   --------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 45, 111, 0.55);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.site-header__logo {
  display: inline-flex;
  border-radius: 4px;
}

.site-header__logo:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.site-header__logo img {
  height: 40px;
  width: auto;
}

.site-header__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-block: clamp(36px, 7vw, 68px) clamp(40px, 8vw, 72px);
}

.hero {
  text-align: center;
  max-width: 660px;
  margin-inline: auto;
}

.hero__kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.hero__title {
  margin-top: 14px;
  font-size: clamp(2rem, 6.4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero__title-accent {
  color: var(--orange);
}

.hero__lead {
  margin-top: 16px;
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  color: var(--ink-soft);
}

.hero__rule {
  display: block;
  width: 56px;
  height: 3px;
  margin: 26px auto 0;
  border-radius: 3px;
  background: linear-gradient(to right, var(--orange), #ffab47);
}

/* ---------------------------------------------------------------------
   Cards de escolha
   --------------------------------------------------------------------- */
.choices {
  margin-top: clamp(28px, 5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.choices__secondary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  background: linear-gradient(158deg, rgba(22, 49, 104, 0.92), rgba(10, 28, 66, 0.94));
  color: var(--ink);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.card:hover,
.card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(245, 124, 0, 0.65);
  box-shadow: 0 26px 52px -20px rgba(0, 0, 0, 0.75),
    0 12px 38px -16px rgba(245, 124, 0, 0.3),
    0 0 0 1px rgba(245, 124, 0, 0.34);
}

.card:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* --- Foto do card --- */
.card__photo {
  position: relative;
  overflow: hidden;
  height: 264px;
  background: var(--navy-900);
}

.card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 14%;
  transition: transform 0.6s var(--ease);
}

.card:hover .card__photo img,
.card:focus-visible .card__photo img {
  transform: scale(1.045);
}

/* Esfumado da foto para o corpo do card */
.card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 56%, rgba(7, 20, 48, 0.72) 100%);
}

/* Chip do ícone sobre a foto */
.card__icon {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: rgba(6, 20, 48, 0.72);
  border: 1px solid rgba(245, 124, 0, 0.5);
  color: var(--orange);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  transition: border-color 0.35s var(--ease);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

/* Chip realça junto com o card no hover/foco */
.card:hover .card__icon,
.card:focus-visible .card__icon {
  border-color: rgba(245, 124, 0, 0.95);
}

/* --- Corpo do card --- */
.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.card__badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(245, 124, 0, 0.15);
  color: #ffb267;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.25);
}

.card__title {
  font-size: clamp(1.4rem, 3.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

/* Palavra-chave do título em laranja — mesmo recurso do hero */
.card__title-accent {
  color: var(--orange);
}

.card__desc {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 46ch;
}

.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--orange);
}

.card__cta--solid {
  align-self: flex-start;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  transition: background-color 0.25s var(--ease);
}

.card:hover .card__cta--solid,
.card:focus-visible .card__cta--solid {
  background: var(--orange-hover);
}

.card__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  animation: chevron-pulse 1.3s var(--ease) infinite;
}

/* Chevron com pulso contínuo — sempre animado, sem depender do hover */
@keyframes chevron-pulse {
  0%, 100% { transform: translateX(0); opacity: 0.8; }
  50%      { transform: translateX(5px); opacity: 1; }
}

/* Cada card entra em fase diferente — chevrons fora de sincronia.
   Delays negativos para iniciar já no meio do ciclo, sem pausa. */
#link-graduacao .card__chevron { animation-delay: 0s; }
#link-pos .card__chevron       { animation-delay: -0.43s; }
#link-portal .card__chevron    { animation-delay: -0.86s; }

/* --- Card em destaque: Graduação --- */
.card--featured {
  border-color: rgba(245, 124, 0, 0.42);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(245, 124, 0, 0.16), transparent 55%),
    linear-gradient(158deg, rgba(26, 54, 112, 0.95), rgba(11, 30, 70, 0.96));
  box-shadow: 0 22px 50px -26px rgba(245, 124, 0, 0.4);
}

/* Graduação ganha um brilho laranja mais forte no hover —
   reforça o card como CTA principal. */
.card--featured:hover,
.card--featured:focus-visible {
  border-color: rgba(245, 124, 0, 0.8);
  box-shadow: 0 28px 56px -20px rgba(0, 0, 0, 0.78),
    0 16px 48px -14px rgba(245, 124, 0, 0.42),
    0 0 0 1px rgba(245, 124, 0, 0.5);
}

.card--featured .card__photo {
  height: 300px;
}

.card[hidden] {
  display: none;
}

/* ---------------------------------------------------------------------
   Rodapé
   --------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 24, 58, 0.6);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-block: 28px;
}

.site-footer__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.site-footer__brand {
  display: inline-flex;
  border-radius: 4px;
}

.site-footer__brand:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
}

.site-footer__brand img {
  width: 160px;
  height: auto;
}

.site-footer__copy {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: var(--ink-mute);
}

.site-footer__social {
  display: flex;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink-soft);
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.social-btn:hover,
.social-btn:focus-visible {
  background: rgba(245, 124, 0, 0.16);
  border-color: rgba(245, 124, 0, 0.45);
  color: var(--orange);
  transform: translateY(-2px);
}

.social-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

/* ---------------------------------------------------------------------
   Animação de entrada (stagger)
   --------------------------------------------------------------------- */
.reveal {
  animation: rise 0.7s var(--ease) both;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------------
   Tablet
   --------------------------------------------------------------------- */
@media (min-width: 600px) {
  .shell { padding-inline: 32px; }
  .card__body { padding: 28px 30px; }
}

/* ---------------------------------------------------------------------
   Cards na horizontal — foto à esquerda, conteúdo à direita
   --------------------------------------------------------------------- */
@media (min-width: 720px) {
  .site-header__logo img { height: 44px; }

  .card {
    flex-direction: row;
    align-items: stretch;
  }

  .card--featured .card__photo {
    height: auto;
    flex: 0 0 40%;
  }

  .card--secondary .card__photo {
    height: auto;
    flex: 0 0 36%;
  }

  /* Na horizontal o esfumado vai para a direita, em direção ao texto */
  .card__photo::after {
    background: linear-gradient(to right, transparent 54%, rgba(7, 20, 48, 0.74) 100%);
  }

  .card__body {
    justify-content: center;
  }

  .card__cta {
    margin-top: 0;
  }

  .card--featured {
    min-height: 340px;
  }

  .card--featured .card__body {
    gap: 15px;
    padding: 38px 42px;
  }
}

/* ---------------------------------------------------------------------
   Desktop — Graduação em destaque + "Já sou aluno" lado a lado
   --------------------------------------------------------------------- */
@media (min-width: 1000px) {
  .choices {
    flex-direction: row;
    align-items: stretch;
    gap: 22px;
  }

  .card--featured {
    flex: 1.6 1 0;
  }

  .choices__secondary {
    flex: 1 1 0;
  }

  .card--secondary {
    flex: 1;
  }
}

/* ---------------------------------------------------------------------
   Acessibilidade — respeita redução de movimento
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .bg-fx__glow { animation: none; }
  .card,
  .card__cta--solid,
  .card__icon,
  .card__photo img,
  .social-btn {
    transition: none;
  }
  /* Chevron fica estático para quem prefere menos movimento */
  .card__chevron {
    animation: none;
  }
}
