/* =============================================================
   JHG STYLESHEET — style.css
   Jersey Haemophilia Group · Charity No. 302
   
   STRUCTURE:
   1. Design tokens (colours, fonts, spacing)
   2. Reset & base
   3. Layout utilities
   4. Navigation
   5. Hero
   6. Section & card components
   7. Symptoms section
   8. Support / FAQ section
   9. Reports section
   10. Contact section
   11. Footer
   12. Responsive breakpoints

   TO CHANGE THE COLOUR SCHEME: edit the :root variables below.
   Everything else will update automatically.
   ============================================================= */


/* ─── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Brand colours */
  --cream:             #FDF8F3;
  --warm-white:        #FFFCF9;
  --terracotta:        #C0442A;
  --terracotta-light:  #E8C5BB;
  --terracotta-pale:   #FAF0EC;
  --teal:              #0A7070;
  --teal-light:        #D6EDEC;
  --teal-pale:         #EEF7F7;

  /* Text colours */
  --ink:               #1E1A18;
  --ink-mid:           #4A3F3A;
  --ink-soft:          #8C7B74;

  /* UI */
  --border:            #E8DDD7;
  --radius-sm:         8px;
  --radius-md:         12px;
  --radius-lg:         14px;

  /* Typography */
  --serif:             'Lora', Georgia, serif;
  --sans:              'DM Sans', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  80px;

  /* Max page width */
  --max-width: 1100px;
}


/* ─── 2. RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

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

a {
  color: inherit;
}


/* ─── 3. LAYOUT UTILITIES ───────────────────────────────────── */

/* Wraps page content to max-width and centres it */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Standard two-column grid — used in support & contact sections */
.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 560px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Standard three-column grid — used in about & reports sections */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* Page section wrapper — gives consistent vertical padding */
.section {
  padding: var(--space-xl) var(--space-lg);
}

/* Eyebrow label above section titles */
.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

/* Main section heading */
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 18px;
}

/* Introductory paragraph below section title */
.section-lead {
  font-size: 1.05rem;
  color: var(--ink-mid);
  max-width: 620px;
  margin-bottom: 50px;
  line-height: 1.75;
}


/* ─── 4. NAVIGATION ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-lg);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  gap: 4px;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-mid);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  background: var(--terracotta-pale);
  color: var(--terracotta);
}


/* ─── 5. HERO ───────────────────────────────────────────────── */
.hero {
  background: var(--teal);
  color: var(--warm-white);
  padding: 100px var(--space-lg) 120px;
  position: relative;
  overflow: hidden;
}

/* Subtle radial highlight */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 70% 50%,
    rgba(255,255,255,0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 22px;
  font-style: italic;
}

/* Highlighted word in hero h1 */
.hero h1 em {
  font-style: normal;
  color: #A8D9D6;
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 500px;
}

/* Floating stat card in hero */
.hero__badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 28px 32px;
}

.hero__badge p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__stat {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.hero__stat span {
  color: #A8D9D6;
}

.hero__divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.25);
  margin: 14px 0;
}

.hero__small {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
}


/* ─── 6. SECTION & CARD COMPONENTS ─────────────────────────── */

/* Primary CTA button */
.btn {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.01em;
}

.btn:hover {
  background: #A33522;
  transform: translateY(-2px);
}

/* Ghost button variant (used on dark backgrounds) */
.btn--ghost {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.25);
}

/* Standard content card */
.card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

/* Teal top accent line on cards */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--teal);
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 14px;
}

.card p {
  font-size: 0.92rem;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 12px;
}

.card ul {
  list-style: none;
  font-size: 0.92rem;
  color: var(--ink-mid);
}

.card li {
  padding: 5px 0 5px 18px;
  position: relative;
}

.card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* Small tag / badge */
.tag {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 10px;
  letter-spacing: 0.02em;
}


/* ─── 7. SYMPTOMS SECTION ───────────────────────────────────── */
.symptoms {
  background: var(--terracotta-pale);
}

.symptom-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--terracotta-light);
}

.symptom-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--terracotta-pale);
  border: 1px solid var(--terracotta-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.symptom-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--terracotta);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.symptom-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 18px;
}

/* Two-column list of symptoms */
.symptom-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.symptom-list li {
  font-size: 0.9rem;
  color: var(--ink-mid);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.symptom-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
}

/* Alert box at base of symptom card */
.symptom-card__alert {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--terracotta);
  border-radius: 10px;
  color: #fff;
}

.symptom-card__alert--soft {
  background: var(--terracotta-light);
  color: var(--ink);
}

.symptom-card__alert strong {
  font-size: 0.85rem;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  opacity: 0.85;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.symptom-card__alert--soft strong {
  color: var(--terracotta);
  opacity: 1;
}

.symptom-card__alert p {
  font-size: 0.92rem;
  margin: 0;
  opacity: 0.9;
}

.symptom-card__alert--soft p {
  color: var(--ink-mid);
  opacity: 1;
}


/* ─── 8. SUPPORT / FAQ SECTION ──────────────────────────────── */
.support {
  background: var(--warm-white);
}

.support__sub-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-weight: 400;
  font-style: italic;
}

/* Accordion FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.faq__item summary {
  list-style: none;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--warm-white);
  transition: background 0.2s;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--ink-soft);
  font-weight: 300;
}

.faq__item[open] summary {
  background: var(--teal-pale);
}

.faq__item[open] summary::after {
  content: '−';
}

.faq__item p {
  padding: 14px 20px;
  font-size: 0.92rem;
  color: var(--ink-mid);
  border-top: 1px solid var(--border);
  background: var(--teal-pale);
  margin: 0;
}

/* Info blocks on right side of support section */
.support-blocks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.support-block {
  padding: 22px 26px;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid var(--border);
}

.support-block__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.support-block p {
  font-size: 0.92rem;
  color: var(--ink-mid);
  margin: 0;
  line-height: 1.65;
}


/* ─── 9. REPORTS SECTION ────────────────────────────────────── */
.reports {
  background: var(--cream);
}

.report-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s;
}

.report-link:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.report-link__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.report-link__icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.report-link__year {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}

.report-link__sub {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 1px;
}


/* ─── 10. CONTACT SECTION ───────────────────────────────────── */
.contact {
  background: var(--teal);
  color: #fff;
}

.contact .section-label { color: rgba(255,255,255,0.6); }
.contact .section-title  { color: #fff; }
.contact .section-lead   { color: rgba(255,255,255,0.8); }

.contact-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 22px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.contact-row:last-of-type {
  border-bottom: none;
}

.contact-row__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  width: 60px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-row a {
  color: #A8D9D6;
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
}

.contact-row a:hover {
  color: #fff;
}

.contact-card p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 22px;
}

.contact-card p strong {
  color: #fff;
}


/* ─── 11. FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: 36px var(--space-lg);
  font-size: 0.85rem;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__brand {
  font-family: var(--serif);
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a,
.footer a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__links a:hover,
.footer a:hover {
  color: #fff;
}


/* ─── 12. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__inner  { grid-template-columns: 1fr; }
  .hero__badge  { display: none; }
  .grid-2       { grid-template-columns: 1fr; gap: 32px; }
  .grid-3       { grid-template-columns: 1fr 1fr; }
  .footer__inner{ flex-direction: column; text-align: center; }
  .footer__links{ justify-content: center; }
}

@media (max-width: 600px) {
  .section      { padding: 60px 20px; }
  .nav          { padding: 0 20px; }
  .hero         { padding: 60px 20px 80px; }
  .grid-3       { grid-template-columns: 1fr; }
  .symptom-list { grid-template-columns: 1fr; }
  .nav__links a { padding: 6px 10px; font-size: 0.8rem; }
}



/* ── Handy link cards ───────────────────────────────────────── */
.handy-link-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border, #e0ddd8);
  border-top: 3px solid var(--teal);
  border-radius: 6px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}

.handy-link-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.handy-link-card--warning {
  border-top-color: var(--terracotta, #C0442A);
}

.handy-link-card__title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 4px;
}

.handy-link-card--warning .handy-link-card__title {
  color: var(--terracotta, #C0442A);
}

.handy-link-card__url {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 8px;
  font-family: var(--sans);
}

.handy-link-card__desc {
  font-size: 0.875rem;
  color: var(--text-mid, #555);
  line-height: 1.5;
}

.handy-link-card__age {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--terracotta, #C0442A);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ── Nav donate button ──────────────────────────────────────── */
.nav__donate {
  display: inline-block;
  align-self: center;
  margin-left: 12px;
  padding: 7px 16px;
  background: var(--terracotta, #C0442A);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.15s;
}

.nav__donate:hover {
  background: #a33924;
}
