/*
 * HOSAENA public header look overlay.
 *
 * Overlay only. Does not rewrite assets/css/components.css
 * (locked header layout) or assets/css/header-type.css (type/hit floor).
 * Screenshot-led rest-state pass: gold Amharic lockup, tighter wordmark
 * tracking, tighter brand-to-nav stack, 20px utility glyphs inside the
 * existing 44px hit. Gold nav underline.
 * Also covers settled scrolled clip (glass + admin-bar offset).
 * Also covers phone/off-canvas primary title ink at max-width 1024px.
 * No header PHP, Elementor 22297, runtime JS, functions.php, or live pay.
 *
 * Codex hook (amber, this PR does not land PHP):
 * Enqueue on public front after hosaena-header-type:
 *   wp-content/themes/hosaena/assets/css/header-look.css
 * Natural home: hosaena-components-css.php, insert BEFORE footer enqueue.
 * Handle: hosaena-header-look
 * Depends: hosaena-header-type
 * Fail-closed if file missing. Public front only (existing loader already is).
 */

.elementor .ho-header {
  --ho-header-logo-row-min: clamp(3.7rem, 3.9vw, 4.25rem);
  --ho-header-logo-row-pad: 0.28rem;
}

.elementor .ho-header__logo-block {
  row-gap: 0.22rem;
}

.elementor .ho-header__logo-primary {
  letter-spacing: 0.22em;
}

.elementor .ho-header__logo-secondary {
  color: #c1a46d;
  opacity: 1;
}

.elementor .ho-header__utility .e-svg-base {
  width: 20px;
}

.elementor .ho-header__utility svg {
  width: 20px;
  height: 20px;
}

.elementor .ho-header .ho-header__nav .e-n-menu-title-text::after {
  background: #c1a46d;
}

@media (max-width: 1024px) {
  .elementor .ho-header__logo-primary {
    letter-spacing: 0.18em;
  }

  .elementor .ho-header__logo-secondary {
    color: #c1a46d;
    opacity: 1;
  }
}

/* Settled scrolled: lockup must fit inside the glass. Rest stays tight.
   backdrop-filter on --scrolled clips overflow; restore row min/pad
   to the locked components.css values on this state only.
   Admin bar offset for logged-in Local; public has no admin bar. */
.elementor .ho-header.ho-header--scrolled {
  overflow: visible;
  --ho-header-logo-row-min: clamp(4.18rem, 4.32vw, 4.9rem);
  --ho-header-logo-row-pad: 0.42rem;
}

.elementor .ho-header.ho-header--scrolled .ho-header__logo-row,
.elementor .ho-header.ho-header--scrolled .ho-header__logo-block {
  overflow: visible;
}

.admin-bar .elementor .ho-header.ho-header--scrolled {
  top: var(--wp-admin--admin-bar--height, 32px);
}

/* Phone/off-canvas: six primary titles must ink on the cream panel.
   Locked components.css (max-width 1024px) starts titles at opacity: 0
   on the 5-class prefix
   `.elementor-location-header > .ho-offcanvas .ho-offcanvas__nav .ho-nav__primary`
   plus `.elementor-heading-title` / `.e-heading-base` / `.e-paragraph-base`
   / `.e-paragraph-base a`. Open-state opacity: 1 uses the sibling
   `.ho-header.ho-header--offcanvas-open ~ .ho-offcanvas` prefix — same
   class count, weaker ancestry, so it can lose, and it does not beat
   Elementor widget color. HOME / ART OF LIVING were the only titles
   that read at 390×844 Local; MAISON / COLLECTIONS / SHOP / SERVICES
   sit in the viewport under the 180px visual + calacatta ::after fade.
   Overlay uses the locked opacity:0 prefix (later file, no !important).
   Rest-state header tokens, --context-light shop bar, and desktop
   scrolled clip are unchanged. */
@media (max-width: 1024px) {
  .elementor-location-header > .ho-offcanvas .ho-offcanvas__nav .ho-nav__primary .elementor-heading-title,
  .elementor-location-header > .ho-offcanvas .ho-offcanvas__nav .ho-nav__primary .elementor-heading-title a,
  .elementor-location-header > .ho-offcanvas .ho-offcanvas__nav .ho-nav__primary .e-heading-base,
  .elementor-location-header > .ho-offcanvas .ho-offcanvas__nav .ho-nav__primary .e-heading-base a,
  .elementor-location-header > .ho-offcanvas .ho-offcanvas__nav .ho-nav__primary .e-paragraph-base,
  .elementor-location-header > .ho-offcanvas .ho-offcanvas__nav .ho-nav__primary .e-paragraph-base a {
    opacity: 1;
    visibility: visible;
    color: #0a0a0a;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.5rem, 2vw, 1.85rem);
    font-weight: 300;
    line-height: 1.3;
  }

  .elementor-location-header > .ho-offcanvas .ho-offcanvas__nav .ho-nav__primary .elementor-heading-title,
  .elementor-location-header > .ho-offcanvas .ho-offcanvas__nav .ho-nav__primary .e-heading-base {
    margin-bottom: 0.7rem;
  }

  .elementor-location-header > .ho-offcanvas .ho-offcanvas__nav .ho-nav__primary .e-paragraph-base {
    margin-bottom: 0.65rem;
  }

  .elementor-location-header > .ho-offcanvas .ho-offcanvas__nav .ho-nav__primary > *:nth-child(3) .elementor-heading-title,
  .elementor-location-header > .ho-offcanvas .ho-offcanvas__nav .ho-nav__primary > *:nth-child(3) .e-heading-base {
    margin-bottom: 0.85rem;
  }

  .elementor-location-header > .ho-offcanvas .ho-offcanvas__visual {
    max-height: 6.5rem;
    flex: 0 0 auto;
  }

  .elementor-location-header > .ho-offcanvas .ho-offcanvas__visual img {
    object-fit: cover;
  }

  .elementor-location-header > .ho-offcanvas .ho-offcanvas__nav .ho-nav__primary::after {
    content: none;
    display: none;
  }

  .elementor-location-header > .ho-offcanvas .ho-offcanvas__top .e-paragraph-base {
    color: #c1a46d;
    opacity: 1;
  }

  .admin-bar .elementor-location-header > .ho-offcanvas .ho-offcanvas__panel {
    top: var(--wp-admin--admin-bar--height, 46px);
    height: calc(100vh - var(--wp-admin--admin-bar--height, 46px));
  }
}
