/* ISOPOL 2027 — main stylesheet
   Colours come from the logo and banners. Change them here only. */
:root {
  --navy:      #1a2a56;
  --navy-deep: #111c3f;
  --blue:      #1f4fb0;
  --blue-soft: #e8eefb;
  --gold:      #c9a35c;
  --ink:       #1c2233;
  --muted:     #5b6478;
  --line:      #dfe4ee;
  --bg:        #ffffff;
  --bg-alt:    #f4f6fb;
  --radius:    14px;
  --shadow:    0 10px 30px rgba(17, 28, 63, .08);
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: #fff; padding: 8px 14px; }

.eyebrow {
  font: 600 .78rem/1.4 var(--head); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8em;
}
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-num { font: 800 1.6rem/1 var(--head); color: var(--blue); }
.brand-num sup { font-size: .5em; vertical-align: super; }
.brand-sep { width: 1px; height: 32px; background: var(--navy); opacity: .35; }
.brand-name { font: 800 1.45rem/1 var(--head); letter-spacing: .18em; display: flex; flex-direction: column; }
.brand-name small { font: 600 .62rem/1.6 var(--head); letter-spacing: .2em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.main-nav a {
  display: block; padding: 8px 11px; border-radius: 8px;
  font: 600 .84rem/1.2 var(--head); color: var(--navy); text-decoration: none; letter-spacing: .02em;
}
.main-nav a:hover { background: var(--blue-soft); }
.main-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 20px 18px; }
  .main-nav a { padding: 12px 6px; font-size: .95rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Dark navy backgrounds (hero + page band) ---------- */
.hero, .page-band {
  color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(31,79,176,.55), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(31,79,176,.35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.hero::after, .page-band::after {   /* faint concentric rings, as on the banner */
  content: ""; position: absolute; right: -180px; top: -160px; width: 640px; height: 640px; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.05) 0 1px, transparent 1px 34px);
  pointer-events: none;
}
.page-band { padding: 56px 0 50px; }
.page-band h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin: 0; }
.page-band .lead { color: rgba(255,255,255,.8); margin: 14px 0 0; max-width: 720px; }

/* ---------- Home hero ---------- */
.hero { padding: 72px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-logo { background: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; margin-bottom: .2em; letter-spacing: .02em; }
.hero h1 sup { font-size: .45em; }
.hero h1 .bar { display: inline-block; width: 2px; height: .8em; background: var(--gold); margin: 0 .3em; vertical-align: -.05em; }
.hero .subtitle {
  font: 500 clamp(.95rem, 1.6vw, 1.15rem)/1.4 var(--head); letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.85); padding-bottom: 18px; border-bottom: 1px solid var(--gold); margin-bottom: 18px; max-width: 560px;
}
.hero .when { font: 700 clamp(1.5rem, 3vw, 2.1rem)/1.2 var(--head); margin: 0 0 4px; }
.hero .where { color: var(--gold); font: 600 1.1rem/1.4 var(--head); margin-bottom: 28px; }

.countdown { display: flex; gap: 12px; margin-bottom: 30px; }
.countdown div {
  min-width: 76px; text-align: center; padding: 10px 8px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.06);
}
.countdown b { display: block; font: 700 1.6rem/1.1 var(--head); }
.countdown span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }

@media (max-width: 860px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo { max-width: 260px; }
  .countdown div { min-width: 0; flex: 1; }
}

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px;
  font: 700 .9rem/1 var(--head); letter-spacing: .04em; text-decoration: none; border: 2px solid transparent; transition: .2s;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #d9b673; color: var(--navy-deep); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--navy); color: #fff; }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted); pointer-events: none; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }

.welcome-grid { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.signature { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.signature strong { display: block; font-family: var(--head); color: var(--navy); font-size: 1.05rem; }
.signature span { color: var(--muted); font-size: .95rem; }

.milestone {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #fff;
  border-radius: var(--radius); padding: 32px 28px; position: sticky; top: 100px; box-shadow: var(--shadow);
}
.milestone .years { font: 800 4.4rem/1 var(--head); color: var(--gold); }
.milestone .years small { font-size: .3em; letter-spacing: .14em; display: block; color: #fff; margin-top: 6px; }
.milestone p { color: rgba(255,255,255,.85); font-size: .95rem; margin: 16px 0 0; }
.milestone em { color: #fff; }
@media (max-width: 860px) { .welcome-grid { grid-template-columns: 1fr; } .milestone { position: static; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); text-decoration: none; color: inherit; display: block; transition: .2s;
}
a.card:hover { transform: translateY(-3px); border-color: var(--blue); color: inherit; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card .more { display: inline-block; margin-top: 14px; font: 700 .85rem var(--head); color: var(--blue); }

/* Key dates */
.dates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dates li { border-left: 3px solid var(--gold); background: #fff; padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.dates span { display: block; font-size: .85rem; color: var(--muted); }
.dates b { font: 700 1.05rem/1.4 var(--head); color: var(--navy); }

/* Committees */
.people { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.people li { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--radius); padding: 16px 20px; }
.people strong { display: block; font-family: var(--head); color: var(--navy); }
.people span { color: var(--muted); font-size: .92rem; line-height: 1.4; display: block; }
.people .flag { font-size: .8rem; color: var(--gold); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* Notice / coming soon */
.notice {
  border: 1px dashed var(--blue); background: var(--blue-soft); border-radius: var(--radius);
  padding: 22px 26px; margin: 0 0 32px;
}
.notice strong { font-family: var(--head); color: var(--navy); }
.notice p:last-child { margin-bottom: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin-bottom: 24px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--navy); color: #fff; font: 600 .85rem var(--head); letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Topics chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 32px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 600 .9rem var(--head); color: var(--navy); }

/* Sponsoring tiers */
.tier { margin-bottom: 36px; }
.tier h3 { display: flex; align-items: center; gap: 12px; }
.tier h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.logo-slot { border: 1px dashed var(--line); border-radius: var(--radius); height: 110px; display: grid; place-items: center; color: var(--muted); font-size: .9rem; background: #fff; }

/* Two-column layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.hotel-widget { margin: 20px 0 28px; min-height: 200px; }
.hotel-widget iframe { display: block; border: 0 !important; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; height: 720px; }
.section.alt .wrap > p { max-width: 820px; }
.map { border: 0; width: 100%; height: 380px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Forms */
.form { display: grid; gap: 18px; }
.form label { font: 600 .85rem var(--head); color: var(--navy); display: block; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.form .hp { position: absolute; left: -9999px; }
.form select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.form-grid { grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.alert { padding: 16px 20px; border-radius: 10px; margin-bottom: 20px; }
.alert.ok { background: #e7f6ec; color: #1d6b3a; }
.alert.err { background: #fdeceb; color: #9b2c22; }

.contact-box { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.contact-box dt { font: 600 .8rem var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-box dd { margin: 0 0 16px; font-weight: 500; }

/* CTA band */
.cta {
  background: linear-gradient(120deg, var(--blue), var(--navy)); color: #fff; border-radius: 20px;
  padding: 44px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; color: rgba(255,255,255,.85); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 60px 0 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; padding-bottom: 40px; }
.footer-title { font: 700 .8rem var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .85rem; }
.footer-bottom a { color: rgba(255,255,255,.75); text-decoration: none; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .cta { padding: 30px 24px; }
  th, td { padding: 12px 10px; font-size: .9rem; }
  .wrap, .narrow { width: calc(100% - 32px); }
}
