/* Shared NawaSpace shell: header, navigation drawer and footer. */
:root {
  --shell-navy: #0a2c5f;
  --shell-deep: #071d40;
  --shell-teal: #009688;
  --shell-amber: #f5ad42;
  --shell-border: rgba(11, 35, 73, .12);
  --shell-header-height: 88px;
  --shell-shadow: 0 18px 54px rgba(7, 29, 64, .16);
  --shell-ease: cubic-bezier(.2, .8, .2, 1);
  --shell-theme-primary: #0a2c5f;
  --shell-theme-deep: #071d40;
  --shell-theme-accent: #009688;
  --shell-theme-soft: #eef6f7;
  --shell-theme-header: linear-gradient(135deg, rgba(10,44,95,.97), rgba(0,150,136,.94));
  --shell-theme-header-scrolled: linear-gradient(135deg, rgba(7,29,64,.99), rgba(0,128,120,.97));
  --shell-theme-drawer: radial-gradient(circle at 85% 0%, rgba(0,150,136,.15), transparent 34%), #f9fbfd;
}

[data-site-page='acoustic'] {
  --shell-theme-primary: #081b3f;
  --shell-theme-deep: #060f26;
  --shell-theme-accent: #00a896;
  --shell-theme-soft: #e1f7f4;
  --shell-theme-header: linear-gradient(135deg, rgba(8,27,63,.98), rgba(0,120,107,.95));
  --shell-theme-header-scrolled: linear-gradient(135deg, rgba(6,15,38,.99), rgba(0,120,107,.97));
  --shell-theme-drawer: radial-gradient(circle at 85% 0%, rgba(0,168,150,.16), transparent 38%), #f8f9fb;
}

[data-site-page='furniture'] {
  --shell-theme-primary: #4a3c2f;
  --shell-theme-deep: #2b241d;
  --shell-theme-accent: #b8905a;
  --shell-theme-soft: #f3eadc;
  --shell-theme-header: linear-gradient(135deg, rgba(63,53,43,.98), rgba(126,96,64,.96) 58%, rgba(184,144,90,.94));
  --shell-theme-header-scrolled: linear-gradient(135deg, rgba(48,40,33,.99), rgba(105,80,55,.98) 62%, rgba(157,119,73,.97));
  --shell-theme-drawer: radial-gradient(circle at 82% 0%, rgba(184,144,90,.28), transparent 38%), linear-gradient(155deg, #fbf7f0, #f2e7d7);
}

html { overflow-x: clip; }

.site-skip-link {
  position: fixed; inset-block-start: 12px; inset-inline-start: 16px; z-index: 10050;
  transform: translateY(-150%); padding: 11px 18px; border-radius: 10px;
  background: #fff; color: var(--shell-deep); font-weight: 800; box-shadow: var(--shell-shadow);
  transition: transform 160ms var(--shell-ease);
}
.site-skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; inset-block-start: 0; z-index: 9000; width: 100%; min-height: var(--shell-header-height);
  display: block; color: #fff;
  background: var(--shell-theme-header);
  border-block-end: 1px solid rgba(255,255,255,.13); box-shadow: 0 8px 30px rgba(7,29,64,.16);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: min-height 220ms var(--shell-ease), box-shadow 220ms var(--shell-ease), background 220ms var(--shell-ease);
}
.site-header.is-scrolled, .site-header.scrolled {
  min-height: 74px;
  background: var(--shell-theme-header-scrolled);
  box-shadow: 0 10px 38px rgba(7,29,64,.24);
}
.site-header__inner {
  width: min(100% - 32px, 1400px); min-height: inherit; margin-inline: auto;
  display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); padding: 0;
}
.site-header__brand { display: inline-flex; align-items: center; flex: 0 0 auto; border-radius: 12px; }
.site-header__brand img {
  width: auto; height: 58px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,.2));
  transition: height 220ms var(--shell-ease), opacity 220ms var(--shell-ease);
}
.site-header.is-scrolled .site-header__brand img, .site-header.scrolled .site-header__brand img { height: 49px; opacity: .96; }
.site-header__nav { min-width: 0; margin-inline: auto; }
.site-header__nav-list {
  display: flex; align-items: center; justify-content: center; gap: clamp(6px, 1vw, 14px);
  margin: 0; padding: 0; list-style: none;
}
.site-header__nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px;
  position: relative; border-radius: 0; color: rgba(255,255,255,.84); font-family: 'Cairo', sans-serif;
  font-size: clamp(.84rem, .77rem + .15vw, .98rem); font-weight: 700; line-height: 1.2;
  white-space: nowrap; text-decoration: none;
  transition: color 180ms var(--shell-ease), background 180ms var(--shell-ease), transform 180ms var(--shell-ease);
}
[lang='en'] .site-header__nav-link { font-family: 'Poppins', sans-serif; }
.site-header__nav-link::after { content: ''; position: absolute; inset-inline-start: 12px; inset-block-end: 3px; width: 0; height: 2px; border-radius: 999px; background: #fff; transition: width 180ms var(--shell-ease); }
.site-header__nav-link:hover { color: #fff; background: transparent; transform: translateY(-1px); }
.site-header__nav-link:hover::after, .site-header__nav-link.active::after, .site-header__nav-link[aria-current]::after { width: calc(100% - 24px); }
.site-header__nav-link[aria-current='page'] {
  color: #fff; background: transparent; box-shadow: none;
}
.site-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex: 0 0 auto; }
.site-header .language-switcher {
  display: inline-flex; align-items: center; gap: 3px; padding: 3px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08);
}
.site-header .language-switcher button {
  min-height: 36px; padding: 6px 11px; border: 0; border-radius: 999px; background: transparent;
  color: rgba(255,255,255,.74); font-size: .76rem; font-weight: 800; cursor: pointer;
  transition: background 180ms var(--shell-ease), color 180ms var(--shell-ease), box-shadow 180ms var(--shell-ease);
}
.site-header .language-switcher button.active, .site-header .language-switcher button[aria-pressed='true'] {
  background: #fff; color: var(--shell-deep); box-shadow: 0 4px 14px rgba(0,0,0,.13);
}
.site-menu-toggle, .site-sidebar__close {
  width: 46px; height: 46px; flex: 0 0 46px; display: inline-grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.1);
  color: #fff; cursor: pointer;
  transition: background 180ms var(--shell-ease), transform 180ms var(--shell-ease), border-color 180ms var(--shell-ease);
}
.site-menu-toggle:hover, .site-sidebar__close:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }
.site-menu-toggle__lines, .site-menu-toggle__lines::before, .site-menu-toggle__lines::after {
  width: 19px; height: 2px; display: block; border-radius: 999px; background: currentColor;
}
.site-menu-toggle__lines { position: relative; }
.site-menu-toggle__lines::before, .site-menu-toggle__lines::after { content: ''; position: absolute; inset-inline-start: 0; }
.site-menu-toggle__lines::before { transform: translateY(-6px); }
.site-menu-toggle__lines::after { transform: translateY(6px); }

.site-sidebar-overlay {
  position: fixed; inset: 0; z-index: 9300; visibility: hidden; opacity: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: rgba(2,12,31,.58); backdrop-filter: blur(3px); cursor: default;
  transition: opacity 220ms var(--shell-ease), visibility 220ms var(--shell-ease);
}
.site-sidebar-overlay.is-visible { visibility: visible; opacity: 1; }
.site-sidebar {
  position: fixed; inset-block: 0; z-index: 9400; width: min(92vw, 410px); min-height: 100dvh;
  display: flex; flex-direction: column; overflow-y: auto; color: #182230;
  background: var(--shell-theme-drawer);
  box-shadow: 0 0 70px rgba(2,12,31,.32); visibility: hidden;
  transition: transform 300ms var(--shell-ease), visibility 300ms var(--shell-ease);
}
[dir='rtl'] .site-sidebar { inset-inline-end: 0; transform: translateX(105%); }
[dir='ltr'] .site-sidebar { inset-inline-start: 0; transform: translateX(-105%); }
.site-sidebar.is-open { visibility: visible; transform: translateX(0); }
.site-sidebar__top {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 24px 24px 18px; border-block-end: 1px solid var(--shell-border);
}
.site-sidebar__brand { display: inline-flex; align-items: center; gap: 11px; color: var(--shell-theme-deep); font-weight: 900; text-decoration: none; }
.site-sidebar__brand img { width: auto; height: 54px; object-fit: contain; }
.site-sidebar__brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(135deg, var(--shell-theme-primary), var(--shell-theme-accent)); color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--shell-theme-accent) 24%, transparent);
}
.site-sidebar__close { color: var(--shell-theme-deep); background: var(--shell-theme-soft); border-color: var(--shell-border); }
.site-sidebar__intro { padding: 24px 24px 15px; }
.site-sidebar__eyebrow { display: block; margin-block-end: 6px; color: var(--shell-theme-accent); font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.site-sidebar__intro p { margin: 0; color: #667085; font-size: .94rem; line-height: 1.75; }
.site-sidebar__nav { padding: 6px 16px 24px; }
.site-sidebar__list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.site-sidebar__link {
  display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 12px;
  min-height: 60px; padding: 8px 12px; border: 1px solid transparent; border-radius: 16px;
  color: #344054; text-decoration: none;
  transition: color 180ms var(--shell-ease), background 180ms var(--shell-ease), border-color 180ms var(--shell-ease), transform 180ms var(--shell-ease);
}
.site-sidebar__link:hover { color: var(--shell-theme-deep); background: rgba(255,255,255,.72); border-color: var(--shell-border); transform: translateX(-2px); }
[dir='ltr'] .site-sidebar__link:hover { transform: translateX(2px); }
.site-sidebar__link[aria-current] {
  color: var(--shell-theme-deep); background: color-mix(in srgb, var(--shell-theme-accent) 14%, rgba(255,255,255,.72));
  border-color: color-mix(in srgb, var(--shell-theme-accent) 30%, transparent); box-shadow: inset -3px 0 0 var(--shell-theme-accent);
}
[dir='ltr'] .site-sidebar__link[aria-current] { box-shadow: inset 3px 0 0 var(--shell-theme-accent); }
.site-sidebar__icon {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px;
  background: var(--shell-theme-soft); color: var(--shell-theme-primary);
}
.site-sidebar__link[aria-current] .site-sidebar__icon { color: #fff; background: linear-gradient(135deg, var(--shell-theme-primary), var(--shell-theme-accent)); }
.site-sidebar__label { min-width: 0; display: grid; gap: 1px; font-weight: 800; line-height: 1.35; }
.site-sidebar__label small { color: #8a94a3; font-size: .7rem; font-weight: 600; }
.site-sidebar__current { padding: 4px 7px; border-radius: 999px; color: #08796f; background: #dff7f2; font-size: .64rem; font-weight: 900; white-space: nowrap; }
.site-sidebar__footer { margin-block-start: auto; padding: 20px 24px 26px; border-block-start: 1px solid var(--shell-border); }
.site-sidebar__cta {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 11px 18px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, var(--shell-theme-primary), var(--shell-theme-accent)); font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--shell-theme-accent) 28%, transparent);
}
.site-sidebar-open { overflow: hidden !important; }

.site-footer { position: relative; overflow: hidden; padding: 72px 0 0; color: rgba(255,255,255,.72); background: #061832; }
.site-footer::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 80% 0%, rgba(0,150,136,.15), transparent 30%); }
.site-footer__inner { position: relative; width: min(100% - 40px, 1280px); margin-inline: auto; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0,1.35fr) repeat(2,minmax(150px,.7fr)); gap: clamp(30px,5vw,78px); padding-block-end: 52px; }
.site-footer__brand img { width: auto; height: 54px; margin-block-end: 18px; }
.site-footer__brand p { max-width: 440px; margin: 0; line-height: 1.9; }
.site-footer__heading { margin: 0 0 18px; color: #fff; font-size: 1rem; }
.site-footer__links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer__links a { color: rgba(255,255,255,.7); text-decoration: none; transition: color 180ms var(--shell-ease); }
.site-footer__links a:hover { color: var(--shell-amber); }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; border-block-start: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.site-footer__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-footer__legal a:hover { color: var(--shell-amber); }
.site-footer__social { display: flex; gap: 9px; }
.site-footer__social a {
  width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px; color: #fff; text-decoration: none;
  transition: background 180ms var(--shell-ease), border-color 180ms var(--shell-ease), transform 180ms var(--shell-ease);
}
.site-footer__social a:hover { background: var(--shell-teal); border-color: var(--shell-teal); transform: translateY(-2px); }
.site-header :focus-visible, .site-sidebar :focus-visible, .site-footer :focus-visible { outline: 3px solid var(--shell-amber); outline-offset: 3px; }

@media (max-width: 1120px) { .site-header__nav { display: none; } .site-header__actions { margin-inline-start: auto; } }
@media (max-width: 640px) {
  :root { --shell-header-height: 72px; }
  .site-header__inner { width: min(100% - 20px, 1400px); gap: 8px; }
  .site-header__brand img, .site-header.is-scrolled .site-header__brand img, .site-header.scrolled .site-header__brand img { height: 44px; }
  .site-header .language-switcher button { min-height: 34px; padding-inline: 8px; font-size: .68rem; }
  .site-menu-toggle { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 390px) {
  .site-header .language-switcher button:first-child { display: none; }
  .site-header .language-switcher { padding: 2px; }
  .site-header .language-switcher button { min-width: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header *, .site-sidebar *, .site-sidebar-overlay, .site-footer * {
    scroll-behavior: auto !important; transition-duration: .01ms !important;
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
  }
}
