/* ═══════════════════════════════════════════════════
   WELCOME VOICES — Shared stylesheet
   welcomevoices.org.uk  |  v1.0  |  October 2026

   Page-specific styles live in css/<page>.css
   Edit colours / fonts in :root below — they flow everywhere.
   ═══════════════════════════════════════════════════ */

:root {
  /* Brand palette (WV Brand Guidelines, draft v1) */
  --coral:        #E2725B;   /* shapes, large headings, illustration only */
  --coral-deep:   #B84E3A;   /* buttons, links, headings on light */
  --coral-darker: #9A3F2E;   /* button hover */
  --gold:         #F2B544;   /* highlights, badges — dark text only */
  --harbour:      #256C8C;   /* secondary headings, links */
  --sage:         #8DB596;   /* calm cards — dark text only */
  --ink:          #33384A;   /* body text */
  --pebble:       #5E6472;   /* captions, secondary text */
  --linen:        #FFF8F0;   /* default page background */
  --white:        #FFFFFF;

  /* Soft tints for card backgrounds */
  --coral-tint:   #FCE6DF;
  --gold-tint:    #FDF1D6;
  --sage-tint:    #E6F1E8;
  --harbour-tint: #DDEDF4;

  --radius:    22px;
  --radius-sm: 12px;
  --shadow:    0 10px 30px rgba(51,56,74,0.08);
  --wrap:      1160px;
  --nav-h:     76px;

  --font-head: 'Nunito', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Nunito Sans', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;           /* 17px — brand minimum is 16px */
  line-height: 1.7;
  background: var(--linen);
  color: var(--ink);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-deep); }
a:hover { color: var(--coral-darker); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

/* Highlighted word in a heading */
.hl { color: var(--coral-deep); }
.hl-under {
  background: linear-gradient(transparent 62%, var(--gold) 62%, var(--gold) 92%, transparent 92%);
  padding: 0 0.1em;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 12px; }

:focus-visible { outline: 3px solid var(--harbour); outline-offset: 3px; border-radius: 6px; }

/* ── LAYOUT ── */
.wrap { max-width: var(--wrap); margin: 0 auto; }
.section { padding: 96px 6%; position: relative; }
.section-white { background: var(--white); }
.section-tint  { background: var(--gold-tint); }
.section-sage  { background: var(--sage-tint); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--pebble); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Small pill label above headings (sentence case, per brand) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 800; font-size: 0.9rem;
  color: var(--ink); background: var(--gold);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 1.1rem;
}
.eyebrow.sage    { background: var(--sage); }
.eyebrow.coral   { background: var(--coral-tint); color: var(--coral-deep); }
.eyebrow.harbour { background: var(--harbour-tint); color: var(--harbour); }

/* ── NAVIGATION ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,248,240,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(51,56,74,0.08);
  padding: 0 6%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nav-logo img { height: 52px; width: auto; }
.nav-logo-text {
  font-family: var(--font-head); font-weight: 900; font-size: 1.35rem;
  line-height: 1; letter-spacing: -0.01em; color: var(--ink);
}
.nav-logo-text span { color: var(--coral-deep); }

.nav-links { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--ink); text-decoration: none; padding: 6px 2px;
  border-bottom: 3px solid transparent; transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover { color: var(--coral-deep); }
.nav-links a.active { border-bottom-color: var(--gold); }
.nav-links .nav-cta-mobile { display: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 3px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.02rem;
  padding: 14px 28px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral-deep); color: var(--white); box-shadow: 0 6px 18px rgba(184,78,58,0.25); }
.btn-primary:hover { background: var(--coral-darker); color: var(--white); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #E8A92F; color: var(--ink); }
.btn-white { background: var(--white); color: var(--coral-deep); }
.btn-white:hover { color: var(--coral-darker); box-shadow: 0 10px 24px rgba(0,0,0,0.15); }
.btn-sm { padding: 10px 20px; font-size: 0.95rem; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ── CARDS ── */
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
}
.card p { color: var(--pebble); }
.card-grid { display: grid; gap: 1.5rem; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Round icon bubble */
.icon-bubble {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--coral-tint);
}
.icon-bubble svg { width: 30px; height: 30px; }
.icon-bubble.gold    { background: var(--gold-tint); }
.icon-bubble.sage    { background: var(--sage-tint); }
.icon-bubble.harbour { background: var(--harbour-tint); }

/* Tick list */
.tick-list { list-style: none; display: grid; gap: 0.6rem; }
.tick-list li { padding-left: 2rem; position: relative; }
.tick-list li::before {
  content: ''; position: absolute; left: 0; top: 0.35em;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%2333384A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}

/* Decorative soft blobs (aria-hidden shapes) */
.blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.blob.coral   { background: var(--coral);  opacity: 0.16; }
.blob.gold    { background: var(--gold);   opacity: 0.30; }
.blob.sage    { background: var(--sage);   opacity: 0.28; }
.blob.harbour { background: var(--harbour);opacity: 0.10; }
.section > .wrap, .page-header > .wrap { position: relative; z-index: 1; }

/* ── INNER PAGE HEADER ── */
.page-header {
  padding: calc(var(--nav-h) + 72px) 6% 72px;
  background: var(--gold-tint);
  position: relative; overflow: hidden;
}
.page-header h1 { margin-bottom: 1rem; max-width: 820px; }
.page-header p  { font-size: 1.2rem; color: var(--pebble); max-width: 640px; }
.page-header.coral   { background: var(--coral-tint); }
.page-header.sage    { background: var(--sage-tint); }
.page-header.harbour { background: var(--harbour-tint); }

/* ── CTA BAND ── */
.cta-band {
  background: var(--coral-deep); color: var(--white);
  text-align: center; padding: 96px 6%; position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--white); }
.cta-band p  { color: rgba(255,255,255,0.9); font-size: 1.15rem; max-width: 560px; margin: 0 auto 2rem; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-secondary { color: var(--white); border-color: var(--white); }
.cta-band .btn-secondary:hover { background: var(--white); color: var(--coral-deep); }

/* ── FOOTER ── */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.78); padding: 72px 6% 36px; }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto 3rem;
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 3rem;
}
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 84px; height: 84px; flex-shrink: 0; margin-top: -8px; }
.footer-name { font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; color: var(--white); }
.footer-tagline { font-family: var(--font-head); font-weight: 700; color: var(--gold); margin-bottom: 0.6rem; }
.footer-brand p { font-size: 0.95rem; }
.footer-col h2 {
  font-size: 1rem; color: var(--white); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--gold); text-decoration: underline; }
.footer-col .email-label { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.footer-bottom {
  max-width: var(--wrap); margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.14); padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.88rem; color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.75); }

/* ── ANIMATIONS (gentle; switched off for reduced motion) ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.fade-up   { animation: fadeUp 0.8s ease both; }
.fade-up-2 { animation: fadeUp 0.8s 0.12s ease both; }
.fade-up-3 { animation: fadeUp 0.8s 0.24s ease both; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--linen); padding: 1.5rem 6% 2rem; gap: 1.1rem;
    border-bottom: 4px solid var(--gold); box-shadow: var(--shadow);
  }
  .nav-links .nav-cta-mobile { display: block; }
  .nav-toggle { display: flex; }
  .site-nav > .btn { display: none; }
}
@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .section { padding: 72px 5%; }
  .nav-logo img { height: 44px; }
  .nav-logo-text { font-size: 1.2rem; }
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .card { padding: 1.6rem; }
}
