/* ============================================================
   Killerup Rideklub – styles.css
   Stil: Naturlig & varm (skovgrøn · varm brun · sand · creme)
   ============================================================ */

:root {
  --green:        #3f5c3a;
  --green-dark:   #2d4129;
  --green-deep:   #233320;
  --brown:        #8a5a36;
  --brown-dark:   #6f4527;
  --sand:         #e9e1d2;
  --sand-soft:    #f1ebde;
  --creme:        #faf7f1;
  --ink:          #2a2622;
  --muted:        #6b6256;
  --line:         #e2d9c8;
  --white:        #ffffff;

  --shadow-sm: 0 2px 10px rgba(40, 33, 22, .07);
  --shadow-md: 0 10px 30px rgba(40, 33, 22, .12);
  --shadow-lg: 0 24px 60px rgba(40, 33, 22, .22);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-h: 76px;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--creme);
  line-height: 1.65;
  font-size: 1.05rem;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--green-deep);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
h3 { font-size: 1.45rem; color: var(--green-dark); }

p { margin: 0 0 1rem; }
a { color: var(--brown-dark); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--sans);
  font-weight: 800;
  font-size: .98rem;
  letter-spacing: .01em;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brown);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--brown-dark); }

.btn--ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.7);
  backdrop-filter: blur(2px);
}
.btn--ghost:hover { background: rgba(255,255,255,.22); }

.btn--ghost-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}

.btn--small {
  padding: 9px 18px;
  font-size: .9rem;
  background: var(--green);
  color: #fff;
}
.btn--small:hover { background: var(--green-dark); }

.text-link {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--sand);
  padding-bottom: 1px;
}
.text-link:hover { border-color: var(--brown); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--green-deep);
}
.brand__logo {
  width: 48px;
  height: auto;
  border-radius: 8px;
  background: #fff;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
}
.brand__tag {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 700;
}

/* ---------- Nav ---------- */
.nav__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nav__menu a:not(.btn) {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: .96rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.nav__menu a:not(.btn):hover { color: var(--green); background: var(--sand-soft); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--green-deep);
  border-radius: 3px;
  transition: transform .25s ease, opacity .25s ease;
  margin-inline: auto;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  color: #fff;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(35,51,32,.78) 0%, rgba(35,51,32,.45) 55%, rgba(35,51,32,.25) 100%),
    linear-gradient(to top, rgba(35,51,32,.55), rgba(35,51,32,0) 45%);
}
.hero__content { padding-block: 90px; max-width: 720px; }
.hero__title {
  color: #fff;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  margin-bottom: .35em;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero__lead {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  max-width: 42ch;
  margin-bottom: 1.8rem;
  color: rgba(255,255,255,.95);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: #fff;
  border-radius: 2px;
  animation: scrolldot 1.8s infinite;
}
@keyframes scrolldot { 0% {opacity:0; transform: translateY(0);} 40%{opacity:1;} 80%{opacity:0; transform: translateY(14px);} 100%{opacity:0;} }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--brown);
  margin: 0 0 .8rem;
}
.eyebrow--light { color: #f3d9b8; }

.section { padding-block: clamp(60px, 9vw, 110px); }
.section--sand { background: var(--sand-soft); }

.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head__lead { font-size: 1.15rem; color: var(--muted); margin: 0; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: clamp(30px, 5vw, 64px); }
.grid--2 { grid-template-columns: 1fr 1fr; }
.align-center { align-items: center; }

/* ---------- Media frame ---------- */
.media-frame { position: relative; }
.media-frame img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.media-frame__caption {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(45,65,41,.92);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
}

/* ---------- Facts ---------- */
.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 1.8rem 0 0;
  padding: 0;
}
.facts li {
  flex: 1 1 0;
  min-width: 120px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.facts__num {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--brown);
}
.facts__label { display: block; font-size: .82rem; color: var(--muted); }

/* ---------- Løsdrift section ---------- */
.loesdrift-row { margin-bottom: clamp(40px, 6vw, 70px); }
.with-icon { display: flex; align-items: center; gap: 12px; }
.with-icon svg {
  width: 34px; height: 34px; flex: none;
  fill: var(--green);
  background: var(--sand);
  padding: 6px; border-radius: 10px;
}

.value-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--brown);
  transition: transform .2s ease, box-shadow .2s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card p { margin: 0; color: var(--muted); }

/* ---------- Activities ---------- */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.activity {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.activity:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.activity__icon {
  font-size: 2rem;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: var(--sand-soft);
  border-radius: 14px;
  margin-bottom: 14px;
}
.activity h3 { margin-bottom: .4em; }
.activity p { color: var(--muted); margin-bottom: .6rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.gallery__item {
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--sand);
  box-shadow: var(--shadow-sm);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(35,51,32,.35), transparent 50%);
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item:focus-visible { outline: 3px solid var(--brown); outline-offset: 2px; }

/* Større felter for variation */
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(6) { grid-column: span 2; }

/* ---------- Join ---------- */
.join {
  background:
    linear-gradient(rgba(35,51,32,.92), rgba(35,51,32,.95)),
    url('../img/galleri-3.jpg') center/cover fixed;
  color: #fff;
}
.join h2 { color: #fff; }
.join p { color: rgba(255,255,255,.9); }
.join__card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 34px 30px;
  backdrop-filter: blur(3px);
}
.join__card h3 { color: #fff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.steps__n {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--brown);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  border-radius: 50%;
}

/* ---------- Contact ---------- */
.contact-row { gap: clamp(30px, 5vw, 56px); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-list__label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 800;
  color: var(--brown);
}
.contact-list__value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-deep);
  text-decoration: none;
}
a.contact-list__value:hover { color: var(--brown); }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  min-height: 340px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-link { display: inline-block; margin-top: 14px; }

/* ---------- Placeholder notes ---------- */
.placeholder-note {
  font-size: .9rem;
  color: #9a7b3e;
  background: #fbf3e2;
  border: 1px dashed #d9b878;
  border-radius: 8px;
  padding: 8px 12px;
  margin: .4rem 0;
}
.placeholder-note--light {
  background: rgba(255,255,255,.1);
  border-color: rgba(243,217,184,.6);
  color: #f3d9b8;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.82); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr .8fr;
  gap: 36px;
  padding-block: 56px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo img { width: 56px; border-radius: 10px; background: #fff; padding: 4px; }
.footer-name { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin: 0; font-weight: 700; }
.footer-sub { font-size: .9rem; margin: 2px 0 0; }
.footer-head {
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  margin: 0 0 12px;
}
.footer-col p { margin: 0; font-size: .96rem; line-height: 1.8; }
.site-footer a { color: #f3d9b8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom p { margin: 0; padding-block: 18px; font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(20, 28, 18, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox__figure img {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  margin-inline: auto;
}
.lightbox__figure figcaption { color: #fff; margin-top: 14px; font-weight: 600; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 22px; right: 22px; width: 48px; height: 48px; font-size: 2rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 2.4rem; line-height: 1; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .value-cards, .activity-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gallery__item:nth-child(6) { grid-column: span 2; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--creme);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 18px 22px;
    transform: translateY(-130%);
    transition: transform .3s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu li { width: 100%; }
  .nav__menu a:not(.btn) { display: block; padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__menu .btn { display: block; text-align: center; margin-top: 14px; }

  .grid--2 { grid-template-columns: 1fr; }
  .hero__content { padding-block: 70px; }
  .join { background-attachment: scroll; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .value-cards, .activity-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .brand__tag { display: none; }
  .facts li { min-width: 100%; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 1.8rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
  .btn:hover, .value-card:hover, .activity:hover { transform: none; }
}
