/*
Theme Name: Kanalrally
Theme URI: https://kanalrally.dk
Author: Lions Club Løgstør
Description: One-pager til Kanal Gourmet & Kultur Rally ved Løgstør. Lions-blå og guld, rolig editorial-stil. Hero, nøgletal, ruten, gourmet-mosaik, program, om Lions og billet-CTA – alt på én side.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: kanalrally
*/

/* ═══════════════════════════════════════════
   KANALRALLY · VEDLIGEHOLDELSESGUIDE
   ───────────────────────────────────────────
   Søg efter teksten  === REDIGER HER ===
   for at finde alle steder med indhold
   der kan opdateres (tekst, billeder, links).
═══════════════════════════════════════════ */

:root {
  /* Lions International farver */
  --groen:       #002868;  /* Lions mørkeblå */
  --groen-mid:   #003F87;  /* Lions koboltblå */
  --groen-lys:   #1a5fa8;  /* Lions mellemblå */
  --guld:        #D4A800;  /* Lions guld/gul */
  --guld-lys:    #F9C23C;  /* Lions gul */
  --guld-glow:   #FFD966;  /* Lions lys gul */
  --creme:       #f4f6fb;  /* Lys blåtone baggrund */
  --creme-mork:  #e8edf7;  /* Lidt mørkere blå-hvid */
  --brun:        #0a1a3a;  /* Mørk blå i stedet for brun */
  --hvid:        #ffffff;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Jost', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--creme); color: var(--brun); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, .knap:focus-visible, .nav-billet:focus-visible, .burger:focus-visible, .mosaic:focus-visible {
  outline: 2px solid var(--guld-glow); outline-offset: 3px; border-radius: 2px;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 68px;
  transition: background .4s, box-shadow .4s;
}
nav.solid { background: var(--groen); box-shadow: 0 4px 24px rgba(0,0,0,.3); }

.nav-logo {
  display: flex; align-items: center; gap: .7rem;
  color: var(--hvid); font-family: var(--serif);
  font-size: 1.4rem; font-weight: 600; letter-spacing: .02em;
}
.nav-logo svg { width: 36px; height: 36px; flex-shrink: 0; }
.nav-logo-img { height: 48px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.8); font-size: .8rem; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase; transition: color .25s;
}
.nav-links a:hover { color: var(--guld-glow); }

.nav-billet {
  background: var(--guld); color: var(--brun) !important;
  padding: .5rem 1.3rem; border-radius: 2px;
  font-weight: 500 !important; letter-spacing: .06em !important;
  transition: background .25s, transform .2s !important;
}
.nav-billet:hover { background: var(--guld-lys) !important; transform: translateY(-1px); }

.burger { display: none; flex-direction: column; gap: 6px; cursor: pointer; padding: .5rem; }
.burger span { display: block; width: 28px; height: 1.5px; background: var(--hvid); transition: .3s; }

@media (max-width: 760px) {
  .nav-links {
    display: none; flex-direction: column; position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--groen); padding: 1.5rem 0 2rem; gap: 0;
    text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,.3);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { padding: .9rem 0; display: block; font-size: .9rem; }
  .burger { display: flex; }
  nav { padding: 0 1.5rem; }
}

/* ── HERO ── */
.hero {
  position: relative; height: 100vh; min-height: 620px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transform: scale(1.07);
  transition: transform 9s ease-out;
}
.hero-bg.zoomed { transform: scale(1); }

.hero-wave { position: absolute; bottom: -2px; left: 0; right: 0; height: 100px; }

.hero-inner {
  position: relative; z-index: 2;
  padding: 8rem 2rem 4rem; max-width: 860px;
}

.hero-ornament {
  display: inline-flex; align-items: center; gap: .75rem;
  margin-bottom: 1.8rem;
  opacity: 0; animation: fadeUp .8s .3s ease forwards;
}
.hero-ornament-linje { width: 48px; height: 1px; background: var(--guld); opacity: .7; }
.hero-ornament-tekst {
  font-size: .72rem; font-weight: 400; letter-spacing: .22em;
  text-transform: uppercase; color: var(--guld-lys);
}

.hero h1 {
  font-family: var(--serif); font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 600; color: var(--hvid); line-height: 1.08;
  letter-spacing: -.015em;
  margin-bottom: 1.4rem;
  opacity: 0; animation: fadeUp .9s .5s ease forwards;
}
.hero h1 em { font-style: italic; color: var(--guld-glow); font-weight: 400; }

.hero-sub {
  font-size: 1.1rem; font-weight: 300; color: rgba(255,255,255,.75);
  line-height: 1.75; max-width: 520px; margin: 0 auto 2.5rem;
  opacity: 0; animation: fadeUp 1s .7s ease forwards;
}

.hero-knapper {
  display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 1s .9s ease forwards;
}

.knap {
  display: inline-block; padding: .85rem 2.2rem; border-radius: 2px;
  font-family: var(--sans); font-weight: 500; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.knap:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.knap-guld { background: var(--guld); color: var(--brun); }
.knap-guld:hover { background: var(--guld-lys); }
.knap-glas { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.35); color: var(--hvid); }
.knap-glas:hover { background: rgba(255,255,255,.2); }

.hero-pil {
  position: absolute; bottom: 7rem; left: 50%; transform: translateX(-50%);
  z-index: 3; opacity: 0; animation: fadeUp .8s 1.4s ease forwards, hop 2.4s 2.2s ease-in-out infinite;
  color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: .15em;
  text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.hero-pil::after {
  content: ''; display: block; width: 1px; height: 40px;
  background: linear-gradient(rgba(255,255,255,.5), transparent);
}

/* ── FACTS ── */
.facts-bane { background: var(--groen); padding: 2.2rem 3rem; }
.facts-indre {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center;
}
@media (max-width: 680px) { .facts-indre { grid-template-columns: repeat(2, 1fr); } }
.fact { color: var(--hvid); }
.fact-tal { font-family: var(--serif); font-size: 2.8rem; font-weight: 600; color: var(--guld-glow); line-height: 1; margin-bottom: .25rem; }
.fact-ord { font-size: .78rem; font-weight: 300; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }

/* ── GENERELT ── */
section { padding: 6.5rem 2.5rem; scroll-margin-top: 80px; }
.indhold { max-width: 1100px; margin: 0 auto; }
@media (max-width: 760px) {
  section { padding: 4rem 1.4rem; }
  .gourmet-top { padding: 0 1.4rem; }
  .mosaic { padding: 0 1.4rem; }
}

.etiket {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--groen-lys); font-weight: 500; margin-bottom: .8rem;
}
.etiket::before { content: ''; display: block; width: 24px; height: 1px; background: var(--groen-lys); }

.titel { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin-bottom: 1rem; }
.titel em { font-style: italic; color: var(--groen-mid); }
.brodtekst { font-size: 1.05rem; font-weight: 300; line-height: 1.8; color: #3a4a6a; max-width: 600px; }

/* ── TRE STORE KORT ── */
.highlights-sektion { background: var(--creme); }

.tre-kort {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  margin-top: 3.5rem; border-radius: 8px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
}
@media (max-width: 820px) { .tre-kort { grid-template-columns: 1fr; } }

.tre-kort-item { position: relative; aspect-ratio: 3/4; overflow: hidden; cursor: pointer; }
.tre-kort-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tre-kort-item:hover img { transform: scale(1.06); }

.tre-kort-lag {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,20,70,.9) 0%, rgba(0,20,70,.1) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem 1.8rem; transition: background .4s;
}
.tre-kort-item:hover .tre-kort-lag {
  background: linear-gradient(to top, rgba(0,20,70,.95) 0%, rgba(0,20,70,.45) 60%, rgba(0,20,70,.15) 100%);
}

.kort-nr { font-family: var(--serif); font-size: 3.5rem; font-weight: 600; color: rgba(255,255,255,.12); line-height: 1; margin-bottom: .4rem; }
.kort-titel { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--hvid); margin-bottom: .5rem; line-height: 1.2; }
.kort-tekst { font-size: .88rem; font-weight: 300; color: rgba(255,255,255,.7); line-height: 1.6; max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.tre-kort-item:hover .kort-tekst { max-height: 120px; }
.kort-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--guld-glow); font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-top: .9rem; transition: gap .25s; }
.kort-link:hover { gap: .8rem; }
.kort-link::after { content: '→'; }

/* ── RUTEN ── */
.ruten-sektion { background: var(--creme-mork); }
.ruten-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
@media (max-width: 820px) { .ruten-grid { grid-template-columns: 1fr; gap: 3rem; } }

.billed-dekor { position: relative; }
.billed-dekor::before {
  content: ''; position: absolute; top: -20px; left: -20px; right: 20px; bottom: 20px;
  border: 1.5px solid var(--guld); border-radius: 4px; opacity: .35; pointer-events: none;
}
.billed-dekor img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.18); }

.ruten-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--groen); color: var(--hvid);
  width: 120px; height: 120px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.ruten-badge .km { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--guld-glow); line-height: 1; }
.ruten-badge small { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
@media (max-width: 820px) { .ruten-badge { display: none; } }

.steps { margin-top: 2.2rem; list-style: none; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 1.2rem; padding-bottom: 2rem; position: relative; }
.step:not(:last-child)::before {
  content: ''; position: absolute; top: 48px; left: 23px; width: 1px; bottom: 0;
  background: linear-gradient(var(--guld), transparent); opacity: .3;
}
.step-ikon {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--guld);
  background: rgba(184,131,42,.1); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--guld); flex-shrink: 0;
}
.step-tekst h4 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin-bottom: .3rem; padding-top: .7rem; }
.step-tekst p { font-size: .9rem; font-weight: 300; line-height: 1.7; color: #4a5a7a; }

/* ── GOURMET MOSAIC ── */
.gourmet-sektion { background: var(--groen); padding: 6rem 0; }
.gourmet-top { padding: 0 2.5rem; max-width: 1100px; margin: 0 auto 3rem; }
.gourmet-top .etiket { color: var(--guld-lys); }
.gourmet-top .etiket::before { background: var(--guld-lys); }
.gourmet-top .titel { color: var(--hvid); }
.gourmet-top .brodtekst { color: rgba(255,255,255,.65); }

.mosaic { display: flex; overflow-x: auto; gap: 8px; padding: 0 2.5rem; scrollbar-width: none; cursor: grab; user-select: none; }
.mosaic::-webkit-scrollbar { display: none; }
.mosaic.grabbing { cursor: grabbing; }

.mosaic-item { position: relative; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.mosaic-item.stor { width: 340px; height: 420px; }
.mosaic-item.mel { width: 260px; height: 420px; }
.mosaic-item.lil { width: 200px; height: 420px; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 3rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(0,20,70,.85));
}
.mosaic-label h4 { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--hvid); line-height: 1.3; }

/* ── PROGRAM ── */
.program-sektion { background: var(--creme-mork); }
.program-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5px;
  margin-top: 3.5rem; background: rgba(0,0,0,.08); border-radius: 6px; overflow: hidden;
}
@media (max-width: 900px) { .program-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .program-grid { grid-template-columns: 1fr; } }
.prog-punkt { background: var(--creme); padding: 2rem 1.5rem; }
.prog-punkt::before { content: ''; display: block; width: 32px; height: 2px; background: var(--guld); margin-bottom: 1.2rem; }
.prog-tid { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--guld); line-height: 1; margin-bottom: .5rem; }
.prog-titel { font-weight: 500; font-size: .92rem; margin-bottom: .5rem; }
.prog-desc { font-size: .83rem; font-weight: 300; line-height: 1.65; color: #4a5a7a; }

/* ── CITAT ── */
.citat-sektion { background: var(--groen); padding: 6rem 2.5rem; text-align: center; }
.citat-indre { max-width: 760px; margin: 0 auto; }
.citat-mark { font-family: var(--serif); font-size: 6rem; color: var(--guld); line-height: .6; opacity: .4; margin-bottom: 1rem; }
.citat-tekst { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); font-style: italic; color: var(--hvid); line-height: 1.5; font-weight: 400; margin-bottom: 1.5rem; }
.citat-kilde { font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--guld-lys); }

/* ── OM LIONS ── */
.om-sektion { background: var(--creme); }
.om-grid { display: grid; grid-template-columns: 360px 1fr; gap: 5rem; align-items: start; }
@media (max-width: 820px) { .om-grid { grid-template-columns: 1fr; gap: 3rem; } }
.om-billed { position: relative; }
.om-billed img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.15); }
.om-etiket {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  background: rgba(0,40,104,.92); backdrop-filter: blur(4px);
  color: var(--hvid); padding: .8rem 1.2rem; border-radius: 3px; border-left: 3px solid var(--guld);
}
.om-etiket h4 { font-family: var(--serif); font-size: 1rem; font-weight: 600; margin-bottom: .2rem; }
.om-etiket p { font-size: .78rem; opacity: .7; }
.om-tekst p { font-size: 1.02rem; font-weight: 300; line-height: 1.85; color: #3a4a6a; margin-bottom: 1.2rem; }
.om-tak { background: rgba(0,63,135,.08); border-left: 3px solid var(--groen-lys); padding: 1rem 1.2rem; border-radius: 0 4px 4px 0; margin-top: 1.5rem; }
.om-tak p { font-size: .9rem; margin-bottom: 0; color: var(--groen-mid); }

/* ── CTA ── */
.cta-sektion {
  background: #001a4d; padding: 7rem 2.5rem; text-align: center; position: relative; overflow: hidden;
}
.cta-sektion::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 110%, rgba(249,194,60,.15) 0%, transparent 65%); pointer-events: none;
}
.cta-sektion h2 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; color: var(--hvid); line-height: 1.15; max-width: 660px; margin: 0 auto 1rem; }
.cta-sektion h2 em { font-style: italic; color: var(--guld-glow); font-weight: 400; }
.cta-sektion p { color: rgba(255,255,255,.6); font-size: 1.05rem; font-weight: 300; max-width: 480px; margin: 0 auto 2.5rem; }
.cta-dekor { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2.5rem; opacity: .3; }
.cta-dekor span { display: block; height: 1px; width: 80px; background: var(--guld); }
.cta-dekor em { font-style: normal; color: var(--guld); }

/* ── FOOTER ── */
footer { background: #000e2e; color: rgba(255,255,255,.45); padding: 2.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .82rem; }
footer a { color: var(--guld-lys); transition: color .2s; }
footer a:hover { color: var(--guld-glow); }
.footer-logo { font-family: var(--serif); font-size: 1.1rem; color: rgba(255,255,255,.6); }

/* ── ANIMATIONER ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hop {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
.anim { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
.anim.synlig { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

/* ── TILGÆNGELIGHED: respekter "reduceret bevægelse" ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim { opacity: 1 !important; transform: none !important; }
  .hero-bg { transform: scale(1) !important; }
}
