/* ========================================================
   IN-Tech Headshots 2026
   ======================================================== */

:root {
  --brand-blue: #26578B;
  --brand-gold: #CF7D3D;
  --deep-navy: #0a1628;
  --white: #FFFFFF;
  --light-gray: #B0B8C4;
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  background: var(--deep-navy);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* ── Doors Section ─────────────────────────────────────── */

#doors {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem;
  background: linear-gradient(170deg, var(--deep-navy) 0%, var(--brand-blue) 100%);
  text-align: center;
}

.doors-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
}

.doors-container {
  display: flex;
  gap: 2rem;
  width: 100%;
  max-width: 800px;
}

.door {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.door:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(207, 125, 61, 0.35);
  background: rgba(255, 255, 255, 0.07);
}

.door__year {
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  user-select: none;
}

/* 2025 */
.door--2025 {
  border-right: 4px solid var(--brand-gold);
}

/* 2026 — gold accent */
.door--2026 {
  border-left: 4px solid var(--brand-gold);
}

.doors-subtitle {
  font-size: 0.95rem;
  color: var(--light-gray);
  letter-spacing: 0.04em;
}

/* ── Gallery Section ───────────────────────────────────── */

#gallery-2025,
#gallery-2026 {
  display: none;
  min-height: 100vh;
  padding: 3rem 2rem 4rem;
  background: var(--deep-navy);
}

#gallery-2025.visible,
#gallery-2026.visible {
  display: block;
}

.gallery-header {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--light-gray);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  transition: color 0.2s, border-color 0.2s;
}

.back-btn:hover {
  color: var(--white);
  border-color: var(--brand-gold);
}

.gallery-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ── Gallery Grid ──────────────────────────────────────── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(207, 125, 61, 0.3);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.04);
}

.card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.85) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  pointer-events: none;
}

.card__name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

.card__role {
  font-size: 0.8rem;
  color: var(--light-gray);
}

/* ── Lightbox ──────────────────────────────────────────── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.92);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.active {
  display: flex;
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--white);
  z-index: 10;
  transition: color 0.2s;
}

.lightbox__close:hover {
  color: var(--brand-gold);
}

.lightbox__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 900px;
  width: 100%;
}

.lightbox__info {
  text-align: center;
}

.lightbox__name {
  font-size: 1.5rem;
  font-weight: 700;
}

.lightbox__role {
  font-size: 0.95rem;
  color: var(--light-gray);
  margin-top: 0.15rem;
}

/* Stage — photo + arrows */
.lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.lightbox__photo {
  max-height: 70vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: background 0.2s, color 0.2s;
  z-index: 5;
}

.lightbox__arrow:hover {
  background: var(--brand-gold);
  color: var(--white);
}

.lightbox__arrow--prev {
  left: 0.5rem;
}

.lightbox__arrow--next {
  right: 0.5rem;
}

/* Thumbnails */
.lightbox__thumbs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.lightbox__thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s;
}

.lightbox__thumb:hover {
  opacity: 0.8;
}

.lightbox__thumb.active {
  border-color: var(--brand-gold);
  opacity: 1;
}

.lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Download */
.lightbox__download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: var(--brand-gold);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}

.lightbox__download:hover {
  background: #b8692f;
  transform: translateY(-1px);
}

.lightbox__download svg {
  flex-shrink: 0;
}

/* ── Footer ────────────────────────────────────────────── */

.site-footer {
  padding: 2.5rem 2rem;
  font-size: 0.85rem;
  color: var(--light-gray);
  background: var(--deep-navy);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  height: 50px;
  width: auto;
  flex-shrink: 0;
}

.site-footer p {
  margin: 0;
}

.site-footer strong {
  color: var(--white);
  font-weight: 600;
}

/* ── Body lock when lightbox open ──────────────────────── */

body.lightbox-open {
  overflow: hidden;
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .doors-container {
    flex-direction: column;
    max-width: 360px;
  }

  .door__year {
    font-size: 5rem;
  }

  .door--2025 {
    border-right: none;
    border-bottom: 4px solid var(--brand-gold);
  }

  .door--2026 {
    border-left: none;
    border-top: 4px solid var(--brand-gold);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .gallery-title {
    font-size: 1.35rem;
  }

  /* Lightbox fullscreen on mobile */
  .lightbox {
    padding: 0;
  }

  .lightbox__content {
    height: 100%;
    justify-content: center;
    padding: 1rem;
  }

  .lightbox__photo {
    max-height: 55vh;
  }

  .lightbox__arrow {
    width: 40px;
    height: 40px;
  }

  .lightbox__thumb {
    width: 60px;
    height: 60px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
