/* Identidade visual hi-tech da Academia Rosa Dourada — camada visual isolada */
:root {
  --rd-ink: #030b1b;
  --rd-navy: #061735;
  --rd-blue: #087fe8;
  --rd-cyan: #27dcff;
  --rd-gold: #f5c65b;
  --rd-gold-light: #fff0a7;
  --rd-paper: #eaf3ff;
}
body {
  color: var(--rd-paper);
  background:
    radial-gradient(ellipse at 50% -12%, rgba(10, 91, 193, .42), transparent 48%),
    radial-gradient(ellipse at 0% 55%, rgba(0, 194, 255, .10), transparent 35%),
    radial-gradient(ellipse at 100% 65%, rgba(0, 194, 255, .09), transparent 34%),
    var(--rd-ink);
}
.site-header {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(105deg, rgba(2, 9, 24, .97), rgba(4, 26, 61, .94) 48%, rgba(2, 9, 24, .97));
  border-bottom: 1px solid rgba(39, 220, 255, .65);
  box-shadow: 0 6px 28px rgba(0, 0, 0, .5), 0 1px 12px rgba(39, 220, 255, .2);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background: repeating-linear-gradient(115deg, transparent 0 38px, rgba(39,220,255,.15) 39px 40px, transparent 41px 78px);
}
.header-inner { position: relative; gap: clamp(1rem, 2vw, 2.5rem); }
.brand { gap: .85rem; color: var(--rd-gold-light); text-shadow: 0 0 16px rgba(245,198,91,.24); }
.brand > img { width: clamp(54px, 6vw, 78px); filter: drop-shadow(0 0 10px rgba(39,220,255,.55)); }
.brand-wordmark { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: .045em; }
.brand-overline, .brand-sub { color: var(--rd-gold); letter-spacing: .22em; }
.site-nav ul { gap: clamp(.25rem, 1vw, 1rem); }
.site-nav a {
  color: #eaf4ff;
  border: 1px solid transparent;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: .045em;
  font-size: .88rem;
  transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--rd-gold-light);
  border-color: rgba(39,220,255,.6);
  background: linear-gradient(180deg, rgba(10,70,139,.45), rgba(2,15,39,.7));
  box-shadow: inset 0 -2px 0 var(--rd-gold), 0 0 14px rgba(39,220,255,.16);
}
.home-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3,12,30,.36), rgba(3,12,30,.86)),
    radial-gradient(ellipse at 50% 0%, rgba(0,126,255,.24), transparent 60%);
  border-bottom: 1px solid rgba(39,220,255,.35);
}
.home-hero::before, .home-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: min(36vw, 390px);
  height: 1px;
  top: 35%;
  background: linear-gradient(90deg, transparent, var(--rd-cyan), var(--rd-gold), transparent);
  box-shadow: 0 0 12px rgba(39,220,255,.6);
}
.home-hero::before { left: 0; }
.home-hero::after { right: 0; }
.home-dashboard { position: relative; z-index: 1; }
.home-motto { text-align: center; margin-inline: auto; }
.motto-kicker {
  display: inline-block;
  color: var(--rd-cyan);
  letter-spacing: .3em;
  font-size: .72rem;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(39,220,255,.5);
}
.home-motto h1 {
  color: #fff5ce;
  font-family: Georgia, "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: .035em;
  text-shadow: 0 2px 0 #5e3b0a, 0 0 22px rgba(245,198,91,.25);
}
.home-motto h1 span { color: var(--rd-gold); }
.home-motto > img { filter: drop-shadow(0 0 9px rgba(39,220,255,.45)); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.65rem, 1.4vw, 1.25rem);
}
.feature-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: .65rem .65rem 1rem;
  color: #eaf4ff;
  text-align: center;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(5,30,69,.9), rgba(2,9,25,.97)),
    var(--rd-navy);
  border: 1px solid var(--rd-gold);
  outline: 1px solid rgba(39,220,255,.45);
  outline-offset: 3px;
  border-radius: 10px 3px 10px 3px;
  box-shadow: 0 0 0 1px rgba(245,198,91,.18), 0 12px 28px rgba(0,0,0,.4), inset 0 0 22px rgba(0,128,255,.13);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(39,220,255,.36);
  border-radius: 6px 2px 6px 2px;
  pointer-events: none;
  z-index: -1;
}
.feature-card::after {
  content: "";
  position: absolute;
  height: 2px;
  left: 12%;
  right: 12%;
  bottom: 0;
  background: linear-gradient(90deg, transparent, var(--rd-cyan), var(--rd-gold), transparent);
  box-shadow: 0 0 12px var(--rd-cyan);
}
.feature-card:hover, .feature-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--rd-gold-light);
  box-shadow: 0 0 20px rgba(39,220,255,.24), 0 16px 32px rgba(0,0,0,.55), inset 0 0 26px rgba(0,128,255,.2);
}
.feature-art {
  width: 100%;
  aspect-ratio: 1.32 / 1;
  overflow: hidden;
  border: 1px solid rgba(39,220,255,.55);
  border-radius: 6px 2px 6px 2px;
  background: #061735;
  box-shadow: inset 0 0 18px rgba(0,0,0,.45), 0 0 10px rgba(39,220,255,.13);
}
.feature-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature-symbol {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-top: -1.35rem;
  color: var(--rd-gold-light);
  font-size: 1.3rem;
  background: #061735;
  border: 1px solid var(--rd-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(3,11,27,.9), 0 0 14px rgba(39,220,255,.3);
}
.feature-title {
  margin-top: .55rem;
  color: var(--rd-gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(.95rem, 1.2vw, 1.15rem);
  text-shadow: 0 0 10px rgba(245,198,91,.2);
}
.feature-description { flex: 1; margin-top: .4rem; font-size: .84rem; line-height: 1.5; color: #d9e8fb; }
.feature-action { margin-top: .75rem; color: var(--rd-cyan); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.band, .section { background: transparent; }
.section-head h2, .section h2 { color: var(--rd-gold-light); }
.card, .table-wrap, .stat {
  color: var(--rd-paper);
  background: linear-gradient(145deg, rgba(7,29,65,.94), rgba(2,10,27,.97));
  border: 1px solid rgba(245,198,91,.58);
  box-shadow: 0 0 0 1px rgba(39,220,255,.15), 0 12px 26px rgba(0,0,0,.28);
}
.stat b, .dice-chip { color: var(--rd-gold-light); }
.site-footer {
  color: #c8d9ee;
  background: #020817;
  border-top: 1px solid rgba(39,220,255,.5);
  box-shadow: 0 -5px 20px rgba(0,0,0,.28);
}
.site-footer strong { color: var(--rd-gold); }
:focus-visible { outline: 2px solid var(--rd-cyan); outline-offset: 4px; }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card:last-child { grid-column: 1 / -1; width: min(100%, 420px); justify-self: center; }
  .site-nav a { font-size: .78rem; }
}
@media (max-width: 620px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .site-nav ul { flex-wrap: wrap; justify-content: center; }
  .site-nav a { padding: .5rem .6rem; }
  .home-motto h1 { font-size: clamp(1.6rem, 8vw, 2.5rem); }
  .feature-grid { grid-template-columns: 1fr; gap: 1rem; }
  .feature-card, .feature-card:last-child { width: 100%; grid-column: auto; }
  .feature-art { aspect-ratio: 1.8 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-card, .site-nav a { transition: none; }
}


/* Integração das ilustrações originais em PNG */
.site-header {
  background:
    linear-gradient(180deg, rgba(2, 8, 22, .06) 0%, rgba(2, 8, 22, .10) 68%, #030b1b 100%),
    url("../assets/rosa-dourada/header-banner.png") center top / cover no-repeat,
    #030b1b;
  min-height: clamp(190px, 22vw, 340px);
  border-bottom: 2px solid var(--rd-gold);
}
.header-inner {
  min-height: inherit;
  align-items: flex-end;
  padding-top: clamp(7.5rem, 14vw, 14rem);
  padding-bottom: .9rem;
}
.brand > img {
  width: clamp(78px, 11vw, 150px);
  height: auto;
  max-height: 130px;
  object-fit: contain;
}
.brand-wordmark { text-shadow: 0 2px 8px #020817, 0 0 16px rgba(245,198,91,.45); }
.home-hero {
  background:
    linear-gradient(180deg, rgba(2,10,27,.45), rgba(2,10,27,.91)),
    url("../assets/rosa-dourada/footer-ornament.png") center bottom / 100% auto no-repeat,
    radial-gradient(ellipse at 50% 0%, rgba(0,126,255,.24), transparent 60%);
}
.feature-art {
  aspect-ratio: 1.72 / 1;
  border: 1px solid var(--rd-gold);
  box-shadow: 0 0 10px rgba(39,220,255,.3), inset 0 0 12px rgba(0,0,0,.3);
}
.feature-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.feature-card { padding: .45rem .45rem 1rem; }
.feature-symbol {
  position: relative;
  z-index: 2;
  margin-top: -1.25rem;
  font-size: 1.45rem;
}
@media (max-width: 900px) {
  .site-header { min-height: 245px; background-position: center top; }
  .header-inner { padding-top: 8.5rem; }
}
@media (max-width: 620px) {
  .site-header { min-height: 210px; background-size: auto 210px; }
  .header-inner { padding-top: 7rem; align-items: center; }
  .brand > img { width: 64px; }
  .feature-art { aspect-ratio: 1.8 / 1; }
}

/* Refinamento global do cabeçalho e seletor tipográfico */
:root { --rd-font-body: "Trebuchet MS", Arial, sans-serif; --rd-font-display: Georgia, "Times New Roman", serif; }
html[data-font="tech"] { --rd-font-body: "Trebuchet MS", Arial, sans-serif; --rd-font-display: "Trebuchet MS", Arial, sans-serif; }
html[data-font="elegant"] { --rd-font-body: "Trebuchet MS", Arial, sans-serif; --rd-font-display: Georgia, "Times New Roman", serif; }
body { font-family: var(--rd-font-body); }
h1,h2,h3,h4,.brand-wordmark,.feature-title { font-family: var(--rd-font-display); }
.site-header {
  min-height: 0;
  background: linear-gradient(110deg, #030b1b 0%, #071b3a 52%, #030b1b 100%);
  border-bottom: 1px solid rgba(245,198,91,.55);
  box-shadow: 0 5px 22px rgba(0,0,0,.28);
}
.site-header::before { opacity: .08; }
.header-inner { min-height: 88px; padding: .8rem 0; align-items: center; }
.brand {
  display: inline-flex; align-items: center; gap: .9rem;
  padding: .45rem .85rem .45rem .55rem;
  border: 1px solid rgba(245,198,91,.28);
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(8,29,59,.98), rgba(4,14,32,.96));
  box-shadow: inset 0 0 18px rgba(39,220,255,.04);
  text-decoration: none;
}
.brand > img { width: clamp(48px,5vw,68px); max-height: 68px; object-fit: contain; }
.brand-wordmark { color: #fff0a7; line-height: 1.2; font-size: clamp(1rem,1.45vw,1.35rem); }
.brand-overline,.brand-sub { display:block; font-family: var(--rd-font-body); font-size:.58rem; color:#f5c65b; letter-spacing:.18em; }
.brand-sub { margin-top:.2rem; }
.header-actions { display:flex; align-items:center; gap:.6rem; }
.font-choice { display:flex; align-items:center; gap:.35rem; color:#d9e8fb; font-size:.72rem; }
.font-toggle { max-width:120px; color:#fff0a7; background:#061735; border:1px solid rgba(245,198,91,.55); border-radius:6px; padding:.45rem .55rem; font:inherit; }
@media(max-width:900px) { .header-inner { padding:.7rem 0; min-height:0; } .brand { padding:.35rem .55rem; } }
@media(max-width:620px) { .header-inner { align-items:center; } .font-choice span { display:none; } .font-toggle { max-width:105px; } }

/* Header ajustado ao conceito: marca à esquerda, navegação e controles à direita, fundo limpo */
.site-header {
  min-height: unset !important;
  background: linear-gradient(110deg, #030b1b 0%, #061735 48%, #030b1b 100%) !important;
  border-bottom: 1px solid rgba(245,198,91,.58);
  box-shadow: 0 5px 20px rgba(0,0,0,.22);
}
.site-header::before { opacity: .045 !important; }
.header-inner {
  min-height: 104px !important;
  padding: .85rem 0 !important;
  display: flex;
  align-items: center !important;
  justify-content: space-between;
  gap: clamp(.75rem, 2vw, 1.8rem);
}
.brand {
  flex: 0 0 auto;
  gap: .8rem;
  padding: .35rem .7rem .35rem .35rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.brand > img {
  width: clamp(58px, 6.4vw, 88px) !important;
  max-height: 88px !important;
  filter: drop-shadow(0 0 8px rgba(39,220,255,.2));
}
.brand-wordmark {
  font-size: clamp(1.1rem, 2vw, 1.85rem);
  line-height: 1.08;
  color: #ffe7a0;
  text-shadow: 0 1px 5px rgba(0,0,0,.55);
}
.brand-overline,.brand-sub {
  font-size: .62rem;
  letter-spacing: .2em;
  color: #f5c65b;
}
.site-nav { margin-left: auto; }
.site-nav ul { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:.35rem; }
.site-nav a { padding: .65rem .7rem; }
.header-actions { flex:0 0 auto; display:flex; align-items:center; gap:.55rem; }
.font-choice { display:flex; align-items:center; gap:.35rem; }
.font-toggle { border-radius:7px; }
@media(max-width:1100px) {
 .header-inner { flex-wrap:wrap; }
 .site-nav { order:3; width:100%; margin:0; }
 .site-nav ul { justify-content:center; }
 .header-actions { margin-left:auto; }
}
@media(max-width:620px) {
 .header-inner { min-height:unset !important; gap:.4rem; }
 .brand { max-width:calc(100% - 120px); }
 .brand > img { width:52px !important; }
 .brand-wordmark { font-size:1.05rem; }
 .brand-overline,.brand-sub { font-size:.52rem; }
 .site-nav ul { gap:.15rem; }
 .site-nav a { padding:.45rem .5rem; font-size:.72rem; }
}
