/* ============================================================
   Additions — improvements #1–#7
   ============================================================ */

/* ---------- #3 Accessibility: contrast + focus ---------- */
/* Gold text was too light on white; use the darker token for TEXT uses */
.eyebrow, .blog-cat, .brand-tag, .visa-info .v-desc-grp {
  color: var(--gold-600);
}
.eyebrow { color: var(--gold-600); }

:where(a, button, input, .visa-card, .sit-chip, .vfilter, summary):focus-visible {
  outline: 3px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 8px;
}
/* On dark surfaces, use bright gold so the ring is visible */
.hero :focus-visible,
.cta-strip :focus-visible,
.footer :focus-visible,
.topbar :focus-visible {
  outline-color: var(--gold);
}
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  z-index: 300;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- Real image inside placeholder w/ graceful fallback ---------- */
.ph > .ph-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}
.ph.has-img > .ph-img { opacity: 1; }
.ph.has-img::after { display: none; }            /* hide label once a real image loads */
.ph.has-img { background-image: none; }

/* Image-placeholder ID badge (IPH#) — always visible, even over a loaded image */
.iph-badge {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 6;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  background: #fff;
  color: var(--navy-950);
  border: 1px solid rgba(10,31,61,.12);
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.28);
  pointer-events: none;
}

/* ---------- #4 Mega dropdown: click/keyboard support ---------- */
.nav-item.mega-open > .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-item.mega-open .nav-link .caret { transform: rotate(180deg); }

/* ---------- #1/#2 Hero: refined single-path + situation selector ---------- */
.hero-cta--single { align-items: center; }
.hero-cta--single .hero-textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  padding: 8px 4px;
  border-bottom: 1.5px solid transparent;
  transition: border-color .18s ease, gap .18s ease;
}
.hero-cta--single .hero-textlink:hover { border-color: var(--gold); gap: 12px; }
.hero-cta--single .hero-textlink svg { width: 17px; height: 17px; }

.hero-assurance {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
  color: rgba(255,255,255,.72);
}
.hero-assurance span { display: inline-flex; align-items: center; gap: 8px; }
.hero-assurance svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* Situation selector card */
.sit-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 22px;
  padding: 30px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}
.sit-card h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 6px;
}
.sit-card .sit-lead { font-size: 14.5px; color: rgba(255,255,255,.7); margin-bottom: 22px; }
.sit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sit-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 16px 16px 15px;
  color: #fff;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.sit-chip:hover { border-color: rgba(255,255,255,.4); transform: translateY(-2px); }
.sit-chip.active { border-color: var(--gold); background: rgba(200,168,90,.16); }
.sit-chip .sit-ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(200,168,90,.18);
  color: var(--gold);
  display: grid; place-items: center;
}
.sit-chip .sit-ico svg { width: 21px; height: 21px; }
.sit-chip .sit-name { font-weight: 700; font-size: 15px; }
.sit-result {
  margin-top: 18px;
  min-height: 22px;
  font-size: 14px;
  color: var(--gold-200);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.sit-result svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--gold); }
.sit-card .btn { width: 100%; margin-top: 18px; }

/* ---------- #7 Trust / credentials strip ---------- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--line-soft); }
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 30px;
  padding-bottom: 30px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 13px;
}
.trust-item .t-ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(26,75,140,.08);
  color: var(--navy);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.trust-item .t-ico svg { width: 22px; height: 22px; }
.trust-item .t-name { font-weight: 700; font-size: 14.5px; color: var(--navy-900); line-height: 1.2; }
.trust-item .t-sub { font-size: 12.5px; color: var(--slate); }

/* ---------- #7 Testimonials ---------- */
.testi { background: var(--paper-2); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.testi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.testi-stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 16px; }
.testi-stars svg { width: 18px; height: 18px; }
.testi-quote {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--navy-900);
  margin-bottom: 22px;
  flex: 1;
}
.testi-person { display: flex; align-items: center; gap: 13px; }
.testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--navy), var(--navy-900));
  color: var(--gold);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  flex-shrink: 0;
}
.testi-person .name { font-weight: 700; font-size: 15px; color: var(--navy-900); }
.testi-person .role { font-size: 13px; color: var(--slate); }

/* ---------- #6 Visa categories: filterable & lighter ---------- */
.vfilters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 34px;
}
.vfilter {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--slate);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  transition: all .16s ease;
}
.vfilter:hover { border-color: var(--gold-200); color: var(--navy); }
.vfilter.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.vfilter.active .vcount { color: var(--gold); }
.vfilter .vcount { color: var(--slate-300); margin-left: 6px; font-weight: 700; }

.visa-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, opacity .25s ease;
}
.visa-card.v-hide {
  display: none;
}
.visa-card .v-grp-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 6px;
}

/* group accent dots */
.grp-work       { background: #1a4b8c; }
.grp-study      { background: #2f8f6b; }
.grp-family     { background: #c8a85a; }
.grp-humanitarian { background: #9c5bd4; }

/* ---------- #5 Mobile sticky call bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  display: none;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(15,44,84,.1);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-bar a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 10px;
  border-radius: 12px;
}
.mobile-bar svg { width: 18px; height: 18px; }
.mb-call { background: var(--navy); color: #fff; }
.mb-consult { background: var(--gold); color: var(--navy-950); }

@media (max-width: 760px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 76px; }
}

/* ---------- Responsive for new blocks ---------- */
@media (max-width: 1040px) {
  .hero .container { align-items: start; }
  .sit-card { max-width: 520px; }
}
@media (max-width: 880px) {
  .testi-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .trust-strip .container { justify-content: flex-start; gap: 24px 32px; }
}
@media (max-width: 620px) {
  .sit-grid { grid-template-columns: 1fr 1fr; }
  .sit-card { padding: 24px 20px; }
  .trust-item { width: calc(50% - 16px); }
}
@media (max-width: 420px) {
  .sit-grid { grid-template-columns: 1fr; }
  .trust-item { width: 100%; }
}

/* ============================================================
   Hero variations canvas helpers (used by Hero Variations.html)
   ============================================================ */
.hv {
  width: 1200px;
  position: relative;
  overflow: hidden;
  font-family: var(--sans);
}

/* Variation B — full-bleed image w/ overlay */
.hvB {
  min-height: 620px;
  display: flex;
  align-items: center;
  background: var(--navy-950);
}
.hvB .hvB-bg {
  position: absolute; inset: 0;
}
.hvB .hvB-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,31,61,.94) 0%, rgba(10,31,61,.82) 42%, rgba(10,31,61,.45) 100%);
}
.hvB .hvB-inner { position: relative; padding: 0 70px; max-width: 720px; color: #fff; }
.hvB h1 { color: #fff; font-size: 58px; line-height: 1.05; letter-spacing: -.02em; }
.hvB h1 .accent { color: var(--gold); font-style: italic; }

/* Variation C — centered, minimal, gold rule */
.hvC {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(700px 360px at 50% -10%, rgba(200,168,90,.16), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--paper-2) 100%);
}
.hvC .hvC-inner { max-width: 760px; padding: 0 50px; }
.hvC h1 { font-size: 56px; line-height: 1.06; letter-spacing: -.02em; }
.hvC h1 .accent { color: var(--gold-600); font-style: italic; }
.hvC .rule { width: 60px; height: 3px; background: var(--gold); margin: 0 auto 26px; }
.hvC .hero-cta { justify-content: center; }

/* Next.js: show reveal elements immediately so content is never hidden if JS loads late */
.reveal { opacity: 1 !important; transform: none !important; }
