:root {
  --navy: #174a78;
  --navy-2: #24618f;
  --gold: #b6862c;
  --gold-light: #f5e8c8;
  --blue: #0076b2;
  --ink: #17233a;
  --muted: #5e6b7d;
  --line: #dbe2ea;
  --surface: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(23, 74, 120, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--blue); }
a:hover { color: var(--navy); }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--navy);
  border-radius: 8px;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(23, 74, 120, 0.97);
  border-bottom: 3px solid var(--gold);
}

.header-inner {
  max-width: 1180px;
  min-height: 78px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.brand-copy strong { display: block; font-size: 1.1rem; line-height: 1.2; }
.brand-copy span { display: block; color: #c7d5e7; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; }

.nav-toggle {
  display: none;
  padding: 0.6rem 0.8rem;
  border: 1px solid #7890ad;
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  font: inherit;
}

.site-nav { display: flex; align-items: center; gap: 0.2rem; }
.site-nav a {
  padding: 0.55rem 0.62rem;
  color: #e7edf5;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 7px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,0.12); }

.hero {
  position: relative;
  min-height: 670px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23,74,120,0.94) 0%, rgba(23,74,120,0.84) 42%, rgba(23,74,120,0.20) 78%),
    url("assets/fiu-robotics.jpg") center / cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 6rem 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #f5d887;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero .subtitle {
  max-width: 680px;
  margin: 1.5rem 0 0;
  color: #d9e4f0;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.event-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.3rem;
  margin: 2rem 0;
  font-weight: 700;
}

.event-line span { display: inline-flex; align-items: center; gap: 0.45rem; }
.event-line span::before { content: ""; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }

.button-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
}
.button:hover { background: #d0a24c; color: var(--navy); }
.button.secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.65); }
.button.secondary:hover { background: var(--white); color: var(--navy); }
.button.disabled { background: #e7ebf0; color: #667487; pointer-events: none; }

.section { padding: 5.5rem 1.5rem; }
.section.alt { background: var(--surface); }
.container { width: min(1120px, 100%); margin: 0 auto; }
.narrow { width: min(820px, 100%); }

.section-heading { max-width: 760px; margin-bottom: 2.5rem; }
.section-heading h2,
.page-hero h1 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.section-heading p { margin: 0.9rem 0 0; color: var(--muted); font-size: 1.1rem; }

.two-column { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 4rem; align-items: center; }
.image-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.image-frame img { width: 100%; min-height: 420px; object-fit: cover; }

.stat-grid,
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.stat,
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem;
}
.stat strong { display: block; color: var(--navy); font-size: 1.45rem; line-height: 1.2; }
.stat span { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.92rem; }
.card h3 { margin: 0 0 0.55rem; color: var(--navy); font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

.date-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.date-item { padding: 1.5rem; background: var(--white); }
.date-item time { display: block; margin-bottom: 0.35rem; color: var(--navy); font-weight: 850; font-size: 1.25rem; }
.date-item span { color: var(--muted); }

.page-hero {
  background: linear-gradient(135deg, #edf3f9, #ffffff 58%, #f8edd4);
  border-bottom: 1px solid var(--line);
  padding: 5.5rem 1.5rem 4.5rem;
}
.page-hero p { max-width: 750px; margin: 1.1rem 0 0; color: var(--muted); font-size: 1.15rem; }

.notice {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 5px solid var(--gold);
  background: var(--gold-light);
  color: var(--navy);
}
.notice strong { display: block; }

.topic-list { columns: 3; column-gap: 2.5rem; margin: 0; padding-left: 1.2rem; }
.topic-list li { break-inside: avoid; margin: 0 0 0.55rem; }

.role-group { margin-bottom: 2.5rem; }
.role-group h2 { margin: 0 0 1rem; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; }
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.person { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.person strong { display: block; color: var(--navy); }
.person span { color: var(--muted); font-size: 0.93rem; }

.history-table { width: 100%; border-collapse: collapse; }
.history-table th,
.history-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.history-table th { background: var(--navy); color: var(--white); }
.history-table tbody tr:nth-child(even) { background: var(--surface); }

.contact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.contact-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: 14px; }
.contact-card h2 { margin: 0 0 0.5rem; color: var(--navy); font-size: 1.25rem; }
.contact-card p { margin: 0.2rem 0; }

.accessibility {
  padding: 1.5rem;
  background: #eef5fb;
  border-top: 1px solid #cbd9e7;
  border-bottom: 1px solid #cbd9e7;
}
.accessibility .container { display: flex; gap: 0.8rem; align-items: flex-start; }
.accessibility strong { color: var(--navy); }
.accessibility p { margin: 0; }

.site-footer { padding: 3rem 1.5rem; background: var(--navy); color: #c8d5e4; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 0.7fr; gap: 2.5rem; }
.site-footer h2 { margin: 0 0 0.6rem; color: var(--white); font-size: 1.1rem; }
.site-footer p { margin: 0.25rem 0; }
.site-footer a { color: #f0cf77; }
.footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.16); font-size: 0.88rem; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    padding: 0.8rem 1.5rem 1.2rem;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.75rem; }
  .two-column { grid-template-columns: 1fr; gap: 2rem; }
  .stat-grid, .date-list { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .card-grid.three { grid-template-columns: repeat(2, 1fr); }
  .topic-list { columns: 2; }
}

@media (max-width: 650px) {
  body { font-size: 16px; }
  .header-inner { padding-inline: 1rem; }
  .brand-copy span { display: none; }
  .hero { min-height: 620px; }
  .hero::before { background: linear-gradient(rgba(23,74,120,0.88), rgba(23,74,120,0.91)), url("assets/fiu-robotics.jpg") 38% center / cover no-repeat; }
  .hero-inner { width: min(100% - 2rem, 1180px); padding: 4.5rem 0; }
  .section { padding: 4rem 1rem; }
  .page-hero { padding: 4rem 1rem 3rem; }
  .stat-grid, .date-list, .card-grid, .card-grid.three, .people, .contact-list, .footer-grid { grid-template-columns: 1fr; }
  .topic-list { columns: 1; }
  .accessibility .container { display: block; }
  .history-table { font-size: 0.9rem; }
  .history-table th, .history-table td { padding: 0.7rem 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
