/* ==========================================================================
   HERO — first full-screen section (headline, buttons, flying plane, wing)
   Colors: theme.css → "4. SECTION BACKGROUNDS" (hero-…)
   Animation: js/sections/hero.js
   ========================================================================== */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--navbar-height) + 40px) 0 clamp(110px, 14vh, 160px);
  color: var(--text-on-dark);
  background:
    radial-gradient(90% 70% at 78% 18%, var(--hero-sky-glow) 0%, transparent 60%),
    linear-gradient(165deg, var(--hero-bg-start) 0%, var(--hero-bg-middle) 58%, var(--hero-bg-end) 100%);
}

/* ==================== BACKGROUND LAYERS ==================== */
.hero__background { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* Warm orange glow behind the wing */
.hero__glow {
  position: absolute; top: -18vmax; inset-inline-end: -20vmax;
  width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(circle, var(--hero-sun-glow) 0%, transparent 65%);
}

/* Soft drifting clouds (two depth layers) */
.clouds { position: absolute; inset: 0; will-change: transform; }
.cloud {
  position: absolute; border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--hero-cloud-color) 0%, transparent 70%);
  animation: cloud-drift 60s linear infinite alternate;
  will-change: transform;
}
.cloud--1 { width: 46vw; height: 16vw; top: 12%; left: -8%;   animation-duration: 70s; }
.cloud--2 { width: 34vw; height: 11vw; top: 58%; left: 38%;   animation-duration: 55s; animation-delay: -20s; }
.cloud--3 { width: 40vw; height: 13vw; top: 30%; right: -12%; animation-duration: 80s; animation-delay: -35s; }
.cloud--4 { width: 60vw; height: 18vw; bottom: 4%; left: -18%; animation-duration: 50s; }
.cloud--5 { width: 38vw; height: 12vw; top: 6%;  right: 6%;   animation-duration: 65s; animation-delay: -10s; opacity: .7; }
@keyframes cloud-drift { from { transform: translate3d(-4vw, 0, 0); } to { transform: translate3d(6vw, -1vw, 0); } }

/* Dotted flight path + plane (mirrored in Arabic/Kurdish) */
.flight { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
[dir="rtl"] .flight { transform: scaleX(-1); }
.flight__faint-line { fill: none; stroke: color-mix(in srgb, var(--cream) 8%, transparent); stroke-width: 1.5; stroke-dasharray: 2 12; stroke-linecap: round; }
.flight__dots       { fill: none; stroke: var(--hero-flight-dots); stroke-opacity: .85; stroke-width: 3; stroke-dasharray: 1 13; stroke-linecap: round; }
.flight__plane      { fill: var(--hero-plane); filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--orange) 50%, transparent)); }
.flight__start-dot  { fill: var(--orange); }
.flight__start-ring { fill: none; stroke: var(--orange); stroke-opacity: .5; stroke-width: 1.5; }
.flight__pulse      { fill: var(--orange); opacity: .35; transform-box: fill-box; transform-origin: center; animation: start-pulse 2.6s var(--ease) infinite; }
@keyframes start-pulse { from { transform: scale(.4); opacity: .5; } to { transform: scale(1.6); opacity: 0; } }

/* Curved "horizon" at the bottom that blends into the next section */
.hero__horizon { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; width: 100%; height: clamp(40px, 7vw, 110px); fill: var(--about-bg); }

/* ==================== CONTENT ==================== */
.hero__layout { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(24px, 4vw, 64px); }

/* Small pill above the headline */
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--cream) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--cream) 14%, transparent);
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-on-dark-soft);
}
.hero__eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 20%, transparent); }

/* Main headline — the highlighted word is <em>…</em> in content/texts.js */
.hero__title { max-width: 11.5ch; font-size: var(--size-hero-title); font-weight: 700; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.hero__title em { font-style: normal; color: var(--highlight-word-on-dark); }

/* Paragraph under the headline */
.hero__text { margin-top: 26px; max-width: 36rem; font-size: var(--size-intro-text); line-height: 1.7; color: var(--text-on-dark-soft); }

/* Buttons */
.hero__buttons { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Three check-marked points */
.hero__points { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .9rem; font-weight: 600; color: var(--text-on-dark-soft); }
.hero__points li  { display: inline-flex; align-items: center; gap: 8px; }
.hero__points svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; color: var(--orange); background: color-mix(in srgb, var(--orange) 16%, transparent); }

/* Arabic / Kurdish adjustments */
[dir="rtl"] .hero__eyebrow { padding: 8px 12px 8px 16px; letter-spacing: 0; text-transform: none; font-size: .9rem; }
[dir="rtl"] .hero__title   { max-width: 13ch; font-size: clamp(2.6rem, 6.4vw, 5.8rem); font-weight: 800; line-height: 1.22; letter-spacing: 0; }

/* ==================== BIG WING ==================== */
.hero__visual   { position: relative; height: min(68vh, 640px); min-height: 460px; }
.hero__wing-box { position: absolute; inset: 0; display: grid; place-items: center; will-change: transform; }
.hero__wing     { height: 100%; width: auto; overflow: visible; filter: drop-shadow(0 30px 60px color-mix(in srgb, var(--orange) 25%, transparent)); }
.hero__wing-start { stop-color: var(--hero-wing-start); }
.hero__wing-end   { stop-color: var(--hero-wing-end); }
.feather { transform-box: fill-box; will-change: transform; }

/* ==================== "SCROLL" HINT ==================== */
.scroll-hint {
  position: absolute; left: 50%; bottom: clamp(70px, 9vh, 104px); z-index: 2; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--text-on-dark-soft);
}
[dir="rtl"] .scroll-hint { letter-spacing: 0; font-size: .85rem; }
.scroll-hint i { position: relative; width: 1.5px; height: 46px; overflow: hidden; background: color-mix(in srgb, var(--cream) 18%, transparent); }
.scroll-hint b { position: absolute; inset: 0; background: var(--orange); animation: scroll-line 2.2s var(--ease-in-out) infinite; }
@keyframes scroll-line { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ==================== SMALLER SCREENS ==================== */
@media (max-width: 960px) {
  .hero__layout { grid-template-columns: 1fr; }
  .hero__content { position: relative; }
  /* the wing becomes a faint background behind the text */
  .hero__visual { position: absolute; inset-inline-end: -6%; top: 14%; z-index: -1; width: 60%; height: 70%; min-height: 0; opacity: .35; }
  .hero__wing-box { justify-items: end; }
  .scroll-hint { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--navbar-height) + 28px); }
  .hero__eyebrow { font-size: .72rem; margin-bottom: 20px; }
  .hero__buttons .btn { flex: 1 1 auto; }
  .hero__points { gap: 8px 18px; font-size: .84rem; }
}
@media (min-width: 1700px) {
  .hero__visual { height: min(70vh, 760px); }
}
