/* ── Reset & Variables ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary:       #1B5E20; --primary-rgb:    27,94,32;
  --primary-light: #E8F5E9; --primary-border: #D8E8D8;
  --gold:          #F9A825; --gold-light:     #FDD835; --gold-rgb: 249,168,37;
  --secondary:     #1a3c6e; --primary-dark:   #0D3B10; --on-gold: #1B5E20; --gold-ink: #B37400;
  /* Real values are injected per school from admin/palette.js; these are fallbacks */
  --white:         #FFFFFF; --off-white:      #F9FBF9; --text-dark: #1A1A1A;
  --text-mid:      #444444; --text-light:     #777777;
  --shadow:        0 4px 24px rgba(var(--primary-rgb),0.10);
  --shadow-lg:     0 8px 40px rgba(var(--primary-rgb),0.15);
  --radius:        12px; --radius-sm: 8px;
  --font-serif:    'Playfair Display', Georgia, serif;
  --font-sans:     'Inter', system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text-dark); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; }
ul { list-style: none; }


/* ── Utilities ─────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-label { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); background: rgba(var(--gold-rgb),0.12); padding: 4px 14px; border-radius: 50px; margin-bottom: 12px; }
.section-title { font-family: var(--font-serif); font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 700; line-height: 1.25; color: var(--primary); }
.section-title span { color: var(--gold-ink); }
.section-sub { font-size: 1.05rem; color: var(--text-mid); margin-top: 12px; max-width: 560px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 50px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.25s ease; border: 2px solid transparent; }
.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--gold-rgb),0.4); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.btn-green { background: var(--primary); color: var(--white); }
.btn-green:hover { background: rgba(var(--primary-rgb),0.85); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ── Navbar ────────────────────────────────────────────────── */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 9000; padding: 0 24px; transition: box-shadow 0.3s ease; background: var(--primary); }
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.2); }
.nav-inner { width: 100%; display: flex; align-items: center; height: 72px; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
/* The logo as the school made it: no background behind a transparent logo, and wide logos keep their shape */
.nav-logo-icon { height: 60px; display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-icon img { height: 100%; width: auto; max-width: 260px; object-fit: contain; }
.nav-logo-text { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--white); line-height: 1.1; }
.nav-logo-text span { display: block; font-family: var(--font-sans); font-size: 0.65rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: nowrap; }
.nav-links a { padding: 8px 11px; border-radius: 6px; font-size: 0.83rem; font-weight: 500; color: rgba(255,255,255,0.88); transition: all 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { margin-left: 12px; padding: 9px 22px !important; background: var(--gold) !important; color: var(--on-gold) !important; border-radius: 50px !important; font-weight: 600 !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; margin-left: auto; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }
.mobile-menu { display: none; flex-direction: column; background: var(--primary); padding: 16px 24px 24px; gap: 4px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 16px; color: rgba(255,255,255,0.9); font-size: 0.95rem; font-weight: 500; border-radius: 8px; }

/* ── Page Hero (inner pages) ───────────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); padding: 120px 24px 64px; text-align: center; color: var(--white); }
.breadcrumb { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.5); }
.page-hero h1 { font-family: var(--font-serif); font-size: clamp(2rem,4vw,3.2rem); font-weight: 700; margin-bottom: 14px; }
.page-hero h1 span { color: var(--gold); }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto; }

/* ── Footer ────────────────────────────────────────────────── */
footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); padding: 64px 24px 0; }
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-icon { height: 64px; display: flex; align-items: center; flex-shrink: 0; }
.footer-logo-icon img { height: 100%; width: auto; max-width: 260px; object-fit: contain; }
.footer-logo-name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--white); }
.footer-desc { font-size: 0.88rem; line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Expanding pill social buttons ─────────────────────────── */
.soc-btn {
  display: inline-flex; align-items: center; height: 38px;
  border-radius: 50px; overflow: hidden; text-decoration: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  transition: background 0.35s cubic-bezier(0.22,1,0.36,1),
              border-color 0.35s,
              box-shadow 0.35s;
  white-space: nowrap;
}
.soc-btn:hover {
  background: var(--soc-color, var(--gold));
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.soc-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0;
}
.soc-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 0; opacity: 0; padding-right: 0;
  transition: max-width 0.4s cubic-bezier(0.22,1,0.36,1),
              opacity 0.3s ease,
              padding-right 0.4s cubic-bezier(0.22,1,0.36,1);
  overflow: hidden;
}
.soc-btn:hover .soc-label {
  max-width: 110px; opacity: 1; padding-right: 14px;
}
.footer-heading { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.87rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 14px; font-size: 0.87rem; align-items: flex-start; }
.footer-contact-icon { font-size: 1rem; margin-top: 1px; flex-shrink: 0; }
.footer-bottom { max-width: 1180px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--gold); }
.footer-credit { max-width: 1180px; margin: 0 auto; padding: 0 0 20px; text-align: center; font-size: 0.8rem; }
.footer-credit a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
.footer-credit a:hover { color: var(--gold); }
@media (max-width: 768px) { .footer-credit { padding-bottom: 88px; } } /* clears the floating Enquire Now button */

/* ── Float Button ──────────────────────────────────────────── */
#float-cta { position: fixed; right: 24px; bottom: 28px; z-index: 999; }
.float-btn { background: var(--gold); color: var(--on-gold); border: none; border-radius: 50px; padding: 13px 22px; font-family: var(--font-sans); font-size: 0.88rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 20px rgba(var(--gold-rgb),0.5); display: flex; align-items: center; gap: 8px; transition: all 0.25s; animation: pulse 2.5s infinite; }
.float-btn:hover { transform: scale(1.05); animation: none; }
@keyframes pulse { 0%,100% { box-shadow: 0 4px 20px rgba(var(--gold-rgb),0.5); } 50% { box-shadow: 0 4px 30px rgba(var(--gold-rgb),0.8); } }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .nav-logo-icon { height: 48px; } .nav-logo-icon img { max-width: 110px; } }
@media (max-width: 768px) { .nav-links { display: none; } .nav-hamburger { display: flex; } .footer-grid { grid-template-columns: 1fr; gap: 32px; } }


/* ── Pencil cursor (all pages) ─────────────────────────────── */
*, *::before, *::after { cursor: none !important; }
#cpencil { position: fixed; pointer-events: none; z-index: 9999; font-size: 24px; line-height: 1; transform: translate(-4px, -26px) rotate(-10deg); will-change: left, top; }
@media (hover: none) { #cpencil { display: none; } *, *::before, *::after { cursor: auto !important; } }
