/* ========================================
   GLOBAL
======================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #F3F0E9;
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
}

/* ========================================
   HOME HEADER WRAPPER
======================================== */

.home-header {
  position: relative;

  width: 100%;
  max-width: 1220px;

  margin: 0 auto;

  background: #000000;
}

/* ========================================
   HERO / MAP
======================================== */

.hero {
  position: relative;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  background: #000000;
  overflow: visible;
}

.map-image {
  display: block;
  width: 100%;
  height: auto;
}

/* ========================================
   VINTAGE ATMOSPHERE / VIGNETTE
======================================== */

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;

  background:
    radial-gradient(
      ellipse at 0% 0%,
      rgba(0, 0, 0, 0.40) 0%,
      rgba(0, 0, 0, 0.20) 20%,
      rgba(0, 0, 0, 0.07) 36%,
      rgba(0, 0, 0, 0) 54%
    ),

    radial-gradient(
      ellipse at 100% 0%,
      rgba(0, 0, 0, 0.36) 0%,
      rgba(0, 0, 0, 0.18) 20%,
      rgba(0, 0, 0, 0.06) 36%,
      rgba(0, 0, 0, 0) 54%
    ),

    radial-gradient(
      ellipse at 0% 100%,
      rgba(0, 0, 0, 0.30) 0%,
      rgba(0, 0, 0, 0.15) 20%,
      rgba(0, 0, 0, 0.05) 36%,
      rgba(0, 0, 0, 0) 54%
    ),

    radial-gradient(
      ellipse at 100% 100%,
      rgba(0, 0, 0, 0.32) 0%,
      rgba(0, 0, 0, 0.16) 20%,
      rgba(0, 0, 0, 0.05) 36%,
      rgba(0, 0, 0, 0) 54%
    ),

    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0) 48%,
      rgba(0, 0, 0, 0.08) 66%,
      rgba(0, 0, 0, 0.20) 84%,
      rgba(0, 0, 0, 0.38) 100%
    );
}


/* ========================================
   GRUNGE FRAME
======================================== */

.hero-grunge {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.48) 0%,
      rgba(0, 0, 0, 0.20) 5%,
      rgba(0, 0, 0, 0.05) 11%,
      rgba(0, 0, 0, 0) 18%
    ),

    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.18) 5%,
      rgba(0, 0, 0, 0.05) 11%,
      rgba(0, 0, 0, 0) 18%
    ),

    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.50) 0%,
      rgba(0, 0, 0, 0.20) 5%,
      rgba(0, 0, 0, 0.05) 11%,
      rgba(0, 0, 0, 0) 18%
    ),

    linear-gradient(
      to left,
      rgba(0, 0, 0, 0.50) 0%,
      rgba(0, 0, 0, 0.20) 5%,
      rgba(0, 0, 0, 0.05) 11%,
      rgba(0, 0, 0, 0) 18%
    ),

    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0) 48%,
      rgba(0, 0, 0, 0.06) 64%,
      rgba(0, 0, 0, 0.18) 82%,
      rgba(0, 0, 0, 0.42) 100%
    );
}


/* ========================================
   HOME NAVIGATION
======================================== */

.main-nav {
  position: absolute;

  top: 28px;
  right: 60px;

  display: flex;
  align-items: center;

  gap: 34px;

  z-index: 30;
}

.main-nav a,
.main-nav a:visited {
  display: inline-block;

  margin: 0;
  padding: 0;

  color: #FFFFFF;

  text-decoration: none;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 18px;
  font-weight: 500;
  line-height: 1;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.main-nav a:hover {
  color: #FFFFFF;
  opacity: 0.7;

  transform: translateY(-1px);
}

.main-nav a:active {
  color: #FFFFFF;
}

/* ========================================
   LAMP SHADOW
======================================== */

.lamp-shadow {
  position: absolute;

  left: 2.8%;
  top: 28.8%;

  width: 20%;
  height: 8%;

  z-index: 50;
  pointer-events: none;

  opacity: 1;

  filter: blur(6px);

  background:
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0.90) 0%,
      rgba(0, 0, 0, 0.65) 42%,
      rgba(0, 0, 0, 0.25) 68%,
      rgba(0, 0, 0, 0) 100%
    );

  transform: rotate(-8deg);
}


/* ========================================
   LAMP GLOW
======================================== */

.lamp-glow {
  position: absolute;

  left: 11%;
  top: 7.5%;

  width: 22%;
  aspect-ratio: 1;

  border-radius: 50%;

  z-index: 6;
  pointer-events: none;

  background:
    radial-gradient(
      circle,
      rgba(255, 195, 100, 0.25) 0%,
      rgba(255, 155, 65, 0.13) 28%,
      rgba(255, 130, 45, 0.06) 48%,
      rgba(255, 120, 30, 0) 72%
    );

  animation:
    glowFlicker
    2.4s
    ease-in-out
    infinite;
}

@keyframes glowFlicker {

  0% {
    opacity: 0.84;
    transform: scale(1);
  }

  18% {
    opacity: 1;
    transform: scale(1.03);
  }

  37% {
    opacity: 0.72;
    transform: scale(0.985);
  }

  58% {
    opacity: 0.94;
    transform: scale(1.02);
  }

  79% {
    opacity: 0.78;
    transform: scale(0.995);
  }

  100% {
    opacity: 0.84;
    transform: scale(1);
  }
}


/* ========================================
   OIL LAMP
======================================== */

.oil-lamp {
  position: absolute;

  left: -1.8%;
  top: 10.8%;

  width: 27%;
  height: auto;

  z-index: 7;

  pointer-events: none;
}


/* ========================================
   ANIMATED FLAME
======================================== */

.lamp-flame {
  position: absolute;

  left: 17.5%;
  top: 19.8%;

  width: 5.6%;
  height: auto;

  z-index: 8;

  pointer-events: none;

  transform-origin: center bottom;

  animation:
    flameFlicker
    2.4s
    ease-in-out
    infinite;

  filter:
    drop-shadow(
      0 0 6px
      rgba(255, 170, 60, 0.72)
    );
}

@keyframes flameFlicker {

  0% {
    transform:
      translateX(0)
      rotate(0deg)
      scaleX(1)
      scaleY(1);

    opacity: 0.96;
  }

  18% {
    transform:
      translateX(-1px)
      rotate(-2deg)
      scaleX(0.96)
      scaleY(1.07);

    opacity: 1;
  }

  37% {
    transform:
      translateX(1px)
      rotate(1.5deg)
      scaleX(1.03)
      scaleY(0.97);

    opacity: 0.92;
  }

  58% {
    transform:
      translateX(-0.5px)
      rotate(-1deg)
      scaleX(0.98)
      scaleY(1.05);

    opacity: 1;
  }

  79% {
    transform:
      translateX(1px)
      rotate(2deg)
      scaleX(1.02)
      scaleY(0.99);

    opacity: 0.94;
  }

  100% {
    transform:
      translateX(0)
      rotate(0deg)
      scaleX(1)
      scaleY(1);

    opacity: 0.96;
  }
}


/* ========================================
   MAP LEGEND
======================================== */

.map-legend {
  position: absolute;

  left: 3.2%;
  bottom: -4%;

  width: 29%;
  max-width: 355px;
  height: auto;

  z-index: 1000;

  pointer-events: none;

  transform: translateY(45px);

  filter:
    drop-shadow(
      6px 8px 6px
      rgba(0, 0, 0, 0.50)
    );
}

/* ========================================
   MAP MARKERS
======================================== */

.map-marker {
  position: absolute;

  border: 0;

  padding: 0;
  margin: 0;

  background: transparent;

  cursor: pointer;

  z-index: 20;
}

.map-marker img {
  display: block;

  width: 100%;
  height: auto;

  transition:
    transform 0.22s ease,
    filter 0.22s ease;
}

.map-marker:hover img,
.map-marker:focus img,
.map-marker.active img {
  transform:
    scale(1.28);

  filter:
    drop-shadow(
      0 0 9px
      rgba(194, 163, 107, 0.95)
    );
}


/* ========================================
   MARKER TYPES
======================================== */

.sword-marker {
  width: 5%;
}

.axe-marker {
  width: 4.7%;
}

.warrior-marker {
  width: 4.8%;
}

.legion-marker {
  width: 4%;
}

/* ========================================
   MARKER POSITIONS
======================================== */

.marker-iberia {
  left: 8.3%;
  top: 48.7%;
}

.marker-britannia {
  left: 22.5%;
  top: 38%;
}

.marker-teutoburg {
  left: 28%;
  top: 35%;
}

.marker-zama {
  left: 36%;
  top: 72%;
}

.marker-carrhae {
  left: 87%;
  top: 69%;
}

.marker-iv-parthica {
  left: 81%;
  top: 53%;
}

/* ========================================
   AVE LEGIONARY INTRO
======================================== */

.intro {
  max-width: 1220px;

  margin: 0 auto;

  padding:
    42px
    36px
    42px;

  text-align: center;

  background: #F3F0E9;
}

.intro-heading {
  position: relative;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 410px;
  min-height: 108px;
}

.laurel {
  position: absolute;

  width: 360px;
  max-width: 92vw;

  height: auto;

  pointer-events: none;
}

.intro h1 {
  position: relative;

  z-index: 2;

  margin: 0;

  font-size: 25px;
  font-weight: 700;

  letter-spacing: 0.4px;
}

.intro p {
  max-width: 1080px;

  margin:
    10px
    auto
    0;

  font-size: 21px;

  line-height: 1.48;

  text-align: justify;
}


/* ========================================
   STORY PANEL
======================================== */

.story-panel {
  max-width: 1220px;

  margin: 0 auto;

  padding:
    100px
    36px
    82px;

  background: #F3F0E9;
}

.story-panel.empty {
  display: none;
}

.story-panel.visible {
  display: block;
}

.story-card {
  background: #F3F0E9;

  border:
    1px solid
    rgba(0, 0, 0, 0.10);

  box-shadow:
    0 14px 32px
    rgba(0, 0, 0, 0.07);

  padding:
    34px
    40px
    38px;
}

.story-card h2 {
  margin:
    0
    0
    6px;

  font-size: 31px;
}

.story-subtitle {
  margin:
    0
    0
    22px;

  font-size: 15px;
  font-weight: 700;

  letter-spacing: 0.2px;
}

.story-card p {
  max-width: 940px;

  margin: 0;

  font-size: 18px;

  line-height: 1.65;

text-align: justify;

}


/* ========================================
   STORY BUTTONS
======================================== */

.story-buttons {
  display: flex;

  gap: 18px;

  margin-top: 28px;
}

.story-button {
  display: inline-block;

  min-width: 240px;

  padding:
    12px
    22px;

  text-align: center;

  text-decoration: none;

  color: #FFFFFF;

  font-size: 13px;
  font-weight: 700;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.story-button.primary {
  background: #9C2B21;
}

.story-button.secondary {
  background: #818181;
}

.story-button.static {
  cursor: default;
}

.story-button:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}

.story-button.static:hover {
  opacity: 1;
  transform: none;
}

/* ========================================
   LANGUAGE SWITCH
======================================== */

.main-nav a.language-switch {
  display: flex;
  align-items: center;
  justify-content: center;

  margin-left: 6px;
  padding: 0;

  text-decoration: none;
  opacity: 1;
}

.main-nav a.language-switch img {
  display: block;

  width: 25px;
  height: auto;

  opacity: 0.58;

  filter:
    saturate(70%)
    brightness(1.5);

  transition:
    opacity 0.2s ease,
    filter 0.2s ease,
    transform 0.2s ease;
}

.main-nav a.language-switch:hover {
  opacity: 1;
  transform: none;
}

.main-nav a.language-switch:hover img {
  opacity: 0.95;

  filter:
    saturate(85%)
    brightness(1);

  transform: scale(1.08);
}
/* ========================================
   HOME MOBILE
======================================== */

@media (max-width: 800px) {

  /* ========================================
     MOBILE NAVIGATION
  ======================================== */

  .hero {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .main-nav {
    position: relative;

    top: auto;
    left: auto;
    right: auto;

    width: 100%;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 24px;

    padding: 0 12px;

    background: #000000;

    z-index: 2000;
  }

  .main-nav a {
    font-size: 15px;
    font-weight: 500;
    line-height: 1;

    white-space: nowrap;
  }


  /* ========================================
     MAP
  ======================================== */

  .map-image {
    width: 100%;
    height: auto;
  }


  /* ========================================
     MOBILE LAMP
  ======================================== */

  .oil-lamp {
    left: 0.5%;
    top: 10.8%;
    width: 24%;
  }

  .lamp-flame {
    left: 17.5%;
    top: 18.9%;
    width: 4.9%;
  }

  .lamp-glow {
    left: 8.7%;
    top: 7.8%;
    width: 22%;
  }

  .lamp-shadow {
    left: 0.8%;
    top: 26%;
    width: 18.5%;
  }


 /* ========================================
   MAP LEGEND
======================================== */

.map-legend {
  position: absolute;

  right: 70%;
  top: 65%;

  left: auto;
  bottom: auto;

  width: 26%;
  max-width: none;

  height: auto;

  z-index: 1000;

  pointer-events: none;

  transform: none;

  filter:
    drop-shadow(
      3px 5px 5px
      rgba(0, 0, 0, 0.40)
    );

  opacity: 0.96;

  animation: legendPulse 2.5s ease-in-out infinite;
}

@keyframes legendPulse {
  0%,
  100% {
    opacity: 0.96;
    transform: scale(1);
  }

  50% {
    opacity: 0.82;
    transform: scale(1.025);
  }
}


  /* ========================================
     MAP MARKERS
  ======================================== */

  .sword-marker {
    width: 8%;
  }

  .axe-marker,
  .warrior-marker {
    width: 8%;
  }

  .legion-marker {
    width: 8%;
  }

  .marker-iv-parthica {
    left: 80%;
    top: 56%;
  }


  /* ========================================
     AVE LEGIONARY
  ======================================== */

  .intro {
    max-width: 100%;

    padding:
      14px
      22px
      34px;
  }

  .intro-heading {
    min-width: 0;
    width: 100%;

    min-height: 90px;
  }

  .laurel {
    width: 235px;
    max-width: 90%;
  }

  .intro h1 {
    font-family: "Cinzel", serif;

    font-size: 18px;
    font-weight: 700;

    letter-spacing: 0.5px;
  }

  .intro p {
    margin-top: 10px;

    font-size: 14px;

    line-height: 1.5;

    text-align: justify;
  }


  /* ========================================
     STORY PANEL
  ======================================== */

  .story-panel {
    max-width: 100%;

    padding:
      10px
      18px
      48px;
  }

  .story-card {
    padding:
      26px
      22px
      28px;
  }

  .story-card h2 {
    font-size: 18px;
  }

  .story-card p {
    font-size: 14px;
    line-height: 1.5;
    text-align: justify;
  }

  .story-buttons {
    flex-direction: column;
  }

  .story-button {
    width: 100%;
    min-width: 0;
  }

}

/* ========================================
   LETTERS FROM THE LIMES — MAP ICON
======================================== */

.letters-marker {
  position: absolute;

  top: 9%;
  right: 7%;

  width: 35%;

  padding: 0;

  border: 0;

  background: transparent;

  cursor: pointer;

  z-index: 25;

  transition:
    filter 0.25s ease,
    transform 0.25s ease;
}

.letters-marker img {
  display: block;

  width: 100%;
  height: auto;

  transition:
    filter 0.25s ease,
    transform 0.25s ease;
}

.letters-marker:hover img {
  filter:
    brightness(1.35)
    drop-shadow(0 0 12px rgba(255, 215, 130, 0.75));

  transform: scale(1.035);
}

