/* Save GCSE Music at Gell — Campaign Site */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* ── Reset & Variables ── */

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

:root {
  --cream: #FAF7F2;
  --cream-dark: #F0EBE1;
  --charcoal: #1C1917;
  --charcoal-light: #44403C;
  --terracotta: #B44D2D;
  --terracotta-light: #D4764F;
  --terracotta-pale: #F5E6DD;
  --warm-gray: #A8A29E;
  --rule-color: #D6D3CD;
  --gold: #A67C37;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;

  --max-width: 820px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--terracotta);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--terracotta-light);
}

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

/* ── Staff Lines Decorative Element ── */

.staff-lines {
  position: relative;
  height: 28px;
  margin: 2rem 0;
  opacity: 0.18;
}
.staff-lines::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    var(--charcoal) 0px,
    var(--charcoal) 1px,
    transparent 1px,
    transparent 6px
  );
  background-size: 100% 6px;
}

/* ── Site Header ── */

.site-header {
  background: var(--charcoal);
  color: var(--cream);
  padding: 0 var(--gutter);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}
.site-header__brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}
.site-header__brand:hover {
  color: var(--terracotta-light);
}

/* ── Navigation ── */

.site-nav {
  display: flex;
  gap: 0;
}
.site-nav a {
  display: block;
  padding: 1.1rem 1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-gray);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--cream);
}
.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

/* ── Hero ── */

.hero {
  padding: clamp(3rem, 10vw, 7rem) var(--gutter) clamp(2.5rem, 8vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--terracotta-pale) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
  position: relative;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--charcoal);
  max-width: 700px;
  margin: 0 auto 1.25rem;
  position: relative;
}
.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--charcoal-light);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

/* ── Main Content ── */

.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
}

/* ── Section ── */

.section {
  margin-bottom: 3.5rem;
}
.section__label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}
.section__heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}
.section p {
  margin-bottom: 1rem;
  color: var(--charcoal-light);
}
.section p:last-child {
  margin-bottom: 0;
}

/* ── Horizontal Rule ── */

.rule {
  border: none;
  height: 1px;
  background: var(--rule-color);
  margin: 3rem 0;
}

/* ── Data Table ── */

.data-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}
.data-table thead {
  border-bottom: 2px solid var(--charcoal);
}
.data-table th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.6rem 1rem 0.6rem 0;
  color: var(--charcoal);
}
.data-table td {
  padding: 0.65rem 1rem 0.65rem 0;
  border-bottom: 1px solid var(--rule-color);
  color: var(--charcoal-light);
}
.data-table tbody tr:hover {
  background: var(--terracotta-pale);
}
.data-table .highlight-row {
  font-weight: 600;
  color: var(--charcoal);
}

/* ── Pull Quote ── */

.pull-quote {
  border-left: 3px solid var(--terracotta);
  padding: 1.25rem 0 1.25rem 1.75rem;
  margin: 2rem 0;
}
.pull-quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}
.pull-quote__attr {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--terracotta);
}
.pull-quote__role {
  font-weight: 400;
  color: var(--warm-gray);
}

/* ── Voice Cards ── */

.voice-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}
.voice-card {
  background: white;
  border: 1px solid var(--rule-color);
  border-radius: 2px;
  padding: 2rem;
  position: relative;
}
.voice-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--terracotta-pale);
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
}
.voice-card__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  position: relative;
}
.voice-card__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--charcoal);
}
.voice-card__role {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--warm-gray);
}

/* ── Action Cards ── */

.action-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}
.action-card {
  background: white;
  border: 1px solid var(--rule-color);
  border-radius: 2px;
  padding: 2rem;
}
.action-card__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.action-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.action-card__body {
  color: var(--charcoal-light);
  font-size: 0.95rem;
}
.action-card__body a {
  font-weight: 600;
}

/* ── Petition / CTA Banner ── */

.cta-banner {
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) var(--gutter);
  margin-top: 3rem;
}
.cta-banner__heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.cta-banner__text {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--warm-gray);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.cta-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
  background: var(--cream);
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.cta-btn:hover {
  background: var(--terracotta-light);
  color: white;
  transform: translateY(-1px);
}
.cta-btn--outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--warm-gray);
}
.cta-btn--outline:hover {
  border-color: var(--terracotta-light);
  color: var(--terracotta-light);
  background: transparent;
}

/* ── Contact Block ── */

.contact-block {
  background: var(--cream-dark);
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 2px;
}
.contact-block__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.contact-block p {
  margin-bottom: 0.5rem;
  color: var(--charcoal-light);
  font-size: 0.95rem;
}
.contact-block a {
  font-weight: 600;
}

/* ── Email Addresses ── */

.email-list {
  list-style: none;
  margin: 1rem 0;
}
.email-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule-color);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
}
.email-list__name {
  font-weight: 600;
  color: var(--charcoal);
  min-width: 180px;
}
.email-list__addr {
  font-weight: 600;
}

/* ── Footer ── */

.site-footer {
  background: var(--charcoal);
  color: var(--warm-gray);
  text-align: center;
  padding: 2.5rem var(--gutter);
  font-size: 0.82rem;
  line-height: 1.7;
}
.site-footer a {
  color: var(--cream);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--terracotta-light);
}

/* ── Utilities ── */

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── Responsive ── */

@media (max-width: 640px) {
  html { font-size: 16px; }

  .site-header__inner {
    flex-direction: column;
    gap: 0;
    min-height: auto;
    padding-top: 0.75rem;
  }
  .site-nav {
    width: 100%;
    justify-content: center;
  }
  .site-nav a {
    padding: 0.75rem 0.6rem;
    font-size: 0.72rem;
  }
  .voice-card { padding: 1.5rem; }
  .email-list li { flex-direction: column; gap: 0.1rem; }
  .email-list__name { min-width: 0; }
}

/* ── Page load animation ── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow,
.hero__title,
.hero__subtitle {
  animation: fadeUp 0.7s ease both;
}
.hero__title { animation-delay: 0.1s; }
.hero__subtitle { animation-delay: 0.2s; }

.section {
  animation: fadeUp 0.6s ease both;
}
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.15s; }
.section:nth-child(4) { animation-delay: 0.2s; }
