/* ============================================================
   Stockholmskliniken – Custom Navbar (Prototype v2)
   Lägg i: /wp-content/themes/hello-theme-child-master/
   Enqueua via functions.php (se instruktioner)
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --sk-cream:      #FAF7F4;
  --sk-white:      #FFFFFF;
  --sk-brand:      #8B6764;
  --sk-brand-dark: #6E4F4C;
  --sk-brand-mid:  #b08280;
  --sk-rose-line:  #E8DAD3;
  --sk-rose-head:  #9B6E65;
  --sk-taupe:      #C4A898;
  --sk-text:       #2A1810;
  --sk-text-dim:   #8A6A62;
  /* Override Elementor global accent so it never bleeds into our components */
  --e-global-color-accent: #8B6764;
  --sk-serif:      'Josefin Sans', system-ui, sans-serif;
  --sk-sans:       'DM Sans', system-ui, sans-serif;
  --sk-nav-h:      60px;
  --sk-ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════ */
/* PUSH CONTENT DOWN (kompensera för fixed navbar)             */
/* ═══════════════════════════════════════════════════════════ */
body { padding-top: var(--sk-nav-h); }

/* ═══════════════════════════════════════════════════════════ */
/* NAVBAR                                                       */
/* ═══════════════════════════════════════════════════════════ */
.sk-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: var(--sk-nav-h);
  background: var(--sk-brand);
  border-bottom: none;
  transition: box-shadow 0.3s;
}
.sk-nav.scrolled {
  box-shadow: 0 2px 20px rgba(80,30,28,0.2);
}

/* Logo */
.sk-logo {
  font-family: var(--sk-serif);
  font-weight: 300;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1001;
}
.sk-logo-img {
  height: 2.2em;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Nav links */
.sk-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.sk-nav .sk-links a,
.sk-nav .sk-links button {
  font-family: var(--sk-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82) !important;
  background: none !important;
  background-color: transparent !important;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  text-decoration: none !important;
  transition: color 0.2s;
  position: relative;
  outline: none;
  border-radius: 0;
}
/* Undo the generic link overrides specifically for the CTA button */
.sk-nav .sk-links a.sk-boka {
  background: #fff !important;
  background-color: #fff !important;
  color: var(--sk-brand) !important;
  border: 1px solid transparent !important;
  border-radius: 1px !important;
  padding: 14px 32px !important;
}
.sk-nav .sk-links a::after,
.sk-nav .sk-links #mega-btn::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 1px;
  background: rgba(255,255,255,0.7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.sk-nav .sk-links a:hover,
.sk-nav .sk-links #mega-btn:hover {
  color: #fff !important;
}
.sk-nav .sk-links a.sk-boka:hover {
  background: var(--sk-cream) !important;
  background-color: var(--sk-cream) !important;
  color: var(--sk-brand-dark) !important;
  transform: translateY(-2px);
}
.sk-nav .sk-links a:hover::after,
.sk-nav .sk-links #mega-btn:hover::after,
.sk-nav .sk-links #mega-btn[aria-expanded="true"]::after {
  transform: scaleX(1);
}
#mega-btn[aria-expanded="true"] {
  color: #fff !important;
}

/* CTA button */
.sk-boka {
  font-family: var(--sk-serif) !important;
  font-size: 0.68rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  background: #fff !important;
  color: var(--sk-brand) !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  padding: 12px 32px !important;
  white-space: nowrap !important;
  transition: background 0.25s, color 0.25s, transform 0.2s !important;
}
.sk-boka::after { display: none !important; }
.sk-boka:hover {
  background: var(--sk-cream) !important;
  color: var(--sk-brand-dark) !important;
  transform: translateY(-2px) !important;
}

/* ═══════════════════════════════════════════════════════════ */
/* MEGA MENU                                                    */
/* ═══════════════════════════════════════════════════════════ */
#sk-mega {
  position: fixed;
  top: var(--sk-nav-h);
  left: 0; right: 0;
  bottom: 0;
  z-index: 990;
  background: var(--sk-white);
  box-shadow: none;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: height 0.4s var(--sk-ease),
              opacity 0.22s ease;
}
#sk-mega.open {
  height: 70vh;
  opacity: 1;
  pointer-events: all;
  overflow-y: auto;
}

/* Two-panel layout: treatments | sidebar */
.mega-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 70vh;
}

/* Left: treatment columns */
.mega-treatments {
  padding: 40px 40px 40px 56px;
  border-right: 1px solid var(--sk-rose-line);
  display: flex;
  align-items: stretch;
}
.mega-cols {
  columns: 4;
  column-gap: 36px;
  column-fill: balance;
  flex: 1;
  align-self: stretch;
}
.cat-block {
  break-inside: avoid;
  margin-bottom: 28px;
}
.cat-head {
  font-family: var(--sk-serif);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sk-rose-head);
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--sk-rose-line);
}
.t-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.t-list a {
  display: block;
  font-family: var(--sk-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--sk-text);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.15s, padding-left 0.2s ease;
  line-height: 1.45;
}
.t-list a:hover { color: var(--sk-rose-head); padding-left: 6px; }

/* Right: sidebar */
.mega-sidebar {
  display: flex;
  flex-direction: column;
}
.sidebar-block {
  flex: 1;
  padding: 32px 32px 28px;
  background: var(--sk-brand-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  position: relative;
}
.sidebar-block + .sidebar-block {
  background: var(--sk-brand-mid);
  border-top: 1px solid rgba(255,255,255,0.25);
}
.sidebar-block-title {
  font-family: var(--sk-serif);
  font-size: 22px;
  font-weight: 200;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sk-white);
  line-height: 1.12;
}
.sidebar-block-desc {
  font-family: var(--sk-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--sk-white);
  line-height: 1.5;
  flex: 1;
}
.sidebar-block-link {
  font-family: var(--sk-serif);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sk-white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: gap 0.2s;
}
.sidebar-block-link:hover { gap: 12px; }

/* ═══════════════════════════════════════════════════════════ */
/* OVERLAY                                                      */
/* ═══════════════════════════════════════════════════════════ */
.sk-overlay {
  position: fixed;
  inset: 0;
  z-index: 985;
  pointer-events: none;
  background: rgba(30,10,5,0);
  transition: background 0.3s;
}
.sk-overlay.on {
  background: rgba(30,10,5,0.15);
  pointer-events: all;
}

/* ═══════════════════════════════════════════════════════════ */
/* HAMBURGER                                                    */
/* ═══════════════════════════════════════════════════════════ */
.sk-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  margin-left: auto;
  position: relative;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
}
.sk-hamburger span {
  display: block;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.4s var(--sk-ease), opacity 0.3s, width 0.3s;
  transform-origin: center;
}
.sk-hamburger span:nth-child(1) { width: 28px; }
.sk-hamburger span:nth-child(2) { width: 20px; }
.sk-hamburger span:nth-child(3) { width: 24px; }
.sk-hamburger.open span:nth-child(1) { width: 26px; transform: translateY(6.5px) rotate(45deg); }
.sk-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.sk-hamburger.open span:nth-child(3) { width: 26px; transform: translateY(-6.5px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════ */
/* MOBILE MENU                                                  */
/* ═══════════════════════════════════════════════════════════ */
.sk-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #fff;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.4s var(--sk-ease), transform 0.4s var(--sk-ease);
}
.sk-mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.sk-panels {
  position: absolute;
  inset: 0;
  display: flex;
  width: 200%;
  transition: transform 0.45s var(--sk-ease);
}
.sk-panels.in-sub { transform: translateX(-50%); }

.sk-panel {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: var(--sk-nav-h);
  overflow-y: auto;
}

/* Panel 1 */
.sk-mobile-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 36px;
}
.sk-mobile-item {
  border-bottom: 1px solid var(--sk-rose-line);
  overflow: hidden;
}
.sk-mobile-item:first-child { border-top: 1px solid var(--sk-rose-line); }
.sk-mobile-item-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transform: translateY(36px);
  opacity: 0;
  transition: transform 0.5s var(--sk-ease), opacity 0.5s var(--sk-ease);
}
.sk-mobile-menu.open .sk-mobile-item-btn { transform: translateY(0); opacity: 1; }
.sk-mobile-item:nth-child(1) .sk-mobile-item-btn { transition-delay: 0.07s; }
.sk-mobile-item:nth-child(2) .sk-mobile-item-btn { transition-delay: 0.12s; }
.sk-mobile-item:nth-child(3) .sk-mobile-item-btn { transition-delay: 0.17s; }

.sk-mob-num {
  font-family: var(--sk-serif);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--sk-brand);
  font-weight: 300;
  width: 24px;
  flex-shrink: 0;
}
.sk-mob-label {
  font-family: var(--sk-serif);
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  font-weight: 200;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sk-text);
  line-height: 1;
  transition: color 0.2s;
}
.sk-mobile-item-btn:hover,
.sk-mobile-item-btn:active { background: none; }
.sk-mobile-item-btn:hover .sk-mob-label,
.sk-mobile-item-btn:active .sk-mob-label { color: var(--sk-brand); }
.sk-mob-arrow {
  margin-left: auto;
  font-size: 1rem;
  color: var(--sk-text-dim);
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}
.sk-mobile-item-btn:hover .sk-mob-arrow { transform: translateX(4px); color: var(--sk-brand); }

/* Mobile footer */
.sk-mob-footer {
  padding: 24px 36px 40px;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.5s var(--sk-ease) 0.28s, opacity 0.5s var(--sk-ease) 0.28s;
}
.sk-mobile-menu.open .sk-mob-footer { transform: translateY(0); opacity: 1; }
.sk-mob-cta {
  display: block;
  text-align: center;
  padding: 17px;
  background: var(--sk-brand);
  font-family: var(--sk-serif);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-radius: 1px;
  margin-bottom: 24px;
  transition: background 0.2s;
}
.sk-mob-cta:hover { background: var(--sk-brand-dark); color: #fff; }
.sk-mob-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--sk-rose-line);
}
.sk-mob-phone {
  font-size: 0.75rem;
  color: var(--sk-text-dim);
}
.sk-mob-social { display: flex; gap: 14px; }
.sk-mob-social a {
  font-family: var(--sk-serif);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sk-text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.sk-mob-social a:hover { color: var(--sk-brand); }

/* Panel 2: Sub-menu */
.sk-sub-panel { padding: var(--sk-nav-h) 0 40px; overflow-y: auto; }
.sk-sub-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 36px;
  height: var(--sk-nav-h);
  border-bottom: 1px solid var(--sk-rose-line);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.sk-sub-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sk-serif);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sk-brand);
  background: none;
  border: none;
  cursor: pointer;
  transition: gap 0.2s;
}
.sk-sub-back:hover { gap: 12px; }
.sk-sub-back-arrow { display: inline-block; transform: rotate(180deg); font-size: 0.9rem; }
.sk-sub-title {
  font-family: var(--sk-serif);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sk-text-dim);
  margin-left: auto;
}

.sk-sub-cats { padding: 8px 0 0; }
.sk-sub-cat {
  border-bottom: 1px solid var(--sk-rose-line);
  overflow: hidden;
}
.sk-sub-cat-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 18px 36px;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
}
.sk-sub-cat-toggle:hover { background: none; }
.sk-sub-cat-name {
  font-family: var(--sk-serif);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sk-brand);
  font-weight: 400;
  flex: 1;
}
.sk-sub-cat-count {
  font-size: 0.65rem;
  color: var(--sk-text-dim);
  letter-spacing: 0.05em;
}
.sk-sub-cat-chevron {
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--sk-text-dim);
  border-bottom: 1.5px solid var(--sk-text-dim);
  transform: rotate(45deg);
  transition: transform 0.3s var(--sk-ease), border-color 0.2s;
  flex-shrink: 0;
}
.sk-sub-cat.open .sk-sub-cat-chevron {
  transform: rotate(-135deg);
  border-color: var(--sk-brand);
}
.sk-sub-treatments {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--sk-ease);
}
.sk-sub-cat.open .sk-sub-treatments { max-height: 500px; }
.sk-sub-treatment-list {
  padding: 0 36px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 12px;
}
.sk-sub-treatment-link {
  display: block;
  padding: 8px 0;
  font-family: var(--sk-sans);
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--sk-text-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--sk-rose-line);
  transition: color 0.2s, padding-left 0.2s;
}
.sk-sub-treatment-link:hover { color: var(--sk-brand); padding-left: 4px; }

.sk-sub-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 36px 0;
  padding: 16px;
  border: 1px solid var(--sk-rose-line);
  border-radius: 1px;
  font-family: var(--sk-serif);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sk-text-dim);
  text-decoration: none;
  transition: all 0.25s;
}
.sk-sub-all:hover { border-color: var(--sk-brand); color: var(--sk-brand); gap: 14px; }

/* ═══════════════════════════════════════════════════════════ */
/* RESPONSIVE                                                   */
/* ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sk-nav { padding: 0 24px; }
  .sk-links { display: none; }
  .sk-hamburger { display: flex; }
  .sk-mobile-menu { display: block; }
  #sk-mega { display: none; }
}

@media (max-width: 1200px) and (min-width: 901px) {
  .mega-cols { columns: 3; }
  .mega-layout { grid-template-columns: 1fr 320px; }
  .mega-treatments { padding: 32px 32px 32px 40px; }
}

/* ═══════════════════════════════════════════════════════════ */
/* GLOBAL BUTTON SYSTEM                                         */
/* Two variants: primary (pink bg) and inverted (white bg)      */
/* ═══════════════════════════════════════════════════════════ */

/* ── Shared base ── */
.sk-btn,
.sk-btn--inv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 12px;
  font-family: var(--sk-serif);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 1px;
  border: 6px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}

/* PRIMARY — brand bg, white text */
.sk-btn {
  background: var(--sk-brand);
  color: #fff;
}
.sk-btn:hover {
  background: var(--sk-brand-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* INVERTED — white bg, brand text */
.sk-btn--inv {
  background: #fff;
  color: var(--sk-brand);
}
.sk-btn--inv:hover {
  background: var(--sk-cream);
  color: var(--sk-brand-dark);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════ */
/* LOCATION PICKER MODAL                                        */
/* ═══════════════════════════════════════════════════════════ */
.sk-loc-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sk-loc-modal.open { display: flex; }

.sk-loc-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 24, 16, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sk-loc-modal-panel {
  position: relative;
  background: var(--sk-cream);
  border-radius: 16px;
  padding: 40px 36px 36px;
  max-width: 460px;
  width: 100%;
  z-index: 1;
  box-shadow: 0 24px 60px rgba(42,24,16,0.18);
}
.sk-loc-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sk-text-dim);
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}
.sk-loc-modal-close:hover { color: var(--sk-text); }

.sk-loc-modal-eyebrow {
  font-family: var(--sk-serif);
  font-size: 10.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--sk-brand);
  margin: 0 0 8px;
}
.sk-loc-modal-title {
  font-family: var(--sk-serif);
  font-size: 26px;
  font-weight: 300;
  color: var(--sk-text);
  margin: 0 0 28px;
  line-height: 1.25;
}
.sk-loc-modal-locations { display: grid; gap: 12px; }

.sk-loc-modal-loc {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 20px 22px;
  border: 1.5px solid var(--sk-rose-line);
  border-radius: 10px;
  text-decoration: none !important;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sk-loc-modal-loc:hover {
  border-color: var(--sk-brand);
  box-shadow: 0 4px 16px rgba(139,103,100,0.12);
}
.sk-loc-modal-loc-name {
  font-family: var(--sk-serif);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sk-text);
}
.sk-loc-modal-loc-addr {
  font-family: var(--sk-sans);
  font-size: 12.5px;
  color: var(--sk-text-dim);
  font-weight: 300;
}
.sk-loc-modal-loc-cta {
  font-family: var(--sk-sans);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--sk-brand);
  margin-top: 10px;
}

@media (max-width: 480px) {
  .sk-loc-modal-panel { padding: 32px 22px 28px; }
  .sk-loc-modal-title { font-size: 22px; margin-bottom: 22px; }
}
