:root {
  --navy: #12181f;
  --navy-2: #1c2530;
  --gold: #d1a13b;
  --gold-light: #f0c96a;
  --text: #22262b;
  --text-muted: #5a6169;
  --white: #ffffff;
  --off-white: #f6f4ef;

  /* Topographic contour-line texture, supplied by Thomas (kurver.png) */
  --topo-gold: url('../images/topo-dark.png');
  --topo-navy: url('../images/topo-light.png');
}

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

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: 'Anton', 'Oswald', Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.15), 2px 2px 6px rgba(0,0,0,0.1);
}

.section-dark h2,
.hero h1 {
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5), 0 0 24px rgba(0,0,0,0.4);
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background-color: var(--navy);
  background-image: var(--topo-gold);
  background-blend-mode: screen;
  background-repeat: repeat;
  background-size: 900px auto;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Anton', 'Oswald', Arial, sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.logo span { color: var(--gold); }

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  color: #cfd4da;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-nav a:hover { color: var(--white); text-decoration: none; }

.fb-icon {
  fill: var(--gold);
  vertical-align: middle;
  flex-shrink: 0;
}

.main-nav a.nav-fb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 8px 16px;
}

.main-nav a.nav-fb:hover {
  background: var(--gold);
  color: var(--navy);
}

.main-nav a.nav-fb:hover .fb-icon {
  fill: var(--navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 75% 20%, rgba(209,161,59,0.18), transparent 55%),
    linear-gradient(100deg, rgba(18,24,31,0.76) 0%, rgba(18,24,31,0.42) 45%, rgba(18,24,31,0.2) 100%),
    url('../images/trailloeb-mols-bjerge-ebeltoft-trailrunners.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 100px), 0 100%);
  padding-bottom: 60px;
}

.hero-content {
  position: relative;
  max-width: 680px;
}

.hero-eyebrow {
  color: var(--gold-light);
  font-family: 'Oswald', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.h1-lead {
  display: block;
  font-size: 3.4rem;
}

.h1-sub {
  display: block;
  font-size: 1.9rem;
  margin-top: 6px;
}

.hero-lead {
  font-size: 1.1rem;
  margin-bottom: 32px;
  color: #d6dae0;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 28px;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.btn:hover {
  background: var(--gold-light);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: transparent;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-dark {
  background-color: var(--navy);
  background-image: var(--topo-gold);
  background-blend-mode: screen;
  background-repeat: repeat;
  background-size: 900px auto;
  color: #d6dae0;
}

.section-dark h2 { color: var(--white); }

.section-tag {
  display: inline-block;
  font-family: 'Oswald', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.section-tag-light { color: var(--gold-light); border-color: var(--gold-light); }

.teaser-section {
  position: relative;
  background-image: var(--topo-navy), linear-gradient(135deg, var(--gold), var(--gold-light));
  background-blend-mode: multiply, normal;
  background-repeat: repeat, no-repeat;
  background-size: 900px auto, cover;
  margin-top: -100px;
  clip-path: polygon(0 100px, 100% 0, 100% 100%, 0 100%);
  padding: 156px 0 56px;
}

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

.teaser-section .section-tag {
  color: var(--navy);
  border-color: var(--navy);
}

.teaser-title {
  color: var(--navy);
  text-shadow: none;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.teaser-section .lead {
  color: var(--navy);
  opacity: 0.85;
}

.teaser-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  justify-self: end;
}

.btn-teaser {
  margin-top: 20px;
  background: var(--navy);
  color: var(--white);
}

.btn-teaser:hover {
  background: var(--navy-2);
}

.btn-teaser .fb-icon {
  fill: var(--white);
}

.btn:not(.btn-ghost) .fb-icon {
  fill: var(--navy);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.lead {
  font-size: 1.1rem;
  max-width: 680px;
  color: var(--text-muted);
}

.section-dark .lead { color: #d6dae0; }

.signature {
  margin-top: 20px;
  font-family: 'Oswald', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  font-size: 0.9rem;
}

.om-highlights {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.om-highlights li {
  padding-left: 20px;
  position: relative;
  color: var(--text-muted);
}

.om-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--gold);
}

.om-highlights strong {
  color: var(--text);
}

.om-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

.om-logo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  justify-self: end;
}

/* CTA band */
.cta-band {
  background-image: var(--topo-navy), linear-gradient(135deg, var(--gold), var(--gold-light));
  background-blend-mode: multiply, normal;
  background-repeat: repeat, no-repeat;
  background-size: 900px auto, cover;
  text-align: center;
  padding: 64px 0;
}

.cta-band-inner {
  max-width: 560px;
  margin: 0 auto;
}

.cta-band h2 {
  color: var(--navy);
  text-shadow: none;
  margin-bottom: 16px;
}

.cta-band p {
  color: var(--navy);
  opacity: 0.85;
  margin-bottom: 28px;
}

.cta-band .btn {
  background: var(--navy);
  color: var(--white);
}

.cta-band .btn:hover {
  background: var(--navy-2);
}

/* Featured event */
.event-feature {
  display: flex;
  background-color: var(--navy-2);
  border: 1px solid rgba(209,161,59,0.35);
  overflow: hidden;
  margin-top: 32px;
}

.event-divider {
  height: 1px;
  margin: 32px 0;
  background: rgba(255,255,255,0.5);
}

.event-feature-media {
  flex: 0 0 40%;
  min-height: 340px;
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.event-feature-info {
  flex: 1;
  padding: 36px 40px 36px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-feature-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.event-feature-tag {
  color: var(--gold-light);
  font-family: 'Oswald', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.event-countdown {
  background: var(--gold);
  color: var(--navy);
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  padding: 4px 10px;
}

.event-feature-title {
  color: var(--white);
  font-size: 2.4rem;
  line-height: 1.1;
}

.event-feature-title span {
  display: block;
  font-size: 1.3rem;
  color: var(--gold);
  margin-top: 4px;
}

.event-feature-distances {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.event-feature-distances span {
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 12px;
}

.event-feature-info p {
  color: #c7ccd2;
  max-width: 520px;
}

.event-feature-meta {
  color: var(--gold-light);
  font-family: 'Oswald', Arial, sans-serif;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.event-feature-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 620px;
  margin-top: 32px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  padding: 22px 24px;
  color: var(--text);
}

.contact-card:hover { text-decoration: none; background: #eee9dd; }

.contact-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Oswald', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--gold);
}

.contact-value {
  font-weight: 600;
  word-break: break-word;
}

/* Footer */
.site-footer {
  background-color: var(--navy);
  background-image: var(--topo-gold);
  background-blend-mode: screen;
  background-repeat: repeat;
  background-size: 900px auto;
  color: #9aa1a9;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner a { color: var(--gold); }

.footer-fb {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.open { max-height: 300px; }

  .main-nav a {
    padding: 16px 24px;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .main-nav a.nav-fb {
    border: none;
    color: var(--gold);
  }

  .hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%); }
  .h1-lead { font-size: 2.4rem; }
  .h1-sub { font-size: 1.4rem; }

  .teaser-section {
    margin-top: -60px;
    clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
    padding: 116px 0 40px;
  }

  .event-feature {
    flex-direction: column;
  }

  .event-feature-media {
    min-height: 200px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  }

  .event-feature-info {
    padding: 28px 24px;
  }

  .event-feature-title { font-size: 1.9rem; }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .om-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .om-logo {
    width: 140px;
    height: 140px;
    justify-self: start;
    order: -1;
  }

  .teaser-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .teaser-logo {
    width: 110px;
    height: 110px;
    justify-self: start;
    order: -1;
  }
}
