/* ==========================================================================
   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; } }

/* ==========================================================================
   MOBILE MENU (≤1024px) – AI-style dropdown panel under the header
   ========================================================================== */
@media (max-width: 1024px) {
  #header .header-two__content { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; position: relative; }
  #header .header-two__content::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
  .header-two #menu-bar, #header #menu-bar { background: transparent !important; width: 40px; height: 40px; margin-top: -20px; border-radius: 12px; }
  #header #menu-bar:hover { background: rgba(255,255,255,.08) !important; }
  #header #menu-bar span { background-color: #fff !important; width: 22px; }
  .gva-offcanvas-mobile, .gva-offcanvas-mobile.show-view {
    position: fixed !important; top: calc(var(--drupal-displace-offset-top, 0px) + 96px) !important; left: 12px !important; right: 12px !important; bottom: auto !important;
    width: auto !important; max-width: 560px !important; margin: 0 auto; height: auto !important; max-height: calc(100vh - var(--drupal-displace-offset-top, 0px) - 112px);
    overflow: hidden auto !important; z-index: 10000 !important; padding: 10px !important;
    background: #0a1e34 !important; border: 1px solid rgba(255,255,255,.14); border-radius: 22px !important;
    box-shadow: 0 24px 60px rgba(0,0,0,.45) !important; }
  .gva-offcanvas-mobile { opacity: 0; visibility: hidden; transform: translateY(-8px) !important; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s !important; }
  .gva-offcanvas-mobile.show-view { opacity: 1; visibility: visible; transform: none !important; transition: opacity .2s ease, transform .2s ease !important; }
  .gva-offcanvas-mobile .main-menu-inner { background: none !important; padding: 0 !important; }
  .gva-offcanvas-mobile .close-offcanvas, .gva-offcanvas-mobile .close-offcanvas.hidden { display: none !important; }
  .gva-offcanvas-mobile #block-notech-subtheme-mobilelogoblock { display: none !important; }
  .gva-offcanvas-mobile .block { border: 0 !important; padding: 0 !important; margin: 0 !important; background: none !important; }
  .gva-offcanvas-mobile ul.mobile-menu { list-style: none !important; margin: 0 !important; padding: 0 !important; }
  .gva-offcanvas-mobile ul.mobile-menu li { list-style: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
  .gva-offcanvas-mobile ul.mobile-menu li::before, .gva-offcanvas-mobile ul.mobile-menu li::after { display: none !important; }
  .gva-offcanvas-mobile a.mobile-menu-link { display: flex !important; align-items: center; padding: 11px 14px !important; border-radius: 12px; text-decoration: none !important;
    color: var(--sm-text-2, #e2e8f0) !important; font: 500 15.5px/1.3 var(--sm-font) !important; background: none; transition: background .15s, color .15s; }
  .gva-offcanvas-mobile a.mobile-menu-link:hover, .gva-offcanvas-mobile a.mobile-menu-link:focus-visible { background: rgba(255,255,255,.06) !important; color: #fff !important; }
  .gva-offcanvas-mobile a.mobile-menu-link.is-active { background: rgba(96,181,255,.12) !important; color: var(--sm-accent, #60b5ff) !important; font-weight: 600 !important; }
  .gva-offcanvas-mobile .mobile-menu-image { display: none !important; }
  .gva-offcanvas-mobile ul.mobile-menu li, .gva-offcanvas-mobile ul.mobile-menu li.mobile-menu-container { background: none !important; }
  .gva-offcanvas-mobile li.sm-mm-label > a.mobile-menu-link { pointer-events: none; padding: 14px 14px 6px !important; color: var(--sm-muted-2, #94a3b8) !important;
    font: 600 11.5px/1.2 var(--sm-font) !important; letter-spacing: .12em; text-transform: uppercase; }
  .gva-offcanvas-mobile ul.mobile-menu > li.mobile-menu-container:not(:first-child), .gva-offcanvas-mobile ul.mobile-menu > li.sm-mm-label:not(:first-child) { margin-top: 6px !important; padding-top: 6px !important; border-top: 1px solid rgba(255,255,255,.08) !important; }
  .gva-offcanvas-mobile ul.mobile-menu > li.mobile-menu-container + li.mobile-menu-container:not(.sm-mm-label) { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
  .gva-offcanvas-mobile li.sm-mm-top { margin-top: 6px !important; padding-top: 6px !important; border-top: 1px solid rgba(255,255,255,.08) !important; }
  .gva-offcanvas-mobile .sm-mm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 0; padding: 14px 6px 4px 14px;
    border-top: 1px solid rgba(255,255,255,.1); }
  .gva-offcanvas-mobile .sm-mm-tel { display: inline-flex; align-items: center; gap: 8px; color: var(--sm-text-2, #e2e8f0) !important; font: 500 14.5px var(--sm-font); text-decoration: none !important; }
  .gva-offcanvas-mobile .sm-mm-tel::before { content: ""; width: 16px; height: 16px; background: var(--sm-accent, #60b5ff);
    -webkit-mask: 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='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: 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='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat; }
  .gva-offcanvas-mobile .sm-mm-book { display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 999px; background: var(--sm-accent, #60b5ff) !important;
    color: var(--sm-bg-ink, #07111a) !important; font: 600 14.5px var(--sm-font); text-decoration: none !important; box-shadow: 0 8px 24px rgba(96,181,255,.3); }
  /* Hide the floating "Boka möte" button while the menu is open (the menu has its own) */
  body.sm-mm-open .sm-book-float { opacity: 0 !important; pointer-events: none !important; }
  /* Tablet (769–1024px): the theme shows the main menu here instead of the mobile menu */
  .gva-offcanvas-mobile .gva-navigation .gva_menu { padding: 0 !important; }
  .gva-offcanvas-mobile .gva-navigation .gva_menu > li { border: 0 !important; margin: 0 !important; padding: 0 !important; }
  .gva-offcanvas-mobile .gva-navigation .gva_menu > li > a { padding: 11px 14px !important; border-radius: 12px; color: var(--sm-text-2, #e2e8f0) !important;
    font: 500 15.5px/1.3 var(--sm-font) !important; }
  .gva-offcanvas-mobile .gva-navigation .gva_menu > li > a:hover { background: rgba(255,255,255,.06) !important; color: #fff !important; }
  .gva-offcanvas-mobile .gva-navigation .gva_menu li a .icaret { top: 50% !important; right: 8px !important; transform: translateY(-50%); width: 32px !important; height: 32px !important;
    border-radius: 10px; background: rgba(255,255,255,.08) !important; color: #fff !important; }
  .gva-offcanvas-mobile .gva-navigation .gva_menu > li ul.menu.sub-menu { padding: 2px 0 6px 14px !important; margin: 0 !important; }
  .gva-offcanvas-mobile .gva-navigation .gva_menu > li ul.menu.sub-menu li a { padding: 8px 14px !important; border-radius: 10px; color: var(--sm-muted, #cbd5e1) !important; font: 400 14.5px var(--sm-font) !important; }
  .gva-offcanvas-mobile .gva-navigation .gva_menu > li ul.menu.sub-menu li a:hover { background: rgba(255,255,255,.06) !important; color: #fff !important; }
  /* Theme toggles the arrow but not the sub-menu: open it whenever the arrow shows "minus" */
  .gva-offcanvas-mobile .gva-navigation .gva_menu li:has(> a .icaret.nav-minus) > .sub-menu { display: block !important; }
  .gva-offcanvas-mobile .gva-navigation .gva_menu .sub-menu .menu-description, .gva-offcanvas-mobile .gva-navigation .gva_menu .sub-menu .menu-image { display: none !important; }
  .gva-offcanvas-mobile .gva-navigation .gva_menu .sub-menu .menu-title { text-transform: none; font: inherit; }
  /* Same menu on tablets as on phones (the tablet main menu lacks the Tjänster sub-pages) */
  .gva-offcanvas-mobile #block-notech-subtheme-mobilemenu { display: block !important; }
  .gva-offcanvas-mobile #block-mainnavigation { display: none !important; }
}

/* Desktop: the mobile-menu phone/booking row must never show in the main menu */
@media (min-width: 1025px) { .gva-offcanvas-mobile .sm-mm-foot { display: none !important; } }

/* Page-title banner (theme "breadcrumb" band): no grey/photo background – use the site background */
.breadcrumb-style, .breadcrumb-style.gva-parallax-background, .breadcrumb-style .gva-parallax-inner {
  background: transparent !important; background-image: none !important; background-color: transparent !important; }
.breadcrumb-style::before, .breadcrumb-style::after, .breadcrumb-style .gva-parallax-inner::before, .breadcrumb-style .gva-parallax-inner::after { display: none !important; }
/* Title band: size to the title (theme forces 200/350px), more space above, little below */
html body .gva-breadcrumb-content .breadcrumb-style { height: auto !important; min-height: 0 !important; }
html body .gva-breadcrumb-content .breadcrumb-style .breadcrumb-content-main { padding: 140px 15px 8px !important; }
@media (max-width: 767px) { html body .gva-breadcrumb-content .breadcrumb-style .breadcrumb-content-main { padding: 120px 15px 4px !important; } }
html body .breadcrumbs .breadcrumb-content-inner { margin-bottom: 24px !important; } /* theme: 60px */
