/* ==========================================================
   Diana Jackson for Hillsboro City Council — dianaforhillsboro.com
   Palette drawn from campaign logo:
   Pink/Magenta  #dd6bc0   |   Deep Purple  #311360
   ========================================================== */

:root {
  --pink: #dd6bc0;
  --pink-dark: #c14da5;
  --pink-soft: #fdf1fa;
  --purple: #311360;
  --purple-dark: #241047;
  --purple-deep: #190831;
  --purple-soft: #f4f0fb;
  --ink: #2b2137;
  --white: #ffffff;
  --max-w: 1120px;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(49, 19, 96, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Fira Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: var(--pink-dark); }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-weight: 800;
  font-style: italic;          /* echoes the logo's Fira Sans UltraItalic */
  line-height: 1.15;
  color: var(--purple);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--pink-dark);
  margin-bottom: 0.5rem;
}

.lead { font-size: 1.15rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-style: italic;
  text-decoration: none;
  font-size: 1.05rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-pink { background: var(--pink); color: var(--white); }
.btn-pink:hover { background: var(--pink-dark); }

.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: var(--purple-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--purple-deep);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 14px rgba(36, 16, 71, 0.35);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  transition: padding 0.25s ease;
}

/* Home page: big logo at the top of the page, shrinks into the bar on scroll */
.site-header.home:not(.scrolled) .nav-bar { padding: 20px 24px; }
.site-header.home:not(.scrolled) .brand img { height: 120px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img { height: 64px; width: auto; display: block; transition: height 0.25s ease; }

.brand-text {
  color: var(--white);
  font-weight: 800;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand-text small {
  display: block;
  font-weight: 400;
  font-style: normal;
  font-size: 0.72rem;
  color: #d9c9f5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: #efe6ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover { background: rgba(221, 107, 192, 0.25); color: var(--white); }

.nav-links a.active { color: var(--pink); }

.nav-links a.nav-donate {
  background: var(--pink);
  color: var(--white);
  border-radius: 999px;
  padding: 9px 22px;
  font-style: italic;
  font-weight: 700;
  margin-left: 6px;
}

.nav-links a.nav-donate:hover { background: var(--pink-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--purple-deep);   /* same color as the nav bar */
  color: var(--white);
  overflow: hidden;
  min-height: 540px;
}

/* Photo fills the right side of the hero and fades into the purple on its left.
   Its right edge stops at the page's content boundary (max-width 1120 + 24px gutter),
   aligning with the nav and section content instead of the viewport edge. */
.hero-photo {
  position: absolute;
  top: 0;
  right: max(24px, calc(50% - 536px));
  bottom: 0;
  width: 46%;
  max-width: 560px;   /* stop growing on wide screens so her face never nears the text */
  z-index: 1;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    var(--purple-deep) 0%,
    rgba(25, 8, 49, 0.55) 30%,
    rgba(25, 8, 49, 0) 64%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 92px 24px 104px;
}

.hero-copy { max-width: 34rem; }

.hero h1 { color: var(--white); margin: 0.4rem 0 1rem; }

.hero .eyebrow { color: var(--pink); }

.hero p.lead { color: #e9defc; max-width: 34rem; }

.hero-ctas { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */

section { padding: 72px 0; }

.section-soft { background: var(--pink-soft); }
.section-purple-soft { background: var(--purple-soft); }

.section-head { max-width: 46rem; margin-bottom: 2.4rem; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* top tab: rounded at the top corners, straight along its bottom edge */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--pink);
  border-radius: var(--radius) var(--radius) 0 0;
}

.card h3 { margin-bottom: 0.6rem; }

.card p { flex: 1; }

.card .more {
  margin-top: 1rem;
  font-weight: 700;
  font-style: italic;
  text-decoration: none;
  color: var(--pink-dark);
}

.card .more:hover { text-decoration: underline; }

/* ---------- Split (image + text) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split.reverse .split-media { order: 2; }

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

.framed {
  position: relative;
}

.framed::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 3px solid var(--pink);
  border-radius: var(--radius);
  z-index: -1;
}

/* ---------- Photo strip ---------- */

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.photo-strip figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.photo-strip img { height: 260px; width: 100%; object-fit: cover; }

.photo-strip figcaption {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--purple);
  font-weight: 600;
}

/* ---------- Platform page ---------- */

.issue {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 38px 34px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}

/* same pink top tab as the home-page cards */
.issue::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--pink);
  border-radius: var(--radius) var(--radius) 0 0;
}

.issue h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }

.issue p + p { margin-top: 0.8rem; }

/* ---------- Banner CTA ---------- */

.banner {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: var(--white);
  text-align: center;
  border-radius: calc(var(--radius) + 6px);
  padding: 56px 32px;
  box-shadow: var(--shadow);
}

.banner h2 { color: var(--white); margin-bottom: 0.7rem; }

.banner p { max-width: 38rem; margin: 0 auto 1.6rem; }

/* ---------- Coming soon (endorsements / events / volunteer) ---------- */

.endorsers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

/* Organizations: same card, logo-friendly photo box */
.org-card .endorser-photo {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 1.1rem;
}
.org-card .endorser-photo img { object-fit: contain; object-position: center; }

.endorser-card {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}

.endorser-card.has-quote { cursor: pointer; }
.endorser-card.has-quote:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.endorser-photo {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.endorser-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.endorser-photo::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 3px solid var(--pink);
  border-radius: var(--radius);
  z-index: -1;
}

.endorser-initials {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  color: rgba(0,0,0,0.22);
  text-transform: uppercase;
  user-select: none;
}

.endorser-info {
  padding: 0.7rem 0.85rem 0.85rem;
}
.endorser-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 2px;
  line-height: 1.2;
}
.endorser-title {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 1px;
}
.endorser-affiliation {
  font-size: 0.7rem;
  color: rgba(0,0,0,0.5);
  line-height: 1.4;
}

/* Quote overlay, fades in on hover or .active */
.endorser-quote {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  color: rgba(255,255,255,0.88);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.endorser-card.has-quote:hover .endorser-quote,
.endorser-card.has-quote.active .endorser-quote {
  opacity: 1;
  pointer-events: auto;
}
.endorser-quote blockquote {
  font-size: 0.84rem;
  line-height: 1.7;
  font-style: italic;
}


.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .endorsers-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .tap-hint { display: block; }
}
@media (max-width: 960px) { .people-page-hero { padding-top: 110px; } }
@media (max-width: 600px) {
  .people-page-hero { padding-top: 90px; }
  .endorsers-grid { grid-template-columns: repeat(2, 1fr); }
  .people-group { margin-bottom: 2.5rem; }
}

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

.placeholder-card {
  border: 2px dashed #d8c7ef;
  border-radius: var(--radius);
  background: var(--white);
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a76ad;
  font-weight: 600;
  font-style: italic;
  font-size: 1.1rem;
}

.notice {
  background: var(--white);
  border-left: 6px solid var(--pink);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 26px 30px;
  max-width: 42rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--purple-deep);
  color: #cfc0ea;
  padding: 54px 0 34px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.site-footer img.footer-logo { height: 120px; width: auto; margin-bottom: 14px; }

.site-footer h4 {
  color: var(--white);
  font-style: italic;
  font-weight: 800;
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.site-footer ul { list-style: none; }

.site-footer li { margin-bottom: 8px; }

.site-footer a { color: #e3d5fb; text-decoration: none; }

.site-footer a:hover { color: var(--pink); }

.disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 40px;
  padding-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: #b3a1d6;
}

.disclaimer strong { color: #e3d5fb; }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-dark) 75%);
  color: var(--white);
  padding: 58px 0;
}

.page-hero h1 { color: var(--white); }

.page-hero p { color: #e9defc; max-width: 40rem; margin-top: 0.6rem; font-size: 1.1rem; }

.page-hero .eyebrow { color: var(--pink); }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .photo-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .framed::after { display: none; }

  /* Hero: full-bleed photo across the top, copy below */
  .hero { min-height: 0; padding-top: 0; }
  .hero-photo {
    position: static;
    width: 100%;
    height: auto;
  }
  .hero-photo img {
    height: 54vh;
    object-position: center 18%;
  }
  .hero-photo::after { display: none; }
  .hero-inner { padding: 30px 24px 44px; }
  .hero-copy { max-width: none; }

  /* Nav: keep side padding, scale the logo down for phones */
  .nav-bar { padding: 10px 20px; }
  .brand img { height: 50px; }
  .site-header.home:not(.scrolled) .nav-bar { padding: 12px 20px; }
  .site-header.home:not(.scrolled) .brand img { height: 72px; }

  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--purple-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    display: none;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open { display: flex; }

  .nav-links a { padding: 12px; }

  .nav-links a.nav-donate { margin: 8px 0 0; text-align: center; }

  .issue { grid-template-columns: 1fr; }
}
