/* «أصيل» on phones (mobile review, 16 Nov 2026). Mobile first: everything here is for narrow or short screens;
   the desktop layout in style.css is untouched. Green and gold, Cairo only. */

/* ---- the header: one line (logo, name, menu button), held at the top while the page scrolls, smaller once scrolled */
@media (max-width: 860px), (max-height: 500px) {
  .wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 45; }
  .burhan-asil-header { transition: padding .2s ease; }
  .burhan-asil-header .burhan-logo { transition: height .2s ease; }
  .is-stuck .burhan-asil-header { padding-block: 6px !important; box-shadow: 0 6px 18px rgba(10, 18, 13, .25); }
  .is-stuck .burhan-asil-header .burhan-logo--compact-dark { height: 42px; }
}
@media (max-width: 600px), (max-width: 940px) and (max-height: 500px) {
  .burhan-asil-header { flex-wrap: nowrap !important; align-items: center; gap: 12px; padding: 10px 16px !important; }
  .burhan-asil-header .burhan-asil-brand { flex: 1 1 auto; min-width: 0; }
  .burhan-asil-header > .wp-block-navigation { flex: none; }
  /* the header's own buttons (booking, client portal) move into the menu on phones */
  .burhan-asil-header .burhan-asil-actions { display: none; }
  /* the menu button: 44px, framed in gold */
  .burhan-asil-header .wp-block-navigation__responsive-container-open { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    padding: 0; border: 1px solid rgba(185, 165, 72, .55); border-radius: 4px; background: transparent; color: #fff; }
  .burhan-asil-header .wp-block-navigation__responsive-container-open svg { width: 26px; height: 26px; }
  .burhan-asil-header .wp-block-navigation__responsive-container-open:focus-visible { outline: 2px solid var(--asil-gold); outline-offset: 2px; }
}
/* landscape phones: the menu button in place of the links row, so the header stays one short line */
@media (min-width: 601px) and (max-width: 940px) and (max-height: 500px) {
  .burhan-asil-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .burhan-asil-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
  .burhan-asil-header .wp-block-site-title, .burhan-asil-header .wp-block-site-title a { font-size: .95rem; white-space: normal; line-height: 1.35; }
  .burhan-asil-header .burhan-logo--compact-dark { height: 46px; }
}

/* ---- the menu: a panel dropping from under the header (not a full page), the rest of the page dimmed */
@media (max-width: 600px), (max-width: 940px) and (max-height: 500px) {
  .burhan-asil-header .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed; inset: var(--asil-head-h, 74px) 0 auto 0; height: auto; max-height: calc(100dvh - var(--asil-head-h, 74px));
    padding: 0 !important; overflow-y: auto; overscroll-behavior: contain;
    background: var(--asil-night) !important; border-top: 1px solid rgba(185, 165, 72, .35); border-bottom: 3px solid var(--asil-gold);
    box-shadow: 0 0 0 100vmax rgba(10, 18, 13, .55); animation: asil-drop .2s ease-out; }
  .burhan-asil-header .is-menu-open .wp-block-navigation__responsive-close,
  .burhan-asil-header .is-menu-open .wp-block-navigation__responsive-dialog { max-width: none; margin: 0; padding: 0; }
  .burhan-asil-header .is-menu-open { --navigation-layout-justification-setting: stretch; --navigation-layout-justify: flex-start; --navigation-layout-align: stretch; }
  .burhan-asil-header .is-menu-open .wp-block-navigation__responsive-container-content { padding: 6px 0 18px !important; align-items: stretch !important; gap: 0 !important; }
  .burhan-asil-header .is-menu-open .wp-block-navigation__container { align-items: stretch !important; gap: 0 !important; width: 100%; }
  .burhan-asil-header .is-menu-open .wp-block-navigation-item { width: 100%; align-items: stretch !important; }
  .burhan-asil-header .is-menu-open .wp-block-navigation-item__content { display: flex !important; align-items: center; justify-content: space-between; min-height: 54px; box-sizing: border-box;
    padding: 0 22px !important; font-size: 1.08rem; font-weight: 600; color: #f1ecdc; border-bottom: 1px solid rgba(185, 165, 72, .16) !important; }
  .burhan-asil-header .is-menu-open .wp-block-navigation-item__content::after { content: "‹"; color: var(--asil-gold); font-size: 1.3rem; line-height: 1; }
  .burhan-asil-header .is-menu-open .wp-block-navigation-item__content[aria-current="page"] { color: var(--asil-gold); }
  .burhan-asil-header .is-menu-open .wp-block-navigation-item__content:active { background: rgba(185, 165, 72, .1); }
  /* the close button sits exactly where the menu button is (set by mobile.js), so the same spot opens and closes */
  .burhan-asil-header .is-menu-open .wp-block-navigation__responsive-container-close {
    position: fixed; top: var(--asil-burger-top, 15px); left: var(--asil-burger-left, 16px); right: auto; width: 44px; height: 44px; z-index: 2;
    display: flex; align-items: center; justify-content: center; border: 1px solid var(--asil-gold); border-radius: 4px; background: var(--asil-night); color: var(--asil-gold); }
  .burhan-asil-header .is-menu-open .wp-block-navigation__responsive-container-close svg { width: 24px; height: 24px; fill: currentColor; }
  /* the booking and WhatsApp buttons at the foot of the menu (added by mobile.js from the page's own links) */
    font-weight: 700; text-decoration: none !important; border: 1px solid rgba(185, 165, 72, .6); color: #f1ecdc !important; white-space: nowrap; }
  html.has-modal-open .burhan-whatsapp { display: none; }
}
@keyframes asil-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .burhan-asil-header .wp-block-navigation__responsive-container.is-menu-open { animation: none; } }

/* ---- the opening band on phones: the photograph above, the words on solid green below, so the sign's lettering
   never sits behind the heading; the lighter copy of each photo */
@media (max-width: 860px) {
  .burhan-slide[style*="--burhan-slide-sm"] { background-image: var(--burhan-slide-sm) !important; }
  .burhan-slide, .burhan-slide:first-child { bottom: auto; height: var(--asil-photo-h); background-position: center 35%; background-size: cover; }
  .burhan-asil-hero:has(.burhan-slider) { --asil-photo-h: min(64vw, 380px); background-color: var(--asil-night); }
  .burhan-asil-hero:has(.burhan-slider)::before { background: linear-gradient(to bottom, rgba(22, 36, 27, .1) 0, rgba(22, 36, 27, .2) calc(var(--asil-photo-h) - 140px), var(--asil-night) var(--asil-photo-h)); }
  .burhan-asil-hero:has(.burhan-slider) .burhan-asil-hero-inner { padding-top: calc(var(--asil-photo-h) - 34px) !important; }
  h1.burhan-asil-title { font-size: clamp(1.75rem, 7.4vw, 2.3rem); line-height: 1.45; }
  /* an inner page's title band (contact, about): the lighter copy of the office photo */
  .burhan-asil-hero:not(:has(.burhan-slider)) { background-image: var(--burhan-cover-sm, var(--burhan-cover, none)); }
}
@media (max-width: 940px) and (max-height: 500px) {
  .burhan-slide, .burhan-slide:first-child { bottom: 0; height: auto; }
  .burhan-asil-hero:has(.burhan-slider)::before { background: linear-gradient(to left, rgba(22, 36, 27, .97) 0%, rgba(22, 36, 27, .92) 50%, rgba(22, 36, 27, .6)); }
  .burhan-asil-hero:has(.burhan-slider) .burhan-asil-hero-inner { padding-top: 40px !important; }
}

/* ---- the slider's dots: a 44px touch area around each short gold line */
.burhan-slider-dots { gap: 0; }
.burhan-slider-dots button { position: relative; width: 40px; height: 44px; background: none !important; }
.burhan-slider-dots button::before { content: ""; position: absolute; inset-inline: 6px; top: 50%; height: 3px; margin-top: -1.5px; background: rgba(255, 255, 255, .4); }
.burhan-slider-dots button[aria-current="true"]::before { background: var(--asil-gold); }
@media (max-width: 860px) { .burhan-slider-dots { top: 6px; inset-inline-end: 10px; } }

/* ---- small things: section labels dark enough to read on ivory; room under the footer for the WhatsApp button */
.burhan-asil-kicker { color: #6b5b1a; }
@media (max-width: 720px) {
  .burhan-asil-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
  .burhan-asil-gallery .burhan-gallery { grid-template-columns: minmax(0, 1fr); }
}
