/* Bloom Education, shared base styles.
   Extracted verbatim from the inline <style> blocks the existing .html pages
   carry, so the shared header/footer partials render identically here.
   Used by the PHP pages (enquire.php, gcse-resits.php) only; the existing
   pages keep their inline copies untouched.
   NOTE: the .r reveal class is deliberately omitted -- it starts at opacity:0
   and needs JS to become visible, which would hide the form without JS. */

:root {
  --bg:      #f7f4ec;
  --text:    #171717;
  --muted:   #6b6560;
  --line:    #e3dccd;
  --green:   #c9ff4d;
  --green-dk:#1a2a0d;
  --purple:  #6d46ff;
  --orange:  #ff8f3c;
  --blue:    #62b0ff;
  --ease:    320ms cubic-bezier(.22,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

.wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px; border-radius: 8px;
  font-size: 14.5px; font-weight: 600; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--ease), background var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.btn-acid { background: var(--green); color: var(--text); }
.btn-acid:hover { box-shadow: 0 8px 28px rgba(160,210,0,.28); }
.btn-outline { background: transparent; border-color: var(--text); color: var(--text); }
.btn-outline-inv { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-inv:hover { border-color: #fff; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13.5px; }

/* --- NAV (shared partial) --- */
header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(247,244,236,.92);
  backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.logo { font-family: 'Fraunces', serif; font-weight: 900; font-size: 22px; letter-spacing: -.05em; display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--green); display: flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.09); }
.nav-right { display: flex; align-items: center; flex-shrink: 0; }
.nav-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 2px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: border-color var(--ease), background var(--ease), color var(--ease), transform var(--ease); }
.nav-link:hover { border-color: var(--text); transform: translateY(-1px); }
.nav-link-accent { color: var(--green-dk); background: var(--green); }
.nav-link-active { border-color: var(--text); }
.cat-bar { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
.cat-bar::-webkit-scrollbar { display: none; }
.cat-link { display: flex; flex: 1 1 0; align-items: center; justify-content: center; padding: 11px 18px; font-size: 13.5px; font-weight: 500; white-space: nowrap; color: var(--muted); border-bottom: 2px solid transparent; transition: color var(--ease), border-color var(--ease); }
.cat-link:hover, .cat-link.active { color: var(--text); border-color: var(--text); }

main { display: block; }


/* --- FOOTER (shared partial) --- */
footer { background: #131313; color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; padding: 72px 0 56px; border-bottom: 1px solid rgba(255,255,255,.08); }
.f-brand .logo { color: white; margin-bottom: 18px; }
.f-brand .logo-mark { width: 100px; height: 100px; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.f-brand .logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; filter: brightness(0) invert(1); padding: 0; }
.f-brand p { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.8; max-width: 300px; margin-bottom: 24px; }
.f-col h5 { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 18px; }
.f-col ul { list-style: none; display: grid; gap: 12px; }
.f-col a { font-size: 14px; color: rgba(255,255,255,.62); transition: color var(--ease); }
.f-col a:hover { color: white; }
.footer-nl { background: var(--green); }
.footer-nl-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 40px 0; }
.fnl-head h3 { font-family: 'Fraunces', serif; font-weight: 900; font-style: italic; font-size: 2rem; letter-spacing: -.04em; color: var(--green-dk); }
.fnl-head p { font-size: 14px; color: rgba(0,0,0,.52); margin-top: 4px; }
.nl-row { display: flex; gap: 8px; }
.nl-inp { height: 48px; min-width: 240px; border-radius: 999px; border: 2px solid rgba(0,0,0,.12); background: rgba(255,255,255,.55); padding: 0 20px; font: inherit; font-size: 14px; color: var(--green-dk); outline: none; transition: background var(--ease), border-color var(--ease); }
.nl-inp:focus { background: white; border-color: var(--green-dk); }
.nl-inp::placeholder { color: rgba(0,0,0,.38); }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.06); font-size: 12.5px; color: rgba(255,255,255,.3); }
.fb-links { display: flex; gap: 20px; }
.fb-links a { color: rgba(255,255,255,.36); transition: color var(--ease); }
.fb-links a:hover { color: white; }


/* --- RESPONSIVE --- */
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .nav-links { display: none; }
  .article-wrap { padding: 40px 0 64px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .nl-row { flex-direction: column; }
  .nl-inp { min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Match the shared header logo to the static marketing pages. */
.header-logo { gap: 14px; }
.header-logo .logo-mark { width: 50px; height: 50px; border-radius: 0; background: #fff; overflow: hidden; flex-shrink: 0; box-shadow: none; border-right: 1px solid var(--line); }
.header-logo .logo-mark img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
