/* =========================================================
   HOMEPAGE HERO — tabbed country slideshow
   Uses the reference's METHOD (background slideshow + country
   tabs + photo indicators + prev/next arrows + progress bar +
   auto-advance) but styled entirely with THIS site's theme:
   --sky accent, --ink surfaces, Poppins/Inter/IBM Plex Mono.
   Scoped under .hh-hero; loaded only on index.html.
========================================================= */

.hh-hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:stretch;
  overflow:hidden;
  background:var(--ink);
  color:var(--white);
  padding:140px 0 40px;
}

/* ---- background slideshow ---- */
.hh-hero .hh-vbg{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.hh-hero .hh-slide{
  position:absolute; inset:0;
  opacity:0;
  transition:opacity 1s ease-in-out;
  background-color:var(--ink);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.hh-hero .hh-slide.is-active{ opacity:1; z-index:1; }

/* Directional readability gradient (same behaviour as ATC Excellent's hero):
   darkest on the LEFT where the heading/CTAs sit, fading out to the RIGHT so the
   photo stays bright and true there. This — not a card — keeps the text legible
   by default; the .hh-content card is only a subtle hover enhancement on top. */
.hh-hero .hh-overlay{
  position:absolute; inset:0; z-index:2; pointer-events:none;
  background: linear-gradient(105deg, rgba(8,12,22,0.85) 0%, rgba(8,12,22,0.62) 48%, rgba(8,12,22,0.28) 100%);
}

/* ---- layout: content on top, bottom bar pinned below ---- */
.hh-hero .hh-wrap{
  position:relative; z-index:3;
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 28px;
  display:flex;
  flex-direction:column;
  gap:34px;
}

/* content block: transparent by default (the directional overlay keeps the text
   readable) — a dark, blurred backdrop hugging just the heading/lead/CTAs fades
   in ONLY on hover, exactly like ATC Excellent's hero. */
.hh-hero .hh-content{
  display:inline-block;
  max-width:640px;
  padding:32px 36px;
  background:transparent;
  border:1px solid transparent;
  border-radius:20px;
  transition:background .3s ease, backdrop-filter .3s ease, border-color .3s ease, box-shadow .3s ease;
}
@media (hover:hover){
  .hh-hero .hh-content:hover{
    background:rgba(8,12,22,0.55);
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
    border-color:rgba(255,255,255,0.10);
    box-shadow:0 24px 60px -20px rgba(0,0,0,0.5);
  }
}

/* eyebrow — mono, sky accent, with a sky dash */
.hh-hero .hero-eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-mono);
  font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  font-weight:600; color:var(--sky);
}
.hh-hero .hero-eyebrow::before{ content:''; width:18px; height:2px; background:var(--sky); display:inline-block; }

/* headline — site display font (Poppins); highlighted word in sky */
.hh-hero .hh-content h1{
  font-family:var(--font-display);
  font-weight:800;
  color:var(--white);
  line-height:1.08;
  font-size:clamp(2rem, 4.4vw, 3.4rem);
  margin:14px 0 0;
}
.hh-hero .hh-content h1 em{
  font-style:normal;
  color:var(--sky);
  background:linear-gradient(180deg, transparent 62%, rgba(16,179,230,0.26) 62%);
}
.hh-hero .hh-content .lead{ color:rgba(255,255,255,0.85); max-width:540px; margin-top:18px; }

/* CTAs + stats reuse the site's own .btn / .home-hero-stats styles (no colour overrides) */
.hh-hero .cta-row{ margin-top:30px; }
.hh-hero .home-hero-stats{ margin-top:26px; gap:34px; }
.hh-hero .home-hero-stats .num{ font-family:var(--font-display); font-size:30px; font-weight:800; color:var(--sky); line-height:1; text-shadow:0 2px 12px rgba(0,0,0,0.6); }
.hh-hero .home-hero-stats .label{ font-family:var(--font-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,0.66); margin-top:6px; text-shadow:0 2px 10px rgba(0,0,0,0.7); }

/* ---- bottom bar: indicators (right) above the tabs; pinned to bottom, never overlapping ---- */
.hh-hero .hh-bottom{
  margin-top:auto;
  display:flex; flex-direction:column; gap:12px; width:100%;
  padding-top:28px;
}
.hh-hero .hh-photo-indicators{
  align-self:flex-end;
  display:flex; gap:6px;
  padding:5px 10px; border-radius:30px;
  background:rgba(20,24,29,0.55);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,0.14);
}
.hh-hero .hh-indicator{
  width:24px; height:24px; border-radius:50%;
  border:none; background:transparent; cursor:pointer; padding:0;
  color:rgba(255,255,255,0.6);
  font-family:var(--font-body); font-size:12px; font-weight:600;
  display:flex; align-items:center; justify-content:center;
  transition:background .3s ease, color .3s ease;
}
.hh-hero .hh-indicator:hover{ color:#fff; background:rgba(255,255,255,0.12); }
.hh-hero .hh-indicator.is-active{ background:var(--sky); color:var(--ink); }

/* ---- country tabs + arrows ---- */
.hh-hero .hh-tabs-wrapper{ display:flex; align-items:stretch; gap:14px; width:100%; }
.hh-hero .hh-tabs-nav{ display:flex; flex-wrap:wrap; align-items:stretch; gap:10px; flex:1; }
.hh-hero .hh-tabs-nav::-webkit-scrollbar{ display:none; }
.hh-hero .hh-tab{
  flex:1 1 130px;
  text-align:left; cursor:pointer;
  padding:12px 16px;
  border-radius:10px;
  /* fixed, moderately-opaque surface with a clear light border + drop shadow so
     the tab reads as a distinct chip against ANY photo — the border defines the
     edge on dark photos, the shadow separates it on bright ones. */
  background:rgba(18,22,28,0.80);
  border:1px solid rgba(255,255,255,0.42);
  box-shadow:0 8px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  color:rgba(255,255,255,0.62);
  display:flex; flex-direction:column; gap:4px;
  position:relative; overflow:hidden;
  transition:background .35s ease, border-color .35s ease, color .35s ease, transform .35s ease;
}
.hh-hero .hh-tab:hover{ background:rgba(30,36,42,0.82); border-color:rgba(255,255,255,0.4); color:#fff; transform:translateY(-2px); }
.hh-hero .hh-tab.is-active{
  background:rgba(10,45,64,0.88);
  border-color:var(--sky);
  color:#fff;
  box-shadow:0 8px 24px -10px rgba(16,179,230,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
}
.hh-hero .hh-tab-label{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:.08em; text-transform:uppercase; font-weight:600; color:var(--sky); }
.hh-hero .hh-tab-title{ font-family:var(--font-display); font-size:15px; font-weight:700; line-height:1.2; color:#fff; }
.hh-hero .hh-tab-progress{ position:absolute; left:0; bottom:0; height:3px; width:0; background:var(--sky); }

.hh-hero .hh-nav-arrows{ display:flex; gap:8px; align-items:center; }
.hh-hero .hh-arrow{
  width:44px; height:44px; border-radius:50%;
  background:transparent;
  border:1px solid rgba(255,255,255,0.3);
  color:rgba(255,255,255,0.8);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition:background .3s ease, color .3s ease, transform .3s ease, border-color .3s ease;
}
.hh-hero .hh-arrow:hover,
.hh-hero .hh-arrow:focus-visible{ background:var(--sky); color:var(--ink); border-color:var(--sky); transform:scale(1.06); }

/* ---- responsive ---- */
@media (max-width:920px){
  .hh-hero{ padding:110px 0 34px; }
  .hh-hero .hh-wrap{ gap:24px; }
  /* Mobile readability comes from the gradient (same approach as ATC Excellent):
     a directional dark wash over the text side plus a soft vertical layer, so the
     photo still shows through while the full-width text stays legible. */
  .hh-hero .hh-overlay{
    background:
      linear-gradient(105deg, rgba(8,12,22,0.88) 0%, rgba(8,12,22,0.66) 50%, rgba(8,12,22,0.40) 100%),
      linear-gradient(180deg, rgba(8,12,22,0.28) 0%, rgba(8,12,22,0.12) 100%);
  }
  /* content block stays transparent by default; tapping it reveals the dark card
     (touch-active), exactly like ATC Excellent's mobile hero. */
  .hh-hero .hh-content{ max-width:100%; padding:26px 24px; }
  .hh-hero .hh-content.touch-active{
    background:rgba(8,12,22,0.55);
    -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
    border-color:rgba(255,255,255,0.10);
    box-shadow:0 24px 60px -20px rgba(0,0,0,0.5);
  }
  .hh-hero .hh-tabs-wrapper{ flex-direction:column; align-items:stretch; }
  .hh-hero .hh-nav-arrows{ display:none; }
}
@media (max-width:560px){
  .hh-hero .hh-photo-indicators{ align-self:center; }
  .hh-hero .cta-row .btn{ width:100%; justify-content:center; }
  .hh-hero .hh-tab{ min-width:120px; }

  /* shorten the hero on phones so the landscape photo isn't cropped into a
     tall narrow strip — tighter spacing + a 2-column stats grid reclaim height */
  .hh-hero{ min-height:auto; padding:84px 0 24px; }
  .hh-hero .hh-wrap{ gap:16px; }
  .hh-hero .hh-content{ padding:20px 18px; }
  .hh-hero .hh-content h1{ font-size:1.85rem; margin-top:8px; }
  .hh-hero .hh-content .lead{ margin-top:10px; }
  .hh-hero .cta-row{ margin-top:18px; }
  .hh-hero .home-hero-stats{ display:grid; grid-template-columns:1fr 1fr; gap:16px 18px; margin-top:12px; }
  .hh-hero .hh-bottom{ padding-top:18px; gap:10px; }
}

@media (prefers-reduced-motion:reduce){
  .hh-hero .hh-slide, .hh-hero .hh-tab, .hh-hero .hh-arrow{ transition:none; }
}
