/* ============================================
   VIKING HAALAND — Ancient Norse Theme
   ============================================ */

:root {
  --bg-dark: #0a0c0f;
  --bg-stone: #1a1612;
  --bg-parchment: #d4c4a0;
  --bg-parchment-dark: #b8a882;
  --gold: #c9a227;
  --gold-light: #e8c84a;
  --gold-dark: #8b6914;
  --bronze: #8b5a2b;
  --blood: #8b1a1a;
  --ice: #a8c4d4;
  --text-light: #e8dcc8;
  --text-dark: #2a1f14;
  --text-muted: #8a7a68;
  --rune-glow: rgba(201, 162, 39, 0.4);
  --shadow-deep: 0 8px 32px rgba(0, 0, 0, 0.6);
  --font-display: 'Cinzel Decorative', 'Cinzel', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'IM Fell English', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(139, 90, 43, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a227' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.3s;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Rune Borders ---- */
.rune-border {
  height: 6px;
  background: linear-gradient(90deg,
    transparent,
    var(--gold-dark) 10%,
    var(--gold) 30%,
    var(--gold-light) 50%,
    var(--gold) 70%,
    var(--gold-dark) 90%,
    transparent
  );
  position: relative;
}

.rune-border::after {
  content: '᛭ ᚠ ᛭ ᚢ ᛭ ᚦ ᛭ ᚨ ᛭ ᚱ ᛭ ᚴ ᛭';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.65rem;
  color: var(--bg-dark);
  letter-spacing: 0.5em;
  white-space: nowrap;
  background: var(--gold);
  padding: 0 1rem;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 6px;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 12, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-light);
}

.nav__brand:hover {
  color: var(--gold-light);
}

.nav__logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.nav__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav__links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav__links a:hover {
  color: var(--gold-light);
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 38px;
  height: 38px;
  border: 2px solid var(--bronze);
  border-radius: 50%;
  color: var(--text-light);
  background: linear-gradient(180deg, #3a3228 0%, #1a1612 100%);
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  box-shadow: 0 0 16px var(--rune-glow);
}

.social-link__icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-link--footer {
  width: auto;
  height: auto;
  border-radius: 4px;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.social-link--footer:hover {
  color: var(--gold-light);
}

.btn__svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 0.9rem;
}

.btn--gold {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 100%);
  color: var(--text-dark);
  border: 2px solid var(--gold-dark);
  box-shadow:
    0 4px 0 var(--gold-dark),
    0 6px 20px rgba(201, 162, 39, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--gold:hover {
  background: linear-gradient(180deg, #f0d060 0%, var(--gold-light) 40%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 var(--gold-dark),
    0 10px 30px rgba(201, 162, 39, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: var(--text-dark);
}

.btn--gold:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 var(--gold-dark),
    0 4px 10px rgba(201, 162, 39, 0.2);
}

.btn--stone {
  background: linear-gradient(180deg, #4a4035 0%, #2a2218 50%, #1a1612 100%);
  color: var(--text-light);
  border: 2px solid var(--bronze);
  box-shadow:
    0 4px 0 #0a0806,
    0 6px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn--stone:hover {
  background: linear-gradient(180deg, #5a5045 0%, #3a3228 50%, #2a2218 100%);
  transform: translateY(-2px);
  color: var(--gold-light);
  box-shadow:
    0 6px 0 #0a0806,
    0 10px 30px rgba(0, 0, 0, 0.5);
}

.btn__icon {
  font-size: 1.1em;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  background:
    radial-gradient(ellipse at center top, rgba(30, 60, 80, 0.25) 0%, transparent 50%),
    var(--bg-dark);
}

.hero__fog {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center bottom, rgba(201, 162, 39, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(10, 12, 15, 0.9) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: 100%;
}

.hero__banner-wrap {
  position: relative;
  margin: 0 auto 2rem;
  padding: 6px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  box-shadow:
    0 0 50px var(--rune-glow),
    0 12px 40px rgba(0, 0, 0, 0.6);
}

.hero__banner-wrap::before,
.hero__banner-wrap::after {
  content: '᛭';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-dark);
  font-size: 1rem;
  z-index: 2;
}

.hero__banner-wrap::before { left: -1.25rem; }
.hero__banner-wrap::after { right: -1.25rem; }

.hero__banner {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--bg-dark);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero__rune {
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.8em;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  color: var(--text-light);
  text-shadow:
    0 0 40px var(--rune-glow),
    0 4px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero__ticker {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--gold-light);
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  font-style: italic;
  max-width: 550px;
  margin: 0 auto 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Sections ---- */
.section {
  padding: 6rem 0;
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__rune {
  display: block;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.6em;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.section__divider {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  color: var(--gold);
  font-size: 0.8rem;
  opacity: 0.5;
}

.section__subtitle {
  margin-top: 1rem;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.1rem;
}

/* ---- Parchment ---- */
.parchment {
  position: relative;
  background: linear-gradient(135deg, var(--bg-parchment) 0%, var(--bg-parchment-dark) 50%, var(--bg-parchment) 100%);
  padding: 3rem;
  border-radius: 2px;
  box-shadow:
    var(--shadow-deep),
    inset 0 0 60px rgba(139, 105, 20, 0.15);
  color: var(--text-dark);
}

.parchment::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(139, 105, 20, 0.3);
  pointer-events: none;
}

.parchment__corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--gold-dark);
  border-style: solid;
}

.parchment__corner--tl { top: 12px; left: 12px; border-width: 3px 0 0 3px; }
.parchment__corner--tr { top: 12px; right: 12px; border-width: 3px 3px 0 0; }
.parchment__corner--bl { bottom: 12px; left: 12px; border-width: 0 0 3px 3px; }
.parchment__corner--br { bottom: 12px; right: 12px; border-width: 0 3px 3px 0; }

.parchment__content {
  position: relative;
  z-index: 1;
}

.parchment__content p {
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
  line-height: 1.8;
}

.saga__lead {
  font-size: 1.35rem !important;
  font-style: italic;
  color: var(--bronze);
  border-bottom: 1px solid rgba(139, 90, 43, 0.3);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem !important;
}

.saga__quote {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--gold-dark);
  background: rgba(139, 105, 20, 0.1);
  font-style: italic;
  font-size: 1.2rem;
}

.saga__quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--bronze);
  font-style: normal;
}

/* ---- Treasury / CA ---- */
.treasury {
  background:
    radial-gradient(ellipse at center, rgba(201, 162, 39, 0.05) 0%, transparent 60%),
    var(--bg-stone);
}

.ca-stone {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(180deg, #2a2218 0%, #1a1612 100%);
  border: 3px solid var(--bronze);
  border-radius: 4px;
  box-shadow:
    var(--shadow-deep),
    inset 0 2px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}

.ca-stone__rune-top {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--gold);
  color: var(--text-dark);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--gold-dark);
  box-shadow: 0 0 20px var(--rune-glow);
}

.ca-stone__label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.ca-stone__address {
  font-family: 'Courier New', monospace;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--gold-light);
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem 1.5rem;
  border: 1px dashed rgba(201, 162, 39, 0.3);
  border-radius: 4px;
  word-break: break-all;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: border-color 0.3s;
}

.ca-stone__address:hover {
  border-color: var(--gold);
}

.ca-stone__hint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--gold);
  min-height: 1.2em;
}

.treasury__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Gallery ---- */
.hall {
  background: var(--bg-dark);
}

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

.gallery__item {
  position: relative;
  border: 3px solid var(--bronze);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-stone);
  box-shadow: var(--shadow-deep);
}

.gallery__item::before {
  content: '᛭';
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  color: var(--gold);
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery__item:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 20px var(--rune-glow);
}

.gallery__item:hover::before {
  opacity: 1;
}

.gallery__item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* ---- CTA ---- */
.cta {
  padding: 4rem 0 6rem;
}

.cta__shield {
  text-align: center;
  padding: 4rem 2rem;
  background:
    radial-gradient(ellipse at center, rgba(201, 162, 39, 0.1) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-stone) 0%, var(--bg-dark) 100%);
  border: 2px solid rgba(201, 162, 39, 0.2);
  border-radius: 4px;
  position: relative;
}

.cta__shield::before,
.cta__shield::after {
  content: '⚔';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  opacity: 0.15;
}

.cta__shield::before { left: 2rem; }
.cta__shield::after { right: 2rem; }

.cta__logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 30px var(--rune-glow);
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta__text {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.15rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.footer__social {
  margin-top: 0.25rem;
}

.footer__logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gold-dark);
  object-fit: cover;
}

.footer__disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
  max-width: 500px;
}

.footer__rune {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.4em;
  opacity: 0.3;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 2rem;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 3px solid var(--gold);
  box-shadow: 0 0 60px var(--rune-glow);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  line-height: 1;
}

.lightbox__close:hover {
  background: var(--gold);
  color: var(--text-dark);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .parchment {
    padding: 2rem 1.5rem;
  }

  .hero__banner-wrap::before,
  .hero__banner-wrap::after {
    display: none;
  }

  .gallery__item img {
    height: 220px;
  }

  .cta__shield::before,
  .cta__shield::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .btn--lg {
    padding: 0.85rem 1.5rem;
    font-size: 0.8rem;
  }

  .hero__rune {
    letter-spacing: 0.4em;
    font-size: 0.8rem;
  }
}
