/* ALQQAMAR — Tarot Readings page
   Fluid clamp() CSS built from Figma (390px + 1440px frames), absoluteRenderBounds only.
   Pixel-perfect gate: 2026-07-10. All sizes corrected to match Figma ARB values.
   Fix 2: headline clamp() scalars corrected — removed invalid px unit on multipliers.
   Fix 3: hero photo changed from fixed max-width:792px to flex:0 0 55% — maintains
           Figma proportion (792/1440=55%) at all widths above 1440px.
   Updated 2026-08-02: all clamp() formulas updated to 320→1920px range (divisor 1600).
   Fix 4: hero text column vertically centres headline at 1440px+ — removes top-pin. */

/* ─── PAGE WRAPPER ─────────────────────────────────────────────────── */
.tr {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #000;
  padding-top: var(--alq-header-h);
}

/* ─── HERO ──────────────────────────────────────────────────────────── */
.tr-hero {
  display: flex;
  flex-direction: column;
  min-height: auto;
  margin-bottom: clamp(0px, calc(53px + (0 - 53) * ((100vw - 320px) / 1600)), 53px);
}

/* ─── HERO — Photo ──────────────────────────────────────────────────── */
.tr-hero__photo {
  width: 100%;
  height: clamp(320px, calc(320px + (560 - 320) * ((100vw - 320px) / 1600)), 560px);
  overflow: hidden;
  flex-shrink: 0;
  line-height: 0;
  font-size: 0;
}
.tr-hero__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border: none;
  outline: none;
}

/* ─── HERO — Text column ────────────────────────────────────────────── */
.tr-hero__text {
  padding-bottom: 0;
  background: transparent;
  padding-top: clamp(65px, calc(65px + (87 - 65) * ((100vw - 320px) / 1600)), 87px);
  padding-left: clamp(24px, calc(24px + (64 - 24) * ((100vw - 320px) / 1600)), 64px);
  padding-right: clamp(24px, calc(24px + (72 - 24) * ((100vw - 320px) / 1600)), 72px);
}

/* ─── HERO — Headline — H1: 32px@390 → 44px@1440 ───────────────────── */
.tr-headline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400 !important;
  color: #000;
  font-size: clamp(32px, calc(32px + 12 * ((100vw - 320px) / 1600)), 44px);
  line-height: clamp(36px, calc(36px + 13 * ((100vw - 320px) / 1600)), 49px);
  margin: 0 0 clamp(48px, calc(92px - 44 * ((100vw - 320px) / 1600)), 92px);
}

/* ─── SERVICES ──────────────────────────────────────────────────────── */
.tr-services {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: clamp(65px, calc(65px + (165 - 65) * ((100vw - 320px) / 1600)), 165px);
  padding-bottom: 80px;
  padding-left: clamp(24px, calc(24px + (284 - 24) * ((100vw - 320px) / 1600)), 284px);
  padding-right: clamp(24px, calc(24px + (284 - 24) * ((100vw - 320px) / 1600)), 284px);
}

/* ─── SERVICE — Individual ──────────────────────────────────────────── */
.tr-service {
  padding-bottom: clamp(0px, calc(56px + (0 - 56) * ((100vw - 320px) / 1600)), 56px);
}

.tr-service + .tr-service {
  padding-top: clamp(0px, calc(53px + (0 - 53) * ((100vw - 320px) / 1600)), 53px);
}

/* ─── SERVICE — Title — 22px fixed (same at 390px and 1440px) ───────── */
.tr-service__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400 !important;
  font-size: 22px;
  line-height: 26px;
  letter-spacing: 1.32px;
  color: #000;
  margin: 0 0 clamp(8px, calc(8px + (30 - 8) * ((100vw - 320px) / 1600)), 30px);
}

/* ─── SERVICE — Price — 11px fixed ─────────────────────────────────── */
.tr-service__price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 13px;
  letter-spacing: 1.54px;
  color: #636363;
  margin: 0 0 clamp(24px, calc(24px + (31 - 24) * ((100vw - 320px) / 1600)), 31px);
}

/* ─── SERVICE — Description — 15px fixed (same at 390px and 1440px) ─── */
.tr-service__desc {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 27px;
  color: #3a3a3a;
  margin: 0 0 clamp(25px, calc(32px + (25 - 32) * ((100vw - 320px) / 1600)), 32px);
}

/* ─── SERVICE — Book button ──────────────────────────────────────────── */
.tr-book {
  display: inline-flex;
  align-items: center;
  height: 33px;
  padding: 0 32px;
  background: #000;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 13px;
  letter-spacing: 0.44px;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
}
.tr-book:hover {
  opacity: 0.85;
  color: #fff;
}

/* ─── FILLED BUTTON ──────────────────────────────────────────────────── */
.btn_filled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 33px;
  padding: 0 32px;
  background: #000;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn_filled:hover,
.btn_filled:focus {
  opacity: 0.85;
  color: #fff;
}

/* ─── 1440px+ STRUCTURAL SWITCHES ───────────────────────────────────── */
@media (min-width: 1440px) {

  .tr-hero {
    flex-direction: row;
    align-items: stretch;
    padding-top: 42px;
    max-width: 1440px;
    margin-inline: auto;
  }

  /* Photo holds 55% of viewport (792/1440 = 55%) — scales at 1920px+ */
  .tr-hero__photo {
    flex: 0 0 55%;
    width: 55%;
    height: 560px;
    overflow: hidden;
  }
  .tr-hero__photo img {
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  /* Text column: flex column, headline vertically centred in the 560px photo height.
     padding-top removed — vertical centering replaces the top-pin. */
  .tr-hero__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
  }

  .tr-services {
    flex-direction: row;
  }

  .tr-service {
    flex: 0 0 50%;
    box-sizing: border-box;
    padding-right: 46px;
    padding-bottom: 0;
  }

  .tr-service + .tr-service {
    padding-left: 32px;
    padding-right: 0;
    padding-top: 0;
  }
}
