/* Interior hero — light split, AlhilalDesign page 11 (adopted 2026-10-01):
   sand/50 panel with the P2 lattice wing in the left gutter, ink copy, and the
   photograph on a hard edge to the right. No overlay on the photo. */

.aht-page-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--aht-color-background-light);
  color: var(--aht-color-text-primary);
}

/* The wing fills the 120px desktop gutter; the tile repeats every 45px so it
   follows the hero to any height. */
.aht-page-hero::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  width: var(--aht-layout-gutter-desktop);
  background: url("../../../brand/lattice-t1-light.svg") 0 0 / 45px 45px repeat;
}

.aht-page-hero--compact {
  min-height: 320px;
}

.aht-page-hero--default {
  min-height: 360px;
}

.aht-page-hero--tall {
  min-height: 440px;
}

/* 640 of 1440 in the design: the right 4/9 of the width, full height. */
.aht-page-hero__image {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: 44.444%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.aht-page-hero__inner {
  position: relative;
  width: 100%;
  padding-block: var(--aht-spacing-56);
}

.aht-page-hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--aht-spacing-16);
  max-width: 560px;
  margin-left: var(--aht-spacing-48);
}

.aht-page-hero__eyebrow {
  color: var(--aht-color-text-brand);
}

.aht-page-hero__headline {
  color: var(--aht-color-text-primary);
}

.aht-page-hero__sub {
  color: var(--aht-color-text-secondary);
}

.aht-page-hero__sub--mobile {
  display: none;
}

.aht-page-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--aht-spacing-24);
  margin-top: var(--aht-spacing-8);
}

.aht-page-hero__actions .aht-button--primary {
  min-width: 240px;
}

/* ---- Plain page header — 219:719, 221:766 --------------------------- */

.aht-page-header {
  background: var(--aht-color-background-raised);
  padding-block: var(--aht-spacing-64) var(--aht-spacing-48);
}

.aht-page-header__intro {
  max-width: 720px;
  margin-top: var(--aht-spacing-12);
  color: var(--aht-color-text-secondary);
}

/* Below the desktop frame the wing gives way to the tablet gutter and the
   copy keeps clear of the photograph. */
@media (max-width: 1119px) {
  .aht-page-hero::before {
    display: none;
  }

  .aht-page-hero__copy {
    max-width: calc(55.556vw - var(--aht-layout-gutter-tablet) - var(--aht-spacing-32));
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .aht-page-hero--compact,
  .aht-page-hero--default,
  .aht-page-hero--tall {
    min-height: 0;
  }

  /* Mobile stacks: the photo on top (390 x 220), the copy on sand below. */
  .aht-page-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .aht-page-hero__image {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 390 / 220;
  }

  .aht-page-hero__inner {
    padding-block: var(--aht-spacing-32) var(--aht-spacing-40);
  }

  .aht-page-hero__copy {
    max-width: none;
  }

  .aht-page-hero__sub--desktop {
    display: none;
  }

  .aht-page-hero__sub--mobile {
    display: block;
  }

  .aht-page-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--aht-spacing-12);
    width: 100%;
  }

  .aht-page-hero__actions .aht-button--primary {
    width: 100%;
  }

  /* Mobile carries the primary action only. */
  .aht-page-hero__actions .aht-button--text {
    display: none;
  }

  .aht-page-header {
    padding-block: var(--aht-spacing-40) var(--aht-spacing-32);
  }
}

/* Arabic service line, following the English hero headline. */
.aht-page-hero__arabic {
  font-family: "Geeza Pro", "Noto Naskh Arabic", "Traditional Arabic", serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.7;
  text-align: left;
  color: var(--aht-color-text-primary);
  margin: 0;
}
