/* Public shell ported from the reference Next.js application. */
.site-header {
  background: transparent;
}

.brand-name {
  gap: 0.02rem;
}

[dir="ltr"] .brand-name strong {
  font-family: var(--helima-display);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.11em;
}

.brand-name small {
  margin-top: 0.35rem;
  font-size: 0.5rem;
  letter-spacing: 0.15em;
}

.desktop-nav {
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.7rem);
}

.desktop-nav > a {
  position: relative;
  padding-block: 0.65rem;
  color: var(--helima-muted);
  font-size: 0.76rem;
  font-weight: 550;
}

.desktop-nav > a::after {
  position: absolute;
  inset-inline: 0;
  bottom: 0.2rem;
  height: 1px;
  background: var(--helima-accent);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.desktop-nav > a:hover::after,
.desktop-nav > a.active::after {
  transform: scaleX(1);
}

.header-actions {
  gap: 0.25rem;
}

.locale-button {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--helima-ivory);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 160ms ease, color 160ms ease;
}

.locale-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--helima-accent);
}

.compact-language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.compact-language-switcher > summary {
  cursor: pointer;
  list-style: none;
}

.compact-language-switcher > summary::-webkit-details-marker {
  display: none;
}

.compact-language-switcher > ul {
  position: absolute;
  z-index: 150;
  top: calc(100% + 0.5rem);
  inset-inline-end: 0;
  min-width: 170px;
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(8, 9, 11, 0.98);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
  list-style: none;
}

.compact-language-switcher:not([open]) > ul {
  display: none;
}

.compact-language-switcher a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: var(--helima-ivory);
  font-size: 0.78rem;
  white-space: nowrap;
}

.compact-language-switcher a:hover,
.compact-language-switcher a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--helima-accent);
}

.compact-language-switcher a small {
  color: var(--helima-muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.desktop-only {
  display: none;
}

.bag-button > span {
  position: absolute;
  top: 4px;
  inset-inline-end: 2px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--helima-accent);
  color: var(--helima-obsidian);
  font-size: 0.58rem;
  font-weight: 800;
}

.bag-button > span[hidden] {
  display: none;
}

.menu-toggle {
  display: inline-grid;
}

.mega-menu {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow-y: auto;
  background:
    linear-gradient(125deg, rgba(90, 64, 49, 0.3), transparent 42%),
    #0b0c0e;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2rem);
  transition: opacity 300ms ease, transform 450ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.mega-menu[hidden] {
  display: none;
}

.mega-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-close {
  position: fixed;
  z-index: 2;
  top: 1.2rem;
  inset-inline-end: clamp(1rem, 3vw, 3rem);
  border: 1px solid var(--helima-border);
}

.admin-bar .mega-close {
  top: calc(1.2rem + 32px);
}

.mega-grid {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 3rem;
  padding-block: 7rem 4rem;
}

.mega-grid h2 {
  max-width: 8ch;
  margin: 0;
  font-family: var(--helima-display);
  font-size: clamp(3.2rem, 7vw, 7.5rem);
  font-weight: 400;
  line-height: 0.92;
}

[dir="rtl"] .mega-grid h2 {
  font-family: var(--helima-fa);
  font-weight: 350;
  line-height: 1.2;
}

.mega-links {
  display: grid;
  align-content: center;
}

.mega-links a {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--helima-border);
  font-family: var(--helima-display);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
}

[dir="rtl"] .mega-links a {
  font-family: var(--helima-fa);
}

.mega-links a span {
  color: var(--helima-accent);
  font-family: var(--helima-ui);
  font-size: 0.6rem;
}

.mega-links a svg {
  opacity: 0;
  transform: translate(-0.5rem, 0.5rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.mega-links a:hover svg,
.mega-links a:focus-visible svg {
  opacity: 1;
  transform: translate(0, 0);
}

.mega-feature-grid {
  display: grid;
  gap: 0.75rem;
}

.mega-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1rem;
  padding: 1.2rem;
  border: 1px solid var(--helima-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
}

.mega-feature svg {
  grid-row: span 2;
  color: var(--helima-accent);
}

.mega-feature span {
  color: var(--helima-stone);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mega-feature strong {
  font-family: var(--helima-display);
  font-size: 1.1rem;
  font-weight: 400;
}

.public-footer {
  padding: clamp(4.5rem, 8vw, 8rem) 0 7rem;
  border-top: 1px solid var(--helima-border);
  background: #090a0c;
}

.public-footer .footer-grid {
  display: grid;
  gap: 3rem;
  padding-block: 0;
}

.footer-statement h2 {
  max-width: 10ch;
  margin: 2rem 0 1rem;
  font-family: var(--helima-display);
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1;
}

[dir="rtl"] .footer-statement h2 {
  font-family: var(--helima-fa);
  line-height: 1.3;
}

.footer-statement p {
  color: var(--helima-stone);
}

.newsletter-form {
  max-width: 30rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.newsletter-form input[type="email"] {
  width: 100%;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--helima-ivory);
}

.newsletter-form button[type="submit"] {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--helima-accent);
  color: var(--helima-obsidian);
  box-shadow: none;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.footer-links > div {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--helima-muted);
  font-size: 0.86rem;
}

.public-footer .footer-contact {
  display: grid;
  align-content: end;
  gap: 0.8rem;
  color: var(--helima-stone);
  font-size: 0.8rem;
}

.public-footer .footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.public-footer .footer-bottom {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 5rem;
  padding-block: 1.25rem 0;
  border-top: 1px solid var(--helima-border);
  color: #6d6a64;
  font-size: 0.7rem;
}

.footer-bottom div {
  display: flex;
  gap: 1.25rem;
}

.mobile-bottom-nav {
  position: fixed;
  z-index: 70;
  inset-inline: 0;
  bottom: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0.45rem 0.4rem max(0.45rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--helima-border);
  background: rgba(8, 9, 11, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 -0.6rem 1.8rem rgba(0, 0, 0, 0.22);
}

.mobile-bottom-nav a,
.mobile-bottom-nav button {
  position: relative;
  min-width: 0;
  min-height: 48px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.2rem;
  padding: 0.25rem 0.1rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--helima-stone);
  font: inherit;
  font-size: 0.58rem;
}

.mobile-bottom-nav a:hover,
.mobile-bottom-nav button:hover,
.mobile-bottom-nav a:focus-visible,
.mobile-bottom-nav button:focus-visible {
  background: rgba(104, 166, 132, 0.08);
  color: var(--helima-ivory);
  outline: none;
}

.mobile-bottom-nav a:focus-visible,
.mobile-bottom-nav button:focus-visible {
  box-shadow: inset 0 0 0 2px var(--helima-accent);
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a.is-active {
  background: rgba(104, 166, 132, 0.1);
  color: var(--helima-accent);
}

@media (min-width: 820px) {
  .desktop-only {
    display: inline-grid;
  }

  .public-footer .footer-grid {
    grid-template-columns: 1.5fr 0.8fr 0.7fr;
  }

  .public-footer {
    padding-bottom: 2rem;
  }

  .mobile-bottom-nav {
    display: none;
  }
}

@media (min-width: 1180px) {
  .desktop-nav {
    display: flex;
  }

  .menu-button {
    display: inline-grid;
    margin-inline-start: 0.3rem;
    border: 1px solid var(--helima-border);
  }

  .mega-grid {
    grid-template-columns: 1.2fr 0.8fr 0.65fr;
    align-items: center;
  }
}

@media (max-width: 782px) {
  .admin-bar .mega-close {
    top: calc(1.2rem + 46px);
  }
}

@media (max-width: 560px) {
  .brand-name {
    display: none;
  }

  .header-inner {
    min-height: 68px;
  }

  .header-actions {
    gap: 0;
  }

  .locale-button,
  .icon-button {
    width: 40px;
    height: 40px;
  }
}
