/* =============================================================
   PMFRE Website — main.css
   Global styles: custom properties, reset, typography, layout utilities
   ============================================================= */

/* -------------------------------------------------------------
   1. CSS Custom Properties
   ------------------------------------------------------------- */
:root {
  /* Brand colours */
  --color-slate:       #2D3142;
  --color-slate-mid:   #4A5278;
  --color-slate-light: #9EA8C8;
  --color-amber:       #E67E22;
  --color-amber-light: #F5CBA7;
  --color-amber-pale:  #FFF8F0;
  --color-ink:         #1A1A2E;
  --color-ink-mid:     #4A4A6A;
  --color-warm-white:  #F9F7F4;
  --color-white:       #FFFFFF;
  --color-border:      #E2E0DC;

  /* Typography */
  --font-primary: 'DM Sans', 'Calibri', Arial, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Type scale */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */

  /* Spacing */
  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --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 */
  --max-width:        900px;
  --container-pad:    var(--space-12);   /* 48px desktop */
  --container-pad-sm: var(--space-6);    /* 24px mobile */
  --border-radius:    8px;
  --border-radius-lg: 12px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* -------------------------------------------------------------
   2. CSS Reset
   ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink);
  background-color: var(--color-white);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* -------------------------------------------------------------
   3. Base Typography
   ------------------------------------------------------------- */
h1 {
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

h2 {
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-ink);
}

h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-ink);
}

p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-ink-mid);
}

p + p {
  margin-top: var(--space-4);
}

a:hover {
  color: var(--color-amber);
  transition: color var(--transition-fast);
}

strong {
  font-weight: 600;
  color: var(--color-ink);
}

@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-5xl);
  }
}

/* -------------------------------------------------------------
   4. Utility Classes
   ------------------------------------------------------------- */

/* Container — max-width centred wrapper */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad-sm);
  padding-right: var(--container-pad-sm);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
  }
}

/* Section — standard vertical padding wrapper */
.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }
}

/* Section label — small caps eyebrow text above headlines */
.section-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-slate-mid);
  margin-bottom: var(--space-3);
}

/* Page hero — consistent inner-page header */
.page-hero {
  background-color: var(--color-warm-white);
  padding-top: var(--space-24);
  padding-bottom: var(--space-16);
}

.page-hero-inner {
  max-width: 700px;
}

.page-hero h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.page-hero p {
  font-size: var(--text-lg);
  color: var(--color-ink-mid);
}

@media (min-width: 768px) {
  .page-hero {
    padding-top: calc(var(--space-24) + var(--space-8));
    padding-bottom: var(--space-20);
  }

  .page-hero h1 {
    font-size: var(--text-5xl);
  }
}

/* Visually hidden — accessible off-screen text */
.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;
}
