/* =========================================================================
   Menu — taken from the Shughri Creative House header (src/styles.css):
   the glass bar itself grows downward to show the menu (max-height + opacity,
   420ms cubic-bezier(.22,1,.36,1)), links, then glass buttons. Square corners.
   ========================================================================= */
.header .wrap {
  display: flex; flex-direction: column; align-items: stretch; gap: 0; height: auto !important;
  overflow: hidden; position: relative;
}
.header__row { height: 62px; flex: 0 0 auto; display: flex; align-items: center; gap: 32px; }
.header__row .nav { margin-inline-start: auto; }
.header__row .header__actions { display: flex; align-items: center; gap: 20px; }

/* the panel: hidden at max-height 0, opens inside the same glass */
.header__panel {
  max-height: 0; opacity: 0; overflow: hidden; pointer-events: none;
  transition: max-height 420ms cubic-bezier(.22, 1, .36, 1), opacity 280ms ease;
}
.is-menu .header__panel { max-height: 640px; opacity: 1; pointer-events: auto; }
.is-menu .header .wrap { background: rgba(237, 239, 242, .62); box-shadow: 0 14px 38px rgba(5, 5, 5, .1); }

.header__links { display: flex; flex-direction: column; gap: 2px; padding: 10px 0 0; }
.header__links a {
  font-size: clamp(22px, 5.6vw, 28px); line-height: 1.5; font-weight: 400; color: var(--ink);
  font-feature-settings: "salt" 1; transition: color .2s ease;
}
.header__links a:hover, .header__links a:active { color: rgba(0, 0, 0, .48); }

.header__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 0 26px; }
.header__contact { display: flex; flex-wrap: wrap; gap: 10px; }
.glass-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0;
  background: rgba(0, 0, 0, .08); color: var(--ink); font-size: 14px; line-height: 1;
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  transition: background-color 200ms ease;
}
.glass-btn:hover, .glass-btn:active { background: rgba(0, 0, 0, .12); }
.glass-btn .ic { width: 18px; height: 18px; flex: none; }
.glass-btn .latin, .glass-btn .num { direction: ltr; unicode-bidi: isolate; font-size: 13px; }
.header__social { display: flex; gap: 8px; padding-top: 6px; }
.header__social a { color: var(--ink-2); display: inline-flex; transition: color .2s; }
.header__social a:hover { color: var(--ink); }
.header__social .ic { width: 20px; height: 20px; }

/* user: each contact button on its own line, full width */
.header__foot { align-items: stretch; }
.header__contact { flex-direction: column; flex-wrap: nowrap; gap: 8px; }
.header__contact .glass-btn { width: 100%; padding: 14px 16px; font-size: 15px; justify-content: space-between; }
/* user: text on the right, icon at the far left */
.header__contact .glass-btn .ic { order: 2; }

/* user: each social icon in its own glass box, side by side */
.header__social a {
  width: 44px; height: 44px; justify-content: center; align-items: center; color: var(--ink);
  background: rgba(0, 0, 0, .08);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  transition: background-color 200ms ease;
}
.header__social a:hover, .header__social a:active { background: rgba(0, 0, 0, .12); color: var(--ink); }
/* user: the five boxes share the full width of the bar equally */
.header__social { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding-top: 0; }
/* user: quiet hairlines between the menu links */
.header__links { gap: 0; padding-top: 6px; }
.header__links a { padding-block: 10px; border-bottom: 1px solid rgba(0, 0, 0, .08); line-height: 1.4; }
.header__links a:last-child { border-bottom: 0; }
.header.is-dark .header__links a { border-bottom-color: rgba(255, 255, 255, .12); }
/* user: equal vertical spacing between the 3 buttons and the icon row (8px each) */
.header__foot { gap: 8px; }
.header__social a { width: auto; height: 48px; }
.header.is-dark .header__social a { background: rgba(255, 255, 255, .12); color: #fff; }
.header.is-dark .header__social a:hover { background: rgba(255, 255, 255, .2); }

/* over dark sections: same dark glass as Shughri */
.header.is-dark .header__links a { color: #fff; }
.header.is-dark .header__links a:hover { color: rgba(255, 255, 255, .6); }
.header.is-dark .glass-btn { background: rgba(255, 255, 255, .12); color: #fff; }
.header.is-dark .glass-btn:hover { background: rgba(255, 255, 255, .2); }
.header.is-dark .header__social a { color: rgba(255, 255, 255, .8); }
.is-menu .header.is-dark .wrap { background: rgba(16, 16, 20, .55); }

@media (min-width: 1181px) { .header__panel { display: none; } }

/* user: the glass bar fits the page — flush with the top, right and left edges */
.header, .header.is-scrolled { padding-top: 0 !important; }
.header .wrap {
  width: 100% !important; max-width: none !important; margin: 0 !important;
  padding-inline: max(var(--pad), calc((100vw - var(--max)) / 2)) !important;
}
.hero { padding-top: 62px !important; }
@media (max-width: 900px) {
  .header .wrap { padding-inline: var(--pad) calc(var(--pad) - 10px) !important; }
  /* user: logo a little bigger on mobile */
  .header .header__logo img, .header.is-scrolled .header__logo img { height: 26px !important; }
  .hero { padding-top: 54px !important; }
}
@media (max-width: 900px) {
  .header__row { height: 54px; gap: 16px; }
}
