/* ==========================================================================
   Des Delaney for Mayor: stylesheet
   Palette: deep ocean blue, forest green, slate gray, crisp white, warm sand
   ========================================================================== */

:root {
  --color-navy: #0b3d5c;
  --color-navy-dark: #082b40;
  --color-forest: #2f4f3e;
  --color-slate: #4a5560;
  --color-white: #ffffff;
  --color-sand: #f5f2ec;
  --color-border: #dde2e6;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Source Serif 4', Georgia, serif;

  --max-width: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-slate);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--color-navy); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(11, 61, 92, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-navy);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--color-forest); }

.site-nav {
  display: flex;
  gap: 20px;
  flex: 1;
  justify-content: center;
}
.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--color-slate);
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 4px;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--color-forest);
  transition: right 0.25s ease;
}
.site-nav a:hover { color: var(--color-navy); }
.site-nav a:hover::after,
.site-nav a:focus-visible::after { right: 0; }

.header-social {
  display: flex;
  gap: 14px;
}
.header-social a {
  color: var(--color-slate);
  display: inline-flex;
  transition: transform 0.2s ease;
}
.header-social a:hover { color: var(--color-navy); transform: translateY(-2px); }
.social-icon {
  display: block;
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.2s ease;
}
.header-social a:hover .social-icon,
.hero-social a:hover .social-icon,
.connect-social a:hover .social-icon {
  transform: scale(1.15);
}

/* Hero */
.hero {
  position: relative;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 96px 0 88px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  opacity: 0.22;
  z-index: 0;
  will-change: transform;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: 48px;
  align-items: center;
}
.hero-text { max-width: 640px; }
.hero h1 {
  color: var(--color-white);
  font-size: 2.75rem;
  margin-bottom: 0.5em;
}
.hero-sub {
  font-size: 1.15rem;
  color: #dce6ee;
  max-width: 640px;
}
.hero-sign {
  display: flex;
  justify-content: center;
}
.hero-sign img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transform: rotate(-1.5deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-sign img:hover,
.hero-sign img:focus-visible {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
}
.hero-social {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}
.hero-social a {
  color: #dce6ee;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-social a { transition: color 0.2s ease; }
.hero-social a:hover { color: var(--color-white); text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-primary {
  background: var(--color-forest);
  color: var(--color-white);
}
.btn-primary:hover {
  background: #24402f;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(47, 79, 62, 0.25);
}
.btn-block { width: 100%; text-align: center; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--color-sand); }
.section-heading { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-heading p { color: var(--color-slate); font-size: 1.05rem; }

/* Meet Des */
.meet-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}
.meet-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.meet-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 32px rgba(11, 61, 92, 0.15);
}
.meet-copy blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 3px solid var(--color-forest);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-navy);
  background: var(--color-sand);
}
.check-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  padding-left: 28px;
  position: relative;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-forest);
}

/* Plan grid */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.plan-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(11, 61, 92, 0.12);
  border-color: var(--color-forest);
}
.plan-icon {
  color: var(--color-navy);
  margin-bottom: 16px;
}
.plan-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
}
.plan-card li { margin-bottom: 8px; }

/* Source documents */
.sources-panel {
  margin-top: 48px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}
.sources-panel h3 { margin-bottom: 0.3em; }
.sources-panel > p {
  max-width: 720px;
  color: var(--color-slate);
}
.sources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
}
.sources-group h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-forest);
  margin: 0 0 10px;
}
.sources-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sources-group li { margin-bottom: 8px; }
.sources-group a {
  color: var(--color-navy);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
}
.sources-group a:hover { border-bottom-color: var(--color-navy); }

/* How Budgets Work */
.budget-block {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}
.budget-block:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.budget-block h3 { margin-bottom: 8px; }
.budget-block > p { max-width: 720px; color: var(--color-slate); }
.budget-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
}
.budget-cols h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-forest);
  margin: 0 0 10px;
}
.budget-cols ul {
  margin: 0;
  padding-left: 18px;
}
.budget-cols li { margin-bottom: 8px; }
.budget-callout {
  margin: 24px 0 0;
  padding: 16px 24px;
  border-left: 3px solid var(--color-forest);
  background: var(--color-sand);
  color: var(--color-navy);
  max-width: none !important;
}
.budget-phases {
  margin: 20px 0 0;
  padding-left: 20px;
}
.budget-phases li { margin-bottom: 14px; }

/* Connect */
.section-connect { background: var(--color-white); }
.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.connect-copy h2 { margin-bottom: 0.4em; }
.connect-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}
.connect-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 500;
}
.connect-social a:hover { text-decoration: underline; }

.connect-form {
  background: var(--color-sand);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 6px;
  font-size: 0.92rem;
}
.form-row .optional { font-weight: 400; color: var(--color-slate); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-white);
  color: var(--color-slate);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-navy);
  outline-offset: 1px;
}
.form-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--color-forest);
  font-weight: 600;
}
.form-authorization {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--color-slate);
}

/* Donate */
.donate-panel {
  max-width: 720px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}
.compliance-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--color-slate);
  font-size: 0.92rem;
}
.compliance-list li { margin-bottom: 10px; }
.donate-authorization {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-slate);
}

/* News */
.key-dates {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-forest);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 560px;
  margin-bottom: 24px;
}
.key-dates h3 { margin-bottom: 0.5em; }
.key-dates ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.key-dates li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--color-border);
  transition: padding-left 0.2s ease;
}
.key-dates li:first-child { border-top: none; }
.key-dates li:hover { padding-left: 6px; }
.key-date {
  flex: 0 0 auto;
  min-width: 108px;
  font-weight: 600;
  color: var(--color-navy);
  transition: color 0.2s ease;
}
.key-dates li:hover .key-date { color: var(--color-forest); }
.key-dates > p { margin: 16px 0 0; }
.key-dates > p a { color: var(--color-navy); }
.news-placeholder {
  background: var(--color-sand);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 720px;
}
.news-placeholder a { color: var(--color-navy); }

/* Footer */
.site-footer {
  background: var(--color-navy-dark);
  color: #b9c7d1;
  padding: 28px 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social { display: flex; gap: 18px; }
.footer-social a { color: #b9c7d1; text-decoration: none; }
.footer-social a:hover { color: var(--color-white); }

/* Responsive */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-sign { order: -1; }
  .hero-sign img { max-width: 260px; }
  .meet-grid { grid-template-columns: 1fr; }
  .meet-photo { max-width: 320px; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .sources-grid { grid-template-columns: 1fr; gap: 24px; }
  .budget-cols { grid-template-columns: 1fr; gap: 24px; }
  .connect-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
}

@media (max-width: 560px) {
  .plan-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-bg { transform: none !important; }
}
