/* Hayakel Baalbek — editorial.css (palette already declared in style.css) */

/* ==========================================================================
   Astra parent neutralization — Astra's main.min.css aggressively styles
   body/a/li with high specificity. We outrank it by scoping every rule
   under body.hb-body and using !important on the bleed-prone properties.
   ========================================================================== */

/* Sticky-hero prerequisite: Astra sets body{overflow-x:hidden}, which makes
   body the scroll container and disables position:sticky. We can't use
   `visible` because then any stray off-screen element (e.g. the form
   honeypot at `left:-9999px` flipped on RTL) triggers a horizontal
   scrollbar. `overflow-x: clip` was designed for this exact case —
   it clips overflow WITHOUT creating a scroll container, so sticky
   still works. Both axes use clip on x, visible on y. */
html, body.hb-body { overflow-x: clip !important; overflow-y: visible !important; }

body.hb-body {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  background: var(--sand) !important;
  color: var(--ink) !important;
  font-family: "Source Serif 4", Georgia, serif !important;
  font-size: 19px !important;
  line-height: 1.65 !important;
  -webkit-font-smoothing: antialiased;
}
:lang(ar) body.hb-body { font-family: "Tajawal", "Segoe UI", sans-serif !important; }

/* Astra wraps content in #page/.site/.site-content/.ast-container/.entry-content.
   Our front-page.php skips these, but page templates may inherit them. */
body.hb-body #page, body.hb-body .site, body.hb-body #content, body.hb-body .site-content,
body.hb-body .ast-container, body.hb-body .entry-content, body.hb-body main.hb-home,
body.hb-body main.hb-page {
  max-width: none !important; padding: 0 !important; margin: 0 !important;
  background: transparent !important; overflow: visible !important;
}

/* Hide Astra's own header/footer/scroll-top in case the builder injects them. */
body.hb-body .site-header, body.hb-body .ast-primary-header-bar, body.hb-body #masthead,
body.hb-body .site-footer, body.hb-body #colophon, body.hb-body #ast-scroll-top,
body.hb-body .ast-mobile-header-wrap, body.hb-body .main-header-bar-wrap {
  display: none !important;
}

body.hb-body .ast-no-sidebar .entry-content > * { max-width: none !important; }

/* Links — defeat Astra's --ast-global-color cyan/blue defaults. Skip
   buttons (which set their own color) and the brand wordmark. */
body.hb-body a:not(.button):not(.hb-brand) {
  color: var(--burgundy) !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
body.hb-body a:not(.button):not(.hb-brand):hover,
body.hb-body a:not(.button):not(.hb-brand):focus { color: var(--ink) !important; }
body.hb-body .hb-brand { color: var(--ink) !important; text-decoration: none !important; }

/* Buttons keep their own palette regardless of link rules. */
body.hb-body .button { color: var(--paper) !important; }
/* Hover/focus/active all force paper text — outranks Astra's link
   recolor + the burgundy default below, so the CTA stays readable in
   every interaction state (item #2). */
body.hb-body .button:hover,
body.hb-body .button:focus,
body.hb-body .button:focus-visible,
body.hb-body .button:active { color: var(--paper) !important; background: var(--ink-deep) !important; border-color: var(--ink-deep) !important; }
body.hb-body .button.ghost { color: var(--ink) !important; }
body.hb-body .button.ghost:hover,
body.hb-body .button.ghost:focus,
body.hb-body .button.ghost:focus-visible,
body.hb-body .button.ghost:active { color: var(--paper) !important; background: var(--ink) !important; border-color: var(--ink) !important; }
body.hb-body .hb-booking .button.ghost { color: var(--paper) !important; }
body.hb-body .hb-booking .button.ghost:hover,
body.hb-body .hb-booking .button.ghost:focus,
body.hb-body .hb-booking .button.ghost:active { color: var(--ink-deep) !important; background: var(--paper) !important; border-color: var(--paper) !important; }

/* Header nav links should be ink, not burgundy. (:not()s match the
   burgundy rule's specificity so this needs to come after.) */
body.hb-body .hb-nav__list a:not(.button) { color: var(--ink) !important; }
body.hb-body .hb-nav__list a:not(.button):hover,
body.hb-body .hb-nav__list a:not(.button):focus { color: var(--burgundy) !important; }

/* Footer links should be paper (footer has dark bg). The :not(.button)
   here matches the burgundy rule's specificity, and lives later in the
   stylesheet, so it wins. */
body.hb-body .hb-footer a:not(.button) { color: var(--paper) !important; }
body.hb-body .hb-footer a:not(.button):hover,
body.hb-body .hb-footer a:not(.button):focus { color: var(--gold) !important; }

/* Reset Astra's menu-item padding so our flex gap controls spacing. */
body.hb-body .hb-nav__list li.menu-item,
body.hb-body .hb-footer__menu li.menu-item { padding: 0 !important; border: 0 !important; }
body.hb-body .hb-nav__list li.menu-item:hover { background: transparent !important; }

html { background: var(--sand); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

:lang(ar) body { font-family: "Tajawal", "Segoe UI", sans-serif; }

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 .4em;
  line-height: 1.1;
}
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 {
  font-family: "El Messiri", "Segoe UI", sans-serif;
}

h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.6vw, 36px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); }

p { margin: 0 0 1em; }

a { color: var(--burgundy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.eyebrow {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.dek { font-style: italic; color: var(--ink-muted); font-size: 19px; }

.container { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
@media (min-width: 768px) { .container { padding-inline: 64px; } }

.section { padding-block: clamp(48px, 8vw, 120px); }
.rule { height: 1px; background: var(--rule); border: 0; margin-block: 32px; }

.button {
  display: inline-block;
  padding: 12px 22px;
  background: var(--burgundy);
  color: var(--paper);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--burgundy);
  transition: background .2s, color .2s;
}
/* Hover/focus/active all map to the same dark/cream pair so the text
   stays readable in every interaction state (item #2 + follow-up: the
   header "Book your wedding" CTA was inverting on tap). */
.button:hover,
.button:focus,
.button:focus-visible,
.button:active { background: var(--ink-deep); color: var(--paper); border-color: var(--ink-deep); }

.button.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.ghost:hover,
.button.ghost:focus,
.button.ghost:focus-visible,
.button.ghost:active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

figure { margin: 0; }
figcaption {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-style: italic;
  color: var(--ink-muted);
  padding-top: 8px;
  border-top: 1px solid var(--burgundy);
  margin-top: 12px;
}

body.hb-no-title .entry-header { display: none; }

.flow > * + * { margin-block-start: 1em; }

/* === Header === */
.hb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sand);
  border-bottom: 1px solid var(--rule);
  transition: padding .2s ease;
}
.hb-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 18px;
}
.hb-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .14em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hb-brand__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
}
.hb-brand__sep { color: var(--burgundy); margin-inline: .35em; }
.hb-nav { flex: 1; }
.hb-nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 22px; flex-wrap: wrap;
  font-family: "Inter", sans-serif; font-size: 13px;
}
.hb-nav__list a {
  color: var(--ink); text-decoration: none;
  letter-spacing: .04em;
}
.hb-nav__list a:hover { color: var(--burgundy); }

/* Submenu (one level deep) — parent renders as a non-link label
   (<span class="menu-link--parent">), gets a chevron, dropdown reveals
   on hover/focus-within. Mobile breakpoint (≤880px) below collapses
   to inline stacked list. */
.hb-nav__list .menu-item--has-children { position: relative; }
.hb-nav__list .menu-link--parent {
  display: inline-block;
  color: var(--ink);
  letter-spacing: .04em;
  cursor: default;
  user-select: none;
}
.hb-nav__list .menu-link--parent:hover,
.hb-nav__list .menu-link--parent:focus { color: var(--burgundy); }
.hb-nav__list .menu-link--parent::after {
  content: " ▾";
  font-size: .75em;
  margin-inline-start: 4px;
  opacity: .55;
}
.hb-nav__list .submenu {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  min-width: 180px;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 20px rgba(14, 9, 7, .08);
  display: none;
  z-index: 60;
}
.hb-nav__list .menu-item--has-children:hover > .submenu,
.hb-nav__list .menu-item--has-children:focus-within > .submenu {
  display: block;
}
.hb-nav__list .submenu li.menu-item { border: 0; padding: 0; }
.hb-nav__list .submenu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  white-space: nowrap;
}
.hb-header__right { display: flex; align-items: center; gap: 18px; }
.hb-lang { font-family: "Inter", sans-serif; font-size: 12px; color: var(--ink-muted); }
.hb-lang ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; }
.hb-lang li.current-lang a, .hb-lang li.current-lang { color: var(--ink); font-weight: 600; }
.hb-cta { font-size: 11px; padding: 9px 16px; }

/* Mobile nav: <details> in header.php expands a stacked menu */
.hb-nav__toggle { display: none; }
@media (max-width: 880px) {
  .hb-nav { order: 99; flex-basis: 100%; }
  .hb-nav__toggle {
    display: inline-block;
    background: transparent; border: 1px solid var(--rule);
    color: var(--ink); padding: 6px 12px;
    font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; cursor: pointer;
  }
  .hb-nav[hidden] { display: none; }
  .hb-nav__list { flex-direction: column; gap: 0; padding-block: 12px; }
  .hb-nav__list li.menu-item { border-top: 1px solid var(--rule); }
  .hb-nav__list li.menu-item a { display: block; padding: 14px 0; font-size: 15px; }
  /* Mobile: collapse the dropdown to inline indented list — always visible. */
  .hb-nav__list .submenu {
    position: static;
    display: block;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding-block: 0;
    padding-inline-start: 16px;
    min-width: 0;
  }
  .hb-nav__list .submenu li.menu-item { border-top: 1px dashed var(--rule); }
  .hb-nav__list .submenu a { padding-block: 10px; font-size: 14px; }
  .hb-nav__list .menu-link--parent {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    cursor: default;
  }
  .hb-nav__list .menu-link--parent::after { content: ""; }
  .hb-header__inner { flex-wrap: wrap; gap: 12px; }
  .hb-cta { margin-inline-start: auto; }
}

/* === Footer === */
.hb-footer { background: var(--ink-deep); color: var(--paper); margin-block-start: 80px; }
.hb-footer a { color: var(--paper); text-decoration: none; }
.hb-footer a:hover { color: var(--gold); }
.hb-footer__zones {
  display: grid; gap: 32px;
  grid-template-columns: 1.2fr 1fr 1fr;
  padding-block: 56px;
}
.hb-footer__heading {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 12px;
}
.hb-footer__menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-family: "Inter", sans-serif; font-size: 14px; }
.hb-footer__tag { font-style: italic; color: #cdbfa5; max-width: 28ch; }

.hb-footer__social { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }
.hb-footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(251,247,238,.18);
  color: var(--paper);
  transition: background .2s, border-color .2s, color .2s;
}
.hb-footer__social a:hover, .hb-footer__social a:focus-visible {
  background: var(--gold); border-color: var(--gold); color: var(--ink-deep) !important;
}
.hb-footer__social svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.hb-footer__strip {
  border-top: 1px solid #1d130b;
  padding-block: 18px;
  font-family: "Inter", sans-serif; font-size: 12px;
  color: #a89376;
}
.hb-footer__strip .container { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hb-footer__strip .dot { color: #5b4a35; }
@media (max-width: 768px) { .hb-footer__zones { grid-template-columns: 1fr; } }

/* === Generic prose page === */
.hb-prose { max-width: 720px; margin-inline: auto; }
.hb-prose p { font-size: 19px; line-height: 1.7; }
.hb-prose h2 { margin-top: 1.6em; }

/* === Home: below-fold === */
.hb-origins__grid { display: grid; gap: 32px; grid-template-columns: 1fr 1.4fr; align-items: end; }
.hb-origins__lede p { font-size: 19px; }
@media (max-width: 768px) { .hb-origins__grid { grid-template-columns: 1fr; } }

.hb-styles__grid {
  list-style: none; padding: 0; margin: 32px 0 24px;
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
.hb-styles__grid li {
  background: var(--paper); border: 1px solid var(--rule);
  padding: 24px; min-height: 160px;
}
.hb-styles__grid h3 { font-size: 22px; margin-bottom: .35em; }
.hb-styles__grid p { font-size: 15px; color: var(--ink-muted); margin: 0; line-height: 1.55; }
@media (max-width: 900px) { .hb-styles__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hb-styles__grid { grid-template-columns: 1fr; } }

.hb-stage__grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); margin: 32px 0 24px; }
.hb-stage__img { aspect-ratio: 4/3; border-radius: 4px; }
.hb-stage__grid h3 { margin: 16px 0 4px; font-size: 22px; }
.hb-stage__grid p { color: var(--ink-muted); }
@media (max-width: 768px) { .hb-stage__grid { grid-template-columns: 1fr; } }

.hb-press__quote {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic; font-size: clamp(24px, 3vw, 36px);
  color: var(--ink);
  border-inline-start: 4px solid var(--burgundy);
  margin: 0; padding-inline-start: 24px; max-width: 800px;
}
.hb-press__quote cite { display: block; font-size: 14px; color: var(--ink-muted); margin-top: 8px; font-style: normal; }
.hb-press__marks { font-family: "Inter", sans-serif; font-size: 12px; letter-spacing: .14em; color: var(--ink-muted); margin-top: 24px; }

.hb-booking { background: var(--ink-deep); color: var(--paper); }
.hb-booking h2 { color: var(--paper); }
.hb-booking .dek { color: rgba(251,247,238,.75); }
.hb-booking .button.ghost { border-color: var(--paper); color: var(--paper); }
.hb-booking .button.ghost:hover { background: var(--paper); color: var(--ink-deep); }

/* === Learn Dabke === */
.hb-learn__hero { padding-block: clamp(56px, 10vw, 120px); }
.hb-learn__hero h1 { font-size: clamp(48px, 7vw, 88px); }
.hb-learn__article { padding-block: 24px 96px; }
.hb-learn__article .hb-prose h2 { margin-top: 1.8em; }
.hb-learn__styles { display: grid; gap: 16px; grid-template-columns: repeat(2,1fr); margin: 24px 0; }
.style-card { background: var(--paper); border: 1px solid var(--rule); padding: 20px; }
.style-card .meta { font-family: "Inter", sans-serif; font-size: 12px; color: var(--burgundy); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.style-card p { margin: 0; }
@media (max-width: 700px) { .hb-learn__styles { grid-template-columns: 1fr; } }
.hb-learn__pull {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic; font-size: clamp(24px, 3vw, 32px);
  margin: 32px 0;
  padding-inline-start: 24px;
  border-inline-start: 4px solid var(--burgundy);
}
.hb-learn__steps { padding-inline-start: 0; list-style: none; counter-reset: step; }
.hb-learn__steps li { padding: 14px 0; border-bottom: 1px solid var(--rule); }

/* === International === */
.hb-intl__hero { padding-block: clamp(56px, 10vw, 120px); }

/* Counts/map block — production-ready stat row + stylised tour map.
   Stat row: 3 columns desktop, 1 column ≤560px. Numbers in Playfair
   burgundy, label below in Inter ink-muted, separator rule between them
   on hover for an editorial touch. */
.hb-intl__counts { background: var(--paper); }
.hb-intl__counts-dek { max-width: 60ch; margin-bottom: 28px; }
.hb-intl__counts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-block: 24px 40px;
  margin-bottom: 16px;
  border-block: 1px solid var(--rule);
}
.hb-intl__counts-grid > div {
  text-align: center;
  padding-block: 8px;
}
.hb-intl__counts-grid > div + div {
  border-inline-start: 1px solid var(--rule);
}
.hb-intl__big {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  color: var(--burgundy);
  margin-bottom: 8px;
}
.hb-intl__counts-grid > div > span:last-child {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hb-intl__counts svg,
.hb-intl__counts-map img {
  width: 100%;
  height: auto;
  max-width: 960px;
  margin: 32px auto 0;
  display: block;
}
@media (max-width: 768px) {
  .hb-intl__counts-grid { grid-template-columns: 1fr; gap: 20px; }
  .hb-intl__counts-grid > div + div { border-inline-start: 0; border-top: 1px solid var(--rule); padding-top: 22px; }
}

.hb-feat { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-block: 32px; }
.hb-feat--reverse { direction: rtl; }
.hb-feat--reverse > * { direction: ltr; }
:lang(ar) .hb-feat--reverse > * { direction: rtl; }
.hb-feat__img { aspect-ratio: 4/3; border-radius: 4px; }
.hb-feat__copy h3 { font-size: clamp(24px, 3vw, 32px); }
.hb-feat__copy .meta { font-family: "Inter", sans-serif; font-size: 12px; color: var(--burgundy); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 800px) { .hb-feat, .hb-feat--reverse { grid-template-columns: 1fr; direction: inherit; } }

.hb-intl__press-list { list-style: none; padding: 0; margin: 0; }
.hb-intl__press-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); font-family: "Inter", sans-serif; }

/* === Contact === */
.hb-contact__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.hb-contact__side h3 { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); margin-top: 24px; font-family: "Inter", sans-serif; }
.hb-contact__side h3:first-child { margin-top: 0; }
@media (max-width: 800px) { .hb-contact__grid { grid-template-columns: 1fr; } }

/* === Social Media === */
.hb-social__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.hb-social__grid li { background: var(--paper); border: 1px solid var(--rule); padding: 22px; }
.hb-social__grid h3 { font-size: 22px; margin-bottom: 4px; }
.hb-social__grid .meta { font-family: "Inter", sans-serif; font-size: 12px; color: var(--burgundy); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.hb-social__grid .button { font-size: 11px; padding: 8px 14px; }
@media (max-width: 900px) { .hb-social__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hb-social__grid { grid-template-columns: 1fr; } }

.hb-social__reels { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 18px; }
.hb-social__reel { aspect-ratio: 9/16; border-radius: 4px; }
/* Reels with admin-set link URLs are wrapped in an <a>. The wrap fills
   the grid cell; the inner reel <div> still owns the aspect ratio and
   the cover-photo. Subtle scale-on-hover signals it's clickable. */
.hb-social__reel-wrap {
  display: block;
  cursor: pointer;
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hb-social__reel-wrap:hover,
.hb-social__reel-wrap:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(14, 9, 7, .18);
  outline: none;
}
@media (max-width: 800px) { .hb-social__reels { grid-template-columns: repeat(2,1fr); } }

/* === Content slot pattern (spec §8) ====================================
   A slot is a position where real content should live. Until populated,
   it renders an intentional fallback (no broken-image icons, no labels). */
.hb-slot {
  position: relative;
  display: block;
  margin: 0;
  background: var(--sand);
  border-radius: 4px;
  overflow: hidden;
}
.hb-slot > img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.hb-slot--tile     { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #d8c8a8, #b89c6f); }
.hb-slot--gallery  { aspect-ratio: 1 / 1;  background: linear-gradient(135deg, #e3d9c6, #cdbfa5); }
.hb-slot--portrait { aspect-ratio: 4 / 5;  background: linear-gradient(160deg, #cdbfa5, #a89376); }
/* --hero: fallback for future hero photos; current hero uses .chapter__bg--* CSS classes (spec §8.4). */
.hb-slot--hero     { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #3a1414, #5a1a18); }

/* Stage section tile chrome (replaces inline-style placehold.co blocks) */
.hb-stage__tile { display: block; text-decoration: none; color: inherit; position: relative; }
.hb-stage__tile .hb-slot { aspect-ratio: 4 / 3; }
.hb-stage__tile-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 12px;
  background: linear-gradient(180deg, transparent 60%, rgba(14,9,7,.45) 100%);
  pointer-events: none;
}
.hb-stage__tile-overlay svg { width: 22px; height: 22px; fill: var(--paper); }

/* === Header brand wordmark composition (E17) ============================
   Wrap the wordmark spans in a single .hb-brand__text node so the parent
   flex gap only spaces logo↔text, not each individual word/separator. */
.hb-brand__text { white-space: nowrap; display: inline-block; }

/* === Footer redesign (E5+E6+E12+E13+E15+E17, map relocated in E20) ======
   Three-zone grid: brand, quick links, contact.
   Map moved to /contact/#location; address in footer is now a link to it. */
.hb-footer__zones {
  grid-template-columns: 1.4fr 1fr 1.6fr;
}
@media (max-width: 1024px) {
  .hb-footer__zones { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hb-footer__zones { grid-template-columns: 1fr; }
}

/* Brand zone: logo to the left, name + tagline stacked to the right. */
.hb-footer__brand-row {
  display: flex; align-items: center; gap: 16px;
}
.hb-footer__logo {
  width: 72px; height: 72px;
  object-fit: contain;
  flex: 0 0 auto;
}
.hb-footer__heading--brand {
  margin: 0 0 4px;
  color: var(--paper);
  font-size: 18px;
  letter-spacing: .12em;
}
.hb-footer__brand .hb-footer__tag { margin: 0; max-width: none; }

/* Bulleted contact list — emoji icons stand in for full SVG glyph set
   (light footprint; brand-color borders come in E2). */
.hb-footer__contact {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: grid; gap: 10px;
  font-family: "Inter", sans-serif; font-size: 14px;
  line-height: 1.5;
}
.hb-footer__contact li { display: flex; align-items: center; gap: 10px; }
/* SVG icons replaced the emoji set in E20 so we control their color
   on the dark footer background (emoji glyphs ignore CSS color). */
.hb-footer__icon {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  fill: var(--gold);
  opacity: .9;
}
.hb-footer__sub { color: #cdbfa5; font-size: 12px; font-style: italic; }

/* === E20: Contact-page map block ========================================
   Larger embed than the old footer iframe; anchored at #location so the
   footer "address" link lands here. */
.hb-contact__location { background: var(--paper); }
.hb-contact__location h2 { max-width: 24ch; }
.hb-contact__location .dek { max-width: 60ch; margin-bottom: 1.4em; }
.hb-contact__map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.hb-contact__map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 700px) {
  .hb-contact__map-wrap { aspect-ratio: 4 / 5; }
}

/* EN | AR side-by-side (E5). pll_the_languages emits raw <li>s; we
   ensure they render in a single horizontal row with a separator. */
.hb-footer__lang-list {
  list-style: none; padding: 0; margin: 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.hb-footer__lang-list li { display: inline; }
.hb-footer__lang-list li + li::before {
  content: "|";
  color: #5b4a35;
  margin-inline-end: 6px;
}
.hb-footer__lang-list li.current-lang a,
.hb-footer__lang-list li.current-lang { color: var(--gold); font-weight: 600; }

/* === E2: brand-color borders on social/in-page action buttons ===========
   Each platform's official primary color is applied to the icon's border
   + hover-fill so users get a brand-consistent visual cue. The default
   neutral border (E6) still applies until hover; the brand color drives
   the hover/focus state. Gradient platforms (Instagram) use a fallback
   solid that's the most-recognizable hue. */
:root {
  --c-instagram: #E4405F;
  --c-facebook:  #1877F2;
  --c-tiktok:    #000000;
  --c-youtube:   #FF0000;
  --c-x:         #000000;
  --c-whatsapp:  #25D366;
}

/* Per-platform border color in resting state — picks up the brand hue
   without drowning the muted footer aesthetic. Keyed by data-platform
   so the academy IG icon (with its own descriptive aria-label) gets the
   identical Instagram styling as the main IG icon. */
.hb-footer__social a[data-platform="instagram"] { border-color: var(--c-instagram); }
.hb-footer__social a[data-platform="facebook"]  { border-color: var(--c-facebook); }
.hb-footer__social a[data-platform="tiktok"]    { border-color: rgba(251,247,238,.45); }
.hb-footer__social a[data-platform="youtube"]   { border-color: var(--c-youtube); }
.hb-footer__social a[data-platform="x"]         { border-color: rgba(251,247,238,.45); }

/* Hover/focus fills with the brand color (overrides the gold default
   from the footer base rule). Foreground stays paper for legibility. */
.hb-footer__social a[data-platform="instagram"]:hover,
.hb-footer__social a[data-platform="instagram"]:focus-visible {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: var(--c-instagram); color: #fff !important;
}
.hb-footer__social a[data-platform="facebook"]:hover,
.hb-footer__social a[data-platform="facebook"]:focus-visible {
  background: var(--c-facebook); border-color: var(--c-facebook); color: #fff !important;
}
.hb-footer__social a[data-platform="tiktok"]:hover,
.hb-footer__social a[data-platform="tiktok"]:focus-visible {
  background: var(--c-tiktok); border-color: var(--c-tiktok); color: #fff !important;
}
.hb-footer__social a[data-platform="youtube"]:hover,
.hb-footer__social a[data-platform="youtube"]:focus-visible {
  background: var(--c-youtube); border-color: var(--c-youtube); color: #fff !important;
}
.hb-footer__social a[data-platform="x"]:hover,
.hb-footer__social a[data-platform="x"]:focus-visible {
  background: var(--c-x); border-color: var(--c-x); color: #fff !important;
}

/* Academy row — sits below the main socials with a label inline. The
   IG icon inherits the exact same border, hover gradient, and size as
   the main Instagram icon via the [data-platform="instagram"] selector
   above — no overrides here. */
.hb-footer__social--academy {
  margin-top: 12px;
  align-items: center;
  gap: 14px;
}
.hb-footer__social-label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #cdbfa5;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* In-page action buttons (WA / mailto / hb-cta) keep the default
   button styling. Earlier E2 added brand-color borders + hover fills
   on these but the user found it noisy in-page; reverted. The brand-
   color treatment is retained ONLY on the footer social-media icons
   (rules above). */

/* === E4: GDPR cookie consent banner =====================================
   Bottom-fixed; entrance handled by cookie-banner.js toggling .is-open. */
.hb-consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--ink-deep);
  color: var(--paper);
  border-top: 1px solid rgba(251,247,238,.12);
  transform: translateY(100%);
  transition: transform .25s ease-out;
  font-family: "Inter", sans-serif;
}
.hb-consent.is-open { transform: translateY(0); }
.hb-consent__inner {
  display: flex; align-items: center; gap: 24px;
  padding-block: 16px;
  flex-wrap: wrap;
}
.hb-consent__copy { flex: 1 1 320px; min-width: 0; }
.hb-consent__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px; letter-spacing: .08em;
  margin: 0 0 4px;
  color: var(--gold);
}
.hb-consent__body {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(251,247,238,.85);
}
.hb-consent__body a {
  color: var(--paper) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hb-consent__body a:hover { color: var(--gold) !important; }
.hb-consent__actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  flex: 0 0 auto;
}
/* Scoped under body.hb-body so the chained class specificity beats the
   global `body.hb-body .button.ghost { color: var(--ink) !important }`
   rule — without this, the Reject button's INK text is invisible on
   the dark consent banner. */
body.hb-body .hb-consent__actions .button {
  font-size: 11px;
  padding: 9px 14px;
  background: var(--burgundy) !important;
  border-color: var(--burgundy) !important;
  color: var(--paper) !important;
}
body.hb-body .hb-consent__actions .button:hover,
body.hb-body .hb-consent__actions .button:focus-visible {
  background: transparent !important;
  color: var(--paper) !important;
}
body.hb-body .hb-consent__actions .button.ghost {
  background: transparent !important;
  border-color: rgba(251,247,238,.45) !important;
  color: var(--paper) !important;
}
body.hb-body .hb-consent__actions .button.ghost:hover,
body.hb-body .hb-consent__actions .button.ghost:focus-visible {
  background: var(--paper) !important;
  border-color: var(--paper) !important;
  color: var(--ink-deep) !important;
}
@media (max-width: 600px) {
  .hb-consent__inner { padding-block: 14px; gap: 12px; }
  .hb-consent__actions { width: 100%; }
  .hb-consent__actions .button { flex: 1 1 auto; text-align: center; }
}

/* === E19: keep footer contact items on a single line per item ===========
   Each <li> is `display: flex` with `align-items: baseline`. Long emails
   were wrapping to a second line because the <a> child was too wide for
   the column at desktop widths. Force the link to truncate gracefully
   and let the row stay 1-up. On narrow screens the address line may
   still wrap (it's the longest), which is acceptable. */
.hb-footer__contact li {
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}
.hb-footer__contact li > a,
.hb-footer__contact li > span:not(.hb-footer__icon) {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
@media (max-width: 600px) {
  .hb-footer__contact li:first-child { white-space: normal; }
}

/* === Weddings page (Phase 2 Task 1) =====================================
   A standalone page (template: page-weddings.php) with a deep-aubergine
   hero echoing the home wedding chapter (.chapter__bg--wedding) and a
   3-up packages grid below. RTL safe — no logical text-align overrides;
   icons use &rarr;/&larr; chosen at the localized partial level. */
.hb-weddings__hero {
  background:
    radial-gradient(ellipse at 25% 25%, rgba(245,215,126,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 75%, rgba(138,58,31,.50) 0%, transparent 60%),
    linear-gradient(135deg, #2a1430 0%, #6a2952 45%, #421833 100%);
  color: var(--paper);
  padding-block: clamp(72px, 12vw, 160px);
}
.hb-weddings__hero .eyebrow { color: var(--gold); }
.hb-weddings__hero h1 {
  color: var(--paper);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.05;
  margin-block: 12px 18px;
  max-width: 14ch;
}
.hb-weddings__hero .dek {
  color: rgba(251,247,238,.82);
  max-width: 56ch;
}

.hb-weddings__packages { background: var(--sand); }
.hb-weddings__pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hb-weddings__pkg-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.hb-weddings__pkg-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  line-height: 1.15;
  color: var(--ink-deep);
  margin-block: 0 10px;
}
.hb-weddings__pkg-dek {
  color: var(--ink-muted, var(--ink));
  font-size: 17px;
  margin-block: 0 24px;
  flex: 1 1 auto;
}
.hb-weddings__pkg-cta { margin-block: auto 0; }
.hb-weddings__pkg-cta .button { background: var(--burgundy); }

@media (max-width: 768px) {
  .hb-weddings__pkg-grid { grid-template-columns: 1fr; gap: 18px; }
  .hb-weddings__pkg-card { padding: 22px; }
}

/* === Weddings page (Phase 2 Task 2) — gallery + lightbox =================
   12-slot square grid with graceful fallback for empty cells. Real photos
   open in a native <dialog> lightbox. Empty cells cycle 4 sand-tinted
   gradient palettes via :nth-child so the grid doesn't read as
   "missing photos" — it reads as a textured backdrop. */
.hb-weddings__gallery { background: var(--paper); }
.hb-weddings__gallery .eyebrow { color: var(--burgundy); }
.hb-weddings__gallery h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  color: var(--ink-deep);
  margin-block: 8px 28px;
  max-width: 22ch;
}
.hb-weddings__gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.hb-weddings__gallery .hb-slot--gallery {
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  display: block;
  position: relative;
}
.hb-weddings__gallery button.hb-slot--gallery {
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform .25s ease;
}
.hb-weddings__gallery button.hb-slot--gallery:hover,
.hb-weddings__gallery button.hb-slot--gallery:focus-visible {
  transform: scale(1.02);
  outline: none;
}
.hb-weddings__gallery button.hb-slot--gallery:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}
.hb-weddings__gallery .hb-slot--gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hb-weddings__gallery .hb-slot--empty {
  background: linear-gradient(135deg, #efe7d6 0%, #cdbfa5 100%);
}
.hb-weddings__gallery .hb-slot--empty:nth-child(4n+2) {
  background: linear-gradient(135deg, #e3d9c6 0%, #a89376 100%);
}
.hb-weddings__gallery .hb-slot--empty:nth-child(4n+3) {
  background: linear-gradient(135deg, #f5ecd9 0%, #b9a585 100%);
}
.hb-weddings__gallery .hb-slot--empty:nth-child(4n+4) {
  background: linear-gradient(135deg, #d6c8ad 0%, #8a7654 100%);
}

@media (max-width: 900px) {
  .hb-weddings__gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
@media (max-width: 600px) {
  .hb-weddings__gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .hb-weddings__gallery-grid { grid-template-columns: 1fr; }
}

/* Lightbox — native <dialog>. Closed state is hidden by the UA. */
dialog.hb-lightbox {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
}
dialog.hb-lightbox::backdrop {
  background: rgba(14, 9, 7, .85);
}
.hb-lightbox__img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.hb-lightbox__close {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: #1a0e0a;
  font-size: 28px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}
.hb-lightbox__close:hover,
.hb-lightbox__close:focus-visible {
  background: #fff;
  outline: none;
}

/* === Phase 2 §6.4.4: Wedding testimonials grid =========================
   Auto-stretches: 1 quote → centered single column, 2 → 2-col, 3+ →
   2-col on desktop / 1-col on mobile. Italic Playfair pull-quote with
   burgundy accent rule. */
.hb-weddings__testimonial-grid {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.hb-weddings__testimonial {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-inline-start: 4px solid var(--burgundy);
  padding: 24px 28px;
}
.hb-weddings__testimonial blockquote {
  margin: 0;
}
.hb-weddings__testimonial blockquote p {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 16px;
}
:lang(ar) .hb-weddings__testimonial blockquote p {
  font-family: "El Messiri", "Segoe UI", sans-serif;
  /* El Messiri italics fall back to regular weight — fine. */
}
.hb-weddings__testimonial blockquote cite {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-style: normal;
  color: var(--ink-muted);
}
@media (max-width: 480px) {
  .hb-weddings__testimonial { padding: 20px; }
}

/* ===== Phase 2 §6.4.5 — Booking form ===== */
.hb-weddings__form .container { max-width: 820px; }
.hb-weddings__form .dek { margin-bottom: 28px; }
.hb-weddings__form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: var(--paper);
  padding: 28px;
  border: 1px solid var(--rule);
}
@media (min-width: 768px) {
  .hb-weddings__form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 28px;
    padding: 36px;
  }
  .hb-weddings__form-row--full { grid-column: 1 / -1; }
}
.hb-weddings__form-row { display: flex; flex-direction: column; gap: 6px; }
.hb-weddings__form-row label {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: uppercase;
}
.hb-weddings__form-row input[type="text"],
.hb-weddings__form-row input[type="tel"],
.hb-weddings__form-row input[type="date"],
.hb-weddings__form-row select,
.hb-weddings__form-row textarea {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 11px 13px;
  border-radius: 0;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hb-weddings__form-row textarea { resize: vertical; min-height: 96px; }
.hb-weddings__form-row input:focus,
.hb-weddings__form-row select:focus,
.hb-weddings__form-row textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 2px rgba(128, 26, 38, 0.15);
}
.hb-weddings__form-error {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-style: italic;
  color: var(--burgundy);
}
.hb-weddings__form-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.hb-weddings__form-note {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
}
:lang(ar) .hb-weddings__form-row label,
:lang(ar) .hb-weddings__form-row input,
:lang(ar) .hb-weddings__form-row select,
:lang(ar) .hb-weddings__form-row textarea {
  font-family: "El Messiri", "Segoe UI", sans-serif;
}

/* === CF7 contact form (item #1) ==========================================
   CF7 inherits whatever color cascades from the surrounding section. On
   the contact page the hero / wrapper makes labels render light on
   light. Force ink + bold so they read on cream/sand backgrounds. */
body.hb-body .wpcf7-form label,
body.hb-body .wpcf7-form .wpcf7-form-control-wrap > label,
body.hb-body .wpcf7-form p,
body.hb-body .wpcf7-form p > label {
  color: var(--ink) !important;
  font-weight: 600;
}
body.hb-body .wpcf7-form input[type="text"],
body.hb-body .wpcf7-form input[type="email"],
body.hb-body .wpcf7-form input[type="tel"],
body.hb-body .wpcf7-form input[type="url"],
body.hb-body .wpcf7-form input[type="number"],
body.hb-body .wpcf7-form input[type="date"],
body.hb-body .wpcf7-form select,
body.hb-body .wpcf7-form textarea {
  color: var(--ink) !important;
  background: var(--paper) !important;
  border: 1px solid var(--rule);
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  font-size: 15px;
}
body.hb-body .wpcf7-form input:focus,
body.hb-body .wpcf7-form select:focus,
body.hb-body .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 2px rgba(128, 26, 38, 0.15);
}

/* === Our Academy page (item #9) =========================================
   Replaces .hb-learn__* — the page is now framed as the troupe's training
   academy with a registration CTA, admin-managed gallery (5), and
   admin-managed YouTube videos (3). */
.hb-academy__hero {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(245,215,126,.18) 0%, transparent 55%),
    linear-gradient(135deg, var(--ink-deep) 0%, #2b1414 60%, var(--burgundy) 100%);
  color: var(--paper);
  padding-block: clamp(56px, 9vw, 120px);
}
.hb-academy__hero .eyebrow { color: var(--gold); }
.hb-academy__hero h1 {
  color: var(--paper);
  font-size: clamp(40px, 6.5vw, 72px);
  margin-block: 12px 16px;
  max-width: 16ch;
}
.hb-academy__hero .dek { color: rgba(251,247,238,.82); max-width: 56ch; margin-bottom: 24px; }
.hb-academy__hero-cta { margin: 0; }

.hb-academy__why-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.hb-academy__why-list li {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-inline-start: 4px solid var(--burgundy);
  padding: 22px 24px;
  font-size: 16px;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .hb-academy__why-list { grid-template-columns: 1fr; }
}

.hb-academy-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.hb-academy-gallery__slot {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #efe7d6 0%, #cdbfa5 100%);
  border-radius: 4px;
  overflow: hidden;
}
.hb-academy-gallery__slot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
@media (max-width: 900px) {
  .hb-academy-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .hb-academy-gallery { grid-template-columns: repeat(2, 1fr); }
}

.hb-academy-videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.hb-academy-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0e0907;
  border-radius: 4px;
  overflow: hidden;
}
.hb-academy-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.hb-academy-video--empty {
  background: linear-gradient(135deg, #efe7d6 0%, #cdbfa5 100%);
}
@media (max-width: 900px) {
  .hb-academy-videos { grid-template-columns: 1fr; }
}

.hb-academy__register { background: var(--sand); }
.hb-academy__register h2 { font-size: clamp(28px, 4vw, 40px); }

.hb-academy__follow {
  margin-top: 24px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--ink-muted);
}
.hb-academy__ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 20px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  letter-spacing: .04em;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hb-academy__ig svg { width: 14px; height: 14px; fill: currentColor; }
.hb-academy__ig:hover,
.hb-academy__ig:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.3);
}

/* === Home: Academy feature (item #7) ====================================
   Sits between .hb-styles and .hb-stage. 50/50 split on desktop, stacks
   on mobile. Image left (LTR) / right (RTL) — direction inherits. */
.hb-home-academy { background: var(--paper); }
.hb-home-academy__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hb-home-academy__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(14, 9, 7, 0.18);
}
.hb-home-academy__placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--ink-deep) 0%, var(--burgundy) 100%);
  border-radius: 6px;
}
.hb-home-academy__copy h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin-block: 8px 14px;
  max-width: 18ch;
}
.hb-home-academy__copy p {
  font-size: 17px;
  line-height: 1.55;
  max-width: 56ch;
}
@media (max-width: 768px) {
  .hb-home-academy__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* === About brands ====================================================== */
/* === BiDi: phone numbers in RTL contexts ===============================
   Phone numbers are LTR by nature (+961 ...) but when they appear in an
   Arabic paragraph the browser's BiDi algorithm reorders the segments
   (the country code can drift to the wrong end). Force any inline <bdi>
   block to render strictly LTR — Unicode treats <bdi> as an isolation
   boundary, so neighbouring Arabic text can't reorder the digits. */
bdi[dir="ltr"] {
  unicode-bidi: isolate;
  direction: ltr;
}

/* === About: Founders / Management / Brands ============================
   All three use flex-wrap with FIXED-width cards so a single visible
   image renders the same size as multiple — no auto-fit stretching.
   Cards center-align as a group. */
.hb-about__founders { background: var(--paper); }
.hb-about__founders-grid {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
}
.hb-about__founder { width: 260px; flex: 0 0 260px; }
.hb-about__founder figure { margin: 0; }
.hb-about__founder img {
  width: 260px; height: 325px; /* 4:5 fixed: width × width × 1.25 */
  object-fit: cover;
  border-radius: 4px;
  display: block;
  filter: grayscale(8%);
}
.hb-about__founder figcaption {
  margin-top: 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  letter-spacing: .04em;
  color: var(--ink);
  border-top: 1px solid var(--burgundy);
  padding-top: 8px;
}

/* Our Management — fixed 200×250 portrait cards between Founders and
   Brands. Caption under each photo is also the alt attribute. */
.hb-about__management { background: var(--paper); }
.hb-about__management-grid {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
}
.hb-about__management-card { width: 200px; flex: 0 0 200px; }
.hb-about__management-card figure { margin: 0; }
.hb-about__management-card img {
  width: 200px; height: 250px; /* fixed 4:5 */
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.hb-about__management-card figcaption {
  margin-top: 10px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
  text-align: center;
}
@media (max-width: 600px) {
  .hb-about__management-card { width: 160px; flex-basis: 160px; }
  .hb-about__management-card img { width: 160px; height: 200px; }
}

.hb-about__brands { background: var(--sand); }
.hb-about__brands-grid {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
}
.hb-about__brand {
  width: 220px; height: 124px; /* fixed 16:9 */
  flex: 0 0 220px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 24px;
  box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
}
.hb-about__brand img {
  max-width: 100%; max-height: 100%;
  height: auto; width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .85;
  transition: filter .2s ease, opacity .2s ease;
}
.hb-about__brand:hover img { filter: grayscale(0%); opacity: 1; }
@media (max-width: 600px) {
  .hb-about__brand { width: 160px; height: 90px; flex-basis: 160px; padding: 14px; }
}
