/* Ray Jackson for Hb City Council — site styles */

:root {
  --navy: #1E386B;
  --navy-dark: #142748;
  --accent: #FA4616;
  --accent-dark: #CE2F04;
  --ink: #1E2430;
  --paper: #FFFFFF;
  --line: #E2E5EA;
  --radius: 8px;
  --max-width: 1100px;
  --font: "Archivo", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: url("HB_Pier.jpg") center / cover no-repeat fixed;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent-dark); }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3, h4 {
  font-family: "Archivo Black", var(--font);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; }
p { margin: 0 0 1em; }

.btn {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85em 1.8em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn-lg { font-size: 1.9rem; }
.btn-accent { background: var(--accent); color: var(--navy-dark); }
.btn-accent:hover { background: var(--accent-dark); color: var(--navy-dark); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--paper); }

/* ---- Navbar (mobile menu is CSS-only, no JS) ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Archivo Black", var(--font);
  color: var(--navy);
  font-size: 1.05rem;
  min-width: 0;
}
.brand img { height: 96px; width: auto; border-radius: 6px; flex-shrink: 0; }
.brand-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nav-links a[aria-current="page"] { color: var(--navy); border-bottom: 3px solid var(--accent); padding-bottom: 4px; }
.nav-links a:hover { color: var(--navy); }
.nav-links .btn { color: var(--navy-dark); }

.header-social {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
}
.header-social a { color: var(--accent); display: flex; }
.header-social a:hover { color: var(--accent-dark); }
.header-social svg { width: 2rem; height: 2rem; fill: currentColor; }

@media (max-width: 780px) {
  .nav-toggle-label { display: inline-block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 0.9rem 1.25rem; }
  .nav-links .btn { margin: 0.9rem 1.25rem; }
  .nav-toggle:checked ~ .nav-links { max-height: 400px; }
  .navbar { position: relative; }
}

/* ---- Page sections ---- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
}
.hero img { border-radius: var(--radius); }
.hero h1 { margin-bottom: 0.2em; }
.eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}
.hero-credentials {
  font-size: 2rem;
  margin: 0 0 1em;
  padding-left: 1.2em;
}
.hero-credentials li { margin-bottom: 0.2em; }
.section { padding: 3rem 0; background: var(--paper); }
.section-alt { background: transparent; }

.hero > div:first-child {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.site-header { background: rgba(255, 255, 255, 0.15); border-bottom-color: transparent; }
body.page-donate .section,
body.page-meetray .section,
body.page-trackrecord .section,
body.page-endorsements .section,
body.page-get-involved .section,
body.page-whats-next .plan-photos-section {
  background: rgba(255, 255, 255, 0.15);
}
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

.trackrecord-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1.5rem;
}
.accomplishments {
  margin: 0;
  padding-left: 1.2em;
}
.accomplishments li { margin-bottom: 1.25rem; }
.trackrecord-photos { display: flex; flex-direction: column; gap: 1.25rem; }
.li-images { display: flex; gap: 0.75rem; }
.li-images img {
  flex: 0 0 calc(50% - 0.375rem);
  width: calc(50% - 0.375rem);
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 700px) {
  .trackrecord-split { grid-template-columns: 1fr; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card img { border-radius: var(--radius); margin-bottom: 1rem; aspect-ratio: 3/2; object-fit: cover; }
.card ul { margin: 0; padding-left: 1.2rem; }
.card li { margin-bottom: 0.5rem; }

.endorsements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.endorsement-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.endorsement-card img {
  border-radius: var(--radius);
  margin: 0 auto 1rem;
  max-width: 500px;
  max-height: 500px;
  width: auto;
  height: auto;
}
.endorsement-card h4 { margin-bottom: 0.2em; }
.endorsement-card p { margin: 0; color: var(--ink); }
@media (max-width: 560px) {
  .endorsements-grid { grid-template-columns: 1fr; }
}

.endorsement-list-card { text-align: left; }
.endorsement-list-card h4 {
  color: var(--navy);
  margin-top: 1.25rem;
}
.endorsement-list-card h4:first-child { margin-top: 0; }
.endorsement-list-card ul {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
}
.endorsement-list-card li { margin-bottom: 0.35rem; }

.bio-text { font-size: 1.25rem; margin-top: 2rem; }

.image-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}
.image-row img {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 700px) {
  .image-row { flex-direction: column; }
  .image-row img { height: auto; }
}

.meetray-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
  margin-top: 2rem;
}
.meetray-photos .image-row:first-child { margin-top: 0; }
.meetray-photos .image-row img { height: 200px; }
@media (max-width: 780px) {
  .meetray-grid { grid-template-columns: 1fr; }
}

.plan-photos-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 1.5rem;
}
.plan-photos-row img {
  flex: 0 1 auto;
  min-width: 0;
  height: 280px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}
.plan-photos-row .bio-text { flex: 1 1 0; min-width: 0; font-size: 1rem; }
.family-photos {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.family-photos img {
  border-radius: var(--radius);
  max-width: 500px;
  max-height: 500px;
  width: auto;
  height: auto;
}

.notice {
  background: #FFF7E0;
  border: 1px dashed var(--accent-dark);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

/* ---- Forms ---- */
form { max-width: 640px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1.5rem; padding: 1rem 1.25rem; }
legend { font-weight: 700; padding: 0 0.4em; }
label { display: block; font-weight: 600; margin: 0 0 0.3em; }
.field { margin-bottom: 1.2rem; }
.checkbox-row { font-weight: 500; display: flex; gap: 0.5em; align-items: flex-start; margin-bottom: 0.5em; }
.checkbox-row input { margin-top: 0.3em; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  padding: 0.65em 0.8em;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}
textarea { resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: #C9D2E4;
  padding: 2.5rem 0;
  margin-top: 2rem;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}
.social-links { display: flex; gap: 1rem; }
.social-links a {
  color: #C9D2E4;
  border: 1px solid #3A5488;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-links a:hover { color: var(--paper); border-color: var(--accent); }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }
.disclosure { font-size: 0.85rem; color: #93A2C4; }

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; }
}

/* ---- Five-point plan ---- */
.plan-hero h1 { color: var(--accent); }
.plan-hero {
  background:
    linear-gradient(180deg, rgba(20, 39, 72, 0.88), rgba(20, 39, 72, 0.94)),
    url("HB_Pier.jpg") center / cover no-repeat;
  color: var(--paper);
}
.plan-eyebrow {
  color: var(--accent);
  font-family: "Archivo Black", var(--font);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.1rem;
  margin: 0 0 0.2em;
}
.plan-title {
  color: var(--paper);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 0.95;
  margin: 0 0 0.4em;
}
.plan-subtitle {
  color: var(--paper);
  font-size: 1.15rem;
  margin: 0 0 1.5rem;
}
.plan-divider {
  height: 3px;
  background: var(--accent);
  margin-bottom: 2rem;
}
.plan-list { display: flex; flex-direction: column; gap: 1rem; }
.plan-item {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}
.plan-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  position: relative;
}
.plan-item summary::-webkit-details-marker { display: none; }
.plan-item summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  font-family: "Archivo Black", var(--font);
  font-size: 1.5rem;
  color: var(--navy);
  flex-shrink: 0;
}
.plan-item[open] summary::after { content: "\2212"; }
.plan-num {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  font-family: "Archivo Black", var(--font);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan-summary-text { padding-right: 2rem; }
.plan-heading {
  display: block;
  font-family: "Archivo Black", var(--font);
  color: var(--navy);
  text-transform: uppercase;
  font-size: 1.1rem;
  line-height: 1.25;
}
.plan-desc {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}
.plan-details {
  padding: 0 1.5rem 1.5rem calc(54px + 1.5rem + 1.25rem);
  color: var(--ink);
}
.plan-details p { margin: 0; }
.plan-footer { text-align: center; margin-top: 2.5rem; }
.plan-footer h3 {
  color: var(--accent);
  font-size: 1.6rem;
  margin: 0 0 0.3em;
}
.plan-footer p {
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin: 0;
}
@media (max-width: 600px) {
  .plan-item summary { padding: 1rem; gap: 0.85rem; }
  .plan-num { width: 42px; height: 42px; font-size: 1.2rem; }
  .plan-details { padding: 0 1rem 1.25rem calc(42px + 0.85rem + 1rem); }
}
