/* ==========================================================================
   Samtala footer – loads on EVERY page (separate from "Samtala 2027", which
   is still limited to the test pages). Self-contained: colours and font are
   set on #footer only, so the rest of the old theme is not affected.
   When the new design is launched site-wide, this file can be deleted.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

#footer {
  --sm-accent: #60b5ff;
  --sm-accent-h: #82cbff;
  --sm-bg-ink: #07111a;
  --sm-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}
#footer .sm-footer-main, #footer .sm-footer-main *,
#footer .sm-footer-bottom, #footer .sm-footer-bottom * {
  font-family: var(--sm-font) !important;
}

#footer, footer#footer.footer {
  background: #081a2e !important;
  border-top: 1px solid #1b436c;
}
.sm-footer-main, .sm-footer-bottom { background: transparent !important; border: 0 !important; }
.sm-footer-main .bb-inner, .sm-footer-main.bb-inner { padding: 64px 0 0 !important; }
.sm-footer-bottom .bb-inner, .sm-footer-bottom.bb-inner { padding: 0 0 40px !important; }

/* Layout: 2fr 1fr 1fr 1fr like the AI design (overrides Bootstrap column widths) */
.sm-footer-main .row-wrapper {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin: 0 !important;
  padding-bottom: 48px;
  border-bottom: 1px solid #153757;
}
.sm-footer-main .row-wrapper > .gsc-column {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
}
.sm-footer-main .column-inner, .sm-footer-main .column-content-inner { padding: 0 !important; margin: 0 !important; }

/* Brand column */
.sm-f-logo { display: inline-block; margin-bottom: 16px; }
.sm-f-logo img { height: 34px; width: auto; display: block; }
.sm-f-text {
  max-width: 384px;
  margin: 0 0 20px !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}
#footer a.sm-f-btn, a.sm-f-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 9999px;
  background: var(--sm-accent);
  color: var(--sm-bg-ink) !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 0 15px rgba(96,181,255,.2);
  transition: all .3s ease-out;
}
#footer a.sm-f-btn:hover, a.sm-f-btn:hover { background: var(--sm-accent-h); box-shadow: 0 0 25px rgba(96,181,255,.35); transform: scale(1.03); }

/* Link columns */
.sm-f-title {
  margin: 0 0 14px !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  line-height: 1.4 !important;
}
ul.sm-f-links, ul.sm-f-contact { list-style: none; margin: 0 !important; padding: 0 !important; }
ul.sm-f-links li, ul.sm-f-contact li { margin: 0 0 9px !important; padding: 0 !important; }
ul.sm-f-links li::before, ul.sm-f-contact li::before { display: none !important; }
#footer ul.sm-f-links a, #footer ul.sm-f-contact a, ul.sm-f-contact span {
  color: rgba(191,219,254,.8) !important;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none !important;
  transition: color .2s ease;
}
#footer ul.sm-f-links a:hover { color: var(--sm-accent) !important; }
#footer ul.sm-f-links a.is-highlight { color: rgba(96,181,255,.9) !important; font-weight: 600; }
#footer ul.sm-f-contact a:hover { color: #fff !important; }

/* Contact list icons (drawn with CSS, so no SVG is needed in the editor) */
ul.sm-f-contact li { display: flex; align-items: flex-start; gap: 9px; }
ul.sm-f-contact li::after { display: none; }
ul.sm-f-contact li > :first-child::before {
  content: "";
  display: inline-block;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin: 2px 9px 0 0;
  vertical-align: -2px;
  background-color: var(--sm-accent);
  -webkit-mask: var(--sm-ico) center / contain no-repeat;
          mask: var(--sm-ico) center / contain no-repeat;
}
ul.sm-f-contact li.sm-f-phone { --sm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384'/%3E%3C/svg%3E"); }
ul.sm-f-contact li.sm-f-mail { --sm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E"); }
ul.sm-f-contact li.sm-f-pin { --sm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }

/* Bottom row */
.sm-footer-bottom .row-wrapper {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 !important;
  padding-top: 32px;
}
.sm-footer-bottom .row-wrapper > .gsc-column { width: auto !important; max-width: none !important; flex: 0 1 auto !important; padding: 0 !important; }
.sm-footer-bottom .column-inner, .sm-footer-bottom .column-content-inner { padding: 0 !important; margin: 0 !important; }
.sm-f-copy { margin: 0 !important; color: #94a3b8 !important; font-size: 11px !important; }
ul.sm-f-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 24px; margin: 0 !important; padding: 0 !important; }
ul.sm-f-legal li { margin: 0 !important; padding: 0 !important; }
ul.sm-f-legal li::before { display: none !important; }
#footer ul.sm-f-legal a { color: #94a3b8 !important; font-size: 11px; text-decoration: none !important; }
#footer ul.sm-f-legal a:hover { color: #cbd5e1 !important; }

@media (max-width: 991px) {
  .sm-footer-main .row-wrapper { grid-template-columns: 1fr 1fr; }
  .sm-footer-main .row-wrapper > .gsc-column:first-child { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
  .sm-footer-main .row-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .sm-footer-bottom .row-wrapper { flex-direction: column; align-items: flex-start; }
}

/* Anchor links (#om-oss, #tjanster, #kontakt …) land 40px below the sticky menu.
   Sticky menu height: 113px desktop, 99px mobile. Admin toolbar offset is added when logged in. */
html { scroll-padding-top: calc(var(--drupal-displace-offset-top, 0px) + 113px + 40px) !important; }
@media (max-width: 991px) { html { scroll-padding-top: calc(var(--drupal-displace-offset-top, 0px) + 99px + 40px) !important; } }
