/* ══════════════════════════════════════════════════════════════
   profrafaelcardoso.com.br — CSS institucional compartilhado
   Tema CLARO (padrão definido 29/07: "padrão dos grandes")
   Fontes: Oswald (display) + Barlow (corpo) — mesmas das páginas de venda
   Paleta própria do site (não é de corporação): navy + âmbar
   ══════════════════════════════════════════════════════════════ */

:root {
  --navy: #16233F;
  --navy-2: #1F3159;
  --navy-3: #2A4173;
  --ink: #17202E;
  --muted: #55627A;
  --bg: #FFFFFF;
  --bg-alt: #F4F6F9;
  --bg-navy: #101A30;
  --line: #E3E8F0;
  --gold: #C9971F;
  --gold-strong: #A87C12;
  --gold-soft: #FBF3DD;
  --green: #1E7B4F;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --text-sm: 0.875rem;
  --text-base: 1.0625rem;   /* corpo ≥17px — regra do padrão do blog */
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.35rem;

  --radius: 6px;
  --shadow-card: 0 1px 3px rgba(22,35,63,0.07), 0 8px 24px rgba(22,35,63,0.07);
  --shadow-card-hover: 0 2px 6px rgba(22,35,63,0.10), 0 14px 34px rgba(22,35,63,0.13);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--gold); color: #14181D; }

h1, h2 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--navy);
}
h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.4vw, var(--text-3xl)); font-weight: 600; }
h3 { font-size: var(--text-lg); font-weight: 700; color: var(--navy); }

.container { max-width: 1120px; margin: 0 auto; width: 100%; padding: 0 1.5rem; }
section { padding: clamp(3rem, 7vw, 5rem) 0; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); }

.section-head { max-width: 720px; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); margin-top: 0.7rem; }

/* ── Botões ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #14181D; }
.btn-gold:hover { background: #DBA92E; transform: translateY(-1px); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.brand span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-strong);
  font-weight: 600;
}
.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav .btn { white-space: nowrap; }
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  font-size: 1.1rem;
  color: var(--navy);
  cursor: pointer;
}

/* ── Banner rotativo (home) ─────────────────────────────── */
.hero-banner { position: relative; background: var(--bg-navy); color: #EDEAE1; overflow: hidden; padding: 0; }
.hb-track { display: flex; transition: transform 0.55s var(--ease-out); }
.hb-slide {
  min-width: 100%;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  position: relative;
}
.hb-slide .container { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 2.5rem; align-items: center; }
.hb-slide.no-media .container { grid-template-columns: 1fr; }
.hb-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(201,151,31,0.45);
  border-radius: 999px;
  padding: 0.32rem 0.9rem;
  margin-bottom: 1.1rem;
}
.hb-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hb-slide h1, .hb-slide h2 { color: #fff; font-size: clamp(1.7rem, 4.2vw, 2.7rem); }
.hb-slide h1 mark, .hb-slide h2 mark { background: none; color: var(--gold); }
.hb-slide p { color: #B9C2D2; margin: 1rem 0 1.6rem; max-width: 56ch; }
.hb-media img { border-radius: var(--radius); box-shadow: 0 18px 44px rgba(0,0,0,0.45); }
.hb-media.brasao { display: flex; justify-content: center; }
.hb-media.recorte { display: flex; justify-content: center; align-items: center; }
.foto-medalhao {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(201, 151, 31, 0.55);
  background: radial-gradient(circle at 50% 30%, #24365C 0%, #16233F 75%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.foto-medalhao img {
  width: 88%;
  height: auto;
  margin-top: 6%;
  border-radius: 0;
  box-shadow: none;
}
.hb-media.brasao img {
  height: 260px;
  width: auto;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,0.5));
}
.hb-dots {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  z-index: 5;
}
.hb-dots button {
  width: 30px; height: 4px;
  border: none;
  border-radius: 2px;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  transition: background 0.25s;
}
.hb-dots button[aria-selected="true"] { background: var(--gold); }
.hb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s;
}
.hb-arrow:hover { background: rgba(255,255,255,0.2); }
.hb-prev { left: 0.9rem; }
.hb-next { right: 0.9rem; }

/* ── Cards genéricos ────────────────────────────────────── */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
a.card { text-decoration: none; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--gold-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.card p { color: var(--muted); font-size: 0.98rem; }
.card .card-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
  text-transform: uppercase;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}
.card .card-link::after { content: " →"; color: var(--gold-strong); }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-strong);
}
.badge.navy { background: #E8EDF7; color: var(--navy); }
.badge.green { background: #E3F2EA; color: var(--green); }

/* ── Faixa alternada / CTA ──────────────────────────────── */
.band-alt { background: var(--bg-alt); }
.band-navy { background: var(--bg-navy); color: #EDEAE1; }
.band-navy h2 { color: #fff; }
.band-navy p { color: #B9C2D2; }

/* ── Tabelas (ficha de concurso etc.) ───────────────────── */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table.data th, table.data td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data th {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
  background: var(--bg-alt);
  color: var(--navy);
}

/* ── Passo a passo (portal do aluno) ────────────────────── */
.steps { display: grid; gap: 1rem; counter-reset: passo; }
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  align-items: start;
}
.step::before {
  counter-increment: passo;
  content: counter(passo);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold-strong);
  background: var(--gold-soft);
  border-radius: var(--radius);
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step p { color: var(--muted); font-size: 0.98rem; margin-top: 0.25rem; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  margin-bottom: 0.8rem;
}
.faq summary {
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::after { content: "+"; color: var(--gold-strong); font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 0.7rem; max-width: 68ch; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--bg-navy); color: #B9C2D2; padding: 3.2rem 0 1.6rem; font-size: 0.95rem; }
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: #fff;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; display: grid; gap: 0.45rem; }
.site-footer a { color: #B9C2D2; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .legal { padding-top: 1.4rem; font-size: 0.82rem; color: #7A8699; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ── Fotos de retrato — proporção blindada contra esticar ── */
#quem-sou img {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: cover;
  display: block;
}
.foto-sobre {
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  object-fit: cover;
}
#quem-sou p { max-width: 68ch; }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb { font-size: 0.85rem; color: var(--muted); padding: 1.1rem 0 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { color: var(--navy); font-weight: 600; }

/* ── Responsivo ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hb-slide .container { grid-template-columns: 1fr; }
  .hb-media, .hb-media.brasao, .hb-media.recorte { display: none; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1.5rem 1.2rem;
    gap: 0.2rem;
    box-shadow: 0 14px 30px rgba(22,35,63,0.12);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 0.7rem; }
  .nav-toggle { display: block; }
  .hb-arrow {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.14);
  }
}
