/* ============================================================
   EDIA — Educational Data Insights Australia
   Base stylesheet for Hugo static site
   ============================================================
   COLOUR TOKENS — edit here, applies everywhere
   ============================================================ */

:root {

  /* -- Brand purples ---------------------------------------- */
  --color-brand-deep:       #3C3489;   /* wordmark, headings, primary text */
  --color-brand-mid:        #534AB7;   /* hex border, buttons, links */
  --color-brand-light:      #7F77DD;   /* secondary labels, accents */
  --color-brand-pale:       #CECBF6;   /* dividers, borders, subtle rules */
  --color-brand-bg:         #EEEDFE;   /* section tints, card backgrounds */
  --color-brand-network:    #8880E0;   /* network/data visualisation edges */
  --color-brand-node:       #7068D8;   /* network node markers */

  /* -- Teal accents ----------------------------------------- */
  --color-teal-strong:      #1D9E75;   /* CTA buttons, highlights, icons */
  --color-teal-mid:         #0F6E56;   /* hover states, secondary teal */
  --color-teal-light:       #5DCAA5;   /* badges, tags, subtle highlights */
  --color-teal-pale:        #9FE1CB;   /* hub spark, very light teal tints */
  --color-teal-bg:          #E1F5EE;   /* teal-tinted section backgrounds */

  /* -- Neutrals --------------------------------------------- */
  --color-text-primary:     #1A1A2E;   /* body copy — deep navy-black */
  --color-text-secondary:   #888780;   /* tagline, captions, metadata */
  --color-text-muted:       #AAAAAA;   /* placeholders, disabled states */
  --color-text-inverse:     #FFFFFF;   /* text on dark backgrounds */

  --color-bg-page:          #FFFFFF;   /* main page background */
  --color-bg-subtle:        #F7F7FD;   /* alternating sections, off-white */
  --color-bg-dark:          #1E1A42;   /* dark sections, footer */

  --color-border:           #CECBF6;   /* default border (matches brand-pale) */
  --color-border-strong:    #534AB7;   /* strong border, focus rings */
  --color-shadow:           rgba(60, 52, 137, 0.10); /* brand-tinted shadows */

  /* -- Semantic colours ------------------------------------- */
  --color-success:          #1D9E75;   /* maps to teal-strong */
  --color-warning:          #EF9F27;   /* amber — from concept C */
  --color-error:            #C0392B;
  --color-info:             #7F77DD;   /* maps to brand-light */

  /* ============================================================
     TYPOGRAPHY
     ============================================================ */

  /* Font stacks */
  --font-serif:     Georgia, 'Times New Roman', serif;       /* headings, wordmark */
  --font-sans:      'Helvetica Neue', Arial, sans-serif;     /* body, UI */
  --font-mono:      'Courier New', Courier, monospace;       /* code blocks */

  /* Type scale — fluid-friendly rem values */
  --text-xs:        0.75rem;    /* 12px — labels, captions */
  --text-sm:        0.875rem;   /* 14px — small body, metadata */
  --text-base:      1rem;       /* 16px — body copy */
  --text-md:        1.125rem;   /* 18px — lead paragraphs */
  --text-lg:        1.25rem;    /* 20px — small headings */
  --text-xl:        1.5rem;     /* 24px — H3 */
  --text-2xl:       1.875rem;   /* 30px — H2 */
  --text-3xl:       2.25rem;    /* 36px — H1 */
  --text-4xl:       3rem;       /* 48px — hero headings */

  /* Font weights */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* Line heights */
  --leading-tight:   1.2;
  --leading-snug:    1.4;
  --leading-normal:  1.6;
  --leading-loose:   1.8;

  /* Letter spacing */
  --tracking-tight:  -0.03em;   /* display headings */
  --tracking-normal:  0;
  --tracking-wide:    0.05em;   /* labels, small caps */
  --tracking-wider:   0.15em;   /* eyebrow text */

  /* ============================================================
     SPACING
     ============================================================ */

  --space-1:   0.25rem;   /*  4px */
  --space-2:   0.5rem;    /*  8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */

  /* ============================================================
     LAYOUT
     ============================================================ */

  --container-sm:    640px;
  --container-md:    768px;
  --container-lg:    1024px;
  --container-xl:    1280px;
  --container-2xl:   1440px;

  --content-width:   72ch;      /* optimal reading line length */

  /* ============================================================
     BORDERS & RADII
     ============================================================ */

  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-full:  9999px;   /* pills, badges */

  --border-width:       1px;
  --border-width-thick: 2px;

  /* ============================================================
     TRANSITIONS
     ============================================================ */

  --transition-fast:    150ms ease;
  --transition-base:    250ms ease;
  --transition-slow:    400ms ease;

}


/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-brand-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-brand-deep);
}

a:focus-visible {
  outline: 2px solid var(--color-brand-mid);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--color-brand-bg);
  color: var(--color-brand-deep);
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-brand-deep);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); font-weight: var(--weight-semibold); }
h6 { font-size: var(--text-sm);   font-weight: var(--weight-semibold); }

p {
  max-width: var(--content-width);
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

/* Lead paragraph — used for introductory text on pages */
.lead {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
}

/* Eyebrow label — small caps above headings */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-teal-strong);
  margin-bottom: var(--space-2);
}

/* Tagline — matches SVG .wm-tg */
.tagline {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--color-text-secondary);
}

strong, b { font-weight: var(--weight-bold); }
em, i     { font-style: italic; }

small {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

blockquote {
  border-left: 3px solid var(--color-teal-strong);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--color-brand-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

blockquote p {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  color: var(--color-brand-deep);
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-style: normal;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-brand-bg);
  color: var(--color-brand-mid);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
}

pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background: var(--color-bg-dark);
  color: var(--color-teal-pale);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-6) 0;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
}

hr {
  border: none;
  border-top: var(--border-width) solid var(--color-border);
  margin: var(--space-12) 0;
}

/* ============================================================
   LAYOUT — CONTAINER & GRID
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--sm  { max-width: var(--container-sm); }
.container--md  { max-width: var(--container-md); }
.container--lg  { max-width: var(--container-lg); }
.container--2xl { max-width: var(--container-2xl); }

/* Basic 12-column grid */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}

.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-6  { grid-column: span 6; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-12 { grid-column: span 12; }

/* Two and three column helpers */
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

/* Stack utility */
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--space-4); }
.stack--sm > * + * { margin-top: var(--space-2); }
.stack--lg > * + * { margin-top: var(--space-8); }


/* ============================================================
   SITE HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-page);
  border-bottom: var(--border-width) solid var(--color-border);
  box-shadow: 0 1px 4px var(--color-shadow);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
}

/* Logo lockup inside header */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
}

.site-logo__mark {
  width: 72px;
  height: auto;
  flex-shrink: 0;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
}

.site-logo__name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-brand-deep);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

.site-logo__tagline {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

/* Primary navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.site-nav a {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-brand-deep);
  text-decoration: none;
  padding-block: var(--space-1);
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-teal-strong);
  border-bottom-color: var(--color-teal-strong);
}


/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding-block: var(--space-20);
}

.section--sm  { padding-block: var(--space-12); }
.section--lg  { padding-block: var(--space-24); }

.section--tinted {
  background: var(--color-bg-subtle);
}

.section--brand {
  background: var(--color-brand-bg);
}

.section--teal {
  background: var(--color-teal-bg);
}

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-brand-pale);
}

.section__header {
  margin-bottom: var(--space-12);
}

.section__title {
  margin-bottom: var(--space-4);
}

.section__intro {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  max-width: 60ch;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding-block: var(--space-24);
  background: var(--color-bg-subtle);
  position: relative;
  overflow: hidden;
}

/* Subtle hex-pattern background hint */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 80% 50%,
    var(--color-brand-bg) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero__eyebrow {
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
}

.hero__body {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__mark {
  width: 100%;
  max-width: 380px;
  height: auto;
}

.hero__media {
  display: flex;
  justify-content: center;
  align-items: center;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  border: var(--border-width-thick) solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

/* Primary — teal (CTA, free tools) */
.btn--primary {
  background: var(--color-teal-strong);
  color: var(--color-text-inverse);
  border-color: var(--color-teal-strong);
}

.btn--primary:hover {
  background: var(--color-teal-mid);
  border-color: var(--color-teal-mid);
  color: var(--color-text-inverse);
}

/* Secondary — purple outline (partnerships, deeper engagement) */
.btn--secondary {
  background: transparent;
  color: var(--color-brand-mid);
  border-color: var(--color-brand-mid);
}

.btn--secondary:hover {
  background: var(--color-brand-bg);
  color: var(--color-brand-deep);
  border-color: var(--color-brand-deep);
}

/* Ghost — minimal, on tinted backgrounds */
.btn--ghost {
  background: transparent;
  color: var(--color-brand-mid);
  border-color: transparent;
  padding-inline: var(--space-2);
}

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

/* Sizes */
.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }


/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--color-bg-page);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.card:hover {
  box-shadow: 0 4px 24px var(--color-shadow);
  border-color: var(--color-brand-pale);
}

.card--tinted {
  background: var(--color-brand-bg);
  border-color: var(--color-brand-pale);
}

.card--teal {
  background: var(--color-teal-bg);
  border-color: var(--color-teal-light);
}

/* Tool card — for free teacher tools */
.card--tool {
  border-top: 3px solid var(--color-teal-strong);
}

/* Partnership card — for deeper engagement offerings */
.card--partnership {
  border-top: 3px solid var(--color-brand-mid);
}

.card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  color: var(--color-teal-strong);
}

.card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.card__body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.card__footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: var(--border-width) solid var(--color-border);
}

/* ======= PERSON CARD (About page founder bio) ======= */
.person-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.person-card__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--color-brand-pale);
}

.person-card__body {
  flex: 1;
  min-width: 240px;
}

.person-card__name {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--color-brand-deep);
  margin: 0 0 0.25rem;
}

.person-card__role {
  color: var(--color-text-secondary);
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

/* ============================================================
   BADGES & TAGS
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.badge--teal {
  background: var(--color-teal-bg);
  color: var(--color-teal-mid);
}

.badge--purple {
  background: var(--color-brand-bg);
  color: var(--color-brand-mid);
}

.badge--free {
  background: var(--color-teal-bg);
  color: var(--color-teal-mid);
}

.badge--partner {
  background: var(--color-brand-bg);
  color: var(--color-brand-deep);
}


/* ============================================================
   LISTS
   ============================================================ */

ul, ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

li {
  margin-bottom: var(--space-2);
  line-height: var(--leading-normal);
}

/* Feature list — teal ticks */
.list--features {
  list-style: none;
  padding-left: 0;
}

.list--features li {
  padding-left: var(--space-6);
  position: relative;
}

.list--features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--color-teal-strong);
  border-bottom: 2px solid var(--color-teal-strong);
  transform: rotate(-45deg);
}


/* ============================================================
   FORMS
   ============================================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-brand-deep);
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: var(--color-bg-page);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-brand-mid);
  box-shadow: 0 0 0 3px rgba(83, 74, 183, 0.15);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
}


/* ============================================================
   TABLES
   ============================================================ */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-block: var(--space-6);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

thead {
  background: var(--color-brand-bg);
}

th {
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-brand-deep);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: var(--border-width-thick) solid var(--color-brand-pale);
}

td {
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--border-width) solid var(--color-border);
  vertical-align: top;
}

tbody tr:hover {
  background: var(--color-bg-subtle);
}

tbody tr:last-child td {
  border-bottom: none;
}


/* ============================================================
   CALLOUTS / ALERTS
   ============================================================ */

.callout {
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  border-left: 4px solid;
  margin-block: var(--space-6);
  font-size: var(--text-sm);
}

.callout--info {
  background: var(--color-brand-bg);
  border-color: var(--color-brand-light);
  color: var(--color-brand-deep);
}

.callout--success {
  background: var(--color-teal-bg);
  border-color: var(--color-teal-strong);
  color: var(--color-teal-mid);
}

.callout--warning {
  background: #FEF8EC;
  border-color: var(--color-warning);
  color: #7A5010;
}

.callout--error {
  background: #FDECEA;
  border-color: var(--color-error);
  color: var(--color-error);
}

.callout__title {
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
  font-family: var(--font-serif);
}


/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-brand-pale);
  padding-block: var(--space-16) var(--space-8);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: var(--border-width) solid rgba(206, 203, 246, 0.2);
  margin-bottom: var(--space-8);
}

.site-footer__brand .site-logo__name {
  color: var(--color-brand-pale);
}

.site-footer__brand .site-logo__tagline {
  color: rgba(206, 203, 246, 0.6);
}

.site-footer__brand p {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(206, 203, 246, 0.6);
  max-width: 30ch;
}

.site-footer__col h4 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-teal-light);
  margin-bottom: var(--space-4);
}

.site-footer__col ul {
  list-style: none;
  padding: 0;
}

.site-footer__col li {
  margin-bottom: var(--space-2);
}

.site-footer__col a {
  font-size: var(--text-sm);
  color: rgba(206, 203, 246, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__col a:hover {
  color: var(--color-teal-light);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(206, 203, 246, 0.4);
}


/* ============================================================
   UTILITY CLASSES
   ============================================================ */

/* Text alignment */
.text-left    { text-align: left; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

/* Text colours */
.text-brand   { color: var(--color-brand-deep); }
.text-teal    { color: var(--color-teal-strong); }
.text-muted   { color: var(--color-text-secondary); }
.text-inverse { color: var(--color-text-inverse); }

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

/* Spacing helpers */
.mt-auto { margin-top: auto; }
.mb-0    { margin-bottom: 0; }

/* Divider rule — matches SVG div-ln */
.rule {
  border: none;
  border-top: var(--border-width) solid var(--color-border);
}

.rule--brand {
  border-top-color: var(--color-brand-pale);
}


/* ============================================================
   RESPONSIVE — MOBILE FIRST BREAKPOINTS
   ============================================================ */

@media (max-width: 768px) {

  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-xl); }
  h3 { font-size: var(--text-lg); }

  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__media {
    display: none;
  }

  .cols-2,
  .cols-3,
  .cols-4 {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .site-footer__brand {
    grid-column: span 2;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  [class*="col-"] {
    grid-column: span 1;
  }

  .container {
    padding-inline: var(--space-4);
  }

}

@media (max-width: 480px) {

  .site-logo__tagline {
    display: none;
  }

  .site-nav {
    gap: var(--space-4);
  }

  .hero {
    padding-block: var(--space-12);
  }

  .section {
    padding-block: var(--space-12);
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__brand {
    grid-column: span 1;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {

  .site-header,
  .site-footer,
  .site-nav,
  .btn {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  h1, h2, h3, h4 {
    color: #3C3489;       /* brand-deep — safe for print */
    page-break-after: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  .card {
    border: 1pt solid #CECBF6;
    page-break-inside: avoid;
  }

  blockquote {
    border-left: 3pt solid #1D9E75;
    page-break-inside: avoid;
  }

}
