/*
 * Front-page (department homepage) styles
 * Loaded only on the front page via functions.php
 */

/* ═══════════════════════════════════════════════════════
   SHARED HOMEPAGE UTILITIES
═══════════════════════════════════════════════════════ */

/* Override the default gray body background — front page is white */
body.home { background: var(--white); }

.hp-section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 28px;
}

.btn-red {
  display: inline-block;
  padding: 10px 22px;
  background: var(--red);
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 3px;
  transition: background .15s;
  white-space: nowrap;
}

.btn-red:hover { background: var(--red-dark); color: var(--white); }

.btn-outline-white {
  display: inline-block;
  padding: 10px 22px;
  border: 2px solid var(--white);
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 3px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.btn-outline-white:hover { background: var(--white); color: var(--dark); }


/* ═══════════════════════════════════════════════════════
   1. PHOTO MOSAIC
═══════════════════════════════════════════════════════ */
.hp-mosaic {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: 120px 120px;
  gap: 3px;
  overflow: hidden;
}

/* Vary tile sizes for visual interest */
.mosaic-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic-tile:nth-child(2) { grid-column: span 2; }
.mosaic-tile:nth-child(3) { grid-column: span 2; }
.mosaic-tile:nth-child(4) { grid-column: span 2; grid-row: span 2; }
.mosaic-tile:nth-child(5) { grid-column: span 1; }
.mosaic-tile:nth-child(6) { grid-column: span 1; }
.mosaic-tile:nth-child(7) { grid-column: span 1; }
.mosaic-tile:nth-child(8) { grid-column: span 1; }

.mosaic-tile, .mosaic-placeholder {
  overflow: hidden;
  position: relative;
  background: var(--navy);
}

.mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.mosaic-tile:hover img { transform: scale(1.04); }

.mosaic-tile a { display: block; width: 100%; height: 100%; }


/* ═══════════════════════════════════════════════════════
   2. TAGLINE BAR
═══════════════════════════════════════════════════════ */
.hp-tagline-bar {
  padding: 36px 40px 0;
  max-width: var(--site-w);
  margin-inline: auto;
}

.hp-tagline-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hp-tagline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -.02em;
  line-height: 1.1;
  font-style: normal;
}

/* The italic word: "here." */
.hp-tagline em {
  font-style: italic;
  color: var(--dark);
}

.hp-tagline-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  padding: 11px 22px;
  border-radius: 3px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .03em;
  transition: background .15s;
}

.hp-tagline-cta:hover { background: var(--red-dark); color: var(--white); }

.hp-tagline-rule {
  width: 56px;
  height: 3px;
  background: var(--red);
  margin-top: 20px;
  border-radius: 2px;
}


/* ═══════════════════════════════════════════════════════
   3. INTRO TEXT
═══════════════════════════════════════════════════════ */
.hp-intro {
  padding: 32px 0 36px;
}

.hp-intro-text {
  max-width: 680px;
  margin-inline: auto;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--dark);
  text-align: center;
}


/* ═══════════════════════════════════════════════════════
   4. STUDENTS ARE  curious / creative / connected
═══════════════════════════════════════════════════════ */
.hp-students-are {
  background: var(--bg);
  padding: 48px 0 36px;
  text-align: center;
}

.hp-students-label {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 28px;
}

.hp-students-label strong { color: var(--red); }

.hp-adj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.hp-adj-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hp-adj-word {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -.01em;
}

.hp-adj-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.hp-adj-placeholder {
  background: var(--navy);
  opacity: .15;
  border-radius: 3px;
}

.hp-students-more {
  display: inline-block;
  margin-top: 24px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--red);
  border-bottom: 1px solid var(--red);
  padding-bottom: 1px;
}

.hp-students-more:hover { opacity: .8; color: var(--red); }


/* ═══════════════════════════════════════════════════════
   5. GRADUATES IN DEMAND
═══════════════════════════════════════════════════════ */
.hp-demand {
  padding: 52px 0;
  background: var(--white);
}

.hp-demand-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hp-demand-text h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  max-width: 520px;
}

.hp-demand-text p {
  color: var(--medium);
  font-size: .97rem;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 520px;
}

.hp-demand-img img {
  width: 260px;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
}


/* ═══════════════════════════════════════════════════════
   6. PROGRAMS GRID
═══════════════════════════════════════════════════════ */
.hp-programs {
  background: var(--bg);
  padding: 52px 0;
}

.hp-programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hp-program-card { border-radius: 4px; overflow: hidden; background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.07); transition: box-shadow .2s, transform .2s; }
.hp-program-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); transform: translateY(-2px); }

.hp-program-card__link { display: flex; flex-direction: column; color: var(--dark); }
.hp-program-card__link:hover { color: var(--dark); }

.hp-program-card__img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.hp-program-card__img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.hp-program-card:hover .hp-program-card__img img { transform: scale(1.04); }

.hp-program-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.hp-program-card__overlay h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.hp-program-card__body {
  padding: 16px 18px 18px;
}

.hp-program-card__desc {
  font-size: .88rem;
  color: var(--medium);
  line-height: 1.55;
  margin-bottom: 10px;
}

.hp-program-card__careers {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.hp-program-card__more {
  font-size: .8rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .03em;
}


/* ═══════════════════════════════════════════════════════
   7. TOP HEADLINES
═══════════════════════════════════════════════════════ */
.hp-news {
  background: var(--white);
  padding: 52px 0;
}

.hp-news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Featured story */
.hp-news-featured a { display: block; color: var(--dark); }
.hp-news-featured a:hover { color: var(--dark); }

.hp-news-featured__img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 3px;
  background: var(--navy);
}

.hp-news-featured__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay with title on hover */
.hp-news-featured__img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 50%);
}

.hp-news-featured__body {
  padding: 14px 0;
}

.hp-news-featured__body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
  margin-top: 8px;
}

.hp-news-featured a:hover h3 { color: var(--red); }

/* 3 secondary cards */
.hp-news-secondary {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hp-news-card {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.hp-news-card:first-child { padding-top: 0; }

.hp-news-card a {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--dark);
}

.hp-news-card a:hover { color: var(--dark); }

.hp-news-card img {
  width: 100px;
  height: 67px;
  object-fit: cover;
  border-radius: 3px;
}

.hp-news-card__body { display: flex; flex-direction: column; gap: 4px; }

.hp-news-card__title {
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--dark);
}

.hp-news-card a:hover .hp-news-card__title { color: var(--red); }

.hp-news-more-wrap {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.hp-news-more {
  font-size: .82rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.hp-news-more:hover { color: var(--red-dark); }


/* ═══════════════════════════════════════════════════════
   8. BE READY TO…  alternating rows
═══════════════════════════════════════════════════════ */
.hp-be-ready { background: var(--bg); }

.hp-be-ready__heading {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  padding: 52px 0 0;
  max-width: var(--site-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.hp-be-ready__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
}

.hp-be-ready__row--reverse { direction: rtl; }
.hp-be-ready__row--reverse > * { direction: ltr; }

.hp-be-ready__img {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  min-height: 280px;
}

.hp-be-ready__img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hp-be-ready__text {
  background: var(--white);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.hp-be-ready__text h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

.hp-be-ready__text p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--medium);
}

.hp-be-ready__cta {
  font-size: .82rem;
  font-weight: 700;
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hp-be-ready__cta:hover { color: var(--red-dark); }


/* ═══════════════════════════════════════════════════════
   9. CTA BLOCK
═══════════════════════════════════════════════════════ */
.hp-cta-block {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 72px 24px;
  text-align: center;
}

.hp-cta-block__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .18;
}

.hp-cta-block__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}

.hp-cta-block__logo img {
  height: 40px;
  filter: brightness(0) invert(1);
  margin: 0 auto 20px;
}

.hp-cta-block__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
  line-height: 1.15;
}

.hp-cta-block__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 280px;
  margin-inline: auto;
}

.hp-cta-block__buttons .btn-red,
.hp-cta-block__buttons .btn-outline-white {
  width: 100%;
  text-align: center;
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hp-mosaic { grid-template-rows: 100px 100px; }
  .hp-be-ready__text { padding: 36px 32px; }
}

@media (max-width: 768px) {
  /* Mosaic: 4 columns, 2 rows */
  .hp-mosaic { grid-template-columns: repeat(4, 1fr); grid-template-rows: 100px 100px; }
  .mosaic-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .mosaic-tile:nth-child(2),
  .mosaic-tile:nth-child(3),
  .mosaic-tile:nth-child(4),
  .mosaic-tile:nth-child(5) { grid-column: span 1; grid-row: span 1; }
  .mosaic-tile:nth-child(6),
  .mosaic-tile:nth-child(7),
  .mosaic-tile:nth-child(8) { display: none; }

  .hp-tagline-bar { padding: 28px 20px 0; }
  .hp-tagline-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hp-tagline { font-size: 2.4rem; }

  .hp-adj-grid { grid-template-columns: 1fr; max-width: 320px; }
  .hp-adj-img { aspect-ratio: 4/3; }

  .hp-demand-inner { grid-template-columns: 1fr; }
  .hp-demand-img { display: none; }

  .hp-programs-grid { grid-template-columns: 1fr; }

  .hp-news-grid { grid-template-columns: 1fr; }
  .hp-news-secondary { margin-top: 16px; }

  .hp-be-ready__row,
  .hp-be-ready__row--reverse { grid-template-columns: 1fr; direction: ltr; }
  .hp-be-ready__img { min-height: 200px; }
  .hp-be-ready__text { padding: 32px 20px; }

  .hp-cta-block { padding: 52px 20px; }
}

@media (max-width: 480px) {
  .hp-mosaic { grid-template-columns: repeat(3, 1fr); }
  .mosaic-tile:nth-child(5) { display: none; }
}
