/* ════════════════════════════════════════════════════════════════
   Nyskov Jagtvæsen — shared site styles
   Used by /index.html and /medlem/index.html
   ════════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --forest-dark:  #152718;
  --forest:       #1e3a24;
  --forest-mid:   #2d5438;
  --forest-light: #3d7052;
  --forest-pale:  #ccddd1;
  --amber:        #c8890a;
  --amber-light:  #f0b429;
  --amber-pale:   #fdf3dc;
  --cream:        #f4ede0;
  --cream-mid:    #ede3d0;
  --cream-dark:   #d9cdb8;
  --bark:         #6b4c2a;
  --text-dark:    #18251a;
  --text-mid:     #3d4f38;
  --text-muted:   #566252;
  --white:        #ffffff;
  --cream-75:     rgba(244,237,224,.75);
  --cream-70:     rgba(244,237,224,.7);
  --cream-60:     rgba(244,237,224,.6);
  --cream-08:     rgba(244,237,224,.08);
  --border:       rgba(30,58,36,0.12);
  --shadow-sm:    0 2px 12px rgba(21,39,24,0.10);
  --shadow-md:    0 8px 32px rgba(21,39,24,0.14);
  --nav-h:        66px;
}

/* ── BASE ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 17.5px;
  line-height: 1.7;
}
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--forest);
  line-height: 1.2;
}
p { color: var(--text-mid); }

/* ── UTILITY ── */
.text-amber       { color: var(--amber-light) !important; }
.text-forest      { color: var(--forest) !important; }
.text-muted-custom{ color: var(--text-muted) !important; }
.bg-forest        { background: var(--forest); }
.bg-cream         { background: var(--cream); }
.bg-cream-mid     { background: var(--cream-mid); }

.section-tag {
  font-size: 11px;
  font-family: 'Lato', sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: .4rem;
  display: block;
}
.divider-amber {
  width: 48px; height: 3px;
  background: var(--amber);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}
.divider-amber.left { margin: 0 0 1.5rem; }

.section-pad    { padding: 100px 0; }
.section-pad-sm { padding: 70px 0; }

/* ── BUTTONS ── */
.btn-forest {
  background: var(--forest);
  color: var(--amber-light);
  border: none;
  border-radius: 2px;
  padding: .7rem 2rem;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  transition: background .2s, transform .15s;
}
.btn-forest:hover { background: var(--forest-mid); color: var(--amber-light); transform: translateY(-1px); }

.btn-outline-forest {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
  border-radius: 2px;
  padding: .65rem 1.8rem;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  transition: all .2s;
}
.btn-outline-forest:hover { background: var(--forest); color: var(--amber-light); }

.btn-outline-cream {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(244,237,224,.45);
  border-radius: 2px;
  padding: .65rem 1.8rem;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  transition: all .2s;
}
.btn-outline-cream:hover { background: rgba(244,237,224,.12); color: var(--cream); }

.btn-amber {
  background: var(--amber);
  color: var(--forest-dark);
  border: none;
  border-radius: 2px;
  padding: .7rem 2rem;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  transition: background .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-amber:hover { background: var(--amber-light); color: var(--forest-dark); }

.btn-forest:focus-visible,
.btn-outline-forest:focus-visible,
.btn-outline-cream:focus-visible,
.btn-amber:focus-visible {
  outline: 2px solid var(--amber-light);
  outline-offset: 2px;
}

/* ── NAVBAR (sticky, sits below announcement banner if present) ── */
#mainNav {
  background: var(--forest-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}
#mainNav .navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--cream) !important;
  letter-spacing: .02em;
}
#mainNav .navbar-brand small {
  display: block;
  font-style: normal;
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
}
#mainNav .nav-link {
  color: var(--cream-75) !important;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .65rem .9rem !important;
  transition: color .2s;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--amber-light) !important; }
.navbar-toggler { border-color: rgba(244,237,224,.3); padding: .5rem .65rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .15rem rgba(240,180,41,.35); }
.navbar-toggler-icon { filter: invert(1); }

/* Larger tap targets on mobile */
@media (max-width: 991px) {
  #mainNav .nav-link { padding: .85rem .9rem !important; }
}

/* ── ANNOUNCEMENT BANNER (normal flow, sits above navbar) ── */
.announce-banner {
  background: var(--amber);
  padding: .55rem 1rem;
  text-align: center;
  line-height: 1.35;
  font-size: 12px;
  font-weight: 700;
  color: var(--forest-dark);
  letter-spacing: .04em;
}
.announce-banner a {
  color: var(--forest-dark);
  text-decoration: underline;
}

/* ── INFO LIST ── */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text-mid);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.info-list li:last-child { border-bottom: none; }
.info-list li i { color: var(--amber); margin-top: 3px; flex-shrink: 0; }

/* ── CONTENT CARD ── */
.content-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-sm);
}
.content-card.forest { background: var(--forest); border-color: var(--forest); }

/* ── FOOTER ── */
footer {
  background: var(--forest-dark);
  color: var(--cream-60);
  padding: 3rem 0 2rem;
  font-size: .82rem;
}
footer h6 {
  color: var(--amber-light);
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}
footer a { color: var(--cream-60); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--amber-light); }
footer .footer-links { list-style: none; padding: 0; margin: 0; }
footer .footer-links li { margin-bottom: .4rem; }
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--cream);
  font-style: italic;
  margin-bottom: .3rem;
}
.footer-divider {
  border-color: var(--cream-08);
  margin: 2rem 0 1.2rem;
}

/* ── BACK TO TOP ── */
#backToTop {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--forest);
  color: var(--amber-light);
  border: none;
  border-radius: 2px;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s;
  z-index: 999;
  box-shadow: var(--shadow-md);
}
#backToTop.visible { opacity: 1; transform: translateY(0); }
#backToTop:hover { background: var(--forest-mid); }

/* ── SCROLL ANIMATIONS ── */
.aos {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.aos.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .aos { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── ACCESSIBILITY ── */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  .section-pad    { padding: 64px 0; }
  .section-pad-sm { padding: 48px 0; }
  body { font-size: 16.5px; }
}
