/* ==========================================================
   SANCTUARY 2.0 — BASE
   Reset, tipografia, dark mode, utilitários globais
   ========================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-site);
  color: var(--text-main);
  line-height: 1.85;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  transition: background var(--t-normal), color var(--t-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-section); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }

p {
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: 1.75;
}

a {
  color: var(--gold-sacred);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover { color: var(--gold-solar); }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  transition: all var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

::selection {
  background: var(--gold-sacred);
  color: white;
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--halo-gold);
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-sacred); }

/* ===== ACESSIBILIDADE: FOCO VISÍVEL ===== */
:focus-visible {
  outline: 3px solid var(--gold-sacred);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* ===== TIPOGRAFIA ESPECIAL ===== */
.fonte-titulo  { font-family: var(--font-title); }
.fonte-corpo   { font-family: var(--font-body); }
.fonte-oracao  { font-family: var(--font-prayer); font-weight: 600; }
.fonte-cinzel  { font-family: var(--font-cinzel); letter-spacing: 0.05em; }
.fonte-verso   { font-family: var(--font-verse); font-style: italic; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}

/* ===== ILHA FLUTUANTE (DNA DO PROJETO) ===== */
.section-island {
  background: var(--bg-island);
  border: 1px solid var(--border-island);
  border-radius: var(--r-island);
  padding: var(--s-9) var(--s-7);
  margin: var(--s-8) auto;
  box-shadow: var(--shadow-island);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--t-normal);
}

.section-island::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-sacred), transparent);
  opacity: 0.4;
}

.section-island:hover {
  box-shadow: var(--shadow-island), 0 0 50px var(--halo-gold);
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--s-7);
}

.section-title {
  font-size: var(--fs-section);
  font-weight: 700;
  margin-bottom: var(--s-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
}

.section-title i {
  color: var(--gold-sacred);
  font-size: 0.85em;
}

.section-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== VISUALMENTE OCULTO (SR ONLY) ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== BACKDROP GLASS ===== */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
}

/* ===== ANIMAÇÕES BASE (definidas em animations.css, usadas aqui) ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5); }
  50%      { box-shadow: 0 0 0 18px rgba(212, 175, 55, 0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
