/* ── Trek Forward Campaign Site — Shared Styles ── */

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

:root {
  --blue:   #2e3192;
  --yellow: #FFDE17;
  --white:  #ffffff;
  --text:   #1a1a2e;
  --light:  #f7f7f2;
  --border: #e0e0d8;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 { line-height: 1.2; color: var(--blue); }
a { color: var(--blue); }
a:hover { opacity: 0.75; }

/* ── NAV ── */
nav {
  background: var(--blue);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav .brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0;
  text-decoration: none;
}
nav .brand-text {
  color: var(--yellow);
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.25;
}
nav .brand-text span { font-weight: normal; font-size: 0.82em; }
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  padding: 0.4rem 0;
}
nav ul li a {
  color: var(--yellow);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
  font-size: 0.9rem;
  transition: background 0.15s;
  display: block;
}
nav ul li a:hover,
nav ul li a.active {
  background: rgba(255,222,23,0.18);
  opacity: 1;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
  line-height: 1;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--blue); }
.btn-blue   { background: var(--blue);   color: var(--yellow); }
.btn-lg     { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-outline {
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
}

/* ── PAGE HERO ── */
.page-hero {
  background: var(--blue);
  color: var(--white);
  padding: 3.5rem 2rem 3rem;
  border-bottom: 5px solid var(--yellow);
}
.page-hero-inner { max-width: 860px; margin: 0 auto; }
.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}
.page-hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 560px;
}

/* ── CONTENT LAYOUT (sidebar + main) ── */
.content-wrap {
  display: flex;
  max-width: 1060px;
  margin: 0 auto;
  padding: 3rem 2rem;
  gap: 3rem;
  align-items: flex-start;
}
.content-wrap--full { max-width: 1060px; }

/* ── SIDEBAR ── */
.sidebar {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 80px;
}
.sidebar-photo img {
  width: 100%;
  border-radius: 6px;
  display: block;
  border: 3px solid var(--blue);
}
.sidebar-card {
  background: var(--blue);
  color: var(--white);
  padding: 1.25rem;
  border-radius: 6px;
}
.sidebar-card h3 {
  color: var(--yellow);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.sidebar-card p { font-size: 0.9rem; margin-bottom: 0.6rem; }
.sidebar-card p:last-child { margin-bottom: 0; }
.sidebar-btn { width: 100%; text-align: center; }
.social-link { color: var(--yellow); font-weight: bold; text-decoration: none; }
.social-link:hover { opacity: 0.8; }
.social-link .fa-brands { font-size: 1.2em; vertical-align: middle; }

/* ── MAIN CONTENT ── */
main { flex: 1; min-width: 0; }

.content-section {
  margin-bottom: 2.75rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--border);
}
.content-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.content-section h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.content-section p  { margin-bottom: 1rem; color: #333; }
.content-section p:last-child { margin-bottom: 0; }
.content-section a  { color: var(--blue); font-weight: bold; }
blockquote {
  border-left: 4px solid var(--yellow);
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  background: var(--light);
  color: #555;
  font-style: italic;
  border-radius: 0 4px 4px 0;
}

/* ── ISSUES PAGE ── */
.issues-nav {
  flex: 0 0 200px;
  position: sticky;
  top: 80px;
}
.issues-nav h3 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.issues-nav ul { list-style: none; }
.issues-nav ul li { margin-bottom: 0.25rem; }
.issues-nav ul li a {
  display: block;
  padding: 0.4rem 0.75rem;
  color: var(--blue);
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.issues-nav ul li a:hover { background: var(--light); opacity: 1; }

.issue-section {
  margin-bottom: 2.75rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--border);
}
.issue-section:last-child { border-bottom: none; }
.issue-section h2 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  padding-top: 0.5rem;
}
.issue-section p  { margin-bottom: 1rem; color: #333; }
.issue-section ul { margin: 0 0 1rem 0; padding: 0; list-style: none; }
.issue-section ul li {
  padding: 0.6rem 0 0.6rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: #333;
  position: relative;
}
.issue-section ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: bold;
}
.back-to-top {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--blue);
  text-decoration: none;
  opacity: 0.6;
}
.back-to-top:hover { opacity: 1; }

/* ── DONATE PAGE ── */
.donate-page-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.donate-intro {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 680px;
}
.donate-recurring {
  background: var(--yellow);
  color: var(--blue);
  padding: 0.85rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  font-size: 1rem;
  max-width: 680px;
}
.donate-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.donate-card {
  flex: 1;
  min-width: 260px;
  background: var(--blue);
  color: var(--white);
  border-radius: 6px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.donate-card h2 { font-size: 1.6rem; color: var(--white); }
.donate-card p   { opacity: 0.88; font-size: 0.95rem; flex: 1; }
.donate-card .paid-for { font-size: 0.75rem; opacity: 0.55; margin-top: 0.25rem; }
.donate-card .btn { align-self: flex-start; }
.race-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
}
.donate-note {
  background: var(--light);
  border-left: 4px solid var(--yellow);
  padding: 1.5rem 2rem;
  border-radius: 0 6px 6px 0;
}
.donate-note h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.donate-note p  { color: #444; margin-bottom: 0.75rem; }
.donate-note ul { padding-left: 1.25rem; color: #444; }
.donate-note ul li { margin-bottom: 0.4rem; }

/* ── VOLUNTEER PAGE ── */
.volunteer-body { max-width: 860px; margin: 0 auto; padding: 3rem 2rem; }
.volunteer-ways { margin-bottom: 3rem; }
.volunteer-ways h2, .contact-form-section h2 {
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
}
.ways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.way-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
}
.way-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.way-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.way-card p  { font-size: 0.9rem; color: #555; }

.contact-form-section p { color: #444; margin-bottom: 1.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-success-msg {
  background: #e8f5e9;
  border: 2px solid #4caf50;
  border-radius: 6px;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
}
.form-success-msg h3 { color: #2e7d32; margin-bottom: 0.5rem; }
.form-success-msg p  { color: #1b5e20; margin: 0; }
.form-error-msg {
  background: #fff3e0;
  border: 2px solid #e65100;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  color: #bf360c;
  font-size: 0.9rem;
}
.form-row { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 160px; }
.form-group--state { flex: 0 0 80px; min-width: 0; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: bold; font-size: 0.9rem; color: var(--blue); }
.form-group input,
.form-group textarea {
  padding: 0.65rem 0.85rem;
  border: 2px solid var(--border);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.checkboxes { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--text);
  cursor: pointer;
}
.checkbox-label input { width: auto; }

/* ── EVENTS PAGE ── */
.events-body { max-width: 860px; margin: 0 auto; padding: 3rem 2rem; }
.events-section, .news-section { margin-bottom: 3rem; }
.events-section h2, .news-section h2 { font-size: 1.7rem; margin-bottom: 1.5rem; }
.event-card {
  display: flex;
  gap: 1.5rem;
  background: var(--light);
  border: 1px solid var(--border);
  border-left: 5px solid var(--yellow);
  border-radius: 0 6px 6px 0;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.event-date {
  flex: 0 0 60px;
  text-align: center;
  background: var(--blue);
  color: var(--white);
  padding: 0.6rem;
  border-radius: 4px;
}
.event-month { display: block; font-size: 0.65rem; font-weight: bold; letter-spacing: 0.1em; color: var(--yellow); }
.event-day   { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.event-details { flex: 1; }
.event-details h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.event-meta { font-size: 0.85rem; color: #666; margin-bottom: 0.6rem; }
.event-details p { color: #444; margin-bottom: 0.75rem; font-size: 0.95rem; }
.events-cta, .news-cta { color: #666; font-size: 0.95rem; margin-top: 0.5rem; }

/* ── VOTING PLACEHOLDER ── */
.voting-placeholder {
  background: var(--light);
  border: 2px dashed var(--border);
  border-radius: 6px;
  padding: 2rem;
  color: #888;
  font-style: italic;
  margin-top: 1rem;
}
.news-post {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.news-post:last-of-type { border-bottom: none; }
.news-meta { font-size: 0.8rem; color: #888; margin-bottom: 0.4rem; }
.news-post h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.news-post h3 a { text-decoration: none; color: var(--blue); }
.news-post p { color: #444; font-size: 0.95rem; margin-bottom: 0.5rem; }
.read-more { font-size: 0.9rem; font-weight: bold; }

/* ── FOOTER ── */
footer {
  background: var(--blue);
  color: var(--yellow);
  padding: 2.5rem 2rem;
  margin-top: 4rem;
  border-top: 5px solid var(--yellow);
}
.footer-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.donate-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.donate-links a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px solid rgba(255,222,23,0.35);
  padding-bottom: 1px;
}
.donate-links a:hover { border-bottom-color: var(--yellow); opacity: 1; }
.disclaimer { font-size: 0.8rem; opacity: 0.65; margin-top: 0.75rem; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  nav { padding: 0 1rem; }
  nav ul li a { font-size: 0.82rem; padding: 0.35rem 0.5rem; }
  .page-hero h1 { font-size: 2rem; }
  .content-wrap { flex-direction: column; padding: 2rem 1rem; gap: 2rem; }
  .sidebar { position: static; flex: none; width: 100%; flex-direction: row; flex-wrap: wrap; }
  .sidebar-photo { flex: 0 0 120px; }
  .issues-nav { position: static; flex: none; width: 100%; }
  .form-row { flex-direction: column; }
  .donate-cards { flex-direction: column; }
  footer { margin-top: 2rem; }
}
