/* IEEE Atlanta TEMS — shared stylesheet
   Palette: IEEE Blue #00629B · Navy #002855 · Ink #16181d · Mist #f2f6f9 · Amber #c77400 */

:root {
  --ieee-blue: #00629B;
  --ieee-blue-dark: #004b77;
  --navy: #002855;
  --ink: #16181d;
  --slate: #47525e;
  --mist: #f2f6f9;
  --line: #dde4ea;
  --amber: #c77400;
  --paper: #ffffff;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, .display {
  font-family: 'Barlow Semi Condensed', 'Open Sans', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}

a { color: var(--ieee-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- IEEE meta bar ---------- */
.metabar { background: var(--navy); font-size: 13px; }
.metabar .wrap { display: flex; gap: 20px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.metabar a { color: #bcd3e8; }
.metabar a:hover { color: #fff; }
.metabar .push { margin-left: auto; }

/* ---------- header / nav ---------- */
.sitehead { border-bottom: 4px solid var(--ieee-blue); background: var(--paper); }
.sitehead .wrap { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; }
.brand .org { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ieee-blue); font-weight: 700; }
.brand .name { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 26px; font-weight: 600; color: var(--navy); }
.brand .sub { font-size: 13px; color: var(--slate); }

nav.main { margin-left: auto; }
nav.main ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
nav.main a {
  display: block; padding: 8px 14px; font-size: 15px; font-weight: 600;
  color: var(--slate); border-radius: 4px;
}
nav.main a:hover { background: var(--mist); color: var(--navy); text-decoration: none; }
nav.main a.active { color: var(--ieee-blue); box-shadow: inset 0 -3px 0 var(--ieee-blue); border-radius: 4px 4px 0 0; }
nav.main a.cta {
  background: var(--ieee-blue); color: #fff;
}
nav.main a.cta:hover { background: var(--ieee-blue-dark); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(0,98,155,0.18) 0, rgba(0,98,155,0) 45%),
    var(--navy);
  color: #eaf2f9;
  position: relative;
  overflow: hidden;
}
.hero svg.nodes { position: absolute; right: -40px; top: 0; height: 100%; opacity: 0.5; }
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 76px; max-width: var(--max); }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 52px); max-width: 640px; }
.hero p.lead { font-size: 19px; max-width: 560px; margin-top: 16px; color: #c9dcec; }
.hero .actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 24px; border-radius: 4px;
  font-weight: 700; font-size: 15px; border: 2px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn.solid { background: #fff; color: var(--navy); }
.btn.solid:hover { background: #e3edf5; }
.btn.ghost { border-color: #6f93b5; color: #fff; }
.btn.ghost:hover { border-color: #fff; }
.btn.blue { background: var(--ieee-blue); color: #fff; }
.btn.blue:hover { background: var(--ieee-blue-dark); }

/* ---------- sections ---------- */
section.band { padding: 64px 0; }
section.band.alt { background: var(--mist); }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 8px;
}
section.band h2 { font-size: 32px; margin-bottom: 8px; }
.section-intro { color: var(--slate); max-width: 640px; margin-bottom: 34px; }
.section-head { display: flex; align-items: end; gap: 20px; flex-wrap: wrap; }
.section-head .more { margin-left: auto; font-weight: 700; font-size: 15px; white-space: nowrap; }

/* ---------- event cards ---------- */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.event {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  display: flex; overflow: hidden; transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.event:hover { box-shadow: 0 6px 18px rgba(0,40,85,0.12); transform: translateY(-2px); }
.event .date {
  background: var(--navy); color: #fff; min-width: 78px; padding: 18px 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Barlow Semi Condensed', sans-serif;
}
.event .date .mon { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: #ffc46a; }
.event .date .day { font-size: 30px; font-weight: 600; line-height: 1.1; }
.event .body { padding: 16px 18px; }
.event h3 { font-size: 19px; margin-bottom: 4px; }
.event h3 a { color: var(--navy); }
.event .meta { font-size: 14px; color: var(--slate); }
.event .meta strong { color: var(--amber); font-weight: 700; }
.event .tag {
  display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; background: var(--mist); color: var(--ieee-blue);
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.pillar { background: var(--paper); border-top: 4px solid var(--ieee-blue); border-radius: 0 0 6px 6px; padding: 22px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.pillar h3 { font-size: 19px; margin-bottom: 6px; }
.pillar p { font-size: 15px; color: var(--slate); }

/* ---------- leadership ---------- */
.officers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.officer { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 24px; text-align: center; }
.officer .avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--mist); color: var(--ieee-blue);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Semi Condensed', sans-serif; font-size: 30px; font-weight: 600;
  border: 3px solid var(--ieee-blue);
}
.officer h3 { font-size: 19px; }
.officer .role { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin: 2px 0 8px; }
.officer p { font-size: 14px; color: var(--slate); }

/* ---------- content pages ---------- */
.pagehead { background: var(--mist); border-bottom: 1px solid var(--line); }
.pagehead .wrap { padding-top: 48px; padding-bottom: 48px; }
.pagehead h1 { font-size: clamp(30px, 4vw, 42px); }
.pagehead p { color: var(--slate); max-width: 640px; margin-top: 8px; }

.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 36px 0 10px; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0 14px 22px; }
.prose li + li { margin-top: 8px; }

.callout {
  background: var(--mist); border-left: 4px solid var(--ieee-blue);
  padding: 18px 22px; margin: 28px 0; border-radius: 0 6px 6px 0;
}
.callout strong { color: var(--navy); }

/* ---------- past events table ---------- */
table.archive { width: 100%; border-collapse: collapse; font-size: 15px; }
table.archive th {
  text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--slate); border-bottom: 2px solid var(--navy); padding: 10px 12px;
}
table.archive td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.archive tr:hover td { background: var(--mist); }

/* ---------- join / contact ---------- */
.steps { counter-reset: step; max-width: 720px; }
.step { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  min-width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #ffc46a;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Semi Condensed', sans-serif; font-size: 20px; font-weight: 600;
}
.step h3 { font-size: 19px; margin-bottom: 4px; }
.step p { font-size: 15px; color: var(--slate); }

/* ---------- footer ---------- */
footer.site {
  background: var(--navy); color: #a9c2d8; font-size: 14px; margin-top: 0;
}
footer.site .wrap { padding-top: 44px; padding-bottom: 36px; }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
footer.site h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
footer.site ul { list-style: none; }
footer.site li + li { margin-top: 8px; }
footer.site a { color: #bcd3e8; }
footer.site a:hover { color: #fff; }
footer.site .legal {
  border-top: 1px solid #1c4570; margin-top: 34px; padding-top: 20px; font-size: 13px;
  color: #7f9db8;
}

/* ---------- mobile nav ---------- */
.navtoggle { display: none; background: none; border: 2px solid var(--line); border-radius: 4px; padding: 8px 12px; font-size: 15px; font-weight: 700; color: var(--navy); cursor: pointer; }
@media (max-width: 820px) {
  .navtoggle { display: block; margin-left: auto; }
  nav.main { display: none; width: 100%; margin-left: 0; }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; }
  .hero svg.nodes { display: none; }
}
