/* ============================================================
   Bearings Education Ltd — stylesheet
   Same design tokens as the Boarding School Advisory site, since
   this page's whole job is to present one coherent group identity
   above Academy / Advisory / Compass. --terracotta-ink is a
   deepened variant used wherever terracotta sits under body-sized
   text on a light background, to keep contrast at WCAG AA.
   ============================================================ */

:root {
  --charcoal: #3a3f47;
  --charcoal-dark: #1c1e21;
  --cream: #f2ecdd;
  --white: #fdfcf9;
  --terracotta: #c07a4a;
  --terracotta-ink: #8f5330;
  --terracotta-btn: #a8622f;
  --line: rgba(58, 63, 71, 0.14);
  --line-dark: rgba(242, 236, 221, 0.16);

  --font-head: "Fraunces", "Georgia", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", Consolas, monospace;

  --container: 1080px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Anchor targets clear the sticky nav when jumped to */
#top, #compass, #contact { scroll-margin-top: 84px; }

img { max-width: 100%; display: block; }
a { color: var(--terracotta-ink); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--terracotta-ink);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal-dark);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Top navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 249, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--charcoal);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
}
.site-nav-brand .brand-emblem { width: 26px; height: 26px; }
.site-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.7rem, 2.6vw, 1.5rem);
}
.site-nav-links a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav-links a:hover {
  color: var(--terracotta-ink);
  border-bottom-color: var(--terracotta);
}
@media (max-width: 480px) {
  .site-nav-brand span { display: none; }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--charcoal);
}
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 500; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }

p { margin: 0 0 1em; }
.lede { font-size: 1.1rem; max-width: 56ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-ink);
  display: inline-block;
  margin-bottom: 0.9em;
}
section[data-tone="dark"] .eyebrow { color: var(--terracotta); }

/* ---------- Emblem SVGs (shared ring style) ---------- */
.emblem-ring { stroke: var(--charcoal); }
.emblem-mark { stroke: var(--terracotta); }
section[data-tone="dark"] .emblem-ring,
.site-footer .emblem-ring { stroke: var(--cream); }

.brand-emblem { width: 30px; height: 30px; flex: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(1.5rem, 4vw, 2rem); }
.hero-lockup {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: wrap;
}
.hero-lockup .hero-emblem {
  width: 64px;
  height: 64px;
  flex: none;
}
.hero-lockup h1 { margin: 0; max-width: 18ch; }
.tagline {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--charcoal);
  max-width: 40ch;
  margin-top: 1.1rem;
}
.mission-line {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--terracotta-ink);
  border-left: 2px solid var(--terracotta);
  padding-left: 1rem;
  margin-top: 0.5rem;
  max-width: 46ch;
}

/* ---------- Structure diagram ---------- */
.structure { padding: 0 0 clamp(2.5rem, 6vw, 4rem); }

.brand-diagram {
  display: none;
  width: 100%;
  max-width: 660px;
  height: auto;
  margin: 0 auto 2rem;
}
.brand-diagram .diagram-hub-label {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  fill: var(--terracotta-ink);
}
.brand-diagram .diagram-node-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  fill: var(--charcoal);
}
.brand-diagram .diagram-node-desc {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  fill: var(--terracotta-ink);
}

.brand-diagram-list {
  display: block;
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  max-width: 380px;
}
.brand-diagram-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0;
}
.brand-diagram-list li + li { border-top: 1px dashed var(--line); }
.diagram-list-icon { width: 38px; height: 38px; flex: none; }
.brand-diagram-list strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--charcoal);
}
.brand-diagram-list small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--terracotta-ink);
  margin-top: 0.15em;
}

@media (min-width: 760px) {
  .brand-diagram { display: block; }
  .brand-diagram-list { display: none; }
}

/* ---------- Brand cards ---------- */
.brands { padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(3rem, 7vw, 5rem); }
.brand-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
}

.brand-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.9rem;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.brand-card:hover {
  border-color: var(--terracotta);
  transform: translateY(-2px);
}
.brand-card:focus-visible {
  outline: 2px solid var(--terracotta-ink);
  outline-offset: 3px;
}
.brand-card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.2rem;
}
.brand-card h2 { font-size: 1.25rem; margin-bottom: 0.4em; }
.brand-card p {
  color: var(--charcoal);
  font-size: 0.96rem;
  flex-grow: 1;
  margin-bottom: 1.2em;
}
.brand-card .visit {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terracotta-ink);
}
.brand-card:hover .visit { color: var(--terracotta); }

/* Compass — not yet launched: same card, no link affordance */
.brand-card--soon { cursor: default; }
.brand-card--soon:hover {
  border-color: var(--line);
  transform: none;
}
.brand-card--soon h2,
.brand-card--soon p { color: var(--charcoal); }
.brand-card--soon .emblem-ring { stroke: rgba(58, 63, 71, 0.45); }
.brand-card--soon .emblem-mark { stroke: rgba(192, 122, 74, 0.55); }
.brand-card--soon .visit { color: var(--charcoal); opacity: 0.65; }

.brand-card-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--terracotta-ink);
  border: 1px solid var(--terracotta);
  border-radius: 4px;
  padding: 0.15em 0.5em;
  display: inline-block;
  margin-bottom: 1rem;
  align-self: flex-start;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal-dark);
  color: rgba(242, 236, 221, 0.75);
  padding: 2.2rem 0;
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.9rem;
}
.footer-brand .brand-emblem { width: 24px; height: 24px; }
.footer-contact { text-align: right; }
.footer-contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 236, 221, 0.55);
  margin-bottom: 0.25em;
}
.footer-contact a { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--terracotta); }
.footer-contact a:hover { color: var(--terracotta); }

.footer-legal {
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-dark);
  max-width: 62ch;
}
.footer-legal p {
  margin: 0 0 0.6em;
  font-size: 0.8rem;
  color: rgba(242, 236, 221, 0.6);
}
.footer-legal p:last-child { margin-bottom: 0; }

.footer-fine {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(242, 236, 221, 0.5);
  margin-top: 1.3rem;
}

@media (max-width: 560px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-contact { text-align: left; }
}

/* ---------- Visually hidden ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
