/* =========================================
   LuminaNexus main styles
   ========================================= */

:root {
  --bg: #020617; /* slate-950 */
  --bg-soft: #020617;
  --panel: #020617;
  --panel-alt: #020617;
  --accent: #fb923c; /* orange-400 */
  --accent-soft: rgba(251, 146, 60, 0.12);
  --accent-strong: #f97316;
  --accent-border: rgba(251, 146, 60, 0.7);
  --accent-secondary: #60a5fa; /* blue-400 */
  --text: #e5e7eb; /* gray-200 */
  --text-muted: #9ca3af; /* gray-400 */
  --border-subtle: rgba(148, 163, 184, 0.35);
  --shadow-soft: 0 18px 55px rgba(0, 0, 0, 0.75);
  --radius-lg: 24px;
  --radius-md: 18px;
}

/* Reset-ish */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0, rgba(30, 64, 175, 0.3), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(30, 64, 175, 0.2), transparent 55%),
    radial-gradient(circle at 50% 120%, rgba(15, 23, 42, 1), transparent 60%),
    var(--bg);
  min-height: 100vh;
  padding-top: 60px; /* space for fixed nav */
}

a {
  color: inherit;
}

/* =========================================
   Top navigation
   ========================================= */

.nav-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.96),
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-title {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.nav-links-desktop a {
  text-decoration: none;
  color: rgba(226, 232, 240, 0.85);
}

.nav-links-desktop a:hover {
  color: #f9fafb;
}

.nav-cta {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  background: radial-gradient(circle at top, #fed7aa, #fb923c);
  color: #111827;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow:
    0 0 18px rgba(251, 146, 60, 0.7),
    0 18px 35px rgba(0, 0, 0, 0.9);
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  margin: 3px 0;
}

/* Mobile nav menu */

.nav-links-mobile {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem 1rem;
  background: rgba(2, 6, 23, 0.97);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.nav-links-mobile a {
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-links-mobile.is-open {
  display: flex;
}

.nav-cta-mobile {
  margin-top: 0.3rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: radial-gradient(circle at top, #fed7aa, #fb923c);
  color: #111827;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: fit-content;
}

/* Responsive nav */

@media (max-width: 840px) {
  .nav-links-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* =========================================
   HERO: full-screen sanctuary image
   ========================================= */

.hero-full {
  position: relative;
  min-height: 100vh;
}

.hero-full-inner {
  position: relative;
  min-height: calc(100vh - 0px);
  max-height: 100vh;
  overflow: hidden;
}

.hero-full-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68) saturate(1.15);
  transform-origin: center;
}

.hero-full-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: calc(100vh - 0px);
  padding: 5.3rem 1.5rem 4.3rem;
}

/* =========================================
   Sanctuary map card
   ========================================= */

.hero-map-card {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: 1.3rem 1.5rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.95);
  background: radial-gradient(
      circle at top left,
      rgba(248, 250, 252, 0.09),
      transparent 55%
    ),
    rgba(2, 6, 23, 0.96);
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.95),
    0 28px 80px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
}

.hero-map-header {
  margin-bottom: 1rem;
}

.hero-map-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.7);
}

.hero-map-title {
  margin: 0 0 0.3rem;
  font-size: 1.5rem;
}

.hero-map-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-map-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(30, 64, 175, 0.55);
  background: radial-gradient(
      circle at top left,
      rgba(129, 140, 248, 0.16),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.97);
  padding: 0.7rem 0.9rem 0.85rem;
  text-decoration: none;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.85);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.hero-map-tile:hover {
  border-color: rgba(248, 250, 252, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.95);
  transform: translateY(-1px);
}

.hero-map-tile-accent {
  border-color: var(--accent-border);
  background: radial-gradient(
      circle at top left,
      rgba(251, 191, 36, 0.2),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.97);
}

.hero-map-icon {
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: radial-gradient(circle at top, #facc15, #f97316);
  color: #020617;
  box-shadow: 0 0 18px rgba(248, 181, 54, 0.6);
}

.hero-map-text h2 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
}

.hero-map-text p {
  margin: 0 0 0.32rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-map-link-label {
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.9);
}

/* Responsive layout for Sanctuary map */

@media (max-width: 960px) {
  .hero-map-card {
    padding: 1.15rem 1.15rem 1.3rem;
    max-width: 820px;
  }

  .hero-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-full-overlay {
    align-items: flex-end;
    padding: 4.8rem 1rem 3.4rem;
  }

  .hero-map-card {
    padding: 1rem 0.9rem 1.2rem;
  }

  .hero-map-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================
   Three trunks section
   ========================================= */

.trunks-shell {
  max-width: 1120px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.trunks-overlay {
  margin-top: 2.7rem; /* key: positive so it sits below the map */
}

.trunks-header {
  margin-bottom: 1.3rem;
}

.trunks-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.trunks-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trunks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trunk-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.95);
  background: radial-gradient(
      circle at top left,
      rgba(148, 163, 184, 0.12),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.98);
  padding: 1rem 1.1rem 1.05rem;
  box-shadow: var(--shadow-soft);
}

.trunk-title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trunk-title-he {
  margin-left: 0.4rem;
  font-size: 0.9rem;
  color: #facc15;
}

.trunk-body {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trunk-links {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
}

.trunk-link {
  text-decoration: none;
  color: #e5e7eb;
}

.trunk-link:hover {
  color: #f9fafb;
}

.trunk-footnote {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Responsive trunks */

@media (max-width: 960px) {
  .trunks-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================
   Footer
   ========================================= */

footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(
      circle at top,
      rgba(15, 23, 42, 0.9),
      rgba(2, 6, 23, 1)
    );
  padding: 0.8rem 0;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}
