/* ==========================================================================
   KAHUNA · GUARDIOES DO CONHECIMENTO DO HAVAÍ
   Design System: Pacific Cyber-Growth & Ancient Wisdom
   Inspirado na botânica havaiana, oceanografia ancestral e realeza insular
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Paleta Canônica (roteiro.md) */
  --c-forest-deep: #1A3A2A;
  --c-forest-dark: #0A1711;
  --c-gold: #D4AF37;
  --c-gold-light: #F3DC7C;
  --c-gold-dark: #997A1E;
  --c-sand: #F4E8D1;
  --c-sand-light: #FFFBF2;
  --c-sand-muted: #D9C8A8;
  --c-ocean-deep: #0F2537;
  --c-ocean-dark: #07131D;
  --c-ocean-light: #1C4668;
  --c-kapa: #5C4033;
  --c-kapa-light: #7E5948;
  --c-kapa-dark: #37241C;

  /* Semantic Theme Tokens (Dark Mode Padrão) */
  --bg-primary: #07120D;
  --bg-secondary: #0D1F17;
  --bg-card: rgba(16, 36, 26, 0.72);
  --bg-card-hover: rgba(26, 58, 42, 0.85);
  --bg-glass: rgba(13, 31, 23, 0.65);
  --bg-modal: #0B1912;
  --border-subtle: rgba(212, 175, 55, 0.18);
  --border-focus: rgba(212, 175, 55, 0.6);
  --border-glass: rgba(255, 255, 255, 0.08);

  --text-primary: #F8F6F0;
  --text-secondary: #C8D1C9;
  --text-muted: #8E9F94;
  --text-gold: #F0CF65;

  --accent-gold: #D4AF37;
  --accent-ocean: #2A729A;
  --accent-forest: #22533B;
  --accent-glow: rgba(212, 175, 55, 0.25);
  --shadow-elevation: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.2);

  /* Fonts */
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --container-max: 1240px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #FAF6ED;
  --bg-secondary: #F0E8D7;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-modal: #FFFFFF;
  --border-subtle: rgba(184, 146, 40, 0.28);
  --border-focus: rgba(184, 146, 40, 0.8);
  --border-glass: rgba(92, 64, 51, 0.12);

  --text-primary: #17261E;
  --text-secondary: #35473E;
  --text-muted: #6B7B72;
  --text-gold: #966F17;

  --accent-gold: #B8860B;
  --accent-ocean: #13557A;
  --accent-forest: #1A4D33;
  --accent-glow: rgba(184, 134, 11, 0.2);
  --shadow-elevation: 0 16px 40px -10px rgba(60, 48, 25, 0.12);
  --shadow-gold: 0 0 25px rgba(184, 134, 11, 0.15);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.68;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
  min-height: 100vh;
}

/* Background Atmosphere Glow */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 500px;
  background: radial-gradient(circle at 50% -10%, rgba(212, 175, 55, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   STICKY NAVBAR & ELEVATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  background: rgba(7, 18, 13, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

[data-theme="light"] .site-header {
  background: rgba(250, 246, 237, 0.7);
  border-bottom: 1px solid rgba(184, 146, 40, 0.12);
}

.site-header.scrolled {
  background: var(--bg-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.35rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height 0.3s ease;
}

.site-header.scrolled .nav-container {
  height: 64px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.brand-icon-svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
  transition: transform 0.4s ease;
}

.brand-logo:hover .brand-icon-svg {
  transform: rotate(45deg) scale(1.08);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--c-gold);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-left: 0.35rem;
  letter-spacing: 0.04em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.4rem 0.1rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--c-gold);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--c-gold-light);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-icon:hover {
  color: var(--c-gold);
  border-color: var(--c-gold);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 4rem 0 6rem;
  overflow: hidden;
}

.hero-background-wrapper {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.72) saturate(1.15);
  transform: scale(1.02);
  transition: transform 12s ease-out;
}

.hero-section:hover .hero-bg-img {
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 18, 13, 0.45) 0%,
    rgba(7, 18, 13, 0.8) 60%,
    var(--bg-primary) 100%
  );
  z-index: -1;
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(250, 246, 237, 0.55) 0%,
    rgba(250, 246, 237, 0.85) 60%,
    var(--bg-primary) 100%
  );
}

.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(26, 58, 42, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--c-gold-light);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .hero-title {
  color: #17261E;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.hero-title .title-accent {
  background: linear-gradient(135deg, #FFE680 0%, #D4AF37 50%, #E8A838 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 720px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #E5C358 0%, #D4AF37 50%, #B38E22 100%);
  color: #0A160F;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #F5D772 0%, #E2BE46 50%, #C49E2D 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(15, 37, 55, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(26, 58, 42, 0.85);
  border-color: var(--c-gold);
  color: var(--c-gold-light);
  transform: translateY(-2px);
}

/* Hero Quick Stats */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-gold);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION HEADERS & TITLES
   ========================================================================== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
}

.text-center {
  text-align: center;
}
.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   ETIMOLOGIA & CONCEITO (3 PILARES)
   ========================================================================== */
.etymology-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-elevation);
  backdrop-filter: blur(12px);
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}

.etymology-box::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08), transparent 70%);
  pointer-events: none;
}

.etymology-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}

.etymology-word {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.word-split {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--c-gold);
}

.word-split span {
  position: relative;
}

.word-split span small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.demystify-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.demystify-text strong {
  color: var(--c-gold-light);
}

/* 3 Pillars Cards */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  position: relative;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-gold);
  background: var(--bg-card-hover);
}

.pillar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.pillar-symbol {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--c-gold);
}

.pillar-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pillar-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-gold);
  margin-bottom: 0.4rem;
}

.pillar-meaning {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   GRID INTERATIVO DE ESPECIALIDADES
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 3.2rem;
}

.filter-btn {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn:hover {
  border-color: var(--c-gold);
  color: var(--c-gold-light);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--c-forest-deep), var(--c-ocean-deep));
  border-color: var(--c-gold);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.filter-btn .count-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.specialty-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
}

.specialty-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-elevation), var(--shadow-gold);
  background: var(--bg-card-hover);
}

.specialty-card.hidden {
  display: none !important;
}

.specialty-category-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 0.8rem;
  display: inline-block;
}

.specialty-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.specialty-subtitle {
  font-size: 0.95rem;
  color: var(--c-gold-light);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.specialty-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.specialty-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}

.meta-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.card-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(212, 175, 55, 0.06);
  color: var(--c-gold-light);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.card-action-btn:hover {
  background: var(--c-gold);
  color: #0B1912;
  border-color: var(--c-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   MODAL COMPONENT (ACCESSIBLE & RICH)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 8, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-modal);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elevation), 0 0 50px rgba(212, 175, 55, 0.2);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  padding: 2.8rem;
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: var(--c-gold);
  border-color: var(--c-gold);
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 2rem;
  padding-right: 2.5rem;
}

.modal-category {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--c-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.modal-subtitle {
  font-size: 1.1rem;
  color: var(--c-gold-light);
  font-weight: 600;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.modal-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.modal-section h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-section p, .modal-section ul {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-section ul {
  padding-left: 1.2rem;
}

.modal-section li {
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   LINHA DO TEMPO HISTÓRICA (TIMELINE INTERATIVA / ACCORDION)
   ========================================================================== */
.timeline-container {
  max-width: 920px;
  margin: 3rem auto 0;
  position: relative;
  padding-left: 2.5rem;
}

.timeline-track {
  position: absolute;
  top: 15px;
  bottom: 25px;
  left: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-gold) 0%, rgba(212, 175, 55, 0.2) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-node {
  position: absolute;
  left: -2.5rem;
  top: 1.4rem;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 3px solid var(--c-gold);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.6);
  z-index: 2;
  transition: var(--transition-smooth);
}

.timeline-item.active .timeline-node {
  background: var(--c-gold);
  transform: scale(1.2);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.timeline-card:hover {
  border-color: var(--c-gold);
  background: var(--bg-card-hover);
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.timeline-era-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-gold);
  background: rgba(212, 175, 55, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.5rem 0 0.2rem;
}

.timeline-toggle-icon {
  font-size: 1.25rem;
  color: var(--c-gold);
  transition: transform 0.3s ease;
}

.timeline-item.active .timeline-toggle-icon {
  transform: rotate(180deg);
}

.timeline-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.timeline-item.active .timeline-body {
  max-height: 800px;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-body p {
  margin-bottom: 0.9rem;
}

.timeline-body strong {
  color: var(--c-gold-light);
}

/* ==========================================================================
   FILOSOFIA DA CURA (LĀʻAU LAPAʻAU) & ESTUDO DE CASO OHAI
   ========================================================================== */
.healing-section {
  position: relative;
  overflow: hidden;
}

.healing-hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-elevation);
}

.healing-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.healing-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(1.1);
}

.healing-hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 3rem;
  max-width: 860px;
}

.healing-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.8vw, 1.95rem);
  font-style: italic;
  line-height: 1.45;
  color: #FFFDF8;
  margin-bottom: 1.8rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.healing-quote-author {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--c-gold);
  letter-spacing: 0.05em;
  display: block;
}

.healing-quote-author span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.healing-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.healing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.healing-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-gold);
  box-shadow: var(--shadow-gold);
}

.healing-card-icon {
  font-size: 2rem;
  color: var(--c-gold);
  margin-bottom: 1rem;
}

.healing-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.healing-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   FARMACOPEIA BOTÂNICA (HERBÁRIO SAGRADO)
   ========================================================================== */
.botanical-search-wrap {
  max-width: 500px;
  margin: 1.8rem auto 3rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.9rem 1.4rem 0.9rem 3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-gold);
  font-size: 1.1rem;
}

.botanical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
}

.plant-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
}

.plant-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-elevation);
}

.plant-card.hidden {
  display: none !important;
}

.plant-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.plant-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--c-gold);
}

.plant-botanical {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plant-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(26, 58, 42, 0.8);
  color: var(--c-gold-light);
  border: 1px solid var(--border-subtle);
}

.plant-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.plant-uses-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 0.4rem;
}

.plant-uses-list {
  font-size: 0.85rem;
  color: var(--text-muted);
  list-style: none;
  line-height: 1.5;
}

.plant-uses-list li::before {
  content: '✦ ';
  color: var(--c-gold);
}

/* ==========================================================================
   GLOSSÁRIO COMPARATIVO HAVAIANO
   ========================================================================== */
.glossary-search-wrap {
  max-width: 500px;
  margin: 1.8rem auto 3rem;
  position: relative;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}

.glossary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
  position: relative;
}

.glossary-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-gold);
  background: var(--bg-card-hover);
}

.glossary-card.hidden {
  display: none !important;
}

.glossary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.glossary-term {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-gold);
}

.copy-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.copy-btn:hover {
  color: var(--c-gold);
  border-color: var(--c-gold);
  background: rgba(212, 175, 55, 0.1);
}

.glossary-def {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   GUARDIÃO DIÁRIO & CHECKLIST INTERATIVO
   ========================================================================== */
.tracker-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  box-shadow: var(--shadow-elevation);
  backdrop-filter: blur(12px);
  max-width: 840px;
  margin: 0 auto;
}

.tracker-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.tracker-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tracker-percent {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-gold);
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 2rem;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c-forest-deep), var(--c-gold));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.tracker-checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tracker-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tracker-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
}

.tracker-item.completed {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(26, 58, 42, 0.35);
}

.tracker-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition-smooth);
}

.tracker-item.completed .tracker-checkbox {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: #0A160F;
}

.tracker-text {
  flex-grow: 1;
}

.tracker-text strong {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.tracker-item.completed .tracker-text strong {
  color: var(--c-gold-light);
}

.tracker-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tracker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-reset {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.btn-reset:hover {
  color: var(--c-gold);
}

/* ==========================================================================
   RODAPÉ (FOOTER) BRANDED ARTES DO SUL
   ========================================================================== */
.site-footer {
  background: var(--c-forest-dark);
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .site-footer {
  background: var(--c-sand);
  border-top: 1px solid var(--border-subtle);
}

.footer-quote-box {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.footer-hawaiian-proverb {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.footer-proverb-translation {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.footer-col-brand p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 380px;
}

.footer-col-links h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-gold);
  margin-bottom: 1.2rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-list a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.footer-links-list a:hover {
  color: var(--c-gold-light);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--c-gold);
  font-weight: 600;
}

/* ==========================================================================
   FLOATING GO-TO-TOP & TOAST
   ========================================================================== */
.btn-go-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.btn-go-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-go-to-top:hover {
  background: var(--c-gold);
  color: #0A160F;
  border-color: var(--c-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.4);
}

.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--c-forest-deep);
  border: 1px solid var(--c-gold);
  color: #FFFDF8;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.toast-container.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE MENU
   ========================================================================== */
@media (max-width: 992px) {
  .etymology-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
  }
  .hero-section {
    padding: 3rem 0 4rem;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .specialties-grid {
    grid-template-columns: 1fr;
  }
  .timeline-container {
    padding-left: 2rem;
  }
  .timeline-node {
    left: -2rem;
    width: 22px;
    height: 22px;
  }
  .modal-dialog {
    padding: 1.8rem;
  }
}
