/* =========================================================
   Unique Minds — Shared Stylesheet  (mobile-first)
   Brand: deep blue #15547d · gold #ee9b41 · green accent #20ae4a
   Font: Poppins
   ► Edit colours / fonts / spacing in the :root block below.
   ========================================================= */

:root {
  /* Brand */
  --blue:        #15547d;
  --blue-700:    #103f5e;
  --blue-800:    #0c3149;
  --blue-tint:   #eaf1f6;
  --gold:        #ee9b41;
  --gold-600:    #d9852b;
  --green:       #20ae4a;

  /* Neutrals */
  --ink:         #233038;
  --muted:       #5d6b74;
  --line:        #e4e9ee;
  --bg:          #ffffff;
  --bg-soft:     #f4f7fa;
  --white:       #ffffff;

  /* Type */
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 4px 14px rgba(16, 63, 94, .08);
  --shadow:    0 12px 34px rgba(16, 63, 94, .12);
  --shadow-lg: 0 24px 60px rgba(16, 63, 94, .18);
  --header-h: 70px;

  /* Fluid section spacing */
  --gap-section: clamp(56px, 8vw, 108px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-600); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--blue); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 5.2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 3.6vw, 1.4rem); font-weight: 600; }
p  { margin-bottom: 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.lead { text-wrap: pretty; }
strong { font-weight: 600; color: var(--blue-700); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: var(--gap-section) 0; }
.section--soft { background: var(--bg-soft); }
.section--blue { background: linear-gradient(155deg, #1a6597, var(--blue) 55%, var(--blue-700)); color: rgba(255,255,255,.92); }
.section--blue h1, .section--blue h2, .section--blue h3 { color: #fff; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--gold-600);
  margin-bottom: .8rem;
}
.section--blue .eyebrow { color: var(--gold); }
.lead { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.section--blue .lead { color: rgba(255,255,255,.9); }
.measure { max-width: 720px; }
.center { text-align: center; }
.center.measure, .measure.center { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 16px 30px; border-radius: var(--r-pill); border: 2px solid transparent;
  cursor: pointer; text-align: center;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
@media (hover:hover){ .btn:hover { transform: translateY(-2px); } }
.btn--gold   { background: var(--gold); color: #fff; box-shadow: 0 10px 22px rgba(238,155,65,.34); }
.btn--gold:hover { background: var(--gold-600); color: #fff; }
.btn--blue   { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-700); color: #fff; }
.btn--ghost  { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--white  { background: #fff; color: var(--blue); }
.btn--white:hover { background: var(--gold); color: #fff; }
.btn--outline-white { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-white:hover { background: #fff; color: var(--blue); }
.btn--sm { padding: 11px 20px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand__logo { height: 46px; width: auto; display: block; }
.footer-brand .brand__logo--white { height: 52px; margin-bottom: .4rem; }
@media (max-width: 380px) { .brand__logo { height: 40px; } }
.brand__mark {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  font-size: 1.05rem; font-weight: 700;
}
.brand__name { font-size: 1.2rem; color: var(--blue); line-height: 1; font-weight: 700; }
.brand__name b { color: var(--gold); }
.brand__sub { display: block; font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--ink); font-weight: 500; font-size: .96rem; padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0; background: var(--gold); transition: width .22s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

/* Social icon links (brand-blue circles, gold on hover) */
.nav__social { display: flex; align-items: center; gap: .5rem; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  transition: background .2s ease, transform .15s ease;
}
.social-link svg { width: 18px; height: 18px; display: block; }
/* Force the glyph white (beats .nav a / .site-footer a colour rules) */
.nav__social .social-link, .footer-social .social-link { color: #fff; }
.social-link svg path { fill: currentColor; }
@media (hover:hover) { .social-link:hover { background: var(--gold); color: #fff; transform: translateY(-2px); } }
.social-link::after { display: none !important; }

/* Footer social row (translucent circles on the dark footer) */
.footer-social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.footer-social .social-link { background: rgba(255,255,255,.14); }
@media (hover:hover) { .footer-social .social-link:hover { background: var(--gold); } }

.header-actions { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: inline-grid; place-items: center; background: none; border: 0; cursor: pointer; width: 46px; height: 46px; border-radius: 10px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content:""; display:block; width:24px; height:2.5px; border-radius:2px; background: var(--blue); transition:.25s; }
.nav-toggle span { position: relative; }
.nav-toggle span::before { position:absolute; top:-7px; left:0; }
.nav-toggle span::after  { position:absolute; top:7px;  left:0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,49,73,.34), rgba(12,49,73,.50)),
              linear-gradient(115deg, rgba(21,84,125,.58) 10%, rgba(21,84,125,.12) 75%);
}
.hero__inner { padding-block: clamp(64px, 14vw, 132px) clamp(72px, 14vw, 140px); max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; text-wrap: balance; }
.hero__sub { color: rgba(255,255,255,.95); font-size: clamp(1.08rem, 3vw, 1.35rem); font-weight: 300; font-style: italic; max-width: 600px; margin-bottom: 1.9rem; }
.hero .btn-row .btn { flex: 1 1 auto; }

/* ---------- Pathway tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr; gap: 20px; }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative; overflow: hidden;
}
.tile::before { content:""; position:absolute; inset:0 0 auto 0; height:5px; background: var(--gold); transform: scaleX(0); transform-origin:left; transition: transform .25s ease; }
@media (hover:hover){ .tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; } .tile:hover::before { transform: scaleX(1); } }
.tile__icon { width: 60px; height: 60px; border-radius: 16px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; margin-bottom: .4rem; }
.tile__icon .material-symbols-rounded { font-size: 32px; color: var(--blue); font-variation-settings: 'wght' 500, 'opsz' 32; }
.tile h3 { margin: 0; }
.tile p { color: var(--muted); font-size: .98rem; flex: 1; }
.tile__link { margin-top: .4rem; font-weight: 600; color: var(--gold-600); display: inline-flex; align-items: center; gap: .35rem; }
.tile__link::after { content: "→"; transition: transform .2s ease; }
.tile:hover .tile__link::after { transform: translateX(4px); }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.split__text h2 + p { margin-top: 1.1rem; }

/* Variant: CTA button drops below the image on mobile, sits under the text on desktop */
.split--cta-below { grid-template-areas: "text" "media" "cta"; align-items: start; }
.split--cta-below .split__text  { grid-area: text; }
.split--cta-below .split__media { grid-area: media; }
.split--cta-below .split__cta   { grid-area: cta; }
.split__media img, .split__media .ph { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; }
.split__media figcaption { font-size: .85rem; color: var(--muted); margin-top: .7rem; text-align: center; }

/* image placeholder */
.ph {
  border: 2px dashed #b9c6d2; border-radius: var(--r-lg); background:
   repeating-linear-gradient(135deg, #eef3f7, #eef3f7 14px, #e7eef4 14px, #e7eef4 28px);
  aspect-ratio: 3 / 2; display: grid; place-items: center; text-align: center;
  color: var(--muted); padding: 24px; box-shadow: none !important;
}
.ph span { font-weight: 600; color: var(--blue); }
.ph small { display: block; margin-top: 6px; font-size: .82rem; }

/* ---------- Quote ---------- */
.quote { border-left: 4px solid var(--gold); padding-left: 22px; margin-top: 1.6rem; }
.quote__author { font-weight: 600; color: var(--blue); margin-top: 1rem; }

/* ---------- Highlight stat inline ---------- */
.bignum { color: var(--gold); font-weight: 700; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 18px; }
.stat { text-align: center; }
.stat__num { font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 700; color: var(--gold); line-height: 1; }
.stat__label { font-size: .95rem; color: rgba(255,255,255,.85); margin-top: .5rem; }

/* ---------- CTA buttons block (homepage bottom) ---------- */
.cta-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 760px; margin-inline: auto; }
.cta-grid .btn { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-800); color: rgba(255,255,255,.78); padding: clamp(48px,8vw,72px) 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1.05rem; font-weight: 600; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: var(--gold); }
.footer-nav { list-style: none; display: grid; gap: .55rem; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__mark { background: #fff; color: var(--blue); }
.footer-meta { color: rgba(255,255,255,.66); line-height: 1.8; margin-top: 1rem; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: rgba(255,255,255,.6); }

/* ---------- Page head (interior pages) ---------- */
.page-head { background: linear-gradient(155deg, #1a6597, var(--blue) 60%, var(--blue-700)); color: #fff; padding: clamp(54px,10vw,92px) 0 clamp(46px,8vw,72px); text-align: center; }
.page-head h1 { color: #fff; }
.page-head p { color: rgba(255,255,255,.9); max-width: 640px; margin: .7rem auto 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { font-weight: 600; color: var(--blue); font-size: .95rem; display: block; margin-bottom: 6px; }
.form input, .form textarea { width: 100%; font-family: var(--font); font-size: 1rem; color: var(--ink); padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(238,155,65,.25); }

/* ---------- Lists ---------- */
.list-check { list-style: none; display: grid; gap: .6rem; margin: 1rem 0; }
.list-check li { position: relative; padding-left: 32px; }
.list-check li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--blue-tint); color: var(--blue); border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }

/* ---------- Misc ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }
.mt-1{margin-top:1rem}.mt-2{margin-top:1.6rem}

/* ==========================================================
   RESPONSIVE — scale up from mobile
   ========================================================== */
@media (min-width: 600px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .cta-grid { grid-template-columns: repeat(3, 1fr); }
  .hero .btn-row .btn { flex: 0 0 auto; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 860px) {
  body { font-size: 17px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--media-right .split__media { order: 2; }
  /* Image on the right spanning both rows; text top-left, button below it */
  .split--cta-below { grid-template-areas: "text media" "cta media"; column-gap: 56px; row-gap: 26px; }
  .split--cta-below .split__media { align-self: center; }
  /* Separate the social icons from the text links */
  .nav__social { margin-left: .4rem; padding-left: .9rem; border-left: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.1fr; gap: 44px; }
}

/* Desktop nav vs mobile drawer */
@media (max-width: 859px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 6px 20px 22px; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .3s ease; visibility: hidden;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 1.06rem; }
  .nav a::after { display: none; }
  /* Social icons sit as a centred row at the bottom of the mobile menu */
  .nav__social { justify-content: center; gap: .7rem; padding: 18px 0 4px; }
  .nav__social .social-link { padding: 0; border-bottom: 0; width: 42px; height: 42px; }
  .nav__social .social-link svg { width: 20px; height: 20px; }
}
@media (min-width: 860px) { .nav-toggle { display: none; } }
@media (max-width: 380px) { .brand__sub { display: none; } }

/* ==========================================================
   MOTION — scroll reveal + hero load-in
   Only runs when the visitor hasn't asked for reduced motion.
   ========================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Single elements */
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
  .reveal.is-visible { opacity: 1; transform: none; }

  /* Staggered groups (children animate in sequence) */
  .stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
  .stagger.is-visible > * { opacity: 1; transform: none; }
  .stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
  .stagger.is-visible > *:nth-child(3) { transition-delay: .24s; }
  .stagger.is-visible > *:nth-child(4) { transition-delay: .36s; }

  /* Hero content eases up on first load */
  .hero__inner > * { animation: heroUp .9s both; }
  .hero__inner > *:nth-child(2) { animation-delay: .14s; }
  .hero__inner > *:nth-child(3) { animation-delay: .28s; }
  @keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
}
