/* ==========================================================================
   Masters International School — Design System Starter
   Extracted (colors, type scale, spacing, component patterns) from the
   live computed styles of mastersinternationalschool.org/en/employment
   on 2026-07-08. Use as a base for your own build — swap the font URLs
   for a self-hosted or Google Fonts version of Inter / Lora / Fraunces.
   ========================================================================== */

/* --- Fonts (Google Fonts equivalents of the site's self-hosted set) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:wght@400;500;600&family=Fraunces:wght@500;600;700&display=swap');

:root {
  /* Neutrals / ink */
  --mis-canvas: #f6f7f9;       /* page background */
  --mis-surface: #ffffff;      /* card / panel background */
  --mis-ink: #1a2233;          /* primary text */
  --mis-ink-soft: #44506b;     /* secondary text */
  --mis-ink-muted: #79839c;    /* tertiary / muted text */
  --mis-rule: #e2e5ec;         /* borders */
  --mis-rule-soft: #eef0f4;    /* faint borders/dividers */

  /* Brand navy (primary accent) */
  --mis-accent: #223369;
  --mis-accent-ink: #16224a;   /* darker navy, hover/active */
  --mis-accent-soft: #dde3f0;

  /* Clay red (CTA / "Inquire" button) */
  --mis-clay: #bf2827;
  --mis-clay-ink: #9e1f1e;
  --mis-clay-soft: #f7e6e3;

  /* Gold (eyebrow labels, accents) */
  --mis-gold: #eab72a;
  --mis-gold-ink: #b8860b;

  /* Warm cream (header bg, alt sections) */
  --mis-cream: #f6f1e6;
  --mis-cream-rule: #e8dfcb;

  /* Cool wash (alt sections) */
  --mis-wash: #e4ecf8;
  --mis-wash-rule: #d2dcf0;

  /* Shadows */
  --mis-shadow: 0 1px 2px rgba(28, 38, 32, 0.05), 0 8px 24px rgba(28, 38, 32, 0.06);
  --mis-shadow-soft: 0 1px 2px rgba(28, 38, 32, 0.04);

  /* Type stacks */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Lora', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;

  /* Layout */
  --header-h: 4.25rem;          /* 68px */
  --container-wide: 1120px;
  --container-narrow: 860px;
  --container-prose: 64ch;
  --section-pad-y: clamp(3.5rem, 7vw, 6rem);
  --section-pad-x: clamp(1.25rem, 4vw, 2rem);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 150ms;
  --dur-med: 250ms;
}

/* --- Base --- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--mis-canvas);
  color: var(--mis-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--section-pad-x);
}

section {
  padding-block: var(--section-pad-y);
}

/* --- Headings --- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem); /* ~56px on desktop */
  line-height: 1.03;
}

/* Section subheads use the serif (Lora), not the display face */
h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem; /* ~25.5px */
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--mis-ink);
}

p { margin: 0 0 1em; }

/* --- Eyebrow label (small caps + accent dash, e.g. "CAREERS") --- */
.site-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.125em;
  text-transform: uppercase;
  color: var(--mis-gold);
}

.site-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--mis-gold);
}

/* On light backgrounds, dial the eyebrow color to the ink version instead: */
.site-eyebrow--on-light { color: var(--mis-gold-ink); }

/* ==========================================================================
   Header / Navigation
   Sticky, translucent cream bar with blur, thin bottom rule.
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: rgba(251, 249, 244, 0.85);
  backdrop-filter: saturate(1.8) blur(12px);
  -webkit-backdrop-filter: saturate(1.8) blur(12px);
  border-bottom: 1px solid var(--mis-rule);
}

.site-header__brand img { height: 32px; display: block; }

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__nav-item > a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mis-ink);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.site-header__nav-item > a:hover {
  background: var(--mis-rule-soft);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

/* Primary CTA — e.g. "Inquire" pill button, clay red */
.btn--primary {
  background: var(--mis-clay);
  color: #fff;
  padding: 8.8px 18px;
  border-radius: 999px;
}
.btn--primary:hover { background: var(--mis-clay-ink); }

/* Secondary — navy outline */
.btn--secondary {
  background: transparent;
  color: var(--mis-accent);
  border: 1px solid var(--mis-accent);
  padding: 8px 17px;
  border-radius: 999px;
}
.btn--secondary:hover { background: var(--mis-accent-soft); }

/* ==========================================================================
   Hero section — dark navy gradient with subtle gold glow, top-right
   ========================================================================== */

.hero-section {
  background-image:
    radial-gradient(120% 130% at 100% 0px, rgba(234, 183, 42, 0.14) 0px, rgba(234, 183, 42, 0) 45%),
    linear-gradient(162deg, #243a73, #1a2a57 50%, #111d40);
  color: #f6f7f9;
}

.hero-section__inner {
  max-width: var(--container-narrow);
}

.hero-section__heading {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.022em;
  color: #f6f7f9;
  margin: 0.4em 0 0.5em;
}

.hero-section__sub {
  font-family: var(--font-serif);
  font-size: 1.375rem; /* 22px */
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 40ch;
}

/* ==========================================================================
   Alt section backgrounds (for variety between sections)
   ========================================================================== */

.section--cream { background: var(--mis-cream); }
.section--wash  { background: var(--mis-wash); }
.section--white { background: var(--mis-surface); }

/* ==========================================================================
   Cards (e.g. "Why teach at MIS" tiles, job listing rows)
   ========================================================================== */

.card {
  background: var(--mis-surface);
  border: 1px solid var(--mis-rule);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--mis-shadow-soft);
}
