/* ==========================================================================
   ABOUT — window illustration, story, "why choose us" cards and counters
   Texts: content/texts.js (about.…, why.…, stat.…)
   Counter numbers: content/settings.js → stats
   Animation: js/sections/about.js
   ========================================================================== */

.about {
  position: relative; overflow: hidden;
  padding: var(--section-space) 0;
  background: var(--about-bg);
}
/* Faint warm glow on the side */
.about::before {
  content: ""; position: absolute; top: 10%; inset-inline-start: -25vmax;
  width: 60vmax; height: 60vmax; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--orange) 10%, transparent), transparent 65%);
}
.about > .container { position: relative; z-index: 1; }

/* Huge outlined "FLY KIRKUK" text in the background (slides while scrolling) */
.about__outline-text {
  position: absolute; top: clamp(20px, 4vw, 60px); left: 0; z-index: 0;
  white-space: nowrap; direction: ltr; pointer-events: none; user-select: none;
  font-family: var(--font-logo); font-weight: 800; font-size: clamp(5rem, 15vw, 15rem); line-height: 1; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px var(--about-outline-text);
  will-change: transform;
}
/* Arabic / Kurdish: written right-to-left in the heading font, starting from the right edge */
[dir="rtl"] .about__outline-text {
  left: auto; right: 0; direction: rtl;
  font-family: var(--font-headings); font-size: clamp(4.4rem, 13vw, 13rem); line-height: 1.3; text-transform: none;
}

.about__layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(40px, 7vw, 110px); align-items: center; }

/* ==================== WINDOW ILLUSTRATION ==================== */
.about__visual { position: relative; width: 100%; max-width: 520px; justify-self: center; }
.about__frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--corner-radius-big);
  background: var(--blue-pale);
  box-shadow: var(--shadow-big);
  will-change: clip-path;
}
.window { width: 100%; height: 100%; }

/* Colors of each part of the drawing */
.window__wall-top      { stop-color: var(--cream); }
.window__wall-bottom   { stop-color: var(--blue-pale); }
.window__sky-1         { stop-color: var(--navy); }        /* top of the sky   */
.window__sky-2         { stop-color: var(--blue); }
.window__sky-3         { stop-color: var(--orange-pale); } /* sunset           */
.window__sky-4         { stop-color: var(--cream); }       /* horizon          */
.window__sun-glow-1    { stop-color: var(--orange-light); stop-opacity: .95; }
.window__sun-glow-2    { stop-color: var(--orange); stop-opacity: .45; }
.window__sun-glow-3    { stop-color: var(--orange); stop-opacity: 0; }
.window__sun           { fill: var(--orange-light); }
.window__frame-outer   { fill: var(--cream); stroke: color-mix(in srgb, var(--navy) 8%, transparent); stroke-width: 2; }
.window__frame-inner   { fill: var(--blue-pale); }
.window__frame-edge    { fill: none; stroke: color-mix(in srgb, var(--navy) 14%, transparent); stroke-width: 5; }
.window__clouds        { fill: var(--cream); }
.window__clouds-far    { fill: var(--cream); opacity: .55; }
.window__plane-wing    { fill: var(--navy); }
.window__plane-line    { stroke: var(--blue); stroke-width: 3; }
.window__plane-tip     { fill: var(--orange); }
.window__glare         { fill: var(--cream); opacity: .08; }
.window__shade-top     { stop-color: var(--cream); }
.window__shade-bottom  { stop-color: var(--blue-pale); }
.window__shade-lines   { stroke: color-mix(in srgb, var(--navy) 5%, transparent); stroke-width: 2; }
.window__shade-handle  { fill: var(--blue); opacity: .35; }
/* New design only: the realistic airplane wing
   (real wings are light grey — here made from the brand's cream + pale blue) */
.window__wing-shade    { stop-color: color-mix(in srgb, var(--blue-pale) 70%, var(--blue) 30%); } /* near the body, in shadow */
.window__wing-base     { stop-color: var(--blue-pale); }                                          /* main wing color        */
.window__wing-sunlit   { stop-color: color-mix(in srgb, var(--cream) 70%, var(--orange-pale) 30%); } /* tip lit by the sunset */
.window__wing-depth-1  { stop-color: var(--cream); stop-opacity: .35; }   /* front of the wing: brighter */
.window__wing-depth-2  { stop-color: var(--navy);  stop-opacity: .18; }   /* back of the wing: darker    */
.window__wing-underside{ fill: color-mix(in srgb, var(--navy) 55%, var(--blue-pale)); }
.window__wing-fairing  { fill: color-mix(in srgb, var(--blue-pale) 75%, var(--navy)); }
.window__wing-line     { stroke: var(--navy); stroke-opacity: .22; stroke-width: 1.2; fill: none; stroke-linecap: round; }
.window__wing-line--soft { stroke-opacity: .12; }
.window__wing-edge     { stroke: var(--orange-light); stroke-opacity: .85; stroke-width: 2.4; stroke-linecap: round; fill: none; }

.window__winglet-bottom{ stop-color: var(--navy); }
.window__winglet-top   { stop-color: var(--blue); }
.window__winglet-edge  { stroke: var(--orange-light); stroke-opacity: .75; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.window__winglet-sheen { fill: var(--cream); opacity: .16; }                                   /* soft light on the front */
.window__winglet-shadow{ stroke: var(--navy-dark); stroke-opacity: .55; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.window__winglet-cap   { stroke: var(--cream); stroke-opacity: .35; stroke-width: 1.2; stroke-linecap: round; }
.window__wing-logo     { fill: var(--orange); }                 /* the Fly Kirkuk logo on the winglet */
.window__glint-1       { stop-color: var(--cream); stop-opacity: .95; }
.window__glint-2       { stop-color: var(--cream); stop-opacity: 0; }
.window__glint         { opacity: 0; }                          /* flashes once, via about.js */
.window__wing-light    { fill: var(--cream); }

/* Which design is shown is chosen in content/settings.js → aboutWindowDesign.
   (Without JavaScript, the new design is shown.) */
.window[data-design="original"] { display: none; }

.window__sky, .window__sun-group, .window__clouds, .window__clouds-far, .window__plane, .window__shade { will-change: transform; }

/* Small card on the illustration ("Based in Kirkuk") */
.about__badge {
  position: absolute; inset-inline-start: -18px; top: 9%;   /* top corner, so it never hides the wing */
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 14px; border-radius: 18px;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--navy) 8%, transparent);
  box-shadow: var(--shadow-soft);
  will-change: transform;
}
[dir="rtl"] .about__badge { padding: 14px 14px 14px 20px; }
.about__badge-icon     { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--orange); color: var(--navy); }
.about__badge-icon svg { width: 22px; height: 22px; }
.about__badge strong   { display: block; font-size: .98rem; color: var(--text-on-light); }
.about__badge small    { display: block; font-size: .8rem; color: var(--text-on-light-faint); }

/* ==================== STORY TEXT ==================== */
.about__text { margin-top: 26px; max-width: 38rem; display: grid; gap: 16px; font-size: 1.06rem; line-height: 1.75; color: var(--text-on-light-soft); }

/* ==================== WHY CHOOSE US ==================== */
.why__title { margin-top: 44px; font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--text-on-light); }
.why { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.why__card {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--blue-pale) 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--navy) 6%, transparent);
  transition: transform .6s var(--ease), background-color var(--hover-speed) var(--ease), box-shadow .6s var(--ease), border-color var(--hover-speed);
}
.why__card:hover {
  transform: translateY(-4px);
  background: var(--card-hover-bg);
  border-color: color-mix(in srgb, var(--orange) 45%, transparent);
  box-shadow: var(--shadow-soft);
}
.why__icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-pale); color: var(--blue);
  transition: background-color var(--hover-speed) var(--ease), color var(--hover-speed) var(--ease), transform .6s var(--ease);
}
.why__icon svg { width: 22px; height: 22px; }
.why__card:hover .why__icon { background: var(--orange); color: var(--navy); transform: rotate(-8deg) scale(1.06); }
.why__card h4 { margin: 0 0 4px; font-family: var(--font-body); font-size: .98rem; font-weight: 700; color: var(--text-on-light); }
.why__card p  { font-size: var(--size-small); line-height: 1.55; color: var(--text-on-light-faint); }

/* ==================== COUNTERS ==================== */
.stats { margin: clamp(64px, 8vw, 110px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-on-light); }
.stat  { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 34px clamp(12px, 2vw, 32px) 0; }
.stat + .stat       { border-inline-start: 1px solid var(--line-on-light); }
.stat:first-child   { padding-inline-start: 0; }
.stat dt            { font-size: .92rem; font-weight: 600; color: var(--text-on-light-faint); }
.stat dd {
  margin: 0; display: flex; align-items: baseline; justify-content: flex-start; direction: ltr;
  font-family: var(--font-numbers); font-weight: 700; font-size: var(--size-big-number); line-height: 1; letter-spacing: -.04em;
  color: var(--blue);
}
.stat__number { font-variant-numeric: tabular-nums; }
.stat__plus   { color: var(--orange); }
[dir="rtl"] .stat dd { justify-content: flex-end; font-family: var(--font-headings); letter-spacing: 0; }

/* ==================== SMALLER SCREENS ==================== */
@media (max-width: 960px) {
  .about__layout { grid-template-columns: 1fr; }
  .about__visual { order: 2; max-width: 440px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)    { border-inline-start: 0; padding-inline-start: 0; }
  .stat:nth-child(n+3)  { margin-top: 28px; border-top: 1px solid var(--line-on-light); }
}
@media (max-width: 640px) {
  .why { grid-template-columns: 1fr; }
  .about__badge { inset-inline-start: 8px; top: -22px; }
}
