/* ============================================================
   shared.css — Fælles styles for nyt-tag.dk
   Bruges af: index.php og kapitel.php
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── CSS-VARIABLER ── */
:root {
  --slate:        #4a6070;
  --slate-dark:   #2e3f4f;
  --slate-deeper: #1e2d3a;
  --orange:       #E8761A;
  --orange-btn:   #d4691a;
  --white:        #ffffff;
  --light-bg:     #f4f4f2;
}

/* ── RESET + BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  background: #fff;
}

/* ── NAV ── */
nav {
  background: var(--slate-dark);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px; /* kapitel.php kan overskrive med 64px via inline style */
  width: 100%;
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: white;
  text-decoration: none;
  flex-shrink: 0;
}

.logo .logo-tag,
.logo span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: white;
}

/* .btn-nav og .nav-cta er identiske — begge klasser dækkes her */
.btn-nav,
.nav-cta {
  background: var(--orange);
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-nav:hover,
.nav-cta:hover {
  background: var(--orange-btn);
}

/* ── FOOTER SIMPEL (kapitel.php) ── */
.footer-simple {
  background: var(--slate-dark);
  color: rgba(255, 255, 255, 0.4);
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
}

.footer-simple-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.footer-simple a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-simple a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ── FOOTER ── */
footer {
  background: var(--slate-dark);
  position: relative;
  padding-top: 100px;
}
.footer-roof {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.footer-roof svg { width: 100%; display: block; }
.footer-logo-center {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}
.footer-logo-big {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: white;
}
.footer-logo-big span { color: var(--orange); }
.footer-sadan {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2.5rem 3rem;
  position: relative;
  z-index: 1;
}
.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}
.footer-col p,
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  text-decoration: none;
  display: block;
}
.footer-col a:hover { color: rgba(255,255,255,0.85); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
  padding: 1rem 2.5rem 0.5rem;
  position: relative;
  z-index: 1;
}
.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  display: inline;
  transition: color 0.15s;
}
.footer-legal a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem 2.5rem 1.2rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); display: inline; }
.footer-bottom a:hover { color: rgba(255,255,255,0.85); }

/* ── PROMO BANNER ── */
.promo-banner {
  background: linear-gradient(90deg, #c75c00 0%, #E8761A 50%, #c75c00 100%);
  color: white;
  text-align: center;
  padding: 0.7rem 1.5rem;
  position: relative;
  z-index: 200;
}
.promo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.promo-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0,0,0,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}
.promo-text {
  font-size: 0.92rem;
  line-height: 1.3;
}
.promo-code {
  display: inline-block;
  background: white;
  color: #c75c00;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 0.15rem 0.65rem;
  border-radius: 5px;
  letter-spacing: 0.06em;
  font-family: 'Courier New', monospace;
}
.promo-cta {
  display: inline-block;
  background: white;
  color: #c75c00;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.promo-cta:hover { background: rgba(255,255,255,0.85); }

@media (max-width: 600px) {
  .promo-inner { gap: 0.5rem; }
  .promo-label { display: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .footer-cols { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0 1rem;
  }

  .btn-nav,
  .nav-cta {
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
    letter-spacing: 0;
  }

  .logo {
    font-size: 1.2rem;
  }
}
