/* =========================================================
   Hero title – "Information Technology in the Tourism Industry"
   Line 1 and line 2 are fitted to the same width by hero-title.js.
   Requires hero/hero-title.js
   ========================================================= */

.hv-title.hv-title-pro {
  all: unset;
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  --hv-white: #ffffff;
  --hv-orange: #ff8a00;
  --hv-thin-scale: 0.78;   /* size of the thin "در" / "in the" relative to the orange text */
  --hv-line-gap: 0.06;     /* gap between lines (in em of line 1) */
}

.hv-stack {
  position: relative;
  display: block;
}

.hv-base,
.hv-sheen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--fs-0, 4rem) * var(--hv-line-gap));
}

.hv-sheen {
  position: absolute;
  inset: 0;
}

/* ---------- lines (shared by the base layer and the sheen layer) ---------- */
.hv-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: max-content;
  white-space: nowrap;
  line-height: 1.12;
  text-shadow: 0 4px 28px rgba(0, 8, 32, 0.5);
}
.hv-line.l1 { font-size: var(--fs-0, clamp(2.6rem, 8vw, 7rem)); }
.hv-line.l2 { font-size: var(--fs-1, clamp(2.2rem, 6.4vw, 5.6rem)); gap: 0.2em; }

.hv-w, .hv-strong, .hv-thin { display: block; }
.hv-w      { color: var(--hv-white); }
.hv-strong { color: var(--hv-orange); }
.hv-thin   { color: var(--hv-white); font-size: calc(1em * var(--hv-thin-scale)); }

/* ---------- Persian ---------- */
.hv-title-pro[lang="fa"]            { --hv-line-gap: 0; }   /* gap between the two lines (em of line 1) */
.hv-title-pro[lang="fa"] .hv-line   { direction: rtl; font-weight: 900; word-spacing: -0.1em; line-height: 0.92; }
.hv-title-pro[lang="fa"] .hv-thin   { font-weight: 300; }

/* ---------- English (Ubuntu Bold / Medium) ---------- */
/* Adjust the url() paths if the font files live elsewhere (paths are relative to this css file) */
@font-face { font-family: 'Ubuntu'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('../fonts/Ubuntu-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Ubuntu'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('../fonts/Ubuntu-Medium.woff2') format('woff2'); }

.hv-title-pro[lang="en"] .hv-line {
  direction: ltr;
  font-family: 'Ubuntu', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  word-spacing: 0;
  line-height: 1.08;
  text-transform: uppercase;
}
.hv-title-pro[lang="en"] .hv-thin { font-weight: 500; }

/* ---------- mobile: 4 stacked lines — همه یک سایز فونت دارند،
   و به‌جای تغییر سایز با letter-spacing (مثل «فنــــاوری») به یک عرض مشترک کشیده می‌شوند ---------- */
.hv-title.hv-title-pro.hv-t-stack { display: none; }          /* hidden on desktop */
.hv-line.s1, .hv-line.s2, .hv-line.s3, .hv-line.s4 { font-size: var(--fs-0, clamp(2rem, 10vw, 4rem)); }
.hv-line.s3 { gap: 0.15em; }   /* فاصلهٔ کوچک بین «در» و «صنعت» روی یک ردیف */
.hv-title-pro.hv-t-stack[lang="fa"] { --hv-line-gap: 0.02; }
.hv-title-pro.hv-t-stack[lang="en"] { --hv-line-gap: 0.04; }
.hv-title-pro.hv-t-stack .hv-thin { font-size: calc(1em * 0.7); }

@media (max-width: 768px) {
  .hv-title.hv-title-pro.hv-t-wide  { display: none; }
  .hv-title.hv-title-pro.hv-t-stack {
    display: flex;
    align-items: flex-start;      /* به‌جای وسط صفحه، از بالا بچین */
    padding-top: 13%;              /* فاصله از لبهٔ بالای هیرو تا شروع متن — برای تنظیم ظریف همین عدد را تغییر بده */
  }
}

/* ---------- entrance animation ---------- */
.hv-base .hv-line { opacity: 0; animation: hv-failsafe 0.01s 3s forwards; }
.hv-title-pro.is-fit .hv-base .hv-line {
  animation: hv-in 1.1s cubic-bezier(0.16, 0.84, 0.24, 1) both;
}
.hv-title-pro.is-fit .hv-base .l1 { animation-delay: 0.15s; }
.hv-title-pro.is-fit .hv-base .l2 { animation-delay: 0.45s; }
.hv-title-pro.is-fit .hv-base .s1 { animation-delay: 0.10s; }
.hv-title-pro.is-fit .hv-base .s2 { animation-delay: 0.25s; }
.hv-title-pro.is-fit .hv-base .s3 { animation-delay: 0.40s; }
.hv-title-pro.is-fit .hv-base .s4 { animation-delay: 0.55s; }

.hv-title-pro.is-fit .hv-base .hv-thin {
  animation: hv-thin-in 1.1s ease-out 1.0s both;
}
.hv-title-pro .hv-base .hv-thin { opacity: 0; }

@keyframes hv-in {
  from { opacity: 0; transform: translateY(0.25em); }
  to   { opacity: 1; transform: none; }
}
@keyframes hv-thin-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hv-failsafe { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hv-base .hv-line, .hv-base .hv-thin { animation: none !important; opacity: 1 !important; filter: none; transform: none; }
}
