/* Base: variáveis, reset e elementos partilhados por todo o site. */
/* Cores: modo claro em :root, modo escuro em :root[data-theme="dark"] (definido por js/theme.js). Os blocos azuis (--navy) mantêm-se azuis nos dois. */
:root {
  color-scheme: light;
  --navy: #133952;
  --deep: #0d2d42;
  --footer: #102844;
  --accent: #1d5276;
  --accent-light: #b8d9e9;
  --gold: #a27a21;
  --gold-text: #8a6516;
  --ink: #163a52;
  --soft: #3e5367;
  --muted: #546e7a;
  --paper: #f7f9fa;
  --surface: #fff;
  --tint: #eaf0f4;
  --line: #d4e0e7;
  --line-strong: #b9c8d3;
  --field-border: #738b9a;
  --mono-1: #d5e0e9;
  --mono-2: #c8d6e2;
  --on-dark: #d7e0e9;
  --wrap-width: min(100% - 88px, 1290px);
  font-family: Montserrat, "Avenir Next", Arial, sans-serif;
  color: var(--ink);
  scroll-behavior: smooth;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --navy: #0f3047;
  --deep: #0a2231;
  --footer: #091923;
  --accent: #8ec5e6;
  --gold: #d8b45e;
  --gold-text: #dcb55f;
  --ink: #e8f0f5;
  --soft: #c5d4de;
  --muted: #a7bac6;
  --paper: #0e1a22;
  --surface: #142531;
  --tint: #182c3a;
  --line: #2b4252;
  --line-strong: #3d576a;
  --field-border: #7391a5;
  --mono-1: #1f3445;
  --mono-2: #264053;
}

/* Mudança de tema com transição suave (a classe só existe durante a mudança). */
:root.theme-fade, :root.theme-fade * { transition: background-color .3s ease, color .3s ease, border-color .3s ease !important; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
/* Em fundos azuis o anel de foco tem de ser claro. */
:is(.hero, .bio-hero, .page-intro, .contact, .recognition, .site-footer, .media-slide) :focus-visible { outline-color: var(--accent-light); }
#conteudo:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.wrap { width: var(--wrap-width); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 20; padding: 12px; background: var(--surface); color: var(--ink); }
.skip-link:focus { top: 12px; }

/* Títulos grandes: tamanho definido em cada bloco, destaque (*texto*) em <em>. */
.display { margin: 0; font-weight: 650; line-height: 1.05; letter-spacing: -.055em; }
.display em { font-style: normal; color: var(--em, var(--accent-light)); }

.eyebrow { display: flex; align-items: center; gap: 15px; margin: 0 0 32px; font-size: .73rem; font-weight: 700; letter-spacing: .18em; color: var(--accent-light); }
.eyebrow-line { flex: none; width: 35px; height: 1px; background: currentColor; }
.overline { margin: 0 0 31px; font-size: .76rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); }

.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 38px;
  min-height: 56px; padding: 17px 21px; border: 0; cursor: pointer;
  font: inherit; font-size: .88rem; font-weight: 700; text-decoration: none;
  transition: transform .2s, background .2s;
}
.button:hover { transform: translateY(-3px); }
.button span { font-size: 1.2rem; line-height: 1; }
.button-gold { background: var(--accent-light); color: #103248; }
.button-gold:hover { background: #d5eaf3; }
.button-light { min-width: 210px; background: #fff; color: var(--navy); }
.button-light:hover { background: #e3edf3; }

.section-pad { padding-block: 105px 115px; }
.section-topline { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .77rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 700px) {
  :root { --wrap-width: min(100% - 40px, 1290px); }
  .section-pad { padding-block: 72px 80px; }
  .section-topline span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}
