/* ===== Illinois Endoscopy Society — shared styles ===== */
:root {
  --ink: #0c1c2c;
  --ink-soft: #3d4f60;
  --muted: #6b7b8a;
  --teal: #0e7c86;
  --teal-deep: #0a5b63;
  --teal-light: #e6f4f5;
  --gold: #d9a441;
  --gold-soft: #f6ecd4;
  --paper: #ffffff;
  --bg: #f6f9fa;
  --line: #e3eaed;
  --shadow: 0 18px 50px -24px rgba(12, 28, 44, 0.35);
  --radius: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.9rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.note-flag { display:inline-block; font-size:0.7rem; font-weight:600; letter-spacing:0.04em; color:var(--gold); background:var(--gold-soft); padding:0.15rem 0.55rem; border-radius:999px; vertical-align:middle; }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.95rem; padding: 0.85rem 1.6rem; border-radius: 999px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; cursor: pointer; border: none; font-family: inherit; white-space: nowrap; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -10px rgba(14,124,134,.7); }
.btn-primary:hover { transform: translateY(-2px); background: var(--teal-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-light { background:#fff; color:var(--teal-deep); }
.btn-light:hover { transform: translateY(-2px); }

/* Header */
header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: rgba(255,255,255,.82); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 700; }
.brand .mark { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--teal), var(--teal-deep)); display: grid; place-items: center; color: #fff; flex: none; }
.brand b { font-size: 1.02rem; letter-spacing: -0.01em; }
.brand .sub { display: block; font-size: 0.72rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }
.menu { display: flex; gap: 2rem; align-items: center; }
.menu a:not(.btn) { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.menu a:hover, .menu a.active { color: var(--teal); }
.nav-cta { display: flex; gap: 0.7rem; align-items: center; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero (home) */
.hero { position: relative; overflow: hidden; padding: 5.5rem 0 4.5rem; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 78% -10%, rgba(14,124,134,.14), transparent 60%), radial-gradient(600px 400px at 0% 110%, rgba(217,164,65,.10), transparent 60%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.9rem); margin-bottom: 1.3rem; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 34ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; }
.hero-stats .num { font-family: 'Fraunces', serif; font-size: 2rem; color: var(--ink); }
.hero-stats .lbl { font-size: 0.82rem; color: var(--muted); }

.event-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.event-card .visual { height: 230px; background: linear-gradient(135deg, rgba(12,28,44,.55), rgba(14,124,134,.35)), url("https://images.unsplash.com/photo-1579684385127-1ef15d508118?auto=format&fit=crop&w=1200&q=80") center/cover; display: flex; align-items: flex-end; padding: 1.4rem; }
.event-card .visual .tag { background: rgba(255,255,255,.95); color: var(--teal-deep); font-weight: 600; font-size: 0.78rem; padding: 0.35rem 0.85rem; border-radius: 999px; }
.event-card .body { padding: 1.6rem 1.6rem 1.8rem; }
.event-card .date { font-size: 0.8rem; color: var(--gold); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.event-card h3 { font-size: 1.35rem; margin: 0.5rem 0 0.6rem; }
.event-card p { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.2rem; }

/* Subpage hero */
.subhero { background: var(--ink); color: #fff; padding: 3.5rem 0 3.2rem; position: relative; overflow: hidden; }
.subhero::after { content:""; position:absolute; right:-100px; top:-120px; width:420px; height:420px; background: radial-gradient(circle, rgba(14,124,134,.4), transparent 70%); }
.subhero .crumb { font-size: 0.82rem; color: #8ea3b1; margin-bottom: 0.9rem; position: relative; }
.subhero .crumb a:hover { color: var(--gold); }
.subhero h1 { font-size: clamp(2.1rem, 4vw, 3rem); position: relative; }
.subhero p { color: #b9c6d0; font-size: 1.08rem; max-width: 58ch; margin-top: 1rem; position: relative; }

/* Sections */
section.block { padding: 5rem 0; }
.section-head { max-width: 58ch; margin-bottom: 3rem; }
.section-head.center { max-width: 58ch; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin-bottom: 1rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pillar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; transition: transform .2s ease, box-shadow .2s ease; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar .ico { width: 50px; height: 50px; border-radius: 13px; background: var(--teal-light); display: grid; place-items: center; color: var(--teal-deep); margin-bottom: 1.2rem; }
.pillar h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.pillar p { color: var(--ink-soft); font-size: 0.96rem; }

/* Mission band */
.mission { background: var(--ink); color: #fff; border-radius: 28px; padding: 4rem; position: relative; overflow: hidden; }
.mission::after { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(14,124,134,.4), transparent 70%); }
.mission .eyebrow { color: var(--gold); }
.mission h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 22ch; position: relative; }
.mission p { color: #b9c6d0; font-size: 1.1rem; max-width: 60ch; margin-top: 1.3rem; position: relative; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.split .visual { background: linear-gradient(135deg, rgba(10,91,99,.85), rgba(12,28,44,.6)), url("https://images.unsplash.com/photo-1505751172876-fa1923c5c528?auto=format&fit=crop&w=1200&q=80") center/cover; min-height: 340px; display: flex; align-items: flex-end; padding: 2.2rem; color: #fff; }
.split .visual .badge { background: var(--gold); color: #2a1f06; font-weight: 700; font-size: 0.78rem; padding: 0.4rem 0.9rem; border-radius: 999px; }
.split .content { padding: 3rem; }
.split .content h2 { font-size: 2rem; margin: 0.6rem 0 1rem; }
.split .content > p { color: var(--ink-soft); margin-bottom: 1.6rem; }
.checklist { list-style: none; margin-bottom: 1.8rem; }
.checklist li { display: flex; gap: 0.7rem; padding: 0.5rem 0; color: var(--ink-soft); font-size: 0.96rem; border-bottom: 1px solid var(--line); }
.checklist li svg { color: var(--teal); flex: none; }

/* Two-day timeline */
.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.day { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.day .top { padding: 1.6rem 1.8rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 0.9rem; }
.day .top .pill { background: var(--teal-light); color: var(--teal-deep); font-weight: 700; font-size: 0.78rem; padding: 0.35rem 0.8rem; border-radius: 999px; letter-spacing: 0.05em; }
.day .top h3 { font-size: 1.3rem; }
.day .body { padding: 1.6rem 1.8rem 1.9rem; }
.day .body .where { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; display:flex; align-items:center; gap:0.45rem; }
.day .body .where svg { color: var(--teal); flex:none; }
.day .agenda { list-style: none; }
.day .agenda li { padding: 0.55rem 0; font-size: 0.94rem; color: var(--ink-soft); display: flex; gap: 0.8rem; border-bottom: 1px dashed var(--line); }
.day .agenda li span { color: var(--teal-deep); font-weight: 600; font-variant-numeric: tabular-nums; flex: none; min-width: 4.5rem; }
.day .map-link { margin-top: 1.2rem; display: inline-flex; gap: 0.4rem; align-items: center; color: var(--teal); font-weight: 600; font-size: 0.88rem; }

/* Registrant types */
.regtypes { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.regtype { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; }
.regtype.featured { border-color: var(--teal); box-shadow: var(--shadow); position: relative; }
.regtype.featured::before { content: "Most common"; position: absolute; top: -12px; left: 2rem; background: var(--teal); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 0.3rem 0.8rem; border-radius: 999px; letter-spacing: 0.05em; }
.regtype .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-light); color: var(--teal-deep); display: grid; place-items: center; margin-bottom: 1.1rem; }
.regtype h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.regtype .who { font-size: 0.84rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.9rem; }
.regtype ul { list-style: none; margin: 0.3rem 0 1.6rem; flex: 1; }
.regtype li { padding: 0.4rem 0; font-size: 0.92rem; color: var(--ink-soft); display: flex; gap: 0.6rem; }
.regtype li svg { color: var(--teal); flex: none; }
.regtype .btn { width: 100%; justify-content: center; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; }
.team.cols-2 { grid-template-columns: repeat(2,1fr); }
.team.cols-3 { grid-template-columns: repeat(3,1fr); }
.member { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member .avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; font-family: 'Fraunces', serif; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--teal), var(--teal-deep)); overflow: hidden; }
.member .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.member.lead .avatar { background: linear-gradient(135deg, var(--gold), #b9842b); }
.member h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.member .role { font-size: 0.85rem; color: var(--teal); font-weight: 600; }
.member .org { font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; }

/* Invited faculty — names only, no photos */
.namegrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.namecard { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: 0.9rem; }
.namecard .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex: none; }
.namecard b { font-weight: 600; font-size: 0.98rem; }
.namecard span { display: block; font-size: 0.82rem; color: var(--muted); }

/* Schedule agenda: talk title + speaker */
.day .agenda li .talk-title { color: var(--ink); font-weight: 600; }
.day .agenda li .speaker { color: var(--muted); font-size: 0.86rem; }
.day .agenda li.session { flex-direction: column; gap: 0.15rem; align-items: flex-start; }
.day .agenda li .time { color: var(--teal-deep); font-weight: 600; font-size: 0.8rem; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 0; }
.day .agenda li.brk { color: var(--muted); font-size: 0.88rem; }
.day .agenda li.brk .time { color: var(--muted); }

/* Detail panels (hotel / hospital / CME) */
.detail { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; }
.detail .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-light); color: var(--teal-deep); display: grid; place-items: center; margin-bottom: 1rem; }
.detail h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.detail p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0.4rem; }
.detail a:not(.btn) { color: var(--teal); font-weight: 500; }
.detail .callout { background: var(--gold-soft); border-radius: 12px; padding: 0.8rem 1rem; font-size: 0.9rem; color: var(--ink-soft); margin-top: 1rem; }
.cme-figure { font-family: 'Fraunces', serif; font-size: 2rem; color: var(--teal-deep); }

/* Talks list */
.talks { display: grid; gap: 1rem; }
.talk { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center; transition: border-color .15s; }
.talk:hover { border-color: var(--teal); }
.talk .when { text-align: center; flex: none; }
.talk .when .m { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 700; }
.talk .when .d { font-family: 'Fraunces', serif; font-size: 1.7rem; color: var(--ink); }
.talk .info h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.talk .info p { font-size: 0.9rem; color: var(--muted); }
.talk .kind { font-size: 0.74rem; font-weight: 600; color: var(--teal-deep); background: var(--teal-light); padding: 0.3rem 0.75rem; border-radius: 999px; white-space: nowrap; }

/* Info / contact cards */
.info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; }
.info-card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-light); color: var(--teal-deep); display: grid; place-items: center; margin-bottom: 1rem; }
.info-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.info-card p, .info-card a { color: var(--ink-soft); font-size: 0.95rem; display: block; }
.info-card a:hover { color: var(--teal); }

/* Forms (mock) */
.form-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.4rem; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea { width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; font-family: inherit; font-size: 0.95rem; color: var(--ink); background: var(--bg); transition: border-color .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.form-hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--teal-deep), var(--teal)); color: #fff; border-radius: 28px; padding: 3.5rem; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 0.8rem; }
.cta-band p { color: #d8eef0; max-width: 50ch; margin: 0 auto 1.8rem; }

/* Roadmap (future functionality) */
.roadmap { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.1rem; }
.rm { background: var(--paper); border: 1px dashed var(--line); border-radius: 14px; padding: 1.4rem; }
.rm .ico { color: var(--teal); margin-bottom: 0.7rem; }
.rm h4 { font-family: 'Inter'; font-size: 0.98rem; font-weight: 700; margin-bottom: 0.3rem; }
.rm p { font-size: 0.85rem; color: var(--muted); }

/* Footer */
footer { background: var(--ink); color: #c4d0d9; padding: 4rem 0 2rem; margin-top: 1rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-grid h4 { color: #fff; font-family: 'Inter'; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.1rem; }
.foot-grid a:not(.btn), .foot-grid p { display: block; color: #9fb0bb; font-size: 0.92rem; margin-bottom: 0.6rem; transition: color .15s; }
.foot-grid a:hover { color: var(--gold); }
.foot-brand b { color: #fff; font-size: 1.1rem; }
.foot-brand p { max-width: 30ch; margin-top: 0.8rem; }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 1.5rem; font-size: 0.82rem; color: #7e909c; flex-wrap: wrap; gap: 1rem; }

.menu .only-mobile { display: none; }
@media (max-width: 920px) {
  .menu, .nav-cta .btn-primary { display: none; }
  .menu .only-mobile { display: block; margin-top: 0.4rem; }
  .menu.open .btn-primary { display: inline-flex; }
  .brand b { line-height: 1.15; }
  .hamburger { display: block; }
  .hero-grid, .split, .pillars, .timeline, .regtypes, .info-grid, .roadmap, .foot-grid, .namegrid, .two-col { grid-template-columns: 1fr; }
  .team, .team.cols-2, .team.cols-3 { grid-template-columns: 1fr 1fr; }
  .mission, .cta-band { padding: 2.5rem; }
  .split .content { padding: 2rem; }
  .hero-stats { gap: 1.6rem; }
  .form-row { grid-template-columns: 1fr; }
  .talk { grid-template-columns: auto 1fr; }
  .talk .kind { grid-column: 2; justify-self: start; }
}
@media (max-width: 540px) { .team, .team.cols-2, .team.cols-3 { grid-template-columns: 1fr; } }
