/* ============================================
   PCC — Philopateer Christian College
   Shared design system
   ============================================ */

:root {
  /* Palette — Navy + Gold, warm earthy base */
  --navy-900: #0b1d3a;
  --navy-800: #12264a;
  --navy-700: #1b3563;
  --navy-600: #2a4a82;
  --navy-500: #3c5d99;
  --navy-100: #e8ecf3;
  --navy-50:  #f4f6fa;

  --gold-700: #a7802e;
  --gold-600: #c99b3c;
  --gold-500: #d9b159;
  --gold-400: #e6c377;
  --gold-100: #f6ebcf;
  --gold-50:  #fbf6e9;

  /* Warm neutrals */
  --cream:    #faf6ee;
  --paper:    #f7f2e7;
  --ivory:    #fffdf8;
  --stone-900:#231e17;
  --stone-800:#3a3228;
  --stone-700:#564b3d;
  --stone-600:#7a6c5a;
  --stone-500:#9a8e7c;
  --stone-300:#d6cdbb;
  --stone-200:#e6ddc9;
  --stone-100:#f0e8d6;

  --red-700:  #8a2a2a;  /* occasional devotional accent */

  /* Semantic */
  --bg:         var(--ivory);
  --bg-soft:    var(--cream);
  --bg-tinted:  var(--paper);
  --ink:        var(--stone-900);
  --ink-soft:   var(--stone-700);
  --ink-muted:  var(--stone-600);
  --rule:       var(--stone-200);
  --rule-soft:  var(--stone-100);

  --brand:      var(--navy-800);
  --brand-deep: var(--navy-900);
  --accent:     var(--gold-600);
  --accent-soft:var(--gold-100);

  /* Type */
  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii, shadow */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(11,29,58,0.06), 0 1px 1px rgba(11,29,58,0.04);
  --shadow-md: 0 4px 14px rgba(11,29,58,0.08), 0 2px 4px rgba(11,29,58,0.04);
  --shadow-lg: 0 20px 50px rgba(11,29,58,0.14), 0 6px 20px rgba(11,29,58,0.06);

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================
   Typography
   ============================================ */
.display, h1, h2, h3, .h-serif {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--brand-deep);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.8rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 500; }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 500; }
h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; }

p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.65; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  margin-top: -2px;
}

.small-caps {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Serif-italic phrase decoration used in hero titles */
.italic-accent {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-700);
}

/* ============================================
   Layout helpers
   ============================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 10vh, 120px) 0; }
.section-tight { padding: clamp(48px, 7vh, 80px) 0; }

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

.gold-rule {
  display: inline-block;
  width: 36px;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 14px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-gold {
  background: var(--accent);
  color: var(--brand-deep);
}
.btn-gold:hover { background: var(--gold-700); color: var(--ivory); transform: translateY(-1px); }

.btn-ghost {
  border-color: currentColor;
  color: var(--brand-deep);
}
.btn-ghost:hover { background: var(--brand-deep); color: var(--ivory); border-color: var(--brand-deep); }

.btn-ghost-light {
  border-color: rgba(255,255,255,0.5);
  color: var(--ivory);
}
.btn-ghost-light:hover { background: var(--ivory); color: var(--brand-deep); border-color: var(--ivory); }

.btn .arr {
  display: inline-block;
  transition: transform 0.25s ease;
}
.btn:hover .arr { transform: translateX(4px); }

/* ============================================
   Header / Navigation
   ============================================ */
.topbar {
  background: var(--brand-deep);
  color: rgba(255,255,255,0.78);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  gap: 24px;
}
.topbar a { color: inherit; }
.topbar a:hover { color: var(--gold-400); }
.topbar .sep { opacity: 0.35; margin: 0 12px; }
.topbar-links { display: flex; gap: 4px; align-items: center; white-space: nowrap; flex-wrap: nowrap; }
.topbar-links > span, .topbar-links > a, .topbar-links > * { white-space: nowrap !important; flex-shrink: 0; }
.topbar-links a { padding: 0 8px; }

.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(140%) blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--brand-deep);
}
.logo-crest {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px var(--gold-600), inset 0 0 0 3px var(--navy-900);
}
.logo-text { line-height: 1.1; min-width: 0; white-space: nowrap; }
.logo-text .big, .logo-text .small { white-space: nowrap !important; }
.logo-text .big {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-deep);
  letter-spacing: -0.005em;
}
.logo-text .small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav-item {
  position: relative;
}
.nav-item > a, .nav-item > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--stone-800);
  border-radius: var(--r-md);
  transition: color 0.2s;
  background: none;
}
.nav-item > a:hover, .nav-item > button:hover, .nav-item.active > a { color: var(--brand); }
.nav-item.active > a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 14px; right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.lang-switch button {
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
}
.lang-switch button.on {
  background: var(--brand-deep);
  color: var(--ivory);
}

/* Mega menu */
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(880px, 92vw);
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 32px;
}
.nav-item:hover .mega,
.nav-item:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-promo {
  background: var(--brand-deep);
  color: var(--ivory);
  padding: 24px;
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}
.mega-promo::after {
  content: "";
  position: absolute;
  inset: auto -30% -40% auto;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--gold-500) 0%, transparent 60%);
  opacity: 0.35;
}
.mega-promo .eyebrow { color: var(--gold-400); }
.mega-promo h4 { font-family: var(--font-display); font-size: 1.5rem; color: var(--ivory); margin: 10px 0 12px; line-height: 1.15; }
.mega-promo p { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin: 0 0 16px; }
.mega-promo a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-400);
}
.mega-col h5 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 12px;
}
.mega-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}
.mega-links a {
  display: block;
  padding: 8px 0;
  color: var(--stone-800);
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s;
}
.mega-links a:hover { color: var(--brand); }
.mega-links a .meta {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 2px;
  font-weight: 400;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--brand-deep);
  color: rgba(255,255,255,0.72);
  padding: 80px 0 30px;
  position: relative;
}
.footer a { color: inherit; }
.footer a:hover { color: var(--gold-400); }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; }
.footer-brand .logo-crest { background: var(--ivory); color: var(--brand-deep); }
.footer-brand .logo-text .big { color: var(--ivory); }
.footer-brand .logo-text .small { color: rgba(255,255,255,0.5); }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin: 20px 0; max-width: 340px; }

.newsletter {
  display: flex;
  gap: 0;
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  overflow: hidden;
  max-width: 360px;
}
.newsletter input {
  flex: 1;
  background: none;
  border: 0;
  color: var(--ivory);
  padding: 12px 18px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}
.newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter button {
  background: var(--accent);
  color: var(--brand-deep);
  padding: 0 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a:hover { color: var(--ivory); }

/* ============================================
   Shared: placeholder media
   ============================================ */
.ph {
  position: relative;
  background: var(--stone-100);
  overflow: hidden;
  border-radius: var(--r-md);
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(11,29,58,0.04) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, var(--paper), var(--stone-100));
}
.ph-label {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  background: rgba(255,253,248,0.88);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  backdrop-filter: blur(4px);
}

/* ============================================
   Cards (generic)
   ============================================ */
.card {
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-body { padding: 24px; }
.card-img { aspect-ratio: 16/10; }

/* ============================================
   Utility
   ============================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--gold-700);
  border-radius: 999px;
}
.chip.dark {
  background: rgba(255,255,255,0.1);
  color: var(--gold-400);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .nav { display: none; }
  .header-inner { padding: 14px 0; }
}

/* ============================================
   Breadcrumbs
   ============================================ */
.crumbs {
  padding: 24px 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { margin: 0 10px; opacity: 0.5; }

/* ============================================
   Page hero (inner pages)
   ============================================ */
.page-hero {
  background: var(--brand-deep);
  color: var(--ivory);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -200px -300px auto;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--gold-600) 0%, transparent 60%);
  opacity: 0.18;
  pointer-events: none;
}
.page-hero h1 { color: var(--ivory); margin: 16px 0 20px; max-width: 900px; }
.page-hero .eyebrow { color: var(--gold-400); }
.page-hero .lead { color: rgba(255,255,255,0.78); max-width: 680px; }

/* Animation utilities */
@keyframes fadeUp {
  from { opacity: 0.01; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none !important; }
}
.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }

/* Ken Burns-like slow zoom for hero background */
@keyframes slowZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.12); }
}

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
