/* ============================================================
   facilities.css — Facilities page specific styles
   ------------------------------------------------------------
     • Library: 16:9 large feature card with content overlay
     • Supporting facilities (Science, Sports, Computer, Arts):
       2×2 grid of 4:3 cards
============================================================ */

/* ============================================================
   1. FACILITIES INTRO HEADER
============================================================ */

.facilities-page { padding: clamp(40px, 5vw, 80px) 0 0; }

.fp-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}
.fp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: clamp(18px, 2vw, 24px);
}
.fp-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent-gradient);
  border-radius: 50%;
}
.fp-head h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--secondary);
  margin-bottom: clamp(14px, 1.5vw, 20px);
}
.fp-head p {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.65;
  color: #4a6885;
  margin: 0;
}

/* ============================================================
   2. LIBRARY — 16:9 large feature card
============================================================ */

.lib-feature {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: clamp(20px, 2.5vw, 32px);
  overflow: hidden;
  margin-bottom: clamp(24px, 3vw, 40px);
  box-shadow: 0 40px 80px -40px rgba(0, 50, 98, 0.45);
  transition: all 0.4s var(--ease-out);
}
.lib-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 50px 100px -50px rgba(0, 50, 98, 0.55);
}
.lib-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.lib-feature:hover img { transform: scale(1.04); }

.lib-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 30, 60, 0.88) 0%,
    rgba(0, 30, 60, 0.55) 45%,
    rgba(0, 30, 60, 0.1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.lib-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 5vw, 64px);
  color: var(--primary);
  max-width: 720px;
}

.lib-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 216, 0, 0.15);
  border: 1px solid rgba(255, 216, 0, 0.3);
  color: var(--accent);
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: clamp(18px, 2vw, 24px);
  backdrop-filter: blur(4px);
}
.lib-pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-gradient);
  border-radius: 50%;
}

.lib-content h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--primary);
  margin-bottom: clamp(14px, 1.5vw, 20px);
}
.lib-content h2 .serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.lib-content > p {
  font-size: clamp(14.5px, 1.1vw, 16.5px);
  line-height: 1.65;
  color: rgba(240, 248, 255, 0.85);
  margin: 0 0 clamp(20px, 2.5vw, 28px);
  max-width: 580px;
}

.lib-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3vw, 40px);
  padding: clamp(18px, 2vw, 24px) 0 0;
  border-top: 1px solid rgba(240, 248, 255, 0.18);
}
.lib-stat strong {
  display: block;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1;
}
.lib-stat span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 248, 255, 0.75);
  font-weight: 600;
}

/* ============================================================
   3. SUPPORTING FACILITIES — 3-column grid of 4:3 cards
   (Science · Sports · Computer Lab)
============================================================ */

.fac-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  margin-bottom: clamp(40px, 5vw, 60px);
}

.fac-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: clamp(16px, 2vw, 22px);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}
.fac-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(0, 50, 98, 0.35);
  border-color: var(--secondary-soft);
}

/* 4:3 image */
.fc-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.fc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.fac-card:hover .fc-image img { transform: scale(1.05); }

/* Category tag overlay on image */
.fc-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--surface);
  color: var(--secondary);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.2);
}

/* Content body */
.fc-body {
  padding: clamp(22px, 2.5vw, 30px);
}
.fc-body h3 {
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--secondary);
  margin-bottom: 8px;
}
.fc-body p {
  font-size: 14px;
  line-height: 1.6;
  color: #4a6885;
  margin: 0 0 clamp(16px, 1.8vw, 22px);
}

.fc-highlights {
  list-style: none;
  margin: 0;
  padding: clamp(16px, 1.8vw, 20px) 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.fc-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-mute);
  font-weight: 600;
}
.fc-highlights li svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   4. RESPONSIVE
============================================================ */

@media (max-width: 980px) {
  .fac-grid-2x2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 640px) {
  .lib-feature { aspect-ratio: 4 / 3; }
  .lib-content { justify-content: flex-end; padding: 28px; }
  .lib-stats { gap: 20px; }
  .fac-grid-2x2 { grid-template-columns: 1fr; }
  .fc-image { aspect-ratio: 16 / 10; }
}

@media (max-width: 540px) {
  .lib-feature { aspect-ratio: 3 / 4; }
  .lib-content h2 { font-size: 28px; }
}
