/* ============================================================
   Studio Marcela — HEADER (28.9.2026 redesign)
   One menu list, two layouts:
     ≥ 1200 px one 72 px row: wordmark · grouped links (hover/click dropdowns) ·
               HR|EN · profile · cart · gold booking button
     < 1200 px 60 px bar (wordmark · cart · hamburger) + right-side drawer with
               accordions, profile + language in the drawer foot, booking button pinned.
   Tokens come from dark-theme.css :root (--gold, --gold-soft, --gold-faint, --serif, --sans).
   ============================================================ */

.smh { position: relative; z-index: 100; background: #0a0a0a; border-bottom: 1px solid var(--gold-faint); }
.smh *, .smh *::before, .smh *::after { box-sizing: border-box; }
.smh a { text-decoration: none; }
.smh a:focus-visible, .smh button:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

.smh-bar { display: flex; align-items: center; height: 72px; padding: 0 32px; max-width: 1600px; margin: 0 auto; gap: 28px; }
.smh-brand { font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); white-space: nowrap; line-height: 1; padding-top: 2px; }
.smh-brand:hover { color: #fff; }

/* ---- links ---- */
.smh-nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.smh-list { display: flex; list-style: none; margin: 0; padding: 0; }
.smh-item { position: relative; display: flex; align-items: center; }
.smh-link {
  display: inline-flex; align-items: center; height: 72px; padding: 0 13px; position: relative;
  font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78); white-space: nowrap; transition: color .2s;
}
.smh-link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 23px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.smh-link:hover, .smh-item.is-open > .smh-link { color: #fff; }
.smh-item.is-active > .smh-link { color: var(--gold); }
.smh-link:hover::after, .smh-item.is-open > .smh-link::after, .smh-item.is-active > .smh-link::after { transform: scaleX(1); }
.has-sub > .smh-link { padding-right: 4px; }
.has-sub > .smh-link::after { right: 4px; }
.smh-chev { display: inline-flex; align-items: center; justify-content: center; height: 72px; width: 22px; padding: 0 12px 0 2px; margin: 0; background: none; border: 0; color: rgba(255, 255, 255, 0.5); cursor: pointer; transition: color .2s, transform .25s; }
.smh-chev svg { transition: transform .25s; }
.smh-item.is-open > .smh-chev { color: var(--gold); }
.smh-item.is-open > .smh-chev svg { transform: rotate(180deg); }
.smh-badge { display: inline-block; margin-left: 7px; padding: 2px 5px 1px; border: 1px solid var(--gold); color: var(--gold); font-family: var(--sans); font-weight: 600; font-size: 8px; letter-spacing: 0.14em; line-height: 1.2; text-transform: uppercase; vertical-align: 1px; }
.smh-item.is-active .smh-badge, .smh-link:hover .smh-badge { background: var(--gold); color: #0a0a0a; }

/* ---- dropdown panels (desktop) ---- */
.smh-panel {
  position: absolute; top: 100%; left: 0; min-width: 260px; margin-top: -1px; padding: 12px 0 14px;
  background: #0f0f0f; border: 1px solid var(--gold-faint); border-top: 1px solid var(--gold);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.smh-panel.is-flip { left: auto; right: 0; }
.smh-item.is-open > .smh-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.smh-panel a { display: block; padding: 8px 28px; font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.25; color: rgba(255, 255, 255, 0.86); white-space: nowrap; transition: color .15s, padding-left .15s; }
.smh-panel a:hover { color: var(--gold); padding-left: 32px; }
.smh-panel a.is-active { color: var(--gold); }

/* ---- utilities ---- */
.smh-tools { display: flex; align-items: center; gap: 20px; margin-left: auto; flex: none; }
.smh-lang { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-weight: 500; font-size: 10.5px; letter-spacing: 0.16em; }
.smh-lang a { color: rgba(255, 255, 255, 0.45); padding: 6px 0; transition: color .2s; }
.smh-lang a:hover { color: #fff; }
.smh-lang a.is-on { color: var(--gold); }
.smh-lang span { color: rgba(201, 168, 76, 0.35); font-weight: 300; }
.smh-icon { display: inline-flex; align-items: center; gap: 8px; position: relative; height: 40px; color: rgba(255, 255, 255, 0.78); font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; transition: color .2s; }
.smh-icon:hover { color: var(--gold); }
.smh-icon svg { flex: none; }
.smh-cart-n { position: absolute; top: 3px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--gold); color: #0a0a0a; font-family: var(--sans); font-weight: 600; font-size: 9.5px; line-height: 16px; text-align: center; letter-spacing: 0; }
.smh-cart-n[hidden] { display: none; }
.smh-cart { padding-right: 6px; }
.smh-cta {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 22px;
  background: var(--gold); border: 1px solid var(--gold); color: #0a0a0a;
  font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.smh-cta:hover, .smh-cta:focus-visible { background: #fff; border-color: #fff; color: #0a0a0a; }

/* drawer-only chrome hidden on desktop */
.smh-burger, .smh-nav-head, .smh-nav-foot, .smh-nav-cta, .smh-backdrop { display: none; }
.smh-nav-scroll { display: contents; }

/* ---- narrower desktops: two tighter tiers (7 links + tools must fit 1200), drawer below 1200 ---- */
@media (min-width: 1200px) and (max-width: 1499px) {
  .smh-bar { padding: 0 26px; gap: 18px; }
  .smh-brand { font-size: 19px; letter-spacing: 0.26em; }
  .smh-link { padding: 0 11px; letter-spacing: 0.12em; }
  .smh-link::after { left: 11px; right: 11px; }
  .has-sub > .smh-link { padding-right: 3px; }
  .smh-tools { gap: 16px; }
  .smh-profile span { display: none; }
}
@media (min-width: 1200px) and (max-width: 1365px) {
  .smh-bar { padding: 0 18px; gap: 12px; }
  .smh-brand { font-size: 17px; letter-spacing: 0.18em; }
  .smh-link { padding: 0 8px; letter-spacing: 0.08em; font-size: 10.5px; }
  .smh-link::after { left: 8px; right: 8px; }
  .has-sub > .smh-link { padding-right: 2px; }
  .smh-chev { width: 18px; padding: 0 8px 0 2px; }
  .smh-tools { gap: 12px; }
  .smh-cta { padding: 0 14px; letter-spacing: 0.14em; }
}

/* ============================================================
   < 1200 px: bar + right-side drawer
   ============================================================ */
@media (max-width: 1199px) {
  .smh-bar { height: 60px; padding: 0 8px 0 16px; gap: 8px; }
  .smh-brand { font-size: 18px; letter-spacing: 0.24em; padding-top: 1px; }
  .smh-desk { display: none !important; }
  .smh-tools { gap: 2px; }
  .smh-cart { width: 44px; height: 44px; justify-content: center; padding: 0; }
  .smh-cart-n { top: 5px; right: 3px; }
  .smh-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px; padding: 0 11px; margin: 0; background: none; border: 0; cursor: pointer; }
  .smh-burger span { display: block; height: 1px; background: #fff; transition: transform .25s, opacity .2s; }
  .smh.is-open .smh-burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .smh.is-open .smh-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .smh-backdrop { display: block; position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.62); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .smh.is-open .smh-backdrop { opacity: 1; pointer-events: auto; }

  .smh-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1001; width: min(86vw, 380px);
    display: flex; flex-direction: column; justify-content: flex-start;
    background: #0a0a0a; border-left: 1px solid var(--gold-faint); box-shadow: -30px 0 60px rgba(0, 0, 0, 0.5);
    transform: translateX(102%); visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s;
  }
  .smh.is-open .smh-nav { transform: none; visibility: visible; transition-delay: 0s; }
  .smh-nav-head { display: flex; align-items: center; justify-content: space-between; flex: none; height: 60px; padding: 0 10px 0 24px; border-bottom: 1px solid var(--gold-faint); }
  .smh-kicker { font-family: var(--sans); font-weight: 500; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
  .smh-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; color: rgba(255, 255, 255, 0.75); cursor: pointer; }
  .smh-close:hover { color: #fff; }
  .smh-nav-scroll { display: block; flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 0 12px; }

  .smh-list { display: block; }
  .smh-item { display: grid; grid-template-columns: 1fr 56px; align-items: stretch; border-bottom: 1px solid rgba(201, 168, 76, 0.10); }
  .smh-item:not(.has-sub) { grid-template-columns: 1fr; }
  .smh-link { height: auto; padding: 15px 24px; font-family: var(--serif); font-weight: 300; font-size: 25px; letter-spacing: 0.01em; text-transform: none; color: #fff; white-space: normal; line-height: 1.1; }
  .has-sub > .smh-link { padding-right: 8px; }
  .smh-link::after { display: none; }
  .smh-item.is-active > .smh-link { color: var(--gold); }
  .smh-chev { height: auto; width: 56px; padding: 0; color: var(--gold); }
  .smh-chev svg { width: 14px; height: 10px; }
  .smh-badge { font-size: 9px; padding: 3px 6px 2px; margin-left: 10px; vertical-align: 5px; }

  .smh-panel { grid-column: 1 / -1; position: static; min-width: 0; margin: 0; padding: 0 24px 14px; background: transparent; border: 0; opacity: 1; visibility: visible; transform: none; transition: none; display: none; }
  .smh-item.is-open > .smh-panel { display: block; }
  .smh-panel a { padding: 9px 0 9px 18px; border-left: 1px solid var(--gold-faint); font-family: var(--sans); font-weight: 400; font-size: 13.5px; letter-spacing: 0.02em; line-height: 1.4; color: rgba(255, 255, 255, 0.72); white-space: normal; }
  .smh-panel a:hover, .smh-panel a.is-active { color: var(--gold); border-left-color: var(--gold); padding-left: 18px; }

  .smh-nav-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px 6px; }
  .smh-foot-link { display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); padding: 8px 0; }
  .smh-foot-link:hover { color: var(--gold); }
  .smh-nav-foot .smh-lang { font-size: 11px; }
  .smh-nav-cta { display: flex; flex: none; height: 52px; margin: 8px 24px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .smh *, .smh *::before, .smh *::after { transition: none !important; }
}
html.smh-lock, html.smh-lock body { overflow: hidden; }
@media print { .smh { display: none !important; } }
