/* Ryan for Chester — Campaign Website
   Mobile-first stylesheet
   ================================================= */

/* === CUSTOM PROPERTIES === */
:root {
  --navy:        #0D1FA3;
  --navy-dark:   #080F6B;
  --navy-light:  #2035C0;
  --gold:        #00B8CC;
  --gold-hover:  #0099AA;
  --green:       #4A6741;
  --white:       #FFFFFF;
  --cream:       #F3F6FF;
  --gray-light:  #E8EDF8;
  --border:      #CDD5EF;
  --text:        #0A1445;
  --text-muted:  #4A5578;

  --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:   'Lato', 'Helvetica Neue', Helvetica, sans-serif;

  --max-w:  1100px;
  --pad-x:  1.25rem;
  --rad:    6px;
  --shadow:    0 4px 20px rgba(13,31,163,0.1),  0 1px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 14px 44px rgba(13,31,163,0.16), 0 3px 10px rgba(0,0,0,0.08);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--gold); }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.8vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.8vw, 1.55rem); }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .65rem;
}

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

/* === LAYOUT UTILITIES === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section-pad       { padding: 4rem var(--pad-x); }
.section-pad--lg   { padding: 5rem var(--pad-x); }
.section-inner     { max-width: var(--max-w); margin: 0 auto; }

.section--cream    { background: var(--cream); }
.section--gray     { background: var(--gray-light); }
.section--navy     { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); }
.section--navy h2,
.section--navy h3  { color: var(--white); }
.section--navy p   { color: rgba(255,255,255,0.82); }
.section--navy .eyebrow { color: rgba(0,184,204,0.9); }

.section-header            { margin-bottom: 2.5rem; }
.section-header h2         { margin-bottom: .5rem; }
.section-header p          { color: var(--text-muted); font-size: 1.05rem; margin-top: .35rem; }

@media (min-width: 768px) {
  .section-pad    { padding: 5.5rem var(--pad-x); }
  .section-pad--lg{ padding: 7rem var(--pad-x); }
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  padding: .72rem 1.5rem;
  border-radius: var(--rad);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
  line-height: 1;
}
.btn:active { opacity: .9; }

.btn--primary {
  background: var(--navy);
  color: var(--white) !important;
  border-color: var(--navy);
}
.btn--primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}

.btn--outline {
  background: transparent;
  color: var(--navy) !important;
  border-color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white) !important;
}

.btn--outline-white {
  background: transparent;
  color: var(--white) !important;
  border-color: rgba(255,255,255,0.6);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn--donate {
  background: var(--gold);
  color: var(--white) !important;
  border-color: var(--gold);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.btn--donate:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
}
.btn--donate::after {
  content: 'coming soon';
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
  line-height: 1;
}

.btn--lg { padding: .9rem 2rem; font-size: 1rem; }
.hero-ctas .btn--lg { padding: .75rem 1.25rem; font-size: .88rem; }
@media (min-width: 480px) {
  .hero-ctas .btn--lg { padding: .9rem 2rem; font-size: 1rem; }
}

/* === NAVIGATION === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(13,31,163,0.07);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.15;
  padding: .4rem .65rem;
  display: inline-block;
  border: 3px solid var(--gold);
  border-radius: var(--rad);
}
.nav-brand:hover { color: var(--navy); }
.nav-brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
.nav-menu a {
  font-size: .925rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  padding: .4rem .6rem;
  border-radius: var(--rad);
  transition: color .15s, background .15s;
}
.nav-menu a:hover  { color: var(--navy); background: var(--gray-light); }
.nav-menu a.active { color: var(--navy); background: var(--gray-light); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: background .15s;
}
.nav-toggle:hover span { background: var(--gold); }

.nav-drawer {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem var(--pad-x) 1.25rem;
  gap: .2rem;
  box-shadow: 0 8px 24px rgba(13,31,163,0.1);
}
.nav-drawer.is-open { display: flex; }
.nav-drawer a {
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  padding: .65rem .75rem;
  border-radius: var(--rad);
  transition: color .15s, background .15s;
}
.nav-drawer a:hover  { color: var(--navy); background: var(--gray-light); }
.nav-drawer a.active { color: var(--navy); background: var(--gray-light); }
.nav-drawer .btn--donate { margin-top: .5rem; text-align: center; justify-content: center; }

@media (min-width: 800px) {
  .nav-menu  { display: flex; }
  .nav-toggle { display: none; }
  .nav-drawer { display: none !important; }
}

/* === HERO === */
.hero {
  background: linear-gradient(160deg, var(--cream) 0%, var(--gray-light) 60%, var(--cream) 100%);
  padding: 1.5rem var(--pad-x) 2rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 14px 44px rgba(8,15,107,0.18), 0 4px 12px rgba(0,0,0,0.08);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: flex-start;
}
.hero-photo {
  width: 100%;
  max-width: 340px;
  align-self: center;
  position: relative;
  padding-left: 18px;
  padding-bottom: 18px;
}
.hero-photo::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  right: 18px;
  top: 18px;
  border: 8px solid var(--gold);
  border-radius: var(--rad);
  pointer-events: none;
  z-index: 2;
}
.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--rad);
  box-shadow: 0 10px 30px rgba(13,31,163,0.18), 0 2px 8px rgba(0,0,0,0.1);
}
.hero-rule {
  width: 44px;
  height: 3px;
  background: var(--gold);
  margin-bottom: .75rem;
}
.hero-text h1 {
  margin-bottom: .65rem;
  font-weight: 700;
}
.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: .85rem;
  font-family: var(--serif);
  line-height: 1.5;
}
.tagline-accent {
  color: var(--gold);
  font-family: var(--sans);
  font-style: italic;
  font-weight: 700;
}
.marker {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M1,8 C18,4 38,11 58,7 C76,4 90,9 99,6' stroke='%2300D2EB' stroke-width='4' fill='none' stroke-linecap='round' opacity='.85'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 9px;
  padding-bottom: 7px;
}
.hero-intro {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: nowrap;
  gap: .6rem;
}

@media (min-width: 760px) {
  .hero { padding: 1.75rem var(--pad-x) 2rem; }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
  .hero-text { flex: 1 1 54%; }
  .hero-photo {
    flex: 0 0 42%;
    max-width: none;
    align-self: flex-start;
  }
  .hero-photo img { max-width: 100%; }
}

/* === NAV TILES === */
.nav-tiles {
  background: var(--navy-dark);
  padding: 2.25rem var(--pad-x);
  position: relative;
  z-index: 1;
}
.nav-tiles-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  perspective: 1200px;
}
@media (min-width: 700px) {
  .nav-tiles-inner { grid-template-columns: repeat(3, 1fr); }
}
.nav-tile {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--gold);
  border-radius: var(--rad);
  padding: 1.5rem 1.75rem;
  text-decoration: none;
  color: var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.14);
  transition: transform .22s, box-shadow .22s, background .22s;
}
.nav-tile:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 72px rgba(0,0,0,0.48), 0 6px 18px rgba(0,0,0,0.22);
  background: linear-gradient(145deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.06) 100%);
  color: var(--white);
}
.nav-tile-eyebrow {
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
  display: block;
}
.nav-tile h2 {
  color: var(--white);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  margin-bottom: .6rem;
  line-height: 1.2;
}
.nav-tile p {
  color: rgba(255,255,255,0.68);
  font-size: .88rem;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1.1rem;
}
.nav-tile-arrow {
  font-size: 1.1rem;
  color: var(--gold);
  transition: transform .2s;
  display: block;
  font-family: var(--sans);
  font-weight: 700;
}
.nav-tile:hover .nav-tile-arrow { transform: translateX(6px); }

/* === ISSUE CARDS === */
.issues-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 580px) {
  .issues-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .issues-grid { grid-template-columns: repeat(3, 1fr); }
}

.issue-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--rad);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.issue-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.issue-card h3 {
  font-size: 1.05rem;
  margin-bottom: .55rem;
  color: var(--navy);
}
.issue-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Issues 5th card — span 2 on 2-col, auto on 3-col */
@media (min-width: 580px) and (max-width: 899px) {
  .issue-card:nth-child(5) { grid-column: 1 / -1; max-width: 50%; }
}

/* === EMAIL CAPTURE === */
.email-form-wrap { max-width: 480px; margin: 0 auto; }

.email-form {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.email-form input {
  font-family: var(--sans);
  font-size: .95rem;
  padding: .75rem 1rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--rad);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  outline: none;
  transition: border-color .15s;
}
.email-form input::placeholder { color: rgba(255,255,255,0.45); }
.email-form input:focus { border-color: var(--gold); background: rgba(255,255,255,0.14); }
.email-form button {
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .75rem 1.5rem;
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--rad);
  cursor: pointer;
  transition: background .18s;
}
.email-form button:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
@media (min-width: 500px) {
  .email-form { flex-direction: row; flex-wrap: wrap; }
  .email-form input { flex: 1 1 160px; }
  .email-form button { flex-shrink: 0; }
}

/* === DONATE CTA STRIP === */
.donate-strip {
  text-align: center;
  padding: 4rem var(--pad-x);
  background: var(--gray-light);
}
.donate-strip h2 { margin-bottom: .6rem; }
.donate-strip p   { color: var(--text-muted); max-width: 500px; margin: 0 auto 1.5rem; }
.donate-disclaimer {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* === PAGE HEADER (inner pages) === */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 3.5rem var(--pad-x) 3rem;
}
.page-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-header h1         { color: var(--white); font-size: clamp(1.8rem, 5vw, 2.7rem); }
.page-header .eyebrow   { color: rgba(0,184,204,0.9); }
.page-header p          { color: rgba(255,255,255,0.72); font-size: 1.05rem; margin-top: .5rem; }

/* === BIO / ABOUT PAGE === */
.bio-section { padding: 5rem var(--pad-x); }
.bio-inner   { max-width: var(--max-w); margin: 0 auto; }

.bio-block {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-bottom: 3.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}
.bio-block:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.bio-block h2 { margin-bottom: .6rem; }

.bio-photo img {
  width: 100%;
  border-radius: var(--rad);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 720px) {
  .bio-block--with-photo {
    flex-direction: row;
    align-items: flex-start;
    gap: 3.5rem;
  }
  .bio-block--with-photo .bio-photo { flex: 0 0 42%; }
  .bio-block--with-photo .bio-text  { flex: 1; }
  .bio-block--photo-right .bio-photo { order: 1; }
}

/* Press badge */
.press-badge {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  background: var(--gray-light);
  border-radius: 0 var(--rad) var(--rad) 0;
  margin-top: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: background .15s, box-shadow .15s;
}
.press-badge:hover { background: var(--cream); color: inherit; box-shadow: var(--shadow-lg); }
.press-badge-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.press-outlet {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .3rem;
}
.press-quote {
  font-family: var(--serif);
  font-size: .97rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: .35rem;
}
.press-read-more {
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
}

/* Education */
.education-list li {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .97rem;
}
.education-list li:last-child { border-bottom: none; }
.education-list li::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
}

/* Logo row */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3.5rem;
  justify-content: center;
  align-items: center;
  padding: 2.75rem 0 1rem;
}
.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}
.logo-item img {
  filter: grayscale(100%);
  opacity: .5;
  max-height: 50px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  transition: opacity .2s;
}
.logo-item img:hover { opacity: .75; }
.logo-item span {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  max-width: 120px;
  line-height: 1.4;
}

/* === COMMUNITY PAGE === */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin: 2rem 0;
}
@media (min-width: 600px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
.photo-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--rad);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) {
  .photo-item img { height: 320px; }
}
.photo-caption {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .5rem;
  font-style: italic;
  line-height: 1.4;
}

.community-block {
  padding-bottom: 3.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}
.community-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.community-block h2 { margin-bottom: .6rem; }

.voices-photo { margin-top: 1.75rem; }
.voices-photo img {
  width: 100%;
  max-width: 540px;
  border-radius: var(--rad);
  box-shadow: var(--shadow-lg);
}

/* === WHY I'M RUNNING PAGE === */
.why-content {
  max-width: 700px;
  margin: 0 auto;
}
.why-content h2 {
  margin-top: 2.5rem;
  margin-bottom: .9rem;
}
.why-content h2:first-child { margin-top: 0; }
.why-content p { font-size: 1.02rem; line-height: 1.78; }

.commitments { margin: 1rem 0 .5rem; }
.commitments li {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: .8rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .98rem;
  line-height: 1.65;
}
.commitments li:last-child { border-bottom: none; }
.commitments li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
  margin-top: .15rem;
}

.why-closing {
  background: var(--cream);
  border-left: 4px solid var(--navy);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  border-radius: 0 var(--rad) var(--rad) 0;
  box-shadow: var(--shadow);
}
.why-closing p {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--navy);
  margin: 0;
  line-height: 1.65;
}

/* === VIDEO GRID === */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .video-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--rad);
  box-shadow: var(--shadow);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-caption {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: .75rem;
  font-style: italic;
}

/* === FOOTER === */
.site-footer {
  background: var(--navy-dark);
  padding: 3rem var(--pad-x) 2rem;
  text-align: center;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-committee {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: .25rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  margin: 1.1rem 0;
}
.footer-links a {
  font-size: .82rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: var(--gold); }
.footer-disclaimer {
  font-size: .72rem;
  color: rgba(255,255,255,0.3);
  margin-top: 1.25rem;
  line-height: 1.55;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
