/* ==========================================================================
   MTRST — Mar Thoma Residential School
   Custom stylesheet. Preserves the original navy / gold / ivory / sage
   design identity, rebuilt on Bootstrap 5 (no Tailwind, no Canva SDK).
   ========================================================================== */

:root {
  --navy: #0f1b2d;
  --navy-light: #1a2d4a;
  --gold: #c8a24e;
  --ivory: #faf9f6;
  --sage: #7a8f7a;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Raleway', sans-serif;
}

body {
  font-family: var(--font-body);
  color: #2b2f36;
  background: #ffffff;
}

.font-display { font-family: var(--font-display); }

a { text-decoration: none; }

/* ---- Buttons ---- */
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  border: none;
}
.btn-gold:hover { background: #b58f3f; color: var(--navy); }

.btn-outline-light-2 {
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
  font-weight: 600;
}
.btn-outline-light-2:hover { border-color: #fff; color: #fff; }

/* ---- Utility bar / navbar ---- */
.utility-bar { background: #0a1220; font-size: .75rem; }
.utility-link, .utility-text { color: rgba(255,255,255,.7); }
.utility-link:hover { color: #fff; }
.utility-lang { background: transparent; color: rgba(255,255,255,.7); border: none; font-size: .75rem; }

.brand-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--navy); }
.brand-subtitle { font-size: .65rem; color: #6b7280; }

#main-nav .nav-link { font-weight: 500; color: #374151; }
#main-nav .nav-link:hover { color: var(--gold); }
#main-nav .dropdown-item:active { background: var(--gold); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(15,27,45,.85) 0%, rgba(15,27,45,.3) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  min-height: 85vh;
  display: flex; align-items: center;
}
.hero h1 { font-size: 2rem; line-height: 1.1; color: #fff; }
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }

/* ---- Stats ---- */
.stats-section { background: var(--ivory); }
.stat-number { font-family: var(--font-display); font-weight: 700; font-size: 2.25rem; color: var(--navy); }
.stat-label { color: #6b7280; font-size: .9rem; }

/* ---- Section labels/headings ---- */
.section-label { color: var(--sage); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: .85rem; }
.section-heading { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.75rem; }

/* ---- Value pills ---- */
.value-pill {
  background: rgba(200,162,78,.08);
  border: 1px solid rgba(200,162,78,.2);
  border-radius: .5rem;
  padding: .75rem 1rem;
  display: flex; align-items: center; gap: .5rem;
  color: var(--navy);
  font-weight: 500;
}
.value-pill i { color: var(--gold); }

/* ---- Cards ---- */
.card-zoom { overflow: hidden; border-radius: 1rem; transition: box-shadow .3s; }
.card-zoom img { transition: transform .5s; }
.card-zoom:hover img { transform: scale(1.08); }
.card-zoom:hover { box-shadow: 0 1rem 2rem rgba(15,27,45,.12); }
.card-link { color: var(--gold); font-weight: 600; font-size: .9rem; }

/* ---- Campus tabs ---- */
.tab-btn {
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  padding: .55rem 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  background: #fff;
  color: #374151;
}
.tab-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200,162,78,.08);
}
.campus-panel-wrap { position: relative; height: 420px; border-radius: 1rem; overflow: hidden; box-shadow: 0 1rem 2rem rgba(15,27,45,.1); }
.campus-panel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- News / events ---- */
.news-card { background: #fff; border: 1px solid #f1f1f1; border-radius: .75rem; padding: 1.25rem; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.news-tag { font-size: .7rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; background: #f0e6d3; color: var(--navy); }
.news-date { font-size: .7rem; color: #9ca3af; }

.event-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid #f1f1f1; border-radius: .75rem; padding: 1.25rem; }
.event-day { min-width: 50px; text-align: center; }
.event-day .num { display: block; font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.event-day .mon { font-size: .7rem; color: #6b7280; }

/* ---- Testimonials ---- */
.testimonials-section { background: var(--navy); }
.testimonial-card {
  min-width: 320px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 1rem;
  padding: 2rem;
  color: rgba(255,255,255,.87);
}
@media (min-width: 768px) { .testimonial-card { min-width: 380px; } }
.testimonial-quote { font-family: var(--font-display); font-size: 2.25rem; color: var(--gold); }
.testimonial-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.carousel-nav-btn { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; background: transparent; color: #fff; }
.carousel-nav-btn:hover { background: rgba(255,255,255,.1); }

/* ---- Inquiry ---- */
.inquiry-section { background: linear-gradient(135deg, #faf9f6 0%, #f0ebe0 100%); }
.inquiry-section input,
.inquiry-section select,
.inquiry-section textarea {
  border-radius: .5rem;
  border: 1px solid #e5e7eb;
  padding: .75rem 1rem;
  font-size: .9rem;
}
.inquiry-section input:focus,
.inquiry-section textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 .15rem rgba(200,162,78,.15); }

/* ---- Footer ---- */
.site-footer { background: #0a1220; }
.footer-heading { color: #fff; font-weight: 600; margin-bottom: 1rem; font-size: 1rem; }
.footer-muted { color: #9ca3af; line-height: 1.7; }
.footer-faint { color: #6b7280; }
.footer-links a { color: #9ca3af; }
.footer-links a:hover { color: var(--gold); }
.social-icon {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: rgba(200,162,78,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}

/* ---- Fade-in on scroll ---- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- Breadcrumb / interior pages ---- */
.page-header { background: var(--navy); color: #fff; padding: 3.5rem 0; }
.page-header h1 { font-family: var(--font-display); font-weight: 700; }
.breadcrumb-item a { color: rgba(255,255,255,.7); }
.breadcrumb-item.active { color: var(--gold); }

/* ---- Gallery lightbox trigger ---- */
.gallery-item { border-radius: .75rem; overflow: hidden; cursor: pointer; }
.gallery-item img { transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---- Utility ---- */
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.bg-navy { background: var(--navy); }
.bg-ivory { background: var(--ivory); }
