/*
 * Al-Hilal Travels — base layer.
 * Reset, document defaults and the type scale as reusable classes.
 * Everything here maps to a named Figma text style or foundation rule.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--aht-color-background-web-canvas);
  color: var(--aht-color-text-primary);
  font-family: var(--aht-font-family);
  font-size: var(--aht-type-body-size);
  line-height: var(--aht-type-body-line);
  font-weight: var(--aht-font-weight-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--aht-color-border-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Type scale ---------------------------------------------------- */

.aht-display-xl,
.aht-display-l,
.aht-h1,
.aht-h2,
.aht-h3,
.aht-h4,
.aht-data-xl,
.aht-data-l,
.aht-data-compact {
  font-weight: var(--aht-font-weight-semibold);
}

.aht-display-xl {
  font-size: var(--aht-type-display-xl-size);
  line-height: var(--aht-type-display-xl-line);
  letter-spacing: var(--aht-type-display-xl-tracking);
}

.aht-display-l {
  font-size: var(--aht-type-display-l-size);
  line-height: var(--aht-type-display-l-line);
  letter-spacing: var(--aht-type-display-l-tracking);
}

.aht-h1 {
  font-size: var(--aht-type-h1-size);
  line-height: var(--aht-type-h1-line);
  letter-spacing: var(--aht-type-h1-tracking);
}

.aht-h2 {
  font-size: var(--aht-type-h2-size);
  line-height: var(--aht-type-h2-line);
  letter-spacing: var(--aht-type-h2-tracking);
}

.aht-h3 {
  font-size: var(--aht-type-h3-size);
  line-height: var(--aht-type-h3-line);
  letter-spacing: var(--aht-type-h3-tracking);
}

.aht-h4 {
  font-size: var(--aht-type-h4-size);
  line-height: var(--aht-type-h4-line);
}

.aht-body-large {
  font-size: var(--aht-type-body-large-size);
  line-height: var(--aht-type-body-large-line);
}

.aht-body-editorial {
  font-size: var(--aht-type-body-editorial-size);
  line-height: var(--aht-type-body-editorial-line);
}

.aht-body {
  font-size: var(--aht-type-body-size);
  line-height: var(--aht-type-body-line);
}

.aht-small {
  font-size: var(--aht-type-small-size);
  line-height: var(--aht-type-small-line);
}

.aht-utility {
  font-size: var(--aht-type-utility-size);
  line-height: var(--aht-type-utility-line);
  font-weight: var(--aht-font-weight-semibold);
}

.aht-label {
  font-size: var(--aht-type-label-size);
  line-height: var(--aht-type-label-line);
  letter-spacing: var(--aht-type-label-tracking);
  font-weight: var(--aht-font-weight-bold);
  text-transform: uppercase;
}

.aht-data-xl {
  font-size: var(--aht-type-data-xl-size);
  line-height: var(--aht-type-data-xl-line);
  letter-spacing: var(--aht-type-data-xl-tracking);
}

.aht-data-l {
  font-size: var(--aht-type-data-l-size);
  line-height: var(--aht-type-data-l-line);
  letter-spacing: var(--aht-type-data-l-tracking);
}

.aht-data-compact {
  font-size: var(--aht-type-data-compact-size);
  line-height: var(--aht-type-data-compact-line);
  letter-spacing: var(--aht-type-data-compact-tracking);
}

/* Display sizes are set for the 1440 frame; they step down with the
   viewport so the mobile frames' proportions hold. */
@media (max-width: 1023px) {
  .aht-display-xl {
    font-size: 48px;
    line-height: 50px;
    letter-spacing: -1.2px;
  }

  .aht-display-l {
    font-size: 38px;
    line-height: 42px;
    letter-spacing: -0.8px;
  }

  .aht-h1 {
    font-size: 32px;
    line-height: 36px;
  }

  .aht-h2 {
    font-size: 24px;
    line-height: 30px;
  }

  .aht-data-xl {
    font-size: 44px;
    line-height: 46px;
  }
}

/* ---- Layout helpers ------------------------------------------------ */

.aht-shell {
  width: 100%;
  max-width: calc(
    var(--aht-layout-content-max) + var(--aht-layout-gutter-desktop) * 2
  );
  margin-inline: auto;
  padding-inline: var(--aht-layout-gutter-desktop);
}

@media (max-width: 1119px) {
  .aht-shell {
    padding-inline: var(--aht-layout-gutter-tablet);
  }
}

@media (max-width: 767px) {
  .aht-shell {
    padding-inline: var(--aht-layout-gutter-mobile);
  }
}

.aht-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---- Section rhythm -------------------------------------------------
   88px top and bottom on every major desktop section, 56px on mobile.
   Lives here rather than on a page because every template uses it. */

.aht-section {
  padding-block: 88px;
}

.aht-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--aht-spacing-24);
  margin-bottom: var(--aht-spacing-40);
}

.aht-section__head--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.aht-section__intro {
  max-width: 760px;
  color: var(--aht-color-text-secondary);
}

@media (max-width: 767px) {
  .aht-section {
    padding-block: 56px;
  }

  .aht-section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--aht-spacing-12);
    margin-bottom: var(--aht-spacing-24);
  }
}
