/* Renfrewshire Disability Arts Forum — site styles */

:root {
  --purple-900: #2e1a4d;
  --purple-700: #4a2a7a;
  --purple-600: #5d3a96;
  --purple-100: #efe9f7;
  --orange: #e87d3e;
  --teal: #2a9d8f;
  --ink: #23212b;
  --muted: #4f4b5c;
  --bg: #ffffff;
  --bg-alt: #f7f5fb;
  --border: #e3dff0;
  --radius: 12px;
  --max-width: 68rem;
  --shadow: 0 2px 12px rgba(46, 26, 77, 0.08);
}

/* ---------- Base ---------- */

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

html {
  font-size: 112.5%; /* 18px base — comfortable reading size */
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--purple-900);
  margin: 1.4em 0 0.5em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 0; }
h2 { font-size: clamp(1.4rem, 3vw, 1.7rem); }
h3 { font-size: 1.15rem; }

p { margin: 0.8em 0; }

a {
  color: var(--purple-700);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

a:hover { color: var(--purple-900); }

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

.hero :focus-visible,
.site-footer :focus-visible,
.cta-banner :focus-visible,
.page-header :focus-visible {
  outline-color: #ffffff;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--purple-900);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 3px solid var(--purple-700);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--purple-900);
  font-weight: 700;
  line-height: 1.25;
}

.brand:hover { color: var(--purple-700); }

.brand-logo { flex-shrink: 0; }

.brand-text { font-size: 1rem; }

.brand-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  background: var(--purple-100);
  color: var(--purple-900);
}

.site-nav a[aria-current="page"] {
  color: var(--purple-700);
  box-shadow: inset 0 -3px 0 var(--purple-700);
  border-radius: 8px 8px 0 0;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: var(--bg);
  border: 2px solid var(--purple-700);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--purple-700);
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: rotate(-45deg); top: 0; }

@media (max-width: 52rem) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 3px solid var(--purple-700);
    box-shadow: var(--shadow);
    z-index: 50;
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    max-width: var(--max-width);
    margin-inline: auto;
  }

  .site-nav a {
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--purple-700); }

  .site-header { position: relative; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--purple-900) 0%, var(--purple-600) 100%);
  color: #fff;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin: 0 0 0.4em;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #d9c9f2;
  margin: 0 0 1rem;
}

.hero-lede {
  font-size: 1.2rem;
  max-width: 42rem;
  color: #f2ecfa;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--purple-700);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid var(--purple-700);
}

.btn:hover {
  background: var(--purple-900);
  border-color: var(--purple-900);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--purple-900);
  border-color: #fff;
}

.btn-light:hover {
  background: var(--purple-100);
  border-color: var(--purple-100);
  color: var(--purple-900);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(2.2rem, 6vw, 3.8rem); }

.section-alt { background: var(--bg-alt); }

.section-title { margin-top: 0; }

.section-intro {
  font-size: 1.1rem;
  max-width: 46rem;
}

.page-header {
  background: var(--purple-100);
  padding-block: clamp(2rem, 5vw, 3.2rem);
  border-bottom: 1px solid var(--border);
}

.page-header h1 { margin: 0 0 0.3em; }

.page-lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0;
  max-width: 46rem;
}

/* Main content column */

.content { max-width: 46rem; }

.content h2:first-child { margin-top: 0; }

.content ul { padding-left: 1.4rem; }

.content li { margin-bottom: 0.4em; }

.content-cta { margin-top: 2rem; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.card-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 5px solid var(--purple-700);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--shadow);
}

.card:nth-child(3n + 2) { border-top-color: var(--orange); }
.card:nth-child(3n) { border-top-color: var(--teal); }

.card h2,
.card h3 { margin-top: 0; }

.card a { font-weight: 600; }

.card address {
  font-style: normal;
  line-height: 1.7;
}

/* ---------- Mission quote ---------- */

.mission {
  margin: 0;
  padding: 0 0 0 1.4rem;
  border-left: 5px solid var(--orange);
  max-width: 46rem;
}

.mission p {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--purple-900);
  margin: 0 0 0.5em;
}

.mission footer {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(135deg, var(--purple-900), var(--purple-600));
  color: #fff;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.2rem) 1.5rem;
  border-radius: var(--radius);
}

.cta-banner h2 {
  color: #fff;
  margin-top: 0;
}

.cta-banner p {
  font-size: 1.1rem;
  color: #f2ecfa;
  max-width: 36rem;
  margin-inline: auto;
}

/* ---------- Details list ---------- */

.details-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.2rem 0;
}

.details-list > div {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
}

.details-list > div:nth-child(odd) { background: var(--bg-alt); }

.details-list dt {
  font-weight: 700;
  color: var(--purple-900);
}

.details-list dd { margin: 0; }

@media (max-width: 34rem) {
  .details-list > div { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* ---------- Access note ---------- */

.access-note {
  margin-top: 2.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}

.access-note h2 { margin-top: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--purple-900);
  color: #e8e2f4;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: 2rem;
  padding-block: 2.5rem 1.5rem;
}

.footer-heading {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.8em;
}

.site-footer address { font-style: normal; line-height: 1.7; }

.site-footer a {
  color: #d9c9f2;
}

.site-footer a:hover { color: #fff; }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin-bottom: 0.35em; }

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-block: 1.1rem;
  font-size: 0.85rem;
  color: #bfb3d8;
}

.footer-base p { margin: 0; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
