/* ============================================================
   The Global Leadership Summit — country sites  ·  v2
   Light, warm, photographic. One brand palette for all six
   countries; the flag and the content carry the country.

   Why one palette: six flag-coloured sites read as six unrelated
   projects. GLS is a single global brand arriving locally, so the
   brand stays constant and the country shows through the flag,
   the cities, the venues and the photographs.
   ============================================================ */

:root {
  /* Brand — deep indigo for authority, warm amber for energy */
  --brand:        #14305C;
  --brand-2:      #1D4682;
  --brand-soft:   #EEF3FA;
  --amber:        #E39B2E;
  --amber-dark:   #C07F17;
  --amber-soft:   #FDF3E3;

  --ink:          #15181D;
  --ink-2:        #39414C;
  --muted:        #6B7480;
  --line:         #E6EAF0;
  --bg:           #FFFFFF;
  --bg-alt:       #F7F9FC;

  --radius:       18px;
  --radius-sm:    12px;
  --radius-lg:    26px;
  --shadow-sm:    0 4px 14px rgba(19, 30, 51, .06);
  --shadow:       0 18px 50px rgba(19, 30, 51, .12);
  --shadow-lg:    0 30px 80px rgba(19, 30, 51, .18);
  --shadow-amber: 0 14px 34px rgba(227, 155, 46, .34);

  --shell: min(1180px, 100% - 2.5rem);

  --font:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Archivo', var(--font);

  --step--1: clamp(.8rem, .77rem + .14vw, .875rem);
  --step-0:  clamp(1rem, .97rem + .16vw, 1.0625rem);
  --step-1:  clamp(1.15rem, 1.07rem + .38vw, 1.375rem);
  --step-2:  clamp(1.5rem, 1.3rem + .95vw, 2.15rem);
  --step-3:  clamp(2rem, 1.6rem + 1.9vw, 3.1rem);
  --step-4:  clamp(2.5rem, 1.85rem + 3.1vw, 4.4rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-0); line-height: 1.62;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display); font-weight: 800; line-height: 1.06;
  letter-spacing: -.021em; margin: 0; text-wrap: balance; color: var(--ink);
}
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
.shell { width: var(--shell); margin-inline: auto; }

/* Eyebrow — names the section's role */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-2); margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--amber); }
.on-dark .eyebrow, .hero .eyebrow { color: #fff; }
.on-dark .eyebrow::before { background: var(--amber); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--amber); color: var(--ink); padding: .8rem 1.2rem; font-weight: 700; border-radius: 0 0 var(--radius-sm) 0; }
.skip:focus { left: 0; }
:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: .975rem;
  border-radius: 999px; background: var(--amber); color: #17120A;
  box-shadow: var(--shadow-amber);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--amber-dark); color: #fff; }
.btn--navy { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--navy:hover { background: var(--brand-2); color: #fff; }
.btn--outline {
  background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--outline:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn--onphoto {
  background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5);
}
.btn--onphoto:hover { background: #fff; color: var(--brand); box-shadow: none; }
.btn--sm { padding: .68rem 1.25rem; font-size: .9rem; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.masthead__in { display: flex; align-items: center; gap: 1.1rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; margin-right: auto; }
.brand__flag {
  width: 38px; height: 26px; flex: none; border-radius: 5px;
  box-shadow: 0 2px 8px rgba(19,30,51,.22);
}
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1rem; line-height: 1.15; letter-spacing: -.015em; }
.brand__sub { display: block; font-size: .655rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a { text-decoration: none; font-size: .945rem; font-weight: 500; color: var(--ink-2); transition: color .2s var(--ease); }
.nav a:hover { color: var(--brand); }
.nav__toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; isolation: isolate; text-align: center;
  padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.hero .eyebrow { justify-content: center; }
/* Photograph if present, brand gradient underneath. A missing photo
   degrades to the gradient rather than a broken image. */
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(115deg, rgba(10,24,48,.90) 8%, rgba(16,44,88,.72) 52%, rgba(29,70,130,.58) 100%),
                    var(--hero-photo, none),
                    linear-gradient(125deg, #0C1B33 0%, #14305C 48%, #1D4682 100%);
  background-size: cover, cover, cover;
  background-position: center, center, center;
}
.hero__glow {
  position: absolute; z-index: -1; inset: auto -8% -30% auto; width: min(620px, 70vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(227,155,46,.34), transparent 66%); filter: blur(30px); pointer-events: none;
}
.hero h1 { color: #fff; font-size: var(--step-4); font-weight: 900; max-width: 17ch; margin-inline: auto; }
.hero h1 .amber { color: var(--amber); }
.hero__lede { margin: 1.5rem auto 0; max-width: 48ch; font-size: var(--step-1); color: rgba(255,255,255,.86); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.1rem; justify-content: center; }


/* ---------- trust bar ---------- */
.trust { margin-top: -2.5rem; position: relative; z-index: 5; }
.trust__card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem); display: grid; gap: 1.4rem;
}
@media (min-width: 44rem) { .trust__card { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.trust__item { display: grid; gap: .2rem; }
@media (min-width: 44rem) { .trust__item + .trust__item { border-left: 1px solid var(--line); padding-left: 2rem; } }
.trust__n { font-family: var(--display); font-weight: 800; font-size: var(--step-2); line-height: 1; color: var(--brand); }
.trust__k { font-size: .9rem; color: var(--muted); }

/* ---------- generic section ---------- */
.sec { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sec--alt { background: var(--bg-alt); }
.sec__head { max-width: 34rem; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.sec__head h2 { font-size: var(--step-3); }
.sec__head p { margin: 1rem 0 0; color: var(--muted); font-size: var(--step-1); line-height: 1.55; }

/* A dated caveat under the events list — the offices confirm Summit dates
   site by site, so the page says so rather than implying silence means none. */
.note { margin-top: 1.75rem; display: flex; align-items: center; gap: .6rem;
  color: var(--muted); font-size: .92rem; }
.note::before { content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber); flex: none; }

/* ---------- value cards ---------- */
.gains { display: grid; gap: 1.25rem; }
@media (min-width: 44rem) { .gains { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .gains { grid-template-columns: repeat(4, 1fr); } }
.gain {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gain:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.gain__ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 1.1rem;
}
.gain h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.gain p { margin: 0; color: var(--muted); font-size: .945rem; line-height: 1.55; }

/* ---------- events ----------
   Populated from the app's JSON feed. The markup ships with a working
   fallback card, so with JavaScript off — or the feed down — the section
   still points at the full events page instead of sitting empty. */
.evts { display: grid; gap: 1.25rem; }
@media (min-width: 44rem) { .evts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 70rem) { .evts { grid-template-columns: repeat(3, 1fr); } }

.evt {
  display: flex; flex-direction: column; gap: .8rem; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.evt:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.evt__top { display: flex; align-items: flex-start; gap: 1rem; }
.evt__date {
  flex: none; width: 62px; border-radius: 12px; overflow: hidden;
  text-align: center; background: var(--brand); color: #fff; line-height: 1;
}
.evt__d { display: block; font-family: var(--display); font-weight: 800; font-size: 1.5rem; padding: .5rem 0 .15rem; }
.evt__m { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .12em; padding-bottom: .5rem; color: var(--amber); }
.evt h3 { font-size: 1.1rem; line-height: 1.25; }
.evt__when { margin: .3rem 0 0; font-size: .85rem; color: var(--muted); }
.evt__blurb { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.evt__meta { display: flex; flex-wrap: wrap; gap: .45rem; }
.evt__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: .9rem; font-weight: 600; color: var(--brand-2); display: flex; align-items: center; gap: .4rem; }
.evt:hover .evt__foot { color: var(--amber-dark); }
.evt--all { justify-content: center; background: var(--brand-soft); border-style: dashed; }
.evt--all:only-child { grid-column: 1 / -1; text-align: center; align-items: center; }
.evt--all:only-child .evt__blurb { max-width: 46ch; }

/* Speaker faces on an event card. Overlapped portraits read as "who is
   teaching" at a glance, which is what decides most ticket purchases. */
.evt__spk { display: flex; align-items: center; gap: .6rem; }
.evt__faces { display: flex; }
.evt__faces img, .evt__faces span {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(19,30,51,.2);
  margin-left: -10px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}
.evt__faces > :first-child { margin-left: 0; }
.evt__names { font-size: .82rem; color: var(--muted); line-height: 1.35; }

/* ---------- community hub ----------
   Cards that lead into the app: marketplace, directory, events, membership.
   The website promotes these; it never reimplements them. One shared copy of
   each page serves every country, which is the whole point of the app. */
.hub { display: grid; gap: 1.25rem; }
@media (min-width: 44rem) { .hub { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .hub { grid-template-columns: repeat(4, 1fr); } }
.hubcard {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem 1.4rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.hubcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.hubcard__ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--amber-soft); color: var(--amber-dark); margin-bottom: 1.1rem;
}
.hubcard h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.hubcard p { margin: 0; color: var(--muted); font-size: .945rem; line-height: 1.55; }
.hubcard__go {
  margin-top: auto; padding-top: 1.15rem; font-size: .9rem; font-weight: 600;
  color: var(--brand-2); display: flex; align-items: center; gap: .4rem;
}
.hubcard:hover .hubcard__go { color: var(--amber-dark); }

/* Primary call under the network cards. The four cards explain the offer;
   this is the single action that follows from it. */
.hub__cta { margin-top: clamp(2rem, 4vw, 2.75rem); text-align: center; }
.hub__cta p { margin: .9rem 0 0; color: var(--muted); font-size: .93rem; }

/* ---------- host ---------- */
.host__in { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 58rem) { .host__in { grid-template-columns: 1fr 1fr; } }
.host__list { margin: 1.6rem 0 2rem; padding: 0; list-style: none; display: grid; gap: .85rem; }
.host__list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink-2); font-size: .975rem; }
.host__list svg { flex: none; margin-top: .28rem; color: var(--amber-dark); }
.host__media {
  border-radius: var(--radius-lg); aspect-ratio: 4 / 3; box-shadow: var(--shadow);
  background-image: var(--host-photo, none), linear-gradient(140deg, #14305C, #2C63AE);
  background-size: cover; background-position: center;
}

/* ---------- closing band ---------- */
.close {
  background: linear-gradient(125deg, #0C1B33 0%, #14305C 52%, #1D4682 100%);
  color: #fff; text-align: center; padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.close h2 { color: #fff; font-size: var(--step-3); margin-inline: auto; max-width: 18ch; }
.close p { max-width: 44ch; margin: 1.1rem auto 2rem; color: rgba(255,255,255,.82); font-size: var(--step-1); }
.close .hero__actions { justify-content: center; }

/* ---------- footer ---------- */
.foot { background: #0C1526; color: rgba(255,255,255,.72); padding: clamp(3rem, 6vw, 4.5rem) 0 2.25rem; font-size: .94rem; }
.foot h3 { color: #fff; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; font-family: var(--font); font-weight: 700; }
.foot__grid { display: grid; gap: 2.25rem; }
@media (min-width: 54rem) { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.foot a { color: rgba(255,255,255,.72); text-decoration: none; }
.foot a:hover { color: var(--amber); }
.foot__legal { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .84rem; color: rgba(255,255,255,.52); }

/* ---------- install prompt (PWA) ---------- */
.install {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(140%);
  bottom: 1rem; z-index: 80; width: min(420px, calc(100% - 2rem));
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1rem 1.1rem; display: flex; align-items: center; gap: .9rem;
  transition: transform .4s var(--ease);
}
.install.is-up { transform: translateX(-50%) translateY(0); }
.install p { margin: 0; font-size: .9rem; line-height: 1.4; flex: 1; }
.install strong { display: block; font-family: var(--display); }
.install__x { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1.3rem; line-height: 1; padding: .2rem; }

/* ---------- reveal ---------- */
.js .rise { opacity: 0; transform: translateY(16px); }
.js .rise.is-in { opacity: 1; transform: none; transition: opacity .65s var(--ease), transform .65s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rise { opacity: 1; transform: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 56rem) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; inset: 74px 0 auto; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: .5rem 0;
  }
  .nav.is-open a { padding: .95rem 1.25rem; border-bottom: 1px solid var(--line); }
  .nav.is-open .btn { margin: .8rem 1.25rem; }
  .nav__toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    background: var(--brand-soft); border: 0; border-radius: 12px; cursor: pointer; color: var(--brand);
  }
  .trust { margin-top: -1.5rem; }
}
