/*
Theme Name: Stop The Rail Merger Coalition
Theme URI: https://stoptherailmerger.com
Author: CGCN
Description: Official theme for the Stop The Rail Merger Coalition
Version: 4.0
*/

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Barlow:wght@400;500;600;700&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

/* ── VARIABLES ── */
:root {
  --red:         #CC0000;
  --red-dark:    #A00000;
  --black:       #0D0D0D;
  --dark:        #1A1A1A;
  --white:       #FFFFFF;
  --slate:       #4A5568;
  --gray-light:  #E8E8E8;
  --gray-bg:     #F4F4F4;
  --font-display:'Barlow Condensed', sans-serif;
  --font-ui:     'Barlow', sans-serif;
  --font-body:   'Source Serif 4', serif;
  --max:         1180px;
  --shadow:      0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.16);
  --ease:        0.25s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-ui); color: var(--dark); background: #fff; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--red); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--red-dark); }
p    { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: all var(--ease);
  border: none;
  text-decoration: none;
  line-height: 1;
}
.btn-red  { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--black); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #2C2C2C; color: #fff; transform: translateY(-2px); }

/* ── HEADER ── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--black);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo img { height: 50px; width: auto; }

#site-nav ul { list-style: none; display: flex; align-items: center; gap: 0.2rem; }
#site-nav ul li a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E8E8E8;
  padding: 0.5rem 0.85rem;
  display: block;
  transition: color var(--ease);
}
#site-nav ul li a:hover,
#site-nav ul li.current-menu-item > a { color: var(--red); }
#site-nav ul li.nav-news > a {
  background: var(--red);
  color: #fff;
  padding: 0.5rem 1.1rem;
}
#site-nav ul li.nav-news > a:hover { background: var(--red-dark); color: #fff; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 25px; height: 2px; background: #fff; }

/* ── HERO ── */
.hero {
  position: relative;
  background: var(--black);
  background-image: url('images/hero-bg.png');
  background-size: cover;
  background-position: center;
  padding: 6.5rem 2rem 5.5rem;
  overflow: hidden;
  border-left: 6px solid var(--red);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }
.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.hero h1 {
  color: #fff;
  max-width: 860px;
  margin-bottom: 1.5rem;
}
.hero h1 em { color: var(--red); font-style: normal; }
.hero-lead {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── SECTIONS ── */
.section      { padding: 5rem 2rem; }
.section-dark { background: var(--dark); }
.section-gray { background: var(--gray-bg); }
.section-red  { background: var(--red); }

.section-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
  display: block;
}
.section-title { margin-bottom: 1rem; }
.section-intro {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 700px;
  line-height: 1.8;
  margin-bottom: 3rem;
}
.section-dark .section-intro { color: rgba(255,255,255,0.7); }

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .cards-grid { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-top: 4px solid var(--red);
  padding: 1.75rem;
  transition: box-shadow var(--ease), transform var(--ease);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--red);
  opacity: 0.22;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}
.card h4 { color: var(--dark); margin-bottom: 0.65rem; font-size: 0.95rem; }
.card p  { font-family: var(--font-ui); font-size: 0.92rem; color: var(--slate); line-height: 1.65; }

/* ── PRINCIPLES ── */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1001px) {
  .principles-grid { grid-template-columns: 1fr; }
}

.principle h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.4rem; }
.principle p  { font-family: var(--font-ui); font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.65; }

/* ── SECTORS ── */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 800px) { .sectors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .sectors-grid { grid-template-columns: repeat(2, 1fr); } }

.sector {
  background: var(--dark);
  color: #fff;
  padding: 1.4rem 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 3px solid var(--red);
}

/* ── NEWS ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

.news-card { background: #fff; border: 1px solid var(--gray-light); transition: all var(--ease); }
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.news-card-body { padding: 1.75rem; }
.news-date {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
  display: block;
}
.news-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; line-height: 1.25; }
.news-card h3 a { color: var(--dark); }
.news-card h3 a:hover { color: var(--red); }
.news-card p { font-family: var(--font-ui); font-size: 0.9rem; color: var(--slate); line-height: 1.65; margin-bottom: 1rem; }
.read-more { font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.read-more::after { content: ' →'; }

/* ── PAGE HEADER ── */
.page-header {
  background: var(--dark);
  border-left: 6px solid var(--red);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 30h60M30 0v60' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.page-header .wrap { position: relative; }
.page-header h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 3.2rem); margin-bottom: 0.75rem; }
.page-header .subhead { font-family: var(--font-ui); font-size: 1.05rem; color: rgba(255,255,255,0.7); max-width: 580px; }

/* ── CTA BAND ── */
.cta-band { background: var(--red); padding: 4.5rem 2rem; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p  { font-family: var(--font-ui); font-size: 1.05rem; color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 2rem; }

/* ── MEMBERS ── */
.member-sector-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  border-bottom: 3px solid var(--red);
  padding-bottom: 0.65rem;
  margin-bottom: 1.5rem;
}
.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) { .members-grid { grid-template-columns: repeat(2, 1fr); } }

.member-card {
  background: #fff;
  border: 1px solid var(--gray-light);
  padding: 1.25rem;
  text-align: center;
  transition: all var(--ease);
}
.member-card:hover { box-shadow: var(--shadow); border-color: var(--red); }
.member-name { font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; text-transform: uppercase; color: var(--dark); margin-bottom: 0.25rem; }
.member-sector-tag { font-family: var(--font-ui); font-size: 0.75rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── ABOUT ── */
.about-cols { display: grid; grid-template-columns: 3fr 2fr; gap: 4rem; align-items: start; }
@media (max-width: 800px) { .about-cols { grid-template-columns: 1fr; gap: 2.5rem; } }

.red-divider { border: none; border-top: 3px solid var(--red); width: 55px; margin: 1.5rem 0; }

.info-box { background: var(--gray-bg); border-left: 4px solid var(--red); padding: 1.5rem; }
.info-box .label { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 0.75rem; display: block; }
.info-box blockquote { font-family: var(--font-ui); font-size: 1rem; font-weight: 500; color: var(--dark); line-height: 1.75; font-style: italic; }

/* ── FORM ── */
.form-wrap { max-width: 680px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.45rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--dark);
  background: #fff;
  outline: none;
  appearance: none;
  transition: border-color var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 115px; }
.form-submit {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease);
}
.form-submit:hover { background: var(--red-dark); }
.form-note { font-family: var(--font-ui); font-size: 0.82rem; color: var(--slate); margin-top: 0.65rem; }

/* ── GET INVOLVED LAYOUT ── */
.gi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
@media (max-width: 860px) { .gi-grid { grid-template-columns: 1fr; gap: 3rem; } }

/* ── SINGLE POST ── */
.single-wrap { max-width: 760px; margin: 0 auto; }
.post-meta-bar {
  background: var(--gray-bg);
  border-left: 4px solid var(--red);
  padding: 0.9rem 1.4rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: 2.5rem;
}
.post-body { font-family: var(--font-body); }
.post-body p  { color: var(--slate); line-height: 1.85; margin-bottom: 1.2rem; }
.post-body h3 { font-family: var(--font-display); margin: 2rem 0 0.75rem; font-size: 1.3rem; }
.post-body ul { margin: 0.75rem 0 1.5rem 2rem; }
.post-body ul li { color: var(--slate); font-family: var(--font-body); margin-bottom: 0.4rem; }

/* ── FOOTER ── */
#site-footer {
  background: var(--black);
  border-top: 3px solid var(--red);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand img { height: 46px; margin-bottom: 1.2rem; }
.footer-brand p { font-family: var(--font-ui); font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.45rem; }
.footer-col ul li a { font-family: var(--font-ui); font-size: 0.88rem; color: rgba(255,255,255,0.5); }
.footer-col ul li a:hover { color: var(--red); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,0.3); }
.footer-bottom a:hover { color: var(--red); }

/* ── UTILITIES ── */
.tc { text-align: center; }
.mt2 { margin-top: 2rem; }
.mt3 { margin-top: 3rem; }

/* ── PRINCIPLES WITH IMAGE ── */
.principles-with-image {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
  margin-top: 2.5rem;
}
@media (max-width: 1000px) {
  .principles-with-image { grid-template-columns: 1fr; }
  .principles-image { display: none; }
}
.principles-image {
  border-radius: 4px;
  overflow: hidden;
  height: 500px;
}
.principles-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── FAQ ── */
.faq-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--gray-light);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
  border-left: 4px solid var(--red);
}
.faq-item p {
  font-family: var(--font-ui);
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

/* ── PRIVACY / TERMS ── */
.legal-body h3 { margin: 2rem 0 0.75rem; font-size: 1.1rem; }
.legal-body p  { font-family: var(--font-ui); color: var(--slate); line-height: 1.85; margin-bottom: 1rem; }
.legal-body ul { margin: 0.75rem 0 1.25rem 2rem; }
.legal-body ul li { font-family: var(--font-ui); color: var(--slate); margin-bottom: 0.4rem; line-height: 1.7; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  #site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--black); border-top: 1px solid rgba(255,255,255,0.08); padding: 0.75rem 0; }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; gap: 0; }
  #site-nav ul li a { padding: 0.8rem 2rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .hero { padding: 4rem 1.5rem 3.5rem; }
  .hero-btns { flex-direction: column; }
  .section { padding: 3.5rem 1.5rem; }
}
