/* Don W for Mayor — campaign site styles */

:root {
  --navy: #0b2545;
  --navy-dark: #071a33;
  --old-glory-red: #b22234;
  --old-glory-red-dark: #8f1c2a;
  --gold: #c9a227;
  --cream: #f8f6f0;
  --ink: #1c2530;
  --nav-height: 63px;
}

html {
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: #ffffff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5,
.brand-mark {
  font-family: 'Playfair Display', Georgia, serif;
}

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

/* ---------- Intro screen (hero + welcome note fill the first viewport, below the fixed nav) ---------- */
.intro-screen {
  box-sizing: border-box;
  padding-top: var(--nav-height);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--navy);
}

.intro-screen .hero {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.intro-screen .hero .container {
  width: 100%;
}

.intro-screen .welcome-note {
  flex: 0 0 auto;
}

/* ---------- Nav ---------- */
.campaign-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: var(--navy);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-mark {
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.campaign-nav .nav-link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.campaign-nav .nav-link:hover,
.campaign-nav .nav-link:focus {
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-image: url('../assets/flag.png');
  background-size: cover;
  background-position: center 65%;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 26, 51, 0.88) 0%, rgba(11, 37, 69, 0.82) 55%, rgba(11, 37, 69, 0.94) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero h1 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.92);
}

.btn-hero-primary {
  background-color: var(--old-glory-red);
  border-color: var(--old-glory-red);
  color: #fff;
  font-weight: 600;
}

.btn-hero-primary:hover {
  background-color: var(--old-glory-red-dark);
  border-color: var(--old-glory-red-dark);
  color: #fff;
}

.btn-hero-secondary {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 600;
}

.btn-hero-secondary:hover {
  background-color: #fff;
  color: var(--navy);
}

/* ---------- Welcome / closing note ---------- */
.welcome-note {
  background-color: var(--cream);
  border-top: 1px solid rgba(11, 37, 69, 0.08);
  border-bottom: 1px solid rgba(11, 37, 69, 0.08);
}

.welcome-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.6;
}

.welcome-signature {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--old-glory-red);
  margin-top: 0.5rem;
}

/* ---------- Section headings ---------- */
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--old-glory-red);
  margin-bottom: 0.5rem;
}

.section-title {
  font-weight: 700;
  color: var(--navy);
}

.section-divider {
  width: 80px;
  height: 3px;
  margin: 3rem auto;
  background-color: var(--gold);
  opacity: 1;
  border: 0;
}

/* ---------- About ---------- */
.candidate-photo {
  width: 280px;
  height: 280px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 20%;
  border: 6px solid var(--cream);
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

/* ---------- Platform ---------- */
.platform-section {
  background-color: var(--cream);
}

.platform-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 16px rgba(11, 37, 69, 0.08);
  border-top: 4px solid var(--old-glory-red);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(11, 37, 69, 0.14);
}

.platform-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.platform-card h5 {
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.platform-card p {
  margin-bottom: 0;
  color: #495363;
}

/* ---------- Community / charities ---------- */
.charity-panel {
  background-color: var(--navy);
  color: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
}

.charity-panel h5 {
  color: var(--gold);
  font-weight: 700;
}

.charity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1rem;
}

.charity-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  min-width: 0;
  overflow-wrap: break-word;
}

.charity-list li::before {
  content: '\2605';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.75rem;
  top: 0.2rem;
}

/* ---------- Volunteer CTA ---------- */
.volunteer-section {
  background: linear-gradient(135deg, var(--old-glory-red) 0%, var(--old-glory-red-dark) 100%);
}

.volunteer-section .btn-hero-primary {
  background-color: var(--navy);
  border-color: var(--navy);
}

.volunteer-section .btn-hero-primary:hover {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
}

.volunteer-section a {
  color: #fff;
  text-decoration: underline;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.volunteer-section .contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.contact-chip i {
  color: var(--gold);
  font-size: 1.1rem;
}

.volunteer-section .contact-chip:hover {
  color: var(--gold);
}

.volunteer-section .social-icon {
  background-color: var(--navy);
  text-decoration: none;
}

.volunteer-section .social-icon:hover {
  background-color: var(--navy-dark);
}

/* ---------- Social links ---------- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--navy);
  color: #fff;
  font-size: 1.25rem;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.social-icon:hover {
  background-color: var(--old-glory-red);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
footer {
  background-color: var(--navy-dark);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 576px) {
  .charity-list {
    grid-template-columns: 1fr;
  }

  .welcome-text {
    font-size: 1.1rem;
  }
}
