/* ==========================================================================
   Kimberley Williams for Santa Clara City Council, District 2
   Shared stylesheet — plain CSS, no build step.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --navy: #1B3A5C;
  --navy-deep: #12293f;
  --teal: #2F7A73;
  --teal-dark: #26645e;
  --teal-light: #e4f0ef;
  --ink: #22303c;
  --muted: #5a6b78;
  --white: #ffffff;
  --bg-gradient: linear-gradient(180deg, #eaf1f6 0%, #f6f9fb 55%, #ffffff 100%);
  --line: #dde5ec;

  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --maxw: 1140px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(27, 58, 92, 0.10);
  --shadow-sm: 0 2px 8px rgba(27, 58, 92, 0.08);
}

/* ---- Reset / base ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p { margin: 0 0 1rem; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  text-align: center;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--white);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}
.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { background: #eef3f7; color: var(--navy); text-decoration: none; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav__brand { display: flex; align-items: center; flex: 0 0 auto; }
.nav__brand img { height: 58px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0 1.5rem 0 auto;   /* push links to the right, next to Donate */
  padding: 0;
}
.nav__links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--navy);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--teal); text-decoration: none; }
.nav__links a[aria-current="page"] {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.nav__actions { display: flex; align-items: center; gap: 0.75rem; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__links a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav__brand img { height: 48px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--bg-gradient);
  overflow: hidden;
}
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem 1.25rem 4.5rem;
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero--home .hero__inner { margin-left: max(1.25rem, calc((100% - var(--maxw)) / 2)); max-width: 760px; }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}
.hero h1 .teal { color: var(--teal); display: block; }
.hero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}
/* Skyline illustration layered into the home hero */
.hero--home {
  background:
    var(--bg-gradient);
}
.hero--home .hero__art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(60%, 780px);
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
          mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
@media (max-width: 780px) {
  .hero--home .hero__art { position: relative; width: 100%; opacity: 1; -webkit-mask-image: none; mask-image: none; margin-top: 1rem; }
  .hero__inner { padding-top: 2.75rem; padding-bottom: 1rem; }
}

/* Compact hero for interior pages */
.page-hero {
  background: var(--bg-gradient);
  border-bottom: 1px solid var(--line);
}
.page-hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin-bottom: 0.5rem; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 46rem; margin: 0; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 3.5rem 0; }
.section--tight { padding: 2.5rem 0; }
.section__head { text-align: center; max-width: 44rem; margin: 0 auto 2.5rem; }
.section__head h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Navy feature band — reusable 3-column icon pattern
   ========================================================================== */
.feature-band {
  background: var(--navy);
  color: #dbe6f0;
}
.feature-band .container { padding-top: 3.25rem; padding-bottom: 3.25rem; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.feature {
  text-align: left;
}
.feature__icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature__icon svg { width: 34px; height: 34px; stroke: #fff; fill: none; }
.feature h3 {
  color: #fff;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.feature p { color: #b9cadb; margin: 0; font-size: 0.98rem; }
.feature--detailed p { color: #c6d5e4; margin-bottom: 0.6rem; }
.feature--detailed ul { color: #b9cadb; padding-left: 1.1rem; margin: 0; font-size: 0.96rem; }
.feature--detailed li { margin-bottom: 0.35rem; }

@media (max-width: 820px) {
  .feature-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* Divider between the 3 feature columns on wide screens */
@media (min-width: 821px) {
  .feature-grid .feature + .feature { border-left: 1px solid rgba(255,255,255,0.12); padding-left: 2.5rem; }
}

/* ==========================================================================
   About page
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}
.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}
.about-photo figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { max-width: 320px; }
}

.placeholder-note {
  border: 1px dashed var(--teal);
  background: var(--teal-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: var(--teal-dark);
  font-size: 0.98rem;
}
.placeholder-note strong { color: var(--navy); }

.map-figure { margin: 2.5rem 0 0; }
.map-figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.map-figure figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 0.5rem; }
.map-placeholder {
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #f2f6f9;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}

/* ==========================================================================
   Cards (endorsements / news / generic)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.card .card__meta { color: var(--teal); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin: 0; }

/* News list */
.news-list { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.news-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.news-item:first-child { padding-top: 0; }
.news-item time { color: var(--teal); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
.news-item h3 { margin: 0.35rem 0 0.4rem; font-size: 1.25rem; }
.news-item p { color: var(--muted); margin: 0; }

/* ==========================================================================
   Contact / Get Involved
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block { }
.contact-line { margin-bottom: 1rem; }
.contact-line .label {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-line a { font-size: 1.15rem; font-weight: 600; }
.contact-line .pending { color: var(--muted); font-style: italic; }

/* Embed placeholder box (NationBuilder forms) */
.embed-placeholder {
  border: 2px dashed var(--teal);
  background: var(--teal-light);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--teal-dark);
}
.embed-placeholder h3 { color: var(--navy); }
.embed-placeholder code {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  font-size: 0.85rem;
  color: var(--navy);
}

/* Donate call-to-action */
.donate-cta {
  background: var(--navy);
  color: #dbe6f0;
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}
.donate-cta h2 { color: #fff; }
.donate-cta p { color: #b9cadb; max-width: 40rem; margin: 0 auto 1.5rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: #aebdcd;
  margin-top: 4rem;
}
/* Skyline motif divider strip at the top of the footer */
.footer-divider {
  height: 6px;
  background: linear-gradient(90deg, var(--teal) 0, var(--teal) 33%, #3f8f87 33%, #3f8f87 66%, var(--navy) 66%);
}
.site-footer .container { padding-top: 3rem; padding-bottom: 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.site-footer a { color: #cdd9e6; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 72px; width: auto; margin-bottom: 1rem; opacity: 0.95; }
.footer-brand p { color: #8ea1b4; font-size: 0.92rem; max-width: 22rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 0.6rem; }
.footer-pending { color: #7f93a8; font-style: italic; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--teal); }
.footer-social svg { width: 18px; height: 18px; fill: #cdd9e6; }
.footer-social a:hover svg { fill: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #7f93a8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   404
   ========================================================================== */
.notfound {
  text-align: center;
  padding: 5rem 1.25rem;
  max-width: 640px;
  margin: 0 auto;
}
.notfound h1 { font-size: clamp(2.5rem, 8vw, 4rem); }

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
