/* ICCS 2027 Practical Course — Phoenix */
:root {
  --night: #23122b;
  --dusk: #4a2147;
  --plum: #7a3f5c;
  --sunset: #e0663a;
  --sunset-dark: #c14f26;
  --gold: #f4b860;
  --sand: #faf5ee;
  --sand-2: #f2e8db;
  --sage: #4f7a5e;
  --ink: #2a2230;
  --muted: #6b6070;
  --line: #e7ddd0;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(35, 18, 43, .25);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; margin: 0; font: 16px/1.65 var(--sans); color: var(--ink); background: var(--sand); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--sunset-dark); text-underline-offset: 3px; }
a:hover { color: var(--plum); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--night); margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* utility bar */
.utility { background: var(--night); color: #d9c8d6; font-size: 13px; }
.utility a { color: inherit; text-decoration: none; }
.utility a:hover { color: var(--gold); }
.utility__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.utility__right { display: flex; gap: 20px; }
@media (max-width: 700px) { .utility__inner > a { display: none; } .utility__right { margin-left: auto; } }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav__inner { max-width: 1340px; display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--night); flex-shrink: 0; }
.brand__logo { height: 42px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--serif); font-size: 1.1rem; }
.brand__text small { color: var(--muted); font-size: .8rem; letter-spacing: .02em; }
.nav__menu ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__menu a:not(.btn) { display: block; padding: 8px 9px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 500; white-space: nowrap; }
.nav__menu a:not(.btn):hover { background: var(--sand-2); color: var(--night); }
.nav__menu a.is-active { color: var(--sunset-dark); background: #fbe9df; }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--night); border-radius: 2px; transition: .2s; }

@media (max-width: 1260px) {
  .nav__toggle { display: block; }
  .nav__menu { position: fixed; inset: 0 0 0 auto; top: 0; width: min(320px, 85vw); background: var(--white); box-shadow: var(--shadow); padding: 88px 20px 24px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .nav__menu { visibility: hidden; }
  .nav__menu.is-open { transform: none; visibility: visible; }
  .nav__menu ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__menu a:not(.btn) { padding: 12px 14px; font-size: 1rem; }
  .nav__cta { margin: 12px 0 0; }
  .nav__cta .btn { width: 100%; }
  .nav__toggle { position: relative; z-index: 60; }
  body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font: 600 .95rem/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--sunset); color: var(--white); box-shadow: 0 6px 18px -6px rgba(224,102,58,.7); }
.btn--primary:hover { background: var(--sunset-dark); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn--light { background: var(--white); color: var(--night); }
.btn--light:hover { background: var(--sand); color: var(--night); }
.btn--outline { border-color: var(--sunset); color: var(--sunset-dark); }
.btn--outline:hover { background: #fbe9df; color: var(--sunset-dark); }
.btn--sm { padding: 9px 16px; font-size: .88rem; }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn[aria-disabled=true] { background: var(--sand-2); color: var(--muted); box-shadow: none; pointer-events: none; }

/* hero */
.hero { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(180deg, #1f1030 0%, #4a2147 38%, #a2475a 68%, #e98a55 100%); }
.hero__art { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 300px; }
.hero--inner .hero__art { height: 130px; }
@media (max-width: 600px) { .hero--home .hero__art { height: 170px; } .hero--inner .hero__art { height: 110px; } }
.hero__content { position: relative; z-index: 1; }
.hero--home { min-height: 640px; display: flex; align-items: flex-start; }
.hero--home .hero__content { padding-top: 88px; padding-bottom: 220px; }
.hero--inner .hero__content { padding-top: 48px; padding-bottom: 140px; }
.hero--inner { min-height: 280px; }
.hero__title { color: var(--white); font-size: clamp(2.3rem, 5.4vw, 4.2rem); max-width: 17ch; letter-spacing: -.01em; }
.hero__title em { font-style: italic; color: var(--gold); }
.hero__title--sm { font-size: clamp(2rem, 4vw, 3rem); max-width: none; margin-bottom: .25em; }
.hero__lead { max-width: 60ch; color: #f3dfe0; font-size: 1.08rem; margin: 0; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; margin: 20px 0 30px; font-weight: 500; font-size: 1.05rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--sunset-dark); margin-bottom: 12px; }
.eyebrow--light { color: var(--gold); }
.crumbs { font-size: .88rem; color: #e8cdd3; margin-bottom: 10px; }
.crumbs a { color: var(--white); text-decoration: none; }
.crumbs span { opacity: .6; margin: 0 6px; }

.countdown { display: flex; gap: 12px; margin-top: 36px; }
.countdown div { min-width: 86px; padding: 12px 14px; border-radius: 12px; background: rgba(35,18,43,.35); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); text-align: center; }
.countdown b { display: block; font: 700 1.8rem/1.1 var(--serif); }
.countdown span { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }

@media (max-width: 600px) {
  .hero--home { min-height: 0; }
  .hero--home .hero__content { padding-top: 48px; padding-bottom: 150px; }
  .hero--inner .hero__content { padding-bottom: 90px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .countdown div { min-width: 0; flex: 1; }
}

/* layout */
.main { padding: 64px 0 80px; }
.section + .section { margin-top: 64px; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--aside { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--aside { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.card--feature { position: relative; }
.card--accent { background: linear-gradient(160deg, #fff 0%, #fdf0e6 100%); border-color: #f1d7c4; }
.card--dark { background: var(--night); color: #eadde7; border: 0; }
.card--dark h3, .card--dark h2 { color: var(--white); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fbe9df; color: var(--sunset-dark); margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sticky { position: sticky; top: 96px; }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 65ch; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 40px 0 64px; }
.stat { padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.stat b { display: block; font: 700 2rem/1 var(--serif); color: var(--sunset-dark); margin-bottom: 6px; }
.stat span { font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: #e3efe6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f7a5e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.numbered { counter-reset: n; list-style: none; padding: 0; margin: 0; }
.numbered li { counter-increment: n; position: relative; padding: 0 0 18px 52px; }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--night); color: var(--gold); font: 700 1rem/34px var(--serif); text-align: center; }

.topic { border-top: 1px solid var(--line); padding: 24px 0; display: grid; grid-template-columns: 56px 1fr; gap: 16px; }
.topic:first-of-type { border-top: 0; padding-top: 0; }
.topic__num { font: 700 1.6rem/1 var(--serif); color: var(--sunset); }
.topic ul { margin: 0; padding-left: 18px; color: var(--muted); }
.topic li { margin-bottom: 6px; }

.tba { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #fdf0d8; color: #8a5a12; font-size: .85em; font-weight: 600; }
.note { padding: 16px 20px; border-left: 4px solid var(--sunset); background: #fdf0e6; border-radius: 0 10px 10px 0; margin: 0 0 1.5em; }
.note--sage { border-color: var(--sage); background: #edf4ef; }
.address { font-style: normal; line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* fees */
.fees { width: 100%; border-collapse: collapse; }
.fees th, .fees td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.fees thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.fees td.price { font: 700 1.3rem/1 var(--serif); color: var(--night); }
.fees tr:last-child td { border-bottom: 0; }
.fees .group th { background: var(--sand); color: var(--night); font-size: .92rem; text-transform: none; letter-spacing: 0; }

/* program */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab { padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); font: 600 .95rem var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
.tab small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.tab.is-active { background: var(--night); color: var(--white); border-color: var(--night); }
.tab.is-active small { color: var(--gold); }
.day { display: none; }
.day.is-active { display: block; }
.sched { display: grid; gap: 10px; }
.slot { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: stretch; }
.slot__time { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--night); padding-top: 16px; font-size: .92rem; }
.slot__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.session { padding: 14px 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--c, var(--line)); }
.session--full { grid-column: 1 / -1; }
.session__group { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.session__title { display: block; font-weight: 600; color: var(--night); }
.session__spk { display: block; font-size: .88rem; color: var(--muted); font-style: italic; margin-top: 2px; }
.session.t-lecture { --c: #e0663a; }
.session.t-computer-lab { --c: #5b7fbf; }
.session.t-simulator-lab { --c: #4f7a5e; }
.session.t-wrap-up { --c: #f4b860; }
.session.t-break { --c: #d9cfc4; background: var(--sand); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: .9rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); }
@media (max-width: 700px) {
  .slot { grid-template-columns: 1fr; gap: 6px; }
  .slot__time { padding-top: 6px; }
  .slot__body { grid-template-columns: 1fr; }
}

/* CTA + footer */
.cta-band { background: linear-gradient(110deg, var(--dusk), var(--sunset)); color: var(--white); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: .2em; }
.cta-band p { margin: 0; color: #f8e1d7; }
.footer { background: var(--night); color: #cbbac8; font-size: .92rem; }
.footer a { color: #f1dfe9; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer h4 { color: var(--white); font: 600 .8rem var(--sans); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 12px; }
.footer__grid { display: grid; grid-template-columns: 1.1fr 1.2fr 1.4fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer__logo { height: 64px; width: auto; background: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 14px; }
.footer__base { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; padding-bottom: 22px; font-size: .82rem; color: #9d8a9a; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.logos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; margin-top: 32px; }
.logos img { max-height: 70px; width: auto; }
.faculty { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.faculty div { padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
.faculty small { display: block; color: var(--sunset-dark); font-weight: 500; }
@media (max-width: 600px) { .tabs { flex-wrap: nowrap; } .tab { flex: 1; padding: 10px 12px; } }
