/* ============================================================
   Hartford Rotary — Design System
   DM Serif Display + Inter | Forest Green & Sandstone
   ============================================================ */

/* --- Fonts ------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

/* --- Custom Properties ------------------------------------- */
:root {
  --bg: #FAFAF5;
  --bg-alt: #F0EDE6;
  --bg-card: #FEFAE0;
  --bg-dark: #1B4332;
  --bg-pale: #E8EDF4;
  --text: #1E1C1A;
  --text-muted: #6B6559;
  --text-faint: #9A9490;
  --primary: #1B4332;
  --primary-rgb: 27, 67, 50;
  --primary-light: #40916C;
  --primary-pale: #95D5B2;
  --accent: #DDA15E;
  --accent-light: #FEFAE0;
  --rotary-blue: #003DA6;
  --rotary-gold: #F7A81B;
  --border: #C9C3B8;
  --border-light: #E8E4DC;

  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --max-w: 1140px;
  --max-w-narrow: 860px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.10);
  --transition: 220ms ease;
}

html.dark {
  --bg: #1A1D1A;
  --bg-alt: #222522;
  --bg-card: #2A2D2A;
  --bg-dark: #0F1F15;
  --bg-pale: #1E2230;
  --text: #EDE8E0;
  --text-muted: #B0A898;
  --text-faint: #706860;
  --primary: #40916C;
  --primary-rgb: 64, 145, 108;
  --primary-light: #95D5B2;
  --primary-pale: #1A3A2A;
  --accent: #E8B870;
  --accent-light: #2A2518;
  --rotary-blue: #4A7FD4;
  --rotary-gold: #F7A81B;
  --border: #353530;
  --border-light: #2A2A25;
}

/* --- Reset & Base ------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 2.25rem;
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

ul,
ol {
  list-style: none;
}

ul ul,
ul ol,
ol ul,
ol ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.label-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.since-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
}

.text-accent {
  color: var(--accent);
}

.text-primary {
  color: var(--primary);
}

html.dark .text-primary {
  color: var(--primary-light);
}

/* --- Layout Utilities -------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

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

.section--sm {
  padding-block: clamp(2rem, 4vw, 3rem);
}

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

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.875rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.btn--primary {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

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

.btn--accent {
  background-color: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.btn--accent:hover {
  background-color: #c98b4a;
  border-color: #c98b4a;
  color: #fff;
}

.btn--outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

html.dark .btn--outline {
  color: var(--primary-light);
  border-color: var(--primary-light);
}

.btn--outline:hover {
  background-color: var(--primary);
  color: #fff;
}

html.dark .btn--outline:hover {
  background-color: var(--primary-light);
  color: var(--bg-dark);
}

.btn--white {
  background-color: #fff;
  color: var(--primary);
  border-color: #fff;
}

.btn--white:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
  padding-inline: 0.5rem;
}

.btn--ghost:hover {
  color: var(--primary-light);
}

.btn--sm {
  font-size: 0.8125rem;
  padding: 0.625rem 1.25rem;
}

/* --- Hartford Line (Impact Ticker) ------------------------- */
.hartford-line {
  background-color: var(--primary);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.5rem var(--gutter);
  line-height: 1.4;
  position: relative;
  z-index: 110;
}

html.dark .hartford-line {
  background-color: var(--primary-pale);
  color: var(--primary-light);
}

.hartford-line strong {
  font-weight: 700;
  color: var(--accent);
}

html.dark .hartford-line strong {
  color: var(--accent);
}

/* --- Sticky Nav -------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border-light);
  transition: background-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

/* Dark hero variant — transparent nav over hero */
.nav.has-dark-hero {
  position: absolute;
  top: auto;
  left: 0;
  right: 0;
  background-color: transparent;
  border-bottom-color: transparent;
}

.nav.has-dark-hero .nav__link,
.nav.has-dark-hero .nav__logo {
  color: #fff;
}

.nav.has-dark-hero .nav__link:hover {
  color: var(--accent);
}

.nav.has-dark-hero.scrolled {
  position: sticky;
  top: 0;
  background-color: var(--bg);
  border-bottom-color: var(--border-light);
}

.nav.has-dark-hero.scrolled .nav__link,
.nav.has-dark-hero.scrolled .nav__logo {
  color: var(--text);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0.875rem var(--gutter);
  min-height: 60px;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  line-height: 1.2;
  white-space: nowrap;
}

.nav__logo:hover {
  color: var(--primary-light);
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
  padding: 0.25rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav__link:hover {
  color: var(--primary-light);
}

.nav__link--cta {
  background-color: var(--primary);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav__link--cta:hover {
  background-color: var(--primary-light);
  color: #fff;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav.has-dark-hero:not(.scrolled) .nav__hamburger span {
  background-color: #fff;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Dark mode toggle in nav */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text);
  transition: color var(--transition);
}

.nav.has-dark-hero:not(.scrolled) .theme-toggle {
  color: #fff;
}

.theme-toggle:hover {
  color: var(--accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun {
  display: none;
}

html.dark .theme-toggle .icon-moon {
  display: none;
}

html.dark .theme-toggle .icon-sun {
  display: block;
}

/* --- Mobile Nav -------------------------------------------- */
@media (max-width: 767px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
    text-align: left;
  }

  .nav.has-dark-hero:not(.scrolled) .nav__links {
    background-color: rgba(var(--primary-rgb), 0.95);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__link {
    width: 100%;
    padding: 0.75rem var(--gutter);
    min-height: 44px;
  }

  .nav__link--cta {
    margin: 0.5rem var(--gutter);
    width: calc(100% - var(--gutter) * 2);
    text-align: center;
    justify-content: center;
  }
}

/* --- Hero -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(var(--primary-rgb), 0.82) 0%,
    rgba(var(--primary-rgb), 0.60) 40%,
    rgba(139, 90, 43, 0.45) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: clamp(2rem, 8vw, 5rem) var(--gutter);
  color: #fff;
}

.hero__content h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.hero__content p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.75rem;
}

.hero__content .label-text {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* --- Impact Highlights ------------------------------------- */
.impact {
  background-color: var(--bg-alt);
}

.impact__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.impact__header .label-text {
  margin-bottom: 0.5rem;
  display: block;
}

.impact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.impact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.impact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.impact-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

html.dark .impact-card__icon {
  color: var(--primary-light);
}

.impact-card__number {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--primary);
  margin-bottom: 0.25rem;
}

html.dark .impact-card__number {
  color: var(--primary-light);
}

.impact-card h3 {
  margin-bottom: 0.5rem;
}

.impact-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* --- Member Voices ----------------------------------------- */
.voices {
  background-color: var(--bg-dark);
  color: #fff;
}

html.dark .voices {
  background-color: var(--bg-dark);
}

.voices__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.voices__header h2 {
  color: #fff;
}

.voices__header .label-text {
  color: var(--primary-pale);
  margin-bottom: 0.5rem;
  display: block;
}

.voices__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.voice-card {
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.voice-card__quote {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.voice-card__quote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent);
  line-height: 0;
  vertical-align: -0.35em;
  margin-right: 0.15em;
}

.voice-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.voice-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.voice-card__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #fff;
}

.voice-card__role {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
}

/* --- How It Works (3 Steps) -------------------------------- */
.how-it-works {
  background-color: var(--bg);
}

.how-it-works__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.how-it-works__header .label-text {
  margin-bottom: 0.5rem;
  display: block;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

/* Connecting line */
.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background-color: var(--border);
  z-index: 0;
}

html.dark .steps::before {
  background-color: var(--border);
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding-inline: 1rem;
}

.step__number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}

html.dark .step__number {
  background-color: var(--primary);
  border-color: var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 260px;
  margin-inline: auto;
}

/* --- Events ------------------------------------------------ */
.events {
  background-color: var(--bg-alt);
}

.events__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.events__header .label-text {
  margin-bottom: 0.5rem;
  display: block;
}

.events__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.event-card {
  background-color: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.event-card__image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: var(--bg-alt);
}

.event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background-color: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.375rem 0.625rem;
  text-align: center;
  line-height: 1.15;
  min-width: 52px;
}

.event-card__badge-month {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
}

.event-card__badge-day {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  display: block;
  margin-top: 1px;
}

.event-card__body {
  padding: 1.25rem;
}

.event-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.375rem;
}

.event-card__meta {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-bottom: 0.625rem;
}

.event-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* --- Rotary Connection (Split) ----------------------------- */
.rotary-connection {
  background-color: var(--bg);
}

.rotary-connection__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.rotary-connection__text h2 {
  margin-bottom: 1rem;
}

.rotary-connection__text p {
  color: var(--text-muted);
}

.rotary-connection__info {
  background-color: var(--bg-pale);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.rotary-connection__info h3 {
  margin-bottom: 1rem;
}

.rotary-connection__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.rotary-connection__badge img {
  height: 48px;
  width: auto;
}

.rotary-connection__badge span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--rotary-blue);
}

html.dark .rotary-connection__badge span {
  color: var(--rotary-blue);
}

.rotary-facts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.rotary-fact {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.rotary-fact strong {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

/* --- CTA / Empty Chair ------------------------------------- */
.cta {
  background-color: var(--bg-dark);
  color: #fff;
  text-align: center;
}

.cta__content {
  max-width: 620px;
  margin-inline: auto;
}

.cta .label-text {
  color: var(--primary-pale);
  margin-bottom: 1rem;
  display: block;
}

.cta h2 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.cta p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.75rem;
}

/* Empty Chair — the signature standalone line */
.empty-chair {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  color: var(--accent);
  margin-top: 3rem;
  margin-bottom: 3rem;
  line-height: 1.35;
}

/* --- Contact Form ------------------------------------------ */
.contact {
  background-color: var(--bg);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact__text h2 {
  margin-bottom: 1rem;
}

.contact__text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact__detail svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--primary-light);
}

.contact-form {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 44px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-message {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: none;
}

.form-message--success {
  background-color: rgba(var(--primary-rgb), 0.08);
  color: var(--primary-light);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  display: block;
}

.form-message--error {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
  display: block;
}

html.dark .form-message--error {
  background-color: #2D1515;
  color: #FCA5A5;
  border-color: #4A1E1E;
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Turnstile widget */
.cf-turnstile {
  margin-bottom: 1rem;
}

/* --- Footer ------------------------------------------------ */
.footer {
  background-color: #141412;
  color: rgba(255,255,255,0.7);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

html.dark .footer {
  background-color: #0E0E0C;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.footer__brand {
  max-width: 300px;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer__link:hover {
  color: var(--accent);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer__social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  transition: background-color var(--transition), color var(--transition);
}

.footer__social a:hover {
  background-color: var(--accent);
  color: #fff;
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__bar {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

.footer__bar a {
  color: rgba(255,255,255,0.45);
}

.footer__bar a:hover {
  color: var(--accent);
}

/* --- Disclaimer Bar ---------------------------------------- */
.disclaimer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background-color: #141412;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.5rem var(--gutter);
  line-height: 1.4;
  border-top: 1px solid rgba(255,255,255,0.06);
}

html.dark .disclaimer-bar {
  background-color: #0E0E0C;
}

.disclaimer-bar a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.disclaimer-bar a:hover {
  color: #fff;
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 1023px) {
  .impact__grid,
  .events__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .voices__grid {
    grid-template-columns: 1fr;
  }

  .rotary-connection__inner,
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: span 2;
    max-width: none;
  }
}

@media (max-width: 767px) {
  .impact__grid,
  .events__grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .steps::before {
    top: 0;
    bottom: 0;
    left: 31px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .step {
    text-align: left;
    display: grid;
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
    gap: 0 1rem;
    padding-inline: 0;
  }

  .step__number {
    grid-row: span 2;
    margin: 0;
  }

  .step h3 {
    align-self: end;
  }

  .step p {
    max-width: none;
    margin-inline: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: span 1;
  }

  .hero__content h1 {
    text-align: left;
  }

  .hero__content p {
    text-align: left;
  }

  .hero__buttons {
    justify-content: flex-start;
  }

  .impact__header,
  .voices__header,
  .how-it-works__header,
  .events__header {
    text-align: left;
  }

  .cta {
    text-align: left;
  }

  .cta .empty-chair {
    text-align: left;
  }
}

/* --- Print ------------------------------------------------- */
@media print {
  .nav,
  .disclaimer-bar,
  .theme-toggle,
  .nav__hamburger {
    display: none;
  }

  body {
    padding-bottom: 0;
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    background: #f5f5f0;
  }

  .hero__overlay {
    display: none;
  }

  .hero__content {
    color: #000;
  }
}

/* --- Animations (reduced motion safe) ---------------------- */
@media (prefers-reduced-motion: no-preference) {
  .impact-card,
  .event-card {
    transition: box-shadow var(--transition), transform var(--transition);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
