/* Root styling, typography and responsive layout variables */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..700;1,400..700&family=Inter:wght@300;400;500;600&family=Marcellus&display=swap');

:root {
  /* Dynamic Natural Viking-inspired Color Palette */
  --color-slate-blue: #1c2a39;
  --color-moss-green: #3f4e3f;
  --color-charcoal-pine: #0f1411;
  --color-gray-stone: #2b2e30;
  --color-dark-wood: #19120c;
  --color-iron-black: #111315;
  --color-amber: #b25329;
  --color-copper: #c86835;
  --color-old-gold: #c39b4f;

  --color-bg-dark: #070a0d;
  --color-text-light: #f1ebe4; /* linen white */
  --color-text-muted: #a0a5af;

  /* Typographies */
  --font-h1: 'Marcellus', serif;
  --font-h2-h3: 'EB Garamond', serif;
  --font-body: 'Inter', sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Reset & Base styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography styles */
h1 {
  font-family: var(--font-h1);
  font-weight: 400;
  text-transform: uppercase;
}

h2, h3 {
  font-family: var(--font-h2-h3);
  font-weight: 500;
  color: var(--color-old-gold);
}

p {
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

a {
  color: var(--color-old-gold);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-text-light);
}

/* Base Buttons */
.btn-viking {
  display: inline-block;
  background-color: transparent;
  color: var(--color-old-gold);
  border: 1px solid var(--color-old-gold);
  padding: 0.75rem 1.8rem;
  font-family: var(--font-h1);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.btn-viking::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: 0.5s;
}

.btn-viking:hover::after {
  left: 100%;
}

.btn-viking:hover {
  background-color: var(--color-old-gold);
  color: var(--color-dark-wood);
  box-shadow: 0 4px 15px rgba(195,155,79,0.3);
}

/* Shared Header for Subpages */
.subpage-navbar {
  background-color: rgba(7, 10, 13, 0.95);
  border-bottom: 1px solid rgba(195, 155, 79, 0.15);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
}

.nav-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background-color: transparent;
  /* Monochrome transparent amber-gold filter matching the high-end cinematic design */
  filter: brightness(0) saturate(100%) invert(80%) sepia(40%) saturate(600%) hue-rotate(350deg) brightness(95%) contrast(90%) drop-shadow(0 0 5px rgba(195,155,79,0.3));
}

.nav-logo-text {
  font-family: var(--font-h1);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--color-old-gold);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links li a {
  font-family: var(--font-h1);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--color-old-gold);
  border-bottom: 1px solid var(--color-old-gold);
}

/* Hamburger menu button for mobile */
.nav-mobile-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-light);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 110;
}

/* Mobile drawer style */
@media (max-width: 768px) {
  .nav-mobile-hamburger {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: rgba(11, 15, 19, 0.98);
    border-left: 1px solid rgba(195,155,79,0.2);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 105;
    box-shadow: -5px 0 25px rgba(0,0,0,0.8);
  }
  .nav-links.mobile-open {
    right: 0;
  }
}

/* Shared Subpage Banner Header */
.subpage-banner {
  margin-top: 70px;
  background-color: #0b1116;
  background-image: linear-gradient(180deg, rgba(7, 10, 13, 0.6) 0%, rgba(7, 10, 13, 0.95) 100%), url('/pics/plavba-drakkaru.svg');
  background-position: center 30%;
  background-size: cover;
  padding: 5rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(195, 155, 79, 0.1);
  position: relative;
}

.subpage-banner-title {
  font-size: 3rem;
  letter-spacing: 0.15em;
  color: var(--color-old-gold);
  text-shadow: 0 4px 10px rgba(0,0,0,0.8);
  margin-bottom: 0.5rem;
}

.subpage-banner-desc {
  font-family: var(--font-h2-h3);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* Shared Footer styling */
.viking-footer {
  background-color: var(--color-charcoal-pine);
  border-top: 1px solid rgba(195,155,79,0.15);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

.footer-col h3 {
  font-family: var(--font-h1);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.footer-col p, .footer-col li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-social-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .footer-social-links {
    justify-content: center;
  }
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(195,155,79,0.3);
  color: var(--color-old-gold);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.footer-social-btn:hover {
  background-color: var(--color-old-gold);
  color: var(--color-dark-wood);
}

.footer-bottom-bar {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .footer-bottom-bar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
