/* =====================================================================
   TRIWAYS — SERVICES HUB (/services/ only). Loaded after triways-visual.css.
   Prefix: tv-sh-   Built from docs/design/services-hub-mockup.png: a short
   photographic hero band, a directory of equal image rows, a hairline
   audience grid, five steps on deeper ivory, a charcoal proof band with a
   dissolving photograph, an ivory FAQ and a charcoal split close.
   Egypt comes from the photography alone — no ornament on this page.
   Rhythm: hero (photo) → ivory → ivory-light → deeper ivory → charcoal + photo
           → ivory → charcoal → footer.
   Missing photographs are marked data-pending: the slot falls back to the
   ink/charcoal ground and the layout closes up around it.
   ===================================================================== */

/* Services hub */
.tv-sh {
  --sh-cols: repeat(12, minmax(0, 1fr));
  --sh-gutter: clamp(1rem, 2vw, 2rem);
  --sh-brass-text: #7D6339;        /* brass for small text on ivory: 4.9:1 on --hb-ivory (the #A68A5B gold is ~3:1) */
  --sh-line-strong: rgba(41, 39, 37, 0.22);
  --sh-stone-on-dark: rgba(244, 240, 232, 0.64);
}
/* Small brass labels on the light grounds of this page */
.tv-sh .hb-section--ivory .hb-eyebrow,
.tv-sh .hb-section--white .hb-eyebrow,
.tv-sh .tv-sh-method .hb-eyebrow { color: var(--sh-brass-text); }

/* ---------------------------------------------------------------------
   1. HERO — a wide, short photographic band: title left, answer right
   ------------------------------------------------------------------- */
.tv-sh-hero {
  position: relative; isolation: isolate;
  min-height: clamp(480px, 39vw, 640px);
  display: flex; align-items: flex-end;
  background: var(--tw-obsidian);
  color: var(--hb-champagne);
}
.tv-sh-hero__media { position: absolute; inset: 0; z-index: 0; display: block; }
.tv-sh-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 100%; }   /* bottom-anchored: temples and ship ride high, the answer sits over water */
/* Charcoal from the left under the title, a softer pull from the right under the answer, a top scrim for the header */
.tv-sh-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--tv-scrim), 0.8) 0%, rgba(var(--tv-scrim), 0.62) 30%, rgba(var(--tv-scrim), 0.2) 52%, rgba(var(--tv-scrim), 0) 62%),
    linear-gradient(270deg, rgba(var(--tv-scrim), 0.6) 0%, rgba(var(--tv-scrim), 0.42) 26%, rgba(var(--tv-scrim), 0) 48%),
    linear-gradient(180deg, rgba(var(--tv-scrim), 0.5) 0%, rgba(var(--tv-scrim), 0) 22%);
}
.tv-sh-hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: var(--sh-cols); column-gap: var(--sh-gutter);
  padding-top: 7.5rem; padding-bottom: clamp(3rem, 5vw, 4.5rem);
}
.tv-sh-hero__lead { display: contents; }
.tv-sh-hero__lead > nav, .tv-sh-hero__lead > .hb-kicker, .tv-sh-hero__title { grid-column: 1 / span 6; }
.tv-sh-hero .hub-crumbs { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.tv-sh-hero .hb-eyebrow { color: var(--hb-champagne); }
.tv-sh-hero .hb-kicker { margin-bottom: 1.1rem; }
.tv-sh-hero .hb-kicker::after { background: var(--hb-champagne); opacity: 0.6; }
.tv-sh-hero__title {
  grid-row: 3;
  font-family: var(--hb-serif); font-weight: 500; color: #fff;
  font-size: clamp(2.9rem, 1.9rem + 2.6vw, 4.6rem); line-height: 1.02; letter-spacing: 0.002em;
  max-width: 6.6em;   /* "Egypt Travel / Services" */
  margin: 0;
}
.tv-sh-hero__answer { grid-column: 8 / span 5; grid-row: 3; align-self: start; padding-top: 0.6rem; max-width: 27.5rem; position: relative; }
/* A soft charcoal falloff behind the answer only, so the photograph keeps its light elsewhere */
.tv-sh-hero__answer::before {
  content: ""; position: absolute; inset: -4rem -5rem -4rem -5rem; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--tv-scrim), 0.8) 0%, rgba(var(--tv-scrim), 0.72) 55%, rgba(var(--tv-scrim), 0) 100%);
}
.tv-sh-hero__answer p { font-size: 0.95rem; line-height: 1.75; color: rgba(251, 250, 247, 0.9); }
.tv-sh-hero__answer p + p { margin-top: 0.9rem; color: rgba(244, 240, 232, 0.72); }
.tv-sh-hero a:focus-visible { outline-color: var(--hb-champagne); }

/* ---------------------------------------------------------------------
   2. OUR SERVICES — directory rows: image · text · link, hairlines between
   ------------------------------------------------------------------- */
.tv-sh-dir__head { max-width: 640px; padding-bottom: clamp(2rem, 3.5vw, 2.75rem); }
.tv-sh-dir__head .hb-heading { margin-bottom: 0.6rem; }
.tv-sh-dir__head .hb-copy { font-size: 0.98rem; }
.tv-sh-rows { border-top: 1px solid var(--hb-line); }
.tv-sh-row { border-bottom: 1px solid var(--hb-line); }
.tv-sh-row__inner {
  position: relative;
  display: grid; grid-template-columns: var(--sh-cols); column-gap: var(--sh-gutter); align-items: center;
  padding: clamp(0.9rem, 1.4vw, 1.15rem) 0;
}
.tv-sh-row__media { grid-column: 1 / span 4; display: block; aspect-ratio: 8 / 3; overflow: hidden; background: var(--hb-ink-soft); }
.tv-sh-row__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--hb-ease); }
.tv-sh-row__text { grid-column: 5 / span 5; padding: 0.25rem 0; }
.tv-sh-row__for {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.5;
  color: var(--sh-brass-text); margin-bottom: 0.55rem;
}
.tv-sh-row__for::after { content: ""; flex: 0 0 28px; height: 1px; background: var(--hb-gold); opacity: 0.55; }
.tv-sh-row__name { font-family: var(--hb-serif); font-weight: 500; font-size: clamp(1.4rem, 1.2rem + 0.5vw, 1.7rem); line-height: 1.15; color: var(--hb-ink); margin-bottom: 0.45rem; }
.tv-sh-row__name a {
  color: inherit;
  background: linear-gradient(var(--hb-gold), var(--hb-gold)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--hb-ease);
}
.tv-sh-row__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* the whole row is the link */
.tv-sh-row__name a:focus-visible { outline: none; }
.tv-sh-row__desc { font-size: 0.9rem; line-height: 1.7; color: var(--hb-text-dim); max-width: 28.75rem; }
.tv-sh-row__go {
  grid-column: 10 / span 3; justify-self: end;
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hb-ink);
}
.tv-sh-row__go .hb-arrow { color: var(--hb-gold); transition: transform 0.4s var(--hb-ease); }
.tv-sh-row__inner:focus-within { outline: 2px solid var(--hb-gold); outline-offset: 4px; }
.tv-sh-row__inner:focus-within .tv-sh-row__name a { background-size: 100% 1px; }
@media (hover: hover) {
  .tv-sh-row__inner:hover .tv-sh-row__media img { transform: scale(1.04); }
  .tv-sh-row__inner:hover .tv-sh-row__name a { background-size: 100% 1px; }
  .tv-sh-row__inner:hover .tv-sh-row__go .hb-arrow { transform: translateX(4px); }
}

/* ---------------------------------------------------------------------
   3. WHO WE SERVE — intro column, three audiences in a hairline grid
   ------------------------------------------------------------------- */
.tv-sh-aud__grid { display: grid; grid-template-columns: var(--sh-cols); column-gap: var(--sh-gutter); row-gap: 2.5rem; align-items: start; }
.tv-sh-aud__head { grid-column: 1 / span 4; }
.tv-sh-aud__head .hb-copy { font-size: 0.98rem; max-width: 22rem; }
.tv-sh-aud__note { font-family: var(--hb-serif); font-style: italic; font-size: 1.1rem; line-height: 1.5; color: var(--hb-text-dim); margin-top: 1rem; max-width: 22rem; }
.tv-sh-aud__more { margin-top: 1.75rem; }
.tv-sh-aud__list {
  grid-column: 5 / -1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hb-line); border-bottom: 1px solid var(--hb-line);
}
.tv-sh-aud__cell { display: flex; flex-direction: column; padding: 1.75rem clamp(1rem, 2vw, 1.75rem) 0; }
.tv-sh-aud__cell + .tv-sh-aud__cell { border-left: 1px solid var(--hb-line); }
.tv-sh-aud__cell:first-child { padding-left: 0; }
.tv-sh-aud__name { font-family: var(--hb-serif); font-weight: 500; font-size: clamp(1.25rem, 1.1rem + 0.35vw, 1.45rem); line-height: 1.2; color: var(--hb-ink); margin-bottom: 0.7rem; }
.tv-sh-aud__desc { font-size: 0.9rem; line-height: 1.7; color: var(--hb-text-dim); margin-bottom: 1.5rem; }
.tv-sh-aud__links { margin-top: auto; }
.tv-sh-aud__links a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.9rem 0; border-top: 1px solid var(--hb-line);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hb-ink);
}
.tv-sh-aud__links .hb-arrow { color: var(--hb-gold); transition: transform 0.25s var(--hb-ease); }
.tv-sh-aud__links a:hover, .tv-sh-aud__links a:focus-visible { color: var(--sh-brass-text); }
.tv-sh-aud__links a:hover .hb-arrow { transform: translateX(4px); }

/* ---------------------------------------------------------------------
   4. HOW WE WORK — a deeper ivory band, five steps across
   ------------------------------------------------------------------- */
.tv-sh-method { background: var(--tv-ivory-deep); }
.tv-sh-method__head { margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.tv-sh-method__head .hb-heading { margin: 0; }
.tv-sh-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.5rem clamp(1.25rem, 2.5vw, 2.5rem); }
.tv-sh-step { border-top: 1px solid var(--sh-line-strong); padding-top: 1.1rem; }
.tv-sh-step__num {
  display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; font-variant-numeric: tabular-nums;
  color: var(--sh-brass-text); margin-bottom: 0.7rem;
}
.tv-sh-step__name { font-family: var(--hb-serif); font-weight: 500; font-size: clamp(1.3rem, 1.15rem + 0.35vw, 1.5rem); line-height: 1.2; color: var(--hb-ink); margin-bottom: 0.5rem; }
.tv-sh-step p { font-size: 0.88rem; line-height: 1.7; color: var(--hb-text-dim); max-width: 24ch; }
.tv-sh-method__cta { margin-top: clamp(2.25rem, 4vw, 3rem); }

/* ---------------------------------------------------------------------
   5. WHY TRIWAYS — charcoal band, photograph right dissolving into it
   ------------------------------------------------------------------- */
.tv-sh-why {
  --sh-band: clamp(420px, 33vw, 480px);
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--tw-charcoal); padding-top: 0;
}
.tv-sh-why__media { position: absolute; top: 0; right: 0; z-index: 0; width: 55%; height: var(--sh-band); display: block; }
.tv-sh-why__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.tv-sh-why__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--tw-charcoal) 0%, rgba(22, 22, 25, 0.6) 18%, rgba(22, 22, 25, 0) 35%),
    linear-gradient(0deg, var(--tw-charcoal) 0%, rgba(22, 22, 25, 0) 28%);
}
.tv-sh-why > .hb-wrap { position: relative; z-index: 2; }
.tv-sh-why__band {
  min-height: var(--sh-band);
  display: grid; grid-template-columns: var(--sh-cols); column-gap: var(--sh-gutter); align-items: center;
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}
.tv-sh-why__copy { grid-column: 1 / span 5; }
.tv-sh-why__copy .hb-copy { max-width: 26rem; }
.tv-sh-why__link { margin-top: 1.75rem; }
.tv-sh-why .tv-sh-marquee { margin-top: 0; border-top: 1px solid var(--hb-line-on-dark); padding-top: clamp(2.5rem, 4vw, 3.25rem); }

/* S12 pending: no photograph yet — the band closes up to a two-column head on charcoal */
.tv-sh-why__media[data-pending] { display: none; }
.tv-sh-why:has(.tv-sh-why__media[data-pending]) .tv-sh-why__band { min-height: 0; padding: var(--hb-section-y) 0 clamp(3rem, 5vw, 4.5rem); }
.tv-sh-why:has(.tv-sh-why__media[data-pending]) .tv-sh-why__copy {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: calc(var(--sh-gutter) * 3);
}
.tv-sh-why:has(.tv-sh-why__media[data-pending]) .tv-sh-why__copy > * { grid-column: 1; }
.tv-sh-why:has(.tv-sh-why__media[data-pending]) .tv-sh-why__copy > .hb-copy { grid-column: 2; grid-row: 1 / span 2; align-self: end; max-width: 32rem; }
.tv-sh-why:has(.tv-sh-why__media[data-pending]) .tv-sh-why__link { grid-column: 2; grid-row: 3; }
.tv-sh-why:has(.tv-sh-why__media[data-pending]) .hb-heading { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   6. FAQ — heading on three lines left, accordion right
   ------------------------------------------------------------------- */
.tv-sh-faq__grid { display: grid; grid-template-columns: var(--sh-cols); column-gap: var(--sh-gutter); row-gap: 2rem; align-items: start; }
.tv-sh-faq__head { grid-column: 1 / span 4; }
.tv-sh-faq__head .hb-heading { width: min-content; margin: 0; }   /* Frequently / Asked / Questions */
.tv-sh-faq__list { grid-column: 6 / -1; max-width: none; margin-top: 0.4rem; }
.tv-sh-faq .hb-faq__item { padding: 1.25rem 0; }
.tv-sh-faq .hb-faq__item > summary { font-family: var(--hb-sans); font-size: 1rem; font-weight: 400; line-height: 1.5; color: var(--hb-ink); }
.tv-sh-faq .hb-faq__item > summary::after { font-weight: 300; font-size: 1.35rem; color: var(--hb-gold); }
.tv-sh-faq .hb-faq__item > summary:hover { color: var(--sh-brass-text); }

/* ---------------------------------------------------------------------
   7. CLOSE — charcoal split: invitation left, a hairline, next steps right
   ------------------------------------------------------------------- */
.tv-sh-close { background: var(--tw-charcoal); }
.tv-sh-close__grid { display: grid; grid-template-columns: var(--sh-cols); column-gap: var(--sh-gutter); row-gap: 3rem; align-items: center; }
.tv-sh-close__copy { grid-column: 1 / span 6; }
.tv-sh-close__copy .hb-heading { font-size: var(--hb-h2); color: var(--hb-white); max-width: 13ch; }
.tv-sh-close__copy .hb-copy { max-width: 30rem; margin-bottom: 2.25rem; }
.tv-sh-close__direct::after { content: "\2192" / ""; display: inline-block; margin-left: 0.15rem; color: var(--hb-champagne); transition: transform 0.25s var(--hb-ease); }
.tv-sh-close__direct:hover::after { transform: translateX(4px); }
.tv-sh-close__next {
  grid-column: 7 / -1; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center;
  border-top: 0; border-left: 1px solid var(--hb-line-on-dark);
  padding: 0.5rem 0 0.5rem clamp(2rem, 5vw, 5rem);
}
.tv-sh-close__next .hub-close__next-label { margin-bottom: 0.75rem; }
.tv-sh-close__next ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 2.5rem); }
.tv-sh-close__next li:nth-last-child(-n+2) { border-bottom: 0; }
.tv-sh-close__next a { display: block; padding: 1.2rem 0; font-size: clamp(1.25rem, 1.1rem + 0.35vw, 1.45rem); line-height: 1.2; }
.tv-sh-close__next a span {
  display: block; margin-top: 0.4rem;
  font-size: 0.8rem; letter-spacing: 0.02em; text-transform: none; color: var(--sh-stone-on-dark);
}
.tv-sh-close__next a:hover span { transform: none; }

/* ---------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  /* Directory: image 5, text 7, the link under the text */
  .tv-sh-row__inner { row-gap: 0.75rem; }
  .tv-sh-row__media { grid-column: 1 / span 5; grid-row: 1 / span 2; }
  .tv-sh-row__text { grid-column: 6 / -1; align-self: end; }
  .tv-sh-row__go { grid-column: 6 / -1; grid-row: 2; justify-self: start; align-self: start; }

  /* Who we serve: intro on top, each audience a two-column row */
  .tv-sh-aud__head { grid-column: 1 / -1; }
  .tv-sh-aud__head .hb-copy, .tv-sh-aud__note { max-width: 34rem; }
  .tv-sh-aud__list { grid-column: 1 / -1; grid-template-columns: 1fr; border-bottom: 0; }
  .tv-sh-aud__cell {
    display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--sh-gutter);
    padding: 1.75rem 0; border-bottom: 1px solid var(--hb-line);
  }
  .tv-sh-aud__cell + .tv-sh-aud__cell { border-left: 0; }
  .tv-sh-aud__name { grid-row: 1 / span 2; padding-right: 1rem; }
  .tv-sh-aud__desc, .tv-sh-aud__links { grid-column: 2; }
  .tv-sh-aud__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sh-gutter); }

  /* Steps: three, then two */
  .tv-sh-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .tv-sh-faq__head { grid-column: 1 / span 5; }
  .tv-sh-faq__list { grid-column: 6 / -1; }
}

@media (max-width: 991.98px) {
  /* Hero: the photograph on top, the words on solid ink below — the title is never over the picture */
  .tv-sh-hero { display: block; min-height: 0; background: var(--hb-ink); }
  .tv-sh-hero::before { display: none; }
  .tv-sh-hero__media { position: relative; aspect-ratio: 16 / 9; }
  .tv-sh-hero__media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
      linear-gradient(180deg, rgba(var(--tv-scrim), 0.55) 0%, rgba(var(--tv-scrim), 0) 28%),
      linear-gradient(0deg, var(--hb-ink) 0%, rgba(21, 21, 21, 0) 30%);
  }
  .tv-sh-hero__inner { padding-top: 1.5rem; padding-bottom: clamp(3rem, 8vw, 4.5rem); }
  .tv-sh-hero__lead > nav, .tv-sh-hero__lead > .hb-kicker, .tv-sh-hero__title, .tv-sh-hero__answer { grid-column: 1 / -1; }
  .tv-sh-hero__answer { grid-row: 4; padding-top: 1.5rem; max-width: 36rem; }
  .tv-sh-hero__answer::before { display: none; }

  /* Why: photograph first, then the words, then the strip */
  .tv-sh-why__media { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .tv-sh-why__media::after { background: linear-gradient(0deg, var(--tw-charcoal) 0%, rgba(22, 22, 25, 0) 40%); }
  .tv-sh-why__band { min-height: 0; padding: 0.5rem 0 3rem; }
  .tv-sh-why__copy { grid-column: 1 / -1; }

  .tv-sh-faq__head, .tv-sh-faq__list { grid-column: 1 / -1; }
  .tv-sh-faq__head .hb-heading { width: auto; }

  /* Close: stacked; the vertical hairline turns horizontal */
  .tv-sh-close__copy, .tv-sh-close__next { grid-column: 1 / -1; }
  .tv-sh-close__next { border-left: 0; border-top: 1px solid var(--hb-line-on-dark); padding: 1.5rem 0 0; }
}
/* S01 pending: no photograph yet — the hero is the ink band alone */
@media (max-width: 991.98px) {
  .tv-sh-hero__media[data-pending] { display: none; }
  .tv-sh-hero:has(.tv-sh-hero__media[data-pending]) .tv-sh-hero__inner { padding-top: 7rem; }
}

@media (max-width: 767.98px) {
  .tv-sh-hero__media { aspect-ratio: 4 / 3; }
  .tv-sh-hero__media img { object-position: 82% center; }   /* the whole ship, kiosk and pylon in frame */
  .tv-sh-hero__title { font-size: clamp(2.6rem, 1.6rem + 5vw, 3.2rem); }

  /* Directory: image full width at 16:9, then the words */
  .tv-sh-row__inner { grid-template-columns: 1fr; row-gap: 0; padding: 1.5rem 0 1.6rem; }
  .tv-sh-row__media, .tv-sh-row__text, .tv-sh-row__go { grid-column: 1; grid-row: auto; }
  .tv-sh-row__media { aspect-ratio: 16 / 9; margin-bottom: 1.1rem; }
  .tv-sh-row__go { margin-top: 0.9rem; }
  .tv-sh-row__for::after { display: none; }   /* long audience lines wrap here; a trailing hairline would float */

  .tv-sh-aud__cell { display: block; }
  .tv-sh-aud__name { padding-right: 0; }
  .tv-sh-aud__links { display: block; margin-top: 0; }

  /* Steps: one column, the numeral beside the title */
  .tv-sh-steps { grid-template-columns: 1fr; gap: 0; }
  .tv-sh-step { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); padding: 1.25rem 0; }
  .tv-sh-step__num { margin: 0.45rem 0 0; }
  .tv-sh-step p { grid-column: 2; max-width: none; }
  .tv-sh-steps .tv-sh-step:last-child { border-bottom: 1px solid var(--sh-line-strong); }

  .tv-sh-why:has(.tv-sh-why__media[data-pending]) .tv-sh-why__copy { display: block; }
  .tv-sh-why:has(.tv-sh-why__media[data-pending]) .hb-heading { margin-bottom: 1.25rem; }

  .tv-sh-close__next ul { grid-template-columns: 1fr; }
  .tv-sh-close__next li:nth-last-child(2) { border-bottom: 1px solid var(--hb-line-on-dark); }
}

@media (prefers-reduced-motion: reduce) {
  .tv-sh-row__media img, .tv-sh-row__go .hb-arrow, .tv-sh-row__name a,
  .tv-sh-aud__links .hb-arrow, .tv-sh-close__direct::after { transition: none !important; transform: none !important; }
}
