/* =========================================================
   OMEGA Consultoria Educacional — landing page styles
   Direction: "Azul Institucional" (navy + cyan)
   ========================================================= */

/* ---- Design tokens ------------------------------------- */
:root {
  --navy-900: #0f1b4c;
  --navy-700: #1d2a6b;
  --cyan-500: #1ba8dc;
  --cyan-400: #3fbce6;
  --ink: #2b2b2b;
  --muted: #5b6480;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --wa-green: #25D366;
  --max-width: 1140px;
  --radius: 14px;
  --font-head: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Extended system tokens (reused by later sections) */
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 12px rgba(15, 27, 76, .08);
  --shadow-md: 0 14px 38px -16px rgba(15, 27, 76, .35);
  --shadow-lg: 0 30px 70px -28px rgba(15, 27, 76, .5);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---- Reset / base -------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.01em; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }

/* ---- Reusable building blocks -------------------------- */

/* Eyebrow / kicker label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Section title + subtitle */
.section__title {
  font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.6rem);
  font-weight: 700;
  color: var(--navy-900);
}
.section__sub {
  color: var(--muted);
  font-size: clamp(1rem, .95rem + .3vw, 1.12rem);
  margin-top: .6rem;
}

/* Buttons */
.btn {
  --btn-bg: var(--cyan-500);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: .85rem 1.5rem;
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--wa {
  --btn-bg: var(--wa-green);
  --btn-fg: #fff;
  box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .65);
}
.btn--wa:hover { box-shadow: 0 16px 34px -12px rgba(37, 211, 102, .75); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  box-shadow: none;
}

.btn--lg {
  font-size: 1.05rem;
  padding: 1.05rem 2rem;
  min-height: 56px;
}

/* WhatsApp glyph used inside .btn--wa labels */
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* Scroll-reveal (Task 9) — elements lift in once observed */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Task 2 — Fixed header / responsive nav
   ========================================================= */
#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(15, 27, 76, .06);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
#site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, .94);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 44px; width: auto; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__menu > a:not(.btn) {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy-700);
  position: relative;
  padding: .35rem 0;
  transition: color .2s var(--ease);
}
.nav__menu > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--cyan-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav__menu > a:not(.btn):hover { color: var(--navy-900); }
.nav__menu > a:not(.btn):hover::after { transform: scaleX(1); }
.nav__menu .btn--wa { min-height: 44px; padding: .6rem 1.2rem; font-size: .9rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: 1rem 20px 1.5rem;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(15, 27, 76, .08);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
  }
  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav__menu > a:not(.btn) {
    padding: .85rem .25rem;
    border-bottom: 1px solid rgba(15, 27, 76, .07);
  }
  .nav__menu > a:not(.btn)::after { display: none; }
  .nav__menu .btn--wa { margin-top: .75rem; align-self: flex-start; }
}

/* =========================================================
   Task 3 — Hero
   ========================================================= */
#hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(48px, 9vw, 110px));
  padding-bottom: clamp(64px, 9vw, 120px);
  color: #fff;
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(27, 168, 220, .35) 0%, rgba(27, 168, 220, 0) 55%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
}

/* Decorative Omega-ring motif (echoes the logo mark) */
#hero::before,
#hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
#hero::before {
  width: clamp(420px, 46vw, 680px);
  aspect-ratio: 1;
  top: -16%;
  right: -8%;
  border: 2px solid rgba(63, 188, 230, .28);
  /* open ring like the Omega symbol's gap */
  mask: conic-gradient(from 200deg, #000 0 300deg, transparent 300deg 360deg);
  -webkit-mask: conic-gradient(from 200deg, #000 0 300deg, transparent 300deg 360deg);
}
#hero::after {
  width: clamp(220px, 26vw, 360px);
  aspect-ratio: 1;
  bottom: -22%;
  left: -8%;
  background: radial-gradient(circle, rgba(27, 168, 220, .22), transparent 70%);
  filter: blur(8px);
}

.hero { position: relative; max-width: 820px; }
.hero .eyebrow {
  color: var(--cyan-400);
}
.hero .eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--cyan-400);
  display: inline-block;
}
.hero h1 {
  margin-top: 1.1rem;
  font-size: clamp(1.75rem, .8rem + 4.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  max-width: 16ch;
  /* On very narrow screens, break the long word with a hyphen instead of clipping */
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.hero h1 .hl {
  color: var(--cyan-400);
  position: relative;
  white-space: nowrap;
}
.hero__sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, .95rem + .8vw, 1.35rem);
  color: rgba(255, 255, 255, .82);
  max-width: 48ch;
}
.hero__cta {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 520px) {
  .hero h1 .hl { white-space: normal; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
}

/* ---- Shared section head + accent eyebrow --------------- */
.section__head { max-width: 640px; }
.section__head.section__head--center { margin: 0 auto; text-align: center; }
/* On light sections: navy text for AA contrast; the dash stays cyan (decorative) */
.eyebrow--accent { color: var(--navy-700); }
.eyebrow--accent::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--cyan-500);
  display: inline-block;
}

/* =========================================================
   Task 4 — Cursos (course cards)
   ========================================================= */
#cursos { background: var(--bg-alt); }

.cursos__grid {
  margin-top: clamp(2rem, 1.4rem + 2vw, 3.2rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1.2rem, .8rem + 1.6vw, 2rem);
}

.curso-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid rgba(15, 27, 76, .06);
  border-radius: var(--radius-lg);
  padding: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
/* cyan top accent bar */
.curso-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan-500), var(--cyan-400));
  transform: scaleX(1);
  transform-origin: left;
}
.curso-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 168, 220, .35);
}

.curso-card__index {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .12em;
  color: var(--cyan-500);
  opacity: .9;
}
.curso-card__title {
  margin-top: .5rem;
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.55rem);
  font-weight: 700;
  color: var(--navy-700);
  letter-spacing: -.015em;
}
.curso-card__tag {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .98rem;
}

/* Checklist with cyan check markers (reused by other sections) */
.checklist {
  margin: 1.4rem 0 1.8rem;
  display: grid;
  gap: .7rem;
}
.checklist li {
  position: relative;
  padding-left: 2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(27, 168, 220, .12);
  /* cyan check mark */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231ba8dc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 60% 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.curso-card .btn--wa { margin-top: auto; align-self: flex-start; }

@media (max-width: 520px) {
  .curso-card .btn--wa { align-self: stretch; }
}

/* =========================================================
   Task 5 — Diferenciais
   ========================================================= */
#diferenciais { background: var(--bg); }

.dif__grid {
  margin-top: clamp(2.2rem, 1.6rem + 2vw, 3.4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.6rem, 1rem + 2vw, 2.6rem);
}

.dif {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dif__icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: var(--bg-alt);
  color: var(--cyan-500);
  box-shadow: inset 0 0 0 1px rgba(27, 168, 220, .14);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease);
}
.dif__icon svg { width: 42px; height: 42px; }
.dif:hover .dif__icon {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(27, 168, 220, .22);
}

.dif h3 {
  margin-top: 1.3rem;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy-700);
}
.dif p {
  margin-top: .55rem;
  color: var(--muted);
  max-width: 30ch;
  font-size: 1rem;
}

/* =========================================================
   Task 7 — Parceria + Contato (final CTA)
   ========================================================= */
#parceria { background: var(--bg); }
.parceria {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.parceria__text {
  margin-top: 1.4rem;
  font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem);
  line-height: 1.65;
  color: var(--muted);
}
.parceria__text strong { color: var(--navy-700); font-weight: 600; }
.parceria__crest {
  display: block;
  width: clamp(110px, 12vw, 160px);
  height: auto;
  margin: 0 auto;
}

/* Contato — prominent final CTA block */
#contato { padding: 0; }
.contato {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  border-radius: clamp(22px, 3vw, 32px);
  margin: 0 0 clamp(56px, 7vw, 90px);
  padding: clamp(3rem, 2rem + 5vw, 5rem) clamp(1.5rem, 1rem + 3vw, 3rem);
  color: #fff;
  background:
    radial-gradient(120% 130% at 85% 0%, rgba(27, 168, 220, .42) 0%, rgba(27, 168, 220, 0) 55%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: clamp(1.6rem, 1rem + 2vw, 2.5rem);
}
/* Co-branding lockup on a light panel so the navy Omega wordmark stays legible */
.contato__logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, .6rem + 1.5vw, 1.5rem);
  margin-inline: auto;
  max-width: 340px;
  padding: clamp(1.6rem, 1rem + 2.5vw, 2.4rem) clamp(1.8rem, 1rem + 3vw, 2.8rem);
  background: #fff;
  border-radius: clamp(16px, 2.5vw, 22px);
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .5);
}
.contato__logo { display: block; height: auto; }
.contato__logo--weu { width: clamp(96px, 14vw, 124px); }
.contato__logo--omega { width: clamp(180px, 26vw, 240px); }
.contato__logo-sep {
  width: 72%;
  height: 2px;
  background: rgba(20, 30, 80, .12);
}

/* Two columns on wider screens: logos on the left, text on the right */
@media (min-width: 820px) {
  .contato {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align: right;
    gap: clamp(1.5rem, 1rem + 2vw, 3.5rem);
  }
  .contato .section__title { margin-left: auto; margin-right: 0; }
  .contato__logos { order: -1; }
}
/* decorative ring echo */
.contato::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(260px, 30vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(63, 188, 230, .22);
  top: -30%;
  left: -6%;
  pointer-events: none;
}
.eyebrow--light { color: var(--cyan-400); }
.eyebrow--light::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--cyan-400);
  display: inline-block;
}
.contato .section__title { color: #fff; max-width: 18ch; margin-inline: auto; }
.contato__person {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .85);
  line-height: 1.5;
}
.contato__person strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}
.contato .btn--wa { margin-top: 2rem; }

/* =========================================================
   Task 8 — Footer
   ========================================================= */
#site-footer {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, .72);
  background: var(--navy-900);
  padding: clamp(2.6rem, 2rem + 2.5vw, 3.6rem) 0;
}
/* hairline cyan accent along the top edge */
#site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-500), var(--cyan-400));
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}

/* Logo placed on a light chip so the navy/grey logo text stays legible */
.footer__brand { display: inline-flex; }
.footer__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px -16px rgba(0, 0, 0, .6);
}
.footer__logo { height: 46px; width: auto; }

.footer__contact {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, .82);
}
.footer__sep { color: rgba(255, 255, 255, .35); }
.footer__wa {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  color: var(--cyan-400);
  transition: color .2s var(--ease);
}
.footer__wa:hover { color: #fff; }
.footer__wa svg { width: 1.1em; height: 1.1em; flex: none; }

.footer__ig {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  color: var(--cyan-400);
  transition: color .2s var(--ease);
}
.footer__ig:hover { color: #fff; }
.footer__ig svg { width: 1.1em; height: 1.1em; flex: none; }

.footer__copy {
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}

/* =========================================================
   Task 8 — Floating WhatsApp button
   ========================================================= */
#wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  height: 56px;
  min-width: 56px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--wa-green);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, .65), 0 4px 12px rgba(0, 0, 0, .18);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  /* gentle entrance */
  animation: wa-float-in .5s var(--ease) .4s both;
}
#wa-float .icon { width: 26px; height: 26px; flex: none; }
/* Dark label keeps AA contrast on the green pill; icon stays white */
.wa-float__label { color: var(--navy-900); font-weight: 700; }
#wa-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 20px 44px -10px rgba(37, 211, 102, .8), 0 6px 16px rgba(0, 0, 0, .22);
}
#wa-float:active { transform: translateY(0) scale(1); }

/* subtle attention pulse on the green halo */
#wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .5);
  animation: wa-float-pulse 2.6s var(--ease) infinite;
  z-index: -1;
}

@keyframes wa-float-in {
  from { opacity: 0; transform: translateY(14px) scale(.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wa-float-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* On small screens, collapse to a circular icon-only button to save space */
@media (max-width: 560px) {
  #wa-float { padding: 0; width: 56px; justify-content: center; }
  .wa-float__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #wa-float { animation: none; }
  #wa-float::after { animation: none; }
}
