/* =========================================================================
   Schou Pedersen Multiservice – layout.css
   Global styling til header (m. dropdown), mobilmenu og footer.
   Loades på ALLE sider (link i header.php), efter style.css.
   Matcher forsidens designsprog: Schibsted Grotesk + Hanken Grotesk,
   softede brandfarver fra logoet.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=Schibsted+Grotesk:wght@500;600;700;800&display=swap');

/* ---------- Brandtokens (scopet til header/footer) ---------- */
.site-header,
.site-footer {
  --green:     #BDF270;
  --blue:      #51BDFF;
  --green-100: #ECF8D7;
  --green-600: #82BC34;
  --blue-100:  #DDF0FF;
  --blue-600:  #1593DC;
  --blue-700:  #0E78B6;
  --ink:       #0F1C25;
  --ink-soft:  #33454F;
  --muted:     #6A7884;
  --line:      #E7EDF1;
  --bg-soft:   #F5F8FA;
  --ph:        #E4E9ED;
  --shadow:    0 18px 40px -22px rgba(15,28,37,.28);
  --header-h:  72px;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
}

/* ---------- Fælles wrapper (samme bredde som forsiden) ---------- */
.sp-shell {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Genbrugelig knap (global, virker på alle sider) ---------- */
.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
  background-clip: padding-box;
  overflow: hidden;
}

.sp-btn svg {
  width: 18px;
  height: 18px;
}

.sp-btn.sp-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #34B2F2, #0E86CF);
  box-shadow: 0 12px 24px -16px rgba(14,120,182,.75);
}

.sp-btn.sp-btn--primary svg {
  color: #fff;
}

.sp-btn.sp-btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -18px rgba(14,120,182,.85);
}

.sp-btn--sm {
  padding: 12px 18px;
  font-size: .95rem;
}

/* ---------- Skip-link ---------- */
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(15,28,37,.45); }

.sp-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 82px;
  padding-block: 10px;
  box-sizing: border-box;
}

.sp-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}

.sp-logo img {
  display: block;
  width: 130px;
  height: auto;
}



.site-footer .sp-footer__brand .sp-footer-logo {
  display: block;
  width: 120px;
  height: auto;
  margin-bottom: 18px;
}


.site-header .sp-btn.sp-btn--primary:hover {
  transform: none;
  box-shadow: 0 12px 24px -16px rgba(14,120,182,.90);
}

/* Nav (panel) */
.sp-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.sp-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0; padding: 0;
}
.sp-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
.sp-nav__link:hover { color: var(--ink); background: var(--bg-soft); }
.sp-nav__link.is-active { color: var(--blue-700); }
.sp-caret { width: 15px; height: 15px; transition: transform .25s ease; }

/* Dropdown */
.sp-has-dropdown { position: relative; }
.sp-has-dropdown::after { /* usynlig "bro" så menuen ikke lukker i mellemrummet */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 14px;
}
.sp-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 264px;
  list-style: none;
  margin: 0; padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.sp-has-dropdown:hover .sp-dropdown,
.sp-has-dropdown:focus-within .sp-dropdown {
  opacity: 1; visibility: visible; transform: none;
}
.sp-has-dropdown:hover .sp-caret,
.sp-has-dropdown:focus-within .sp-caret { transform: rotate(180deg); }
.sp-dropdown a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 10px;
  font-weight: 500;
  font-size: .96rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.sp-dropdown a:hover { background: var(--bg-soft); color: var(--ink); }
.sp-dropdown a .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sp-dropdown a:nth-child(odd) .dot  { background: var(--green); }
.sp-dropdown a:nth-child(even) .dot { background: var(--blue); }

/* Actions */
.sp-nav__actions { display: flex; align-items: center; gap: 14px; }
.sp-header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.sp-header-phone svg { width: 18px; height: 18px; color: var(--blue-600); }
.sp-header-phone:hover { color: var(--blue-700); }

/* Burger */
.sp-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.sp-burger span {
  display: block;
  width: 22px; height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.sp-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sp-burger.is-open span:nth-child(2) { opacity: 0; }
.sp-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header :focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------- Mobil ---------- */
@media (max-width: 950px) {
  .sp-burger { display: flex; }

  .sp-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 18px clamp(20px, 5vw, 48px) 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(15,28,37,.5);
  }
  html.js .sp-nav { display: none; }
  html.js .sp-nav.is-open { display: flex; }

  .sp-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .sp-nav__link { padding: 13px 14px; font-size: 1.05rem; }

  .sp-has-dropdown::after { display: none; }
  .sp-dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    min-width: 0;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin: 2px 0 6px 14px;
    padding: 2px 0 2px 6px;
  }
  .sp-has-dropdown:hover .sp-caret,
  .sp-has-dropdown:focus-within .sp-caret { transform: none; }

  .sp-nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .sp-header-phone { justify-content: center; padding: 10px; }
  .sp-nav__actions .sp-btn { width: 100%; }
}

/* =========================================================================
   FOOTER (mørk)
   ========================================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.66);
  font-size: .97rem;
}
.sp-footer__top { padding-block: clamp(48px, 7vw, 82px); }
.sp-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(30px, 4vw, 56px);
}
.sp-footer__brand .sp-logo__ph {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.6);
  margin-bottom: 18px;
}
.sp-footer__brand p { max-width: 320px; line-height: 1.7; }

.sp-footer__reviews {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: rgba(255,255,255,.85);
  font-weight: 500;
}
.sp-footer__reviews .stars {
  display: flex;
  gap: 2px;
  color: var(--green);
}

.sp-footer__reviews .stars small {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: .95rem;
  line-height: 1;
  color: currentColor;
}

.sp-footer__col h3 {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sp-footer__col h3::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
}
.sp-footer__col:nth-of-type(odd) h3::before { background: var(--blue); }

.sp-footer__col a,
.sp-footer__col p { color: rgba(255,255,255,.66); }
.sp-footer__links { display: flex; flex-direction: column; gap: 11px; }
.sp-footer__links a {
  text-decoration: none;
  width: fit-content;
  transition: color .2s ease, transform .2s ease;
}
.sp-footer__links a:hover { color: #fff; transform: translateX(3px); }

.sp-footer__contact p { line-height: 1.8; margin: 0 0 14px; }
.sp-footer__contact a { text-decoration: none; transition: color .2s ease; }
.sp-footer__contact a:hover { color: #fff; }

.sp-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  font-size: .88rem;
  color: rgba(255,255,255,.5);
}
.sp-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.sp-footer__bottom a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s ease; }
.sp-footer__bottom a:hover { color: #fff; }

.site-footer :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 860px) {
  .sp-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .sp-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .sp-footer__grid { grid-template-columns: 1fr; }
  .sp-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *, .site-footer *, .sp-btn { transition: none !important; }
}


.sp-footer-logo-link{
  display: inline-block;
  line-height: 0;
}

.sp-footer-logo-link:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 6px;
  border-radius: 6px;
}