/* ============================================================
   MSFT University — Fluent-inspired design system
   ============================================================ */
:root {
  --blue: #0067b8;
  --blue-dark: #005494;
  --blue-darker: #003d6b;
  --blue-light: #e6f2fb;
  --ink: #171717;
  --ink-soft: #454545;
  --ink-faint: #616161;
  --bg: #ffffff;
  --bg-alt: #f2f2f2;
  --border: #e0e0e0;
  --radius: 8px;
  /* Fluent depth ramp */
  --shadow-sm: 0 1.6px 3.6px rgba(0, 0, 0, .10), 0 0.3px 0.9px rgba(0, 0, 0, .07);
  --shadow-md: 0 6.4px 14.4px rgba(0, 0, 0, .12), 0 1.2px 3.6px rgba(0, 0, 0, .09);
  --shadow-lg: 0 25.6px 57.6px rgba(0, 0, 0, .16), 0 4.8px 14.4px rgba(0, 0, 0, .12);
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  display: grid;
  grid-template-columns: 9px 9px;
  grid-template-rows: 9px 9px;
  gap: 2px;
}
.brand-mark span:nth-child(1) { background: #f25022; }
.brand-mark span:nth-child(2) { background: #7fba00; }
.brand-mark span:nth-child(3) { background: #00a4ef; }
.brand-mark span:nth-child(4) { background: #ffb900; }

.brand small {
  display: block;
  font-weight: 400;
  font-size: 11.5px;
  color: var(--ink-faint);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--blue); }
.nav-links a.nav-cta {
  background: var(--blue);
  color: #fff;
  margin-left: 8px;
}
.nav-links a.nav-cta:hover { background: var(--blue-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #003d6b 0%, #0067b8 55%, #0a8ee0 100%);
  color: #fff;
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}
.hero::before {
  content: "";
  position: absolute;
  right: 80px;
  bottom: -180px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}

.hero .container { position: relative; z-index: 1; }

.hero-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  max-width: 720px;
}

.hero p.lede {
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 20px);
  max-width: 640px;
  color: rgba(255, 255, 255, .88);
}

.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 24px 13px;
  border-radius: 4px; /* Fluent corner radius */
  font-size: 15.5px;
  font-weight: 600;
  transition: all .15s ease;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: #fff; color: var(--blue-darker); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-secondary:hover { background: rgba(255, 255, 255, .12); }

.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue-light); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h2.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 17px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15px; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 24px;
}

a.card-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 14.5px;
}
a.card-link::after { content: " ›"; font-weight: 700; } /* microsoft.com-style chevron */

/* Fluent-style keyboard focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 { font-family: var(--font-display); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num { font-size: 40px; font-weight: 700; color: var(--blue); line-height: 1.1; }
.stat .label { color: var(--ink-faint); font-size: 14.5px; margin-top: 6px; }

/* ---------- Logo / partner strip ---------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-weight: 600;
  font-size: 17px;
}
.logo-strip span { opacity: .75; }

/* ---------- Resource lists ---------- */
.resource-group h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.resource-group .sub { color: var(--ink-faint); font-size: 14.5px; margin-bottom: 16px; }

.resource-list { list-style: none; }
.resource-list li { border-bottom: 1px solid var(--border); }
.resource-list li:last-child { border-bottom: none; }
.resource-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 4px;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  border-radius: 6px;
}
.resource-list a:hover { background: var(--blue-light); text-decoration: none; padding-left: 10px; transition: padding .15s ease; }
.resource-list a::after { content: "↗"; color: var(--blue); font-size: 14px; }
.resource-list .desc { color: var(--ink-faint); font-weight: 400; font-size: 13.5px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: start;
}

.portrait {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.portrait img { width: 100%; height: auto; }

.prose p { margin-bottom: 16px; color: var(--ink-soft); font-size: 16.5px; }
.prose p strong { color: var(--ink); }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.badge {
  background: var(--blue-light);
  color: var(--blue-darker);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------- Timeline / roles ---------- */
.role-card { border-left: 4px solid var(--blue); }
.role-card h3 { color: var(--blue-darker); }
.role-card ul { list-style: none; margin-top: 8px; }
.role-card li { padding: 4px 0; color: var(--ink-soft); font-size: 15px; }
.role-card li::before { content: "· "; color: var(--blue); font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #003d6b, #0067b8);
  border-radius: 16px;
  color: #fff;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-top: 8px; max-width: 480px; }

/* ---------- Contact ---------- */
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
}
.contact-card .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-card h3 { margin-bottom: 2px; font-size: 17px; }
.contact-card p, .contact-card a { font-size: 14.5px; }

/* ---------- Footer ---------- */
/* Light gray footer, microsoft.com style */
.site-footer {
  background: #f2f2f2;
  color: #616161;
  padding: 56px 0 32px;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 { color: #171717; font-size: 14.5px; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #616161; }
.site-footer a:hover { color: #171717; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid #d2d2d2;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: #616161;
  font-size: 12.5px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #003d6b, #0067b8);
  color: #fff;
  padding: 64px 0 56px;
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -.01em; }
.page-hero p { margin-top: 12px; color: rgba(255, 255, 255, .85); font-size: 17.5px; max-width: 640px; }

/* ---------- Tour dates (Events page) ---------- */
.tour-list { display: flex; flex-direction: column; gap: 14px; max-width: 900px; margin: 0 auto; }

.tour-row {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.tour-row:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.tour-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
  line-height: 1.05;
}
.tour-date .d { font-size: 34px; font-weight: 700; color: var(--blue); font-family: var(--font-display); }
.tour-date .m { font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--ink); }
.tour-date .y { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

.tour-info { flex: 1; }
.tour-info .tour-type {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue);
}
.tour-info h3 { font-size: 19px; font-weight: 600; margin: 2px 0; }
.tour-info p { color: var(--ink-faint); font-size: 14.5px; }

.tour-action { flex-shrink: 0; }
.tour-soldout {
  display: inline-block;
  border: 2px solid var(--ink-faint);
  color: var(--ink-faint);
  border-radius: 4px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .tour-row { flex-direction: column; text-align: center; gap: 12px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a.nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0; }
  .cta-band { padding: 40px 28px; }
}
