/* ============================================================
   Homepage — Business Gateways layout
   Extends the global design system (style.css tokens).
   ============================================================ */

/* Gateways dropdown navigation now lives in style.css (shared across pages). */

/* ---------- Hero: subtle night world map ---------- */
/* A refined global-connectivity map: faint continent linework, soft glowing
   metropolitan hubs and thin warm arcs, masked so it fades behind the text. */
.hero {
  padding: 108px 0 116px;
  background:
    radial-gradient(880px 600px at 84% 30%, rgba(194,160,76,.11), transparent 62%),
    radial-gradient(120% 120% at 80% 0%, var(--navy-soft) 0%, var(--navy) 45%, var(--navy-deep) 100%);
}
/* the homepage hero uses the world map instead of the old circular rings */
.hero::before, .hero::after { display: none; }

.hero-world {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: min(1180px, 96%); height: auto;
  z-index: 1; pointer-events: none;
  -webkit-mask-image: linear-gradient(95deg, transparent 4%, rgba(0,0,0,.55) 32%, #000 58%);
          mask-image: linear-gradient(95deg, transparent 4%, rgba(0,0,0,.55) 32%, #000 58%);
}
.hero-world .w-land path { fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .18; }
.hero-world .w-arc { fill: none; stroke: var(--gold-soft); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .28; }
.hero-world .w-halo { opacity: .6; }
.hero-world .w-dot { fill: #ecd592; opacity: .85; }
@media (max-width: 880px) {
  .hero-world { width: 150%; right: -10%; }
  .hero-world .w-land path { opacity: .12; }
}
@media (max-width: 600px) {
  .hero-world { display: none; }
}

/* ============================================================
   GATEWAYS SECTION
   ============================================================ */
.gw-section { padding: 74px 0 96px; }
.gw-section .section-head { margin-bottom: 44px; }
.gw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.gw-card {
  display: flex; flex-direction: column;
  background: linear-gradient(158deg, var(--navy-soft) 0%, var(--navy) 54%, var(--navy-deep) 100%);
  color: #fff; border: 1px solid rgba(194,160,76,.18);
  border-radius: 18px; padding: 36px 32px 32px; min-height: 332px;
  position: relative; overflow: hidden;
  box-shadow: 0 16px 38px rgba(15,28,48,.30);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.gw-card:hover {
  transform: translateY(-6px);
  border-color: rgba(194,160,76,.5);
  box-shadow: 0 26px 54px rgba(15,28,48,.42), 0 0 0 1px rgba(194,160,76,.22);
}

/* Country "night map" artwork (right side): faint gold borders, subtle warm
   connection arcs and soft glowing metropolitan light clusters.
   Sized per orientation with correct aspect ratio — never stretched/distorted. */
.gw-card .gw-map {
  position: absolute; top: 50%; transform: translateY(-50%);
  pointer-events: none; z-index: 0; transition: transform .45s ease;
}
.gw-card .gw-map .gw-lines path {
  fill: none; stroke: var(--gold); stroke-width: .9;
  vector-effect: non-scaling-stroke; opacity: .22; transition: opacity .35s ease;
}
.gw-card:hover .gw-map .gw-lines path { opacity: .30; }
.gw-card .gw-map .gw-links .link {
  fill: none; stroke: var(--gold-soft); stroke-width: .8;
  vector-effect: non-scaling-stroke; opacity: .32; transition: opacity .35s ease;
}
.gw-card:hover .gw-map .gw-links .link { opacity: .48; }
.gw-card .gw-map .gw-lights .halo { opacity: .6; transition: opacity .35s ease; }
.gw-card .gw-map .gw-lights .dot { fill: #ecd592; opacity: .9; }
/* capital city: the strongest point, shown in a refined muted red */
.gw-card .gw-map .gw-lights .cap-halo { opacity: .8; transition: opacity .35s ease; }
.gw-card .gw-map .gw-lights .cap-dot { fill: #e8736b; opacity: 1; }
.gw-card:hover .gw-map .gw-lights .halo { opacity: .9; }
.gw-card:hover .gw-map .gw-lights .cap-halo { opacity: 1; }
.gw-card:hover .gw-map { transform: translateY(-50%) scale(1.02); }
/* placement: pushed to the right so the artwork sits in its own zone */
.gw-card .gw-map-cn { width: 198px; height: auto; right: -5%; }  /* China: landscape */
.gw-card .gw-map-de { height: 248px; width: auto; right: -3%; }  /* Germany: portrait */
.gw-card .gw-map-uk { height: 252px; width: auto; right: 2%; }   /* United Kingdom: portrait */

/* keep the text in a clear column on the left, clear of the artwork */
.gw-card .gw-kicker,
.gw-card h3,
.gw-card p { max-width: 56%; }
.gw-card .gw-go { white-space: nowrap; }   /* keep "Explore United Kingdom →" on one line */

.gw-emblem {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid rgba(194,160,76,.55); background: rgba(194,160,76,.06);
  display: grid; place-items: center; color: var(--gold);
  margin-bottom: 22px; position: relative; z-index: 1;
}
.gw-emblem svg { width: 26px; height: 26px; }
.gw-kicker {
  position: relative; z-index: 1;
  font-family: var(--serif); font-size: 1.9rem; line-height: 1.05; color: #fff;
}
.gw-card h3 {
  position: relative; z-index: 1;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-soft);
  margin: 6px 0 16px;
}
.gw-card p { position: relative; z-index: 1; color: rgba(255,255,255,.8); font-size: 0.98rem; margin: 0 0 26px; }
.gw-go {
  position: relative; z-index: 1; margin-top: auto;
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--gold); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em;
}
.gw-go .arrow { transition: transform .25s ease; }
.gw-card:hover .gw-go .arrow { transform: translateX(6px); }

/* ============================================================
   REPORT & ADVISORY MODEL (five-step process line)
   ============================================================ */
.rmodel { margin-top: 56px; }

.rmodel-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}

/* individual step card */
.rstep {
  position: relative;
  display: flex; flex-direction: column;          /* lets the CTA sit at the bottom */
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 34px 20px 22px; margin-top: 22px;     /* room for the icon badge */
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.rstep:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: rgba(194,160,76,.42); }

/* circular navy icon badge, floating over the top edge */
.rstep-ic {
  position: absolute; top: -22px; left: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(158deg, var(--navy-soft), var(--navy-deep));
  display: grid; place-items: center; color: var(--gold-soft);
  box-shadow: 0 8px 20px rgba(15,28,48,.28);
}
.rstep-ic svg { width: 21px; height: 21px; }

/* numbered badge + title */
.rstep-titlerow { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.rstep-num {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: var(--navy-deep);
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.rstep h3 {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  color: var(--navy); margin: 0; line-height: 1.2;
}

/* price line — orientation, not a sales label */
.rstep-price { margin: 0 0 12px; color: var(--navy); line-height: 1.1; }
.rstep-price .pre { font-size: 0.82rem; color: var(--grey-text); font-weight: 500; }
.rstep-price .amt { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.rstep-price .unit { font-size: 0.82rem; font-weight: 600; color: var(--grey-text); letter-spacing: .03em; }

.rstep-desc { font-size: 0.84rem; line-height: 1.5; color: var(--grey-text); margin: 0 0 14px; }

/* per-step CTA — gold text link, pinned to the bottom so CTAs align on desktop */
.rstep-cta {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600; letter-spacing: .01em;
  color: var(--gold); transition: gap .2s ease, color .2s ease;
}
.rstep-cta:hover { gap: 11px; color: var(--gold-soft); }

/* thin connecting arrow between cards (desktop only) */
.rstep:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -13px;
  width: 9px; height: 9px; z-index: 2;
  border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

/* fifth card — emphasized dark-navy panel */
.rstep--feature {
  background: linear-gradient(158deg, var(--navy-soft) 0%, var(--navy) 54%, var(--navy-deep) 100%);
  border-color: rgba(194,160,76,.5);
  box-shadow: 0 18px 40px rgba(15,28,48,.34);
}
.rstep--feature .rstep-ic {
  background: rgba(194,160,76,.1); border: 1.5px solid var(--gold); color: var(--gold);
}
.rstep--feature h3 { color: #fff; }
.rstep--feature .rstep-price .amt { color: var(--gold-soft); font-size: 1.25rem; }
.rstep--feature .rstep-desc { color: rgba(255,255,255,.78); }
.rstep--feature:hover { border-color: var(--gold); }

/* small restrained gold contact button inside the fifth card */
.rstep-btn {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: auto; align-self: flex-start;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: .02em;
  color: var(--gold-soft);
  padding: 7px 15px; border-radius: 8px;
  border: 1px solid rgba(194,160,76,.55); background: rgba(194,160,76,.08);
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.rstep-btn::after {
  content: "→"; font-size: 0.9em; transition: transform .22s ease;
}
.rstep-btn:hover {
  background: var(--gold); color: var(--navy-deep); border-color: var(--gold);
}
.rstep-btn:hover::after { transform: translateX(3px); }

/* whole-card link (cards 2-4 route to /reports/ or #contact) */
.rstep--link { cursor: pointer; }
.rstep-overlay { position: absolute; inset: 0; z-index: 4; border-radius: 14px; }
.rstep--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: rgba(194,160,76,.42); }

/* microcopy under the cards */
.rmodel-note {
  max-width: 880px; margin: 26px auto 0; text-align: center;
  font-size: 0.8rem; line-height: 1.55; color: var(--grey-text);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  /* tablet: 3 + 2 wrap, arrows would point into gaps — drop them */
  .rmodel-steps { grid-template-columns: repeat(3, 1fr); gap: 18px 16px; }
  .rstep:not(:last-child)::after { display: none; }
}

@media (max-width: 980px) {
  .gw-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .gw-section { padding: 64px 0; }

  /* ---- Report model: keep the same premium desktop card look, simply
     stacked into one column. (Icon sizes are fixed by explicit width/height
     attributes on the SVGs, so they no longer balloon on mobile.) ---- */
  .rmodel { margin-top: 48px; }
  /* stack to one column, content-based heights (no forced equal height),
     reduced vertical padding so cards never stretch tall with empty space. */
  .rmodel-steps { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .rstep { padding: 26px 20px 20px; }
  .rstep:not(:last-child)::after { display: none; }   /* no connector arrows when stacked */
  .rstep-desc { margin-bottom: 12px; }
  .rstep-cta, .rstep-btn { margin-top: 6px; }          /* sit right after content, no auto-stretch */
}

/* Expert Network compliance disclaimer */
.expertise-note {
  margin: 30px auto 0; max-width: 760px; text-align: center;
  font-size: 0.84rem; line-height: 1.55; color: var(--grey-text);
}

/* Briefings-on-request head (replaces price ladder) */
.rmodel-head { text-align: center; margin-bottom: 26px; }
.rmodel-sub { font-size: 0.95rem; color: var(--grey-text); margin-top: 6px; }
