/* ==========================================================================
   Mary Youmans for Festus City Council – Ward 2
   Shared stylesheet for every page.

   Each page's <body> has a class (page-home, page-about, page-contact,
   page-donate). Shared styles come first; page-specific styles are
   scoped with that class further down.

   The "sign" has a fixed design width of 1000px. Sizes inside it use
   "cqw" units (1cqw = 1% of the sign's width), so on any window 1000px
   or wider the sign is exactly the same size. On narrower screens
   (phones, small tablets) it scales down evenly.
   ========================================================================== */

:root {
  --pink-top: #f562a0;
  --pink-bottom: #e8408a;
  --blue-top: #1f4e8c;
  --blue-bottom: #163a6c;
  --navy: #1b3a6b;
  --page-bg: #10284d;
  --gold: #c9a227;
  --gold-light: #f3dc8a;
  --white: #ffffff;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--page-bg);
  color: var(--white);
  overflow-x: hidden;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-weight: 700;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Navigation ---------- */
.site-nav {
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.8rem 1rem;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.site-nav a.donate {
  background: var(--gold);
  color: var(--navy);
}

.site-nav a.donate:hover,
.site-nav a.donate:focus-visible {
  background: var(--gold-light);
}

/* ---------- The "sign" ---------- */
.sign {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  container-type: inline-size;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.frame {
  position: absolute;
  inset: 1.6cqw;
  border: 0.3cqw solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 1;
}

/* ---------- Top (pink) ---------- */
.top {
  position: relative;
  background: linear-gradient(180deg, var(--pink-top), var(--pink-bottom));
  padding: 7cqw 8cqw 9cqw;
}

.top-inner {
  position: relative;
  z-index: 2;
}

/* ---------- Name + candidate photo (Home and About) ---------- */
.page-home .top-inner,
.page-about .top-inner {
  display: flex;
  justify-content: space-between;
  gap: 3cqw;
}

.name-wrap {
  flex: 1;
  min-width: 0;
}

.name {
  font-weight: 700;
  line-height: 0.95;
  text-shadow: 0.3cqw 0.4cqw 0.6cqw rgba(0, 0, 0, 0.3);
}

.name .first {
  display: block;
  font-size: 12.5cqw;
  letter-spacing: 0.01em;
}

.name .last {
  display: block;
  font-size: 8.6cqw;
  letter-spacing: 0.06em;
  margin-left: 5cqw;
  margin-top: 0.15em;
}

.photo {
  flex: none;
  background: var(--white);
  padding: 0.8cqw;
  outline: 0.4cqw solid var(--gold-light);
  box-shadow: 0 0.8cqw 2.2cqw rgba(0, 0, 0, 0.35);
}

.photo img {
  display: block;
  height: 30cqw;
  width: auto;
  aspect-ratio: 245 / 351;
  object-fit: cover;
  border: 0.3cqw solid var(--navy);
}

/* ---------- Ribbon ---------- */
.ribbon-wrap {
  position: relative;
  z-index: 3;
  margin: -5cqw 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* the ribbon tails that run edge to edge */
.ribbon-wrap::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 82%;
  background: linear-gradient(90deg, #e9dfc4 0%, #f7f6f2 6%, #f7f6f2 94%, #e9dfc4 100%);
  border-top: 0.3cqw solid var(--navy);
  border-bottom: 0.3cqw solid var(--navy);
  box-shadow: 0 0 0 0.2cqw var(--gold);
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
}

.ribbon {
  position: relative;
  width: 86%;
  background: linear-gradient(90deg, #f3f3f3 0%, #ffffff 20%, #e6e6e6 50%, #ffffff 75%, #f2f2f2 100%);
  border: 0.4cqw solid var(--navy);
  outline: 0.5cqw solid var(--gold-light);
  box-shadow: 0 0.6cqw 1.8cqw rgba(0, 0, 0, 0.35);
  padding: 1.1cqw;
}

.ribbon-inner {
  position: relative;
  border: 0.15cqw solid var(--gold);
  padding: 2.6cqw 1.5cqw;
  text-align: center;
}

.diamond {
  position: absolute;
  width: 1.4cqw; height: 1.4cqw;
  background: var(--gold);
  transform: rotate(45deg);
}
.d-tl { top: 0.6cqw; left: 0.6cqw; }
.d-tr { top: 0.6cqw; right: 0.6cqw; }
.d-bl { bottom: 0.6cqw; left: 0.6cqw; }
.d-br { bottom: 0.6cqw; right: 0.6cqw; }
.d-top, .d-bot { width: 2cqw; height: 2cqw; left: calc(50% - 1cqw); }
.d-top { top: -2.6cqw; }
.d-bot { bottom: -2.6cqw; }

.tagline {
  font-family: "Times New Roman", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  color: var(--navy);
  font-size: 4.6cqw;
  line-height: 1.35;
}

/* ---------- Bottom (blue) ---------- */
.bottom {
  position: relative;
  background: linear-gradient(180deg, var(--blue-top), var(--blue-bottom));
}

.three-stars {
  text-align: center;
  margin-top: 3cqw;
  font-size: 3.4cqw;
  letter-spacing: 0.3em;
  color: #dfe6f2;
}

/* ---------- Star border ---------- */
.star-row, .star-col {
  position: absolute;
  display: flex;
  justify-content: space-around;
  color: rgba(255, 255, 255, 0.92);
  font-size: 2.2cqw;
  pointer-events: none;
  z-index: 2;
  line-height: 1;
}
.star-row { left: 6%; right: 6%; }
.star-row.top-row { top: 2.6cqw; }
.star-row.bottom-row { bottom: 2.6cqw; }

.star-col { flex-direction: column; }
.star-col.left  { left: 3cqw; }
.star-col.right { right: 3cqw; }

.top .star-col { top: 14%; bottom: 12%; }

/* ---------- Footer ---------- */
footer {
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  font-size: 0.85rem;
  padding: 1rem;
}


/* ==========================================================================
   HOME PAGE
   ========================================================================== */
.page-home .top-inner { align-items: flex-start; }

.page-home .bottom {
  padding: 12cqw 8cqw 9cqw;
  text-align: center;
}
.page-home .bottom .star-col { top: 12%; bottom: 14%; }

.office {
  font-weight: 700;
  font-size: 6cqw;
  letter-spacing: 0.04em;
  text-shadow: 0.2cqw 0.3cqw 0.5cqw rgba(0, 0, 0, 0.3);
}

.ward {
  font-weight: 700;
  font-size: 8.5cqw;
  letter-spacing: 0.08em;
  margin-top: 0.1em;
  text-shadow: 0.2cqw 0.3cqw 0.5cqw rgba(0, 0, 0, 0.3);
}


/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.page-about .top-inner { align-items: center; }

.page-about .eyebrow {
  font-weight: 700;
  font-size: 3.4cqw;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0.2cqw 0.3cqw 0.5cqw rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5cqw;
}

.page-about .name .first { font-size: 10cqw; }
.page-about .name .last { font-size: 7cqw; margin-left: 4cqw; }
.page-about .photo img { height: 24cqw; }

.page-about .bottom { padding: 12cqw 9cqw 10cqw; }
.page-about .bottom .star-col { top: 6%; bottom: 6%; }

.bio {
  position: relative;
  z-index: 2;
  max-width: 44rem;
  margin: 0 auto;
}

.bio h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 4.4cqw, 2.4rem);
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0.2cqw 0.3cqw 0.5cqw rgba(0, 0, 0, 0.3);
}

.divider {
  text-align: center;
  color: var(--gold-light);
  font-size: clamp(1rem, 2.6cqw, 1.4rem);
  letter-spacing: 0.3em;
  margin: 0.6rem 0 1.8rem;
}

.bio p {
  font-size: clamp(1.05rem, 2.1cqw, 1.2rem);
  line-height: 1.7;
  color: #eef2f9;
  margin-bottom: 1.2em;
}

.bio p.lead {
  font-family: "Times New Roman", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.8cqw, 1.55rem);
  line-height: 1.5;
  color: var(--white);
}

.bio .closing {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  border: 2px solid var(--gold);
  outline: 1px solid rgba(243, 220, 138, 0.5);
  outline-offset: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.bio .closing p:last-child { margin-bottom: 0; }
.bio .closing strong { color: var(--gold-light); }

.cta {
  text-align: center;
  margin-top: 2.2rem;
}

.cta a {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: 4px;
  margin: 0.3rem;
  transition: background 0.2s;
}

.cta a.secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.cta a:hover, .cta a:focus-visible { background: var(--gold-light); color: var(--navy); outline: none; }


/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.page-contact .eyebrow {
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.page-contact .top {
  padding: 8cqw 10cqw 11cqw;
  text-align: center;
}

.page-contact .top .eyebrow {
  font-size: 3.2cqw;
  text-shadow: 0.2cqw 0.3cqw 0.5cqw rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5cqw;
}

.page-contact .top h1 {
  font-weight: 700;
  font-size: 8.4cqw;
  line-height: 1.05;
  text-shadow: 0.3cqw 0.4cqw 0.6cqw rgba(0, 0, 0, 0.3);
}

.page-contact .top .intro {
  max-width: 40rem;
  margin: 2.5cqw auto 0;
  font-size: clamp(1rem, 2.2cqw, 1.25rem);
  line-height: 1.55;
}

.page-contact .bottom { padding: 12cqw 8cqw 10cqw; }
.page-contact .bottom .star-col { top: 6%; bottom: 6%; }

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  align-items: start;
}

/* Contact details */
.contact-list {
  display: grid;
  gap: 1.4rem;
}

.contact-list > div {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(243, 220, 138, 0.35);
}
.contact-list > div:last-child { border-bottom: none; }

.page-contact .contact-list .eyebrow {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.contact-list span,
.contact-list address {
  font-size: 1.1rem;
  line-height: 1.5;
  font-style: normal;
  color: #eef2f9;
  word-break: break-word;
}

.contact-list a {
  color: var(--white);
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.contact-list a:hover { color: var(--gold-light); }

/* Form card */
.form-card {
  background: #fbfaf6;
  color: var(--navy);
  border: 3px solid var(--navy);
  outline: 3px solid var(--gold-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 1.8rem;
  display: grid;
  gap: 1.1rem;
}

.form-card h2 {
  font-family: "Times New Roman", Georgia, serif;
  font-style: italic;
  font-size: 1.6rem;
  text-align: center;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--gold);
}

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

.field { display: grid; gap: 0.35rem; }

.field label,
.checks legend {
  font-weight: 700;
  font-size: 0.95rem;
}

.field input,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: #1a1a1a;
  background: var(--white);
  border: 2px solid #c8cfdb;
  border-radius: 4px;
  padding: 0.6rem 0.7rem;
  width: 100%;
}

.field textarea { min-height: 8rem; resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink-bottom);
  box-shadow: 0 0 0 3px rgba(232, 64, 138, 0.2);
}

/* Short box for the "Are you human?" answer */
.field input.human-answer { max-width: 8rem; }

/* Spam trap: hidden from people, bots tend to fill it in */
.hp-field {
  position: absolute;
  left: -9999px;
}

.checks {
  border: none;
  display: grid;
  gap: 0.5rem;
}
.checks legend { margin-bottom: 0.5rem; }
.checks label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.4;
  cursor: pointer;
}
.checks input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  accent-color: var(--pink-bottom);
  flex: none;
}

.submit-btn {
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 4px;
  padding: 0.8rem 1.8rem;
  cursor: pointer;
  transition: background 0.2s;
}
.submit-btn:hover,
.submit-btn:focus-visible { background: var(--gold-light); outline: 2px solid var(--navy); }

.page-contact .notice {
  background: #fff4d6;
  border-left: 4px solid var(--gold);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.page-contact .three-stars {
  position: relative;
  z-index: 2;
  margin-top: 4cqw;
}


/* ==========================================================================
   DONATE PAGE
   ========================================================================== */
.page-donate { line-height: 1.5; }

.page-donate .top {
  padding: 8cqw 9cqw 10cqw;
  text-align: center;
}

.page-donate .eyebrow {
  font-weight: 700;
  font-size: 2.6cqw;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0.2cqw 0.3cqw 0.5cqw rgba(0, 0, 0, 0.3);
}

.page-donate .top h1 {
  font-weight: 700;
  font-size: 9cqw;
  line-height: 1;
  margin-top: 1.5cqw;
  text-shadow: 0.3cqw 0.4cqw 0.6cqw rgba(0, 0, 0, 0.3);
}

.page-donate .top h1 span {
  display: block;
  font-size: 0.62em;
  letter-spacing: 0.06em;
  margin-top: 0.15em;
}

.page-donate .intro {
  max-width: 62cqw;
  margin: 3cqw auto 0;
  font-size: max(1rem, 2.1cqw);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.page-donate .ribbon-inner { padding: 2.2cqw 1.5cqw; }
.page-donate .tagline { font-size: 4.2cqw; }

.page-donate .bottom { padding: 11cqw 9cqw 10cqw; }
.page-donate .bottom .star-col { top: 8%; bottom: 8%; }

.bottom-inner { position: relative; z-index: 2; }

.donate-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4cqw;
  align-items: start;
}

.col { display: grid; gap: 1.5rem; min-width: 0; }

.page-donate .bottom h2 {
  font-weight: 700;
  font-size: max(1.5rem, 3.6cqw);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0.2cqw 0.3cqw 0.5cqw rgba(0, 0, 0, 0.3);
}

.page-donate .bottom h3 {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* Amount buttons – styled like the white ribbon */
.amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.amount {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  background: linear-gradient(90deg, #f3f3f3 0%, #ffffff 30%, #ececec 60%, #ffffff 100%);
  border: 3px solid var(--navy);
  outline: 3px solid var(--gold-light);
  padding: 0.85rem 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s, background 0.15s;
}

.amount:hover,
.amount:focus-visible {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.amount.other {
  background: linear-gradient(180deg, var(--pink-top), var(--pink-bottom));
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.amount.other:hover,
.amount.other:focus-visible {
  background: var(--pink-bottom);
}

.page-donate .notice {
  font-size: 0.95rem;
  color: #dfe6f2;
}

/* Check box and rules – bordered panels with gold diamonds */
.panel {
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.55);
  outline: 1px solid var(--gold);
  outline-offset: 4px;
  padding: 1.4rem 1.5rem;
  background: rgba(0, 0, 0, 0.12);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  background: var(--gold);
  transform: rotate(45deg);
  top: -6px;
}
.panel::before { left: 12px; }
.panel::after  { right: 12px; }

.panel p + p,
.panel p + address,
.panel address + p,
.panel ul + p,
.panel p + ul { margin-top: 0.75rem; }

.panel b { color: var(--gold-light); }

.panel address {
  font-style: normal;
  font-weight: 700;
  border-left: 4px solid var(--pink-top);
  padding-left: 0.9rem;
}

.fine { font-size: 0.92rem; color: #dfe6f2; }

.page-donate .rules h3 { color: var(--white); }

.rules ul {
  padding-left: 1.1rem;
  list-style: none;
}
.rules li { position: relative; margin-top: 0.4rem; }
.rules li::before {
  content: "★";
  position: absolute;
  left: -1.2rem;
  color: var(--gold-light);
  font-size: 0.8em;
  top: 0.15em;
}

.page-donate .three-stars { margin-top: 5cqw; }


/* ==========================================================================
   TABLETS (contact page only)
   ========================================================================== */
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
  .contact-list > div { border-bottom: none; padding-bottom: 0; }
}


/* ==========================================================================
   PHONES
   ========================================================================== */
@media (max-width: 640px) {
  /* All pages */
  .star-col { display: none; }
  .star-row { font-size: 4cqw; }
  .ribbon { width: 92%; }
  .tagline { font-size: 5.4cqw; }
  .three-stars { font-size: 6cqw; }
  .ribbon-wrap::before { clip-path: polygon(0 0, 100% 0, 98% 50%, 100% 100%, 0 100%, 2% 50%); }

  /* Home and About: photo moves above the name */
  .page-home .top,
  .page-about .top { padding-top: 9cqw; }
  .page-home .top-inner,
  .page-about .top-inner { flex-direction: column; }
  .photo { order: -1; align-self: flex-end; padding: 1.2cqw; outline-width: 1cqw; }
  .name-wrap { width: 100%; }

  /* Home */
  .page-home .photo img { height: 44cqw; }
  .page-home .name .first { font-size: 16cqw; }
  .page-home .name .last { font-size: 13cqw; margin-left: 5cqw; }
  .office { font-size: 8cqw; }
  .ward { font-size: 11cqw; }

  /* About */
  .page-about .top-inner { align-items: stretch; }
  .page-about .photo img { height: 40cqw; }
  .page-about .eyebrow { font-size: 5cqw; }
  .page-about .name .first { font-size: 15cqw; }
  .page-about .name .last { font-size: 11.5cqw; margin-left: 5cqw; }
  .page-about .bottom { padding: 16cqw 7cqw 14cqw; }

  /* Contact */
  .page-contact .top { padding: 11cqw 6cqw 14cqw; }
  .page-contact .top .eyebrow { font-size: 4.6cqw; }
  .page-contact .top h1 { font-size: 11cqw; }
  .page-contact .bottom { padding: 16cqw 5cqw 14cqw; }
  .contact-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.3rem; }
  .submit-btn { width: 100%; }

  /* Donate */
  .page-donate .top { padding: 11cqw 7cqw 13cqw; }
  .page-donate .eyebrow { font-size: 4cqw; }
  .page-donate .top h1 { font-size: 13cqw; }
  .page-donate .intro { max-width: none; }
  .page-donate .tagline { font-size: 5.4cqw; }
  .page-donate .bottom { padding: 15cqw 6cqw 13cqw; }
  .donate-grid { grid-template-columns: 1fr; gap: 2rem; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
}
