/* Marcellus = main headings (same as the home / principal pages) */
@import url("https://fonts.googleapis.com/css2?family=Marcellus&display=swap");

/* =========================================================================
   Facilities page — intro title, full grid with descriptions, bottom tour CTA
   ========================================================================= */

/* ---------- Intro (from the shared kit): breadcrumb, title, line under it ---------- */
.sp-page [class*="intro"] h1 {
  display: inline-block;
  font-family: "Marcellus", var(--font-head);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 3px solid currentColor;     /* underline = text width, same colour as the title */
}
.sp-page [class*="intro"] p:not([class*="crumb"]) {
  font-family: var(--font-body);
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.9;
  -webkit-text-stroke: 0.15px currentColor;
}
/* breadcrumb on its own line, title below it */
.sp-page [class*="intro"] [class*="crumb"] {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  -webkit-text-stroke: 0.15px currentColor;
}
/* small gradient line under the title: removed */
.sp-page [class*="intro"] h1::before,
.sp-page [class*="intro"] h1::after,
.sp-page [class*="intro"] hr,
.sp-page [class*="intro"] [class*="rule"],
.sp-page [class*="intro"] [class*="bar"],
.sp-page [class*="intro"] [class*="divider"],
.sp-page [class*="intro"] [class*="underline"] {
  display: none !important;
}
@media (max-width: 700px) {
  .sp-page [class*="intro"] p:not([class*="crumb"]) { font-size: 1.05rem; }
}

/* ---------- Facilities grid ---------- */
.facilities-grid-full { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; padding: 0 8px 8px 0; }

/* Facility cards: FULL 3D BLOCK in blue (same as the home page "Our School Highlights"
   cards): thin dark-blue outline, glossy face, solid block thickness on the right + bottom,
   soft ground shadow. Hover = whole card comes straight forward (no tilt) · Click = presses into its edge. */
.facility-card-full {
  --line: #0B3F73;                 /* thin outline colour */
  --edge: #A9C4E2;                 /* colour of the solid 3D side (right + bottom) */
  position: relative;
  background:
    radial-gradient(120% 80% at 0% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(145deg, #FAFDFF 0%, #DCE9F6 100%);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.95),
    inset -3px -3px 7px rgba(11, 63, 115, 0.16),
    1px 1px 0 var(--edge),
    2px 2px 0 var(--edge),
    3px 3px 0 var(--edge),
    4px 4px 0 var(--edge),
    5px 5px 0 var(--edge),
    6px 6px 0 var(--edge),
    7px 7px 0 var(--edge),
    8px 8px 0 1px var(--line),
    16px 22px 30px -6px rgba(11, 63, 115, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* hover: whole card comes straight forward (no tilt) like a real 3D block */
.facility-card-full:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.95),
    inset -3px -3px 7px rgba(11, 63, 115, 0.16),
    1px 1px 0 var(--edge),
    2px 2px 0 var(--edge),
    3px 3px 0 var(--edge),
    4px 4px 0 var(--edge),
    5px 5px 0 var(--edge),
    6px 6px 0 var(--edge),
    7px 7px 0 var(--edge),
    8px 8px 0 1px var(--line),
    22px 34px 40px -8px rgba(11, 63, 115, 0.5);
}
.facility-card-full:active {
  transform: translate(5px, 5px);
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.95),
    inset -3px -3px 7px rgba(11, 63, 115, 0.16),
    1px 1px 0 var(--edge),
    2px 2px 0 var(--edge),
    3px 3px 0 1px var(--line),
    8px 10px 14px -6px rgba(11, 63, 115, 0.4);
}

.facility-card-full .thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.facility-card-full .thumb img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.facility-card-full:hover .thumb img { transform: scale(1.05); }

/* Image placeholder (shown until the real photo exists) */
.facility-card-full .fc-ph {
  position: absolute; inset: 12px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 12px;
  border: 2px dashed #9DBDDD; border-radius: 14px;
  background: #EAF3FB; color: #0B3F73;
}
.facility-card-full .fc-ph i { font-size: 2.6rem; color: #1667B0; opacity: 0.85; }
.facility-card-full .fc-ph code { background: #fff; padding: 2px 8px; border-radius: 6px; font-size: 0.82rem; color: #0B3F73; }
.facility-card-full .fc-ph span { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5; }
.facility-card-full .body { padding: 22px 24px 26px; }

/* Card title: same as the home-page card names (Cormorant Garamond, bold, black).
   The coloured line before the title is removed. */
.facility-card-full h4 {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #111111;
  -webkit-text-stroke: 0.3px currentColor;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Card description: same look as the principal-page message text */
.facility-card-full p {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  -webkit-text-stroke: 0.15px currentColor;
  line-height: 1.8;
  color: #000;
}

@media (max-width: 900px) { .facilities-grid-full { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .facilities-grid-full { grid-template-columns: 1fr; }
  .facility-card-full h4 { font-size: 1.4rem; }
  .facility-card-full p { font-size: 1.05rem; }
}

/* =========================================================================
   Tour CTA — heading styled like the principal / directors page headings
   (Marcellus capitals, dark blue, underline = text width)
   ========================================================================= */
.tour-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

.tour-cta h2 {
  display: inline-block;
  font-family: "Marcellus", var(--font-head);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #0B3F73;                            /* dark blue */
  padding-bottom: 4px;
  margin: 8px 0 0;
  border-bottom: 3px solid #0B3F73;          /* dark blue underline = text width */
}

.tour-cta p.lede {
  max-width: 520px;
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 1.22rem;
  font-weight: 400;
  -webkit-text-stroke: 0.15px currentColor;
  line-height: 1.9;
  color: #000;
}

@media (max-width: 700px) {
  .tour-cta p.lede { font-size: 1.05rem; }
}