/* ==========================================================================
   Great Lakes Technological University — homepage styles
   ========================================================================== */

:root {
  --gold: #ffcd00;
  --black: #000000;
  --white: #ffffff;
  --grey: #666666;
  --grey-light: #f4f4f2;
  --grey-border: #e2e0da;
  --green: #228B22;
  --blue: #4682B4;

  --font-head: "Rubik", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --wrap: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: #1a1a1a;
  background: var(--white);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: #111;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

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

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #111;
  padding: 10px 16px;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 22px;
  border-radius: 3px;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { opacity: 0.85; }

.btn--gold { background: var(--gold); color: #111; }
.btn--black { background: var(--black); color: var(--white); }
.btn--ghost { background: transparent; color: #111; padding: 11px 14px; }
.btn--outline-dark { background: transparent; color: #111; border-color: #111; }
.btn--outline-light { background: transparent; color: var(--white); border-color: var(--white); }

.chip {
  display: inline-block;
  padding: 8px 18px;
  margin: 0 8px 8px 0;
  border-radius: 999px;
  border: 1px solid var(--grey-border);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: #333;
}
.chip--active { background: var(--black); color: var(--white); border-color: var(--black); }

/* ---------- Utility bar ---------- */
.utility-bar { background: #111; color: #ddd; font-size: 0.85rem; }
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.utility-bar__crest img { height: 32px; }
.utility-bar__links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.utility-bar__links > a:not(.btn) { color: #ccc; }
.utility-bar__links > a:not(.btn):hover { color: var(--gold); }
.utility-bar .btn { padding: 6px 14px; font-size: 0.8rem; }
.utility-bar .btn--ghost { color: #fff; border: 1px solid #555; }

/* ---------- Header / search / primary nav ---------- */
.site-header { border-bottom: 1px solid var(--grey-border); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}
.site-header__logo img { height: 56px; }

.site-header__search {
  display: flex;
  border: 2px solid #111;
  border-radius: 3px;
  overflow: hidden;
  flex: 1 1 320px;
  max-width: 480px;
}
.site-header__search select {
  border: none;
  border-right: 1px solid var(--grey-border);
  background: var(--grey-light);
  padding: 0 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.site-header__search input {
  flex: 1;
  border: none;
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  min-width: 0;
}
.site-header__search button {
  border: none;
  background: var(--gold);
  padding: 0 16px;
  cursor: pointer;
  font-size: 1rem;
}

.primary-nav { 
  display: flex;
  flex-wrap: wrap;
  background: var(--black);
  justify-content: space-evenly;
}
.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav__list a {
  display: block;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 14px 16px;
}
.primary-nav__list a:hover { background: var(--gold); color: #111; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0.15) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-top: 90px;
  padding-bottom: 90px;
}
.hero__eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75em;
}
.hero h1 { color: var(--white); font-size: 2.75rem; margin-bottom: 0.5em; }
.hero__blurb { font-size: 1.1rem; color: #f0f0f0; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.5em; }

/* ---------- Tagline band ---------- */
.tagline-band {
  background: var(--grey-light);
  border-bottom: 1px solid var(--grey-border);
  padding: 30px 0;
}
.tagline-band p {
  margin: 0;
  font-size: 1.15rem;
  font-family: var(--font-head);
  font-weight: 500;
  color: #222;
  text-align: center;
}

/* ---------- Degree programs ---------- */
.degrees { padding: 64px 0; text-align: center; }
.degrees h2 { font-size: 2rem; }
.section-intro { max-width: 720px; margin: 0 auto 1.5em; color: var(--grey); }
.degrees__filters { margin-bottom: 1.5em; }
.degrees__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Card grid ---------- */
.card-grid { padding: 0 0 64px; }
.card-grid__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  display: block;
  border: 1px solid var(--grey-border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.12); transform: translateY(-2px); }
.card img { height: 190px; width: 100%; object-fit: cover; }
.card__body { padding: 18px 20px 22px; }
.card__body h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.card__body p { color: var(--grey); font-size: 0.92rem; margin: 0; }

/* ---------- Request info ---------- */
.request-info { background: var(--black); color: var(--white); padding: 64px 0; }
.request-info__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.request-info__copy h2 { color: var(--white); font-size: 1.9rem; }
.request-info__copy p { color: #ccc; }
.request-info__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #1a1a1a;
  padding: 24px;
  border-radius: 4px;
}
.request-info__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: #ddd;
  grid-column: span 1;
}
.request-info__form label:nth-child(3),
.request-info__form label:nth-child(4) { grid-column: span 2; }
.request-info__form input,
.request-info__form select {
  padding: 10px;
  border: 1px solid #444;
  border-radius: 3px;
  background: #111;
  color: var(--white);
  font-family: var(--font-body);
}
.request-info__form button { grid-column: span 2; justify-self: start; margin-top: 4px; border: none; cursor: pointer; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--gold); padding: 44px 0; }
.stats-band__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat { display: block; }
.stat__figure {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  color: #111;
}
.stat__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #222;
  margin-top: 4px;
}
.stat:hover .stat__figure { text-decoration: underline; }

/* ---------- Gallery ---------- */
.gallery { padding: 72px 0; }
.gallery__intro { max-width: 680px; margin-bottom: 32px; }
.gallery__intro h2 { font-size: 2rem; }
.gallery__intro a { color: var(--blue); font-weight: 600; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery__grid figure { margin: 0; }
.gallery__grid img { height: 220px; width: 100%; object-fit: cover; border-radius: 4px; }
.gallery__grid figcaption { font-size: 0.85rem; color: var(--grey); margin-top: 8px; }

/* ---------- Highlight blocks (event / program / facility) ---------- */
.highlight { padding: 56px 0; border-top: 1px solid var(--grey-border); }
.highlight__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.highlight--reverse .highlight__inner { direction: rtl; }
.highlight--reverse .highlight__copy,
.highlight--reverse .highlight__inner > img { direction: ltr; }
.highlight img { border-radius: 4px; width: 100%; height: 340px; object-fit: cover; }
.highlight__eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--blue);
  margin-bottom: 0.5em;
}
.highlight__copy h2 { font-size: 1.8rem; }
.highlight__copy p { color: var(--grey); }
.highlight__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.2em; }

/* ---------- News ---------- */
.news { padding: 64px 0; background: var(--grey-light); }
.news__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.news__head h2 { font-size: 2rem; margin: 0; }
.news__head-links { display: flex; gap: 20px; }
.news__head-links a { font-weight: 600; color: var(--blue); }
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card { background: var(--white); border-radius: 4px; overflow: hidden; border: 1px solid var(--grey-border); }
.news-card img { height: 170px; width: 100%; object-fit: cover; }
.news-card__body { padding: 16px 18px 20px; }
.news-card__date { font-size: 0.8rem; color: var(--grey); margin-bottom: 6px; }
.news-card__body h3 { font-size: 1.05rem; margin: 0; }
.news-card:hover h3 { text-decoration: underline; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--blue); color: var(--white); padding: 48px 0; }
.newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 0.3em; }
.newsletter p { color: #eaf1f7; margin: 0; }
.newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter__form input {
  padding: 12px 14px;
  border-radius: 3px;
  border: none;
  min-width: 260px;
  font-family: var(--font-body);
}

/* ---------- Closing CTA ---------- */
.closing-cta { background: var(--black); color: var(--white); padding: 72px 0; text-align: center; }
.closing-cta h2 { color: var(--white); font-size: 2.2rem; }
.closing-cta__actions { display: flex; gap: 14px; justify-content: center; margin-top: 1.5em; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #111; color: #bbb; }
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 0 40px;
}
.site-footer__brand img { height: 130px; margin-bottom: 16px; }
.site-footer__brand p { font-size: 0.9rem; color: #999; }
.site-footer__brand a { color: var(--gold); }
.site-footer__social { display: flex; gap: 12px; margin-top: 16px; }
.site-footer__social a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: #222; border-radius: 50%; color: #ccc;
}
.site-footer__social svg { width: 16px; height: 16px; }
.site-footer__social a:hover { background: var(--gold); color: #111; }

.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col h3 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.site-footer__col a { font-size: 0.9rem; color: #bbb; }
.site-footer__col a:hover { color: var(--gold); }

.site-footer__credits {
  border-top: 1px solid #2a2a2a;
  padding: 20px 0;
  font-size: 0.78rem;
  color: #777;
}
.site-footer__credits p { margin: 0; }

.site-footer__bottom {
  border-top: 1px solid #2a2a2a;
  padding: 20px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #777;
}
.site-footer__bottom p { margin: 0; max-width: 640px; }
.site-footer__legal { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer__legal a { color: #999; }
.site-footer__legal a:hover { color: var(--gold); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .card-grid__list { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .news__grid { grid-template-columns: 1fr 1fr; }
  .stats-band__list { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .request-info__inner { grid-template-columns: 1fr; }
  .highlight__inner,
  .highlight--reverse .highlight__inner { grid-template-columns: 1fr; direction: ltr; }
  .highlight img { height: 260px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: span 2; }
}

@media (max-width: 620px) {
  .hero { min-height: 520px; }
  .hero h1 { font-size: 2rem; }
  .utility-bar__links { gap: 10px; }
  .card-grid__list { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; }
  .news__grid { grid-template-columns: 1fr; }
  .stats-band__list { grid-template-columns: 1fr 1fr; }
  .request-info__form { grid-template-columns: 1fr; }
  .request-info__form label:nth-child(3),
  .request-info__form label:nth-child(4),
  .request-info__form button { grid-column: 1; }
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__brand { grid-column: span 1; }
  .newsletter__inner { flex-direction: column; align-items: flex-start; }
}
