/* One Tinley Park — site styles
 *
 * Contents
 *   1. Colors & fonts      (change the look here)
 *   2. Base                (page, text, links, images, container)
 *   3. Buttons
 *   4. Header & menu
 *   5. Footer
 *   6. Shared pieces       (sections, cards, photos, banners)
 *   7. Home page           (hero, awards band, team)
 *   8. Candidate & team pages
 *   9. Southland's Best page
 *  10. Donate page
 *  11. Forms               (lawn sign, volunteer)
 *  12. Press page
 *  13. Print               (keep last; also builds the press-kit PDFs)
 *
 * Rules of thumb: use the color names below instead of typing new colors,
 * and add new styles to the section they belong to.
 */

/* ---------- 1. Colors & fonts ---------- */
:root {
  --navy: #0c223e;          /* main brand color (from the yard sign) */
  --navy-dark: #071526;     /* footer */
  --sign-blue: #acc7e8;     /* pale blue from the yard sign */
  --sign-blue-hover: #c6daf1;
  --blue: #4b9cd3;          /* accent: focus rings, menu button */
  --pale: #e8f2fa;          /* light section background */
  --pale-stripe: #dbeaf6;
  --link: #1f6fa8;
  --label: #2f6aa8;         /* small uppercase labels */
  --footer-text: #c9d6e6;
  --white: #ffffff;
  --gray: #5b6573;
  --border: #d5e3ef;
  --ok: #1f7a4d;
  --error: #b42318;

  --radius: 10px;
  --max: 1100px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --serif: "Times New Roman", Times, Georgia, serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .candidate-card, .candidate-card:hover { transition: none; transform: none; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

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

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }

/* "Skip to content" link: hidden until a keyboard user tabs to it */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid var(--sign-blue);
  background: var(--sign-blue);
  color: var(--navy) !important;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--sign-blue-hover); border-color: var(--sign-blue-hover); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white) !important; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.btn-small { padding: 6px 18px; }

/* ---------- 4. Header & menu ---------- */
#site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 64px;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  font-variant: small-caps;
  letter-spacing: 0.03em;
}
.brand:hover { color: var(--sign-blue); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--sign-blue); }

/* "Candidates" / "Our Team" dropdowns */
.nav-group { position: relative; }
.nav-group-label {
  font: inherit;
  font-weight: 600;
  color: var(--white);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.nav-group-label:hover { color: var(--sign-blue); }
.nav-group-label::after { content: " ▾"; font-size: 0.8em; }
.nav-group-items {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 200px;
  padding: 8px 0;
  background: var(--navy);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.nav-group:hover .nav-group-items,
.nav-group:focus-within .nav-group-items,
.nav-group.open .nav-group-items { display: block; }
.nav-group-items a { display: block; padding: 8px 14px; }

/* "Menu" button, shown on phones only */
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--blue);
  border-radius: 6px;
  padding: 6px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--navy);
  }
  .site-nav.open { display: flex; }
  .site-nav > a, .nav-group-label { padding: 10px 0; display: block; text-align: left; }
  .nav-group-label { pointer-events: none; color: var(--sign-blue); }
  .nav-group-label::after { content: none; }
  /* Put the actions (Volunteer, Lawn Sign, Donate) above the long name lists on phones. */
  .nav-group { order: 5; }
  .nav-group-items {
    display: block;
    position: static;
    box-shadow: none;
    padding: 0 0 0 14px;
  }
  .site-nav .btn { margin-top: 10px; text-align: center; }
}

/* ---------- 5. Footer ---------- */
#site-footer {
  background: var(--navy-dark);
  color: var(--footer-text);
  padding: 36px 0 20px;
  font-size: 0.95rem;
}
#site-footer a { color: var(--sign-blue); }
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.disclaimer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- 6. Shared pieces ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--pale); }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title p { color: var(--gray); margin: 0; }

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(19, 41, 75, 0.06);
}

.note { color: var(--gray); font-size: 0.95rem; }

/* Small uppercase line above a heading */
.eyebrow {
  color: var(--sign-blue);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Navy banner at the top of inner pages */
.page-hero {
  background: var(--navy);
  border-bottom: 10px solid var(--sign-blue);
  color: var(--white);
  padding: 48px 0;
}
.page-hero p { margin: 0; font-size: 1.15rem; max-width: 720px; }

/* Clickable person cards (candidates and team) */
.candidate-card {
  text-decoration: none;
  color: var(--navy);
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.candidate-card:hover {
  color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(19, 41, 75, 0.14);
}
.candidate-card p { color: var(--gray); margin: 0 0 12px; }
.card-link { color: var(--link); font-weight: 700; }
.candidate-card p.card-hook { color: var(--navy); font-size: 0.9rem; font-weight: 600; margin-top: -8px; }

/* Headshots */
.candidate-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border-bottom: 6px solid var(--sign-blue);
  margin-bottom: 18px;
}
.candidate-card .candidate-photo { object-position: center 20%; }
.candidate-photo.portrait { aspect-ratio: 2 / 3; object-position: center top; }

/* Shown only if a person has no photo yet */
.photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--pale), var(--pale) 12px, var(--pale-stripe) 12px, var(--pale-stripe) 24px);
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 18px;
}

/* Navy call-to-action strip */
.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}
.cta-band p { max-width: 640px; margin: 0 auto 24px; opacity: 0.9; }

/* ---------- 7. Home page ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-sign {
  width: 100%;
  max-width: 460px;
  justify-self: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.hero .eyebrow { opacity: 0.9; }
.hero h1 { font-variant: small-caps; }
.h1-sub {
  display: block;
  font-size: 0.5em;
  font-variant: normal;
  color: var(--sign-blue);
  margin-top: 6px;
}
.hero p.lead { font-size: 1.25rem; max-width: 680px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.countdown {
  display: inline-block;
  margin-top: 30px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(172, 199, 232, 0.15);
  font-weight: 600;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sign { max-width: 360px; }
  .hero-actions { justify-content: center; }
}

/* Southland's Best band (also the top of the Southland's Best page) */
.awards-band {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
}
.awards-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: center;
}
.awards-badge { width: 100%; max-width: 240px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4)); }
.awards-band p { max-width: 640px; opacity: 0.9; }
.awards-more { margin-top: 24px; }
.awards-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.awards-list li {
  border: 1px solid rgba(172, 199, 232, 0.35);
  border-top: 4px solid var(--sign-blue);
  border-radius: 8px;
  padding: 12px 14px;
}
.awards-list strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.awards-list span { font-size: 0.9rem; color: var(--sign-blue); }
@media (max-width: 760px) {
  .awards-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .awards-badge { max-width: 180px; margin: 0 auto; }
  .awards-band p { margin: 0 auto; }
}

/* "The Rest of Our Team" */
.team-photo {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 36px;
  border-radius: var(--radius);
  border-bottom: 6px solid var(--sign-blue);
}
.grid-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}
.grid-team .candidate-card { padding: 16px; }
.grid-team h3 { font-size: 1.1rem; }

/* ---------- 8. Candidate & team pages ---------- */
.candidate-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}
.candidate-office { color: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.priorities { padding-left: 1.2em; }
.priorities li { margin-bottom: 8px; }
.team-note { color: var(--gray); font-style: italic; margin: 0 0 12px; }
.vote-card { margin-top: 32px; border-top: 6px solid var(--sign-blue); }
.vote-card h2 { font-size: 1.5rem; }
.vote-alt { margin-left: 12px; font-weight: 600; }
.accomplishments-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.accomplishments-head img { width: 96px; height: auto; }

/* "Candidate Summary" box */
.summary-card h2 { font-size: 1.3rem; }
.summary-card dl { margin: 0; font-size: 0.95rem; }
.summary-card dt {
  font-weight: 700;
  color: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  margin-top: 10px;
}
.summary-card dd { margin: 2px 0 0; }

@media (max-width: 760px) {
  .candidate-layout { grid-template-columns: 1fr; }
  .candidate-layout .photo-placeholder { max-width: 320px; margin: 0 auto 18px; }
  .candidate-layout aside .candidate-photo { max-width: 320px; margin: 0 auto 18px; }
}

/* ---------- 9. Southland's Best page ---------- */
.award-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 20px;
}
.award-stats strong { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; }
.award-stats span { color: var(--sign-blue); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 760px) { .award-stats { justify-content: center; } }

.place-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 40px 0 18px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--sign-blue);
}
.place-heading:first-child { margin-top: 0; }
.place-heading span { font-family: var(--font); font-size: 0.95rem; font-weight: 600; color: var(--gray); }

.winners-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.winners-grid li {
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--white);
}
.place-second + .winners-grid li { border-left-color: var(--blue); }
.place-third + .winners-grid li { border-left-color: var(--sign-blue); }
.winner-cat { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--label); }
.winners-grid strong { display: block; font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; }
.winner-addr { font-size: 0.85rem; color: var(--gray); }

/* ---------- 10. Donate page ---------- */
.address-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  border-top: 6px solid var(--sign-blue);
}
.address-card address {
  font-style: normal;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 12px 0 18px;
}

/* ---------- 11. Forms ---------- */
.form-card { max-width: 680px; margin: 0 auto; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

label { display: block; font-weight: 600; margin-bottom: 14px; }
label span.optional { font-weight: 400; color: var(--gray); }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--gray);
  border-radius: 8px;
  font: inherit;
  color: var(--navy);
  background: var(--white);
}
input:focus, textarea:focus, select:focus {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
textarea { min-height: 110px; resize: vertical; }

fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px 4px;
  margin: 0 0 18px;
}
legend { font-weight: 600; padding: 0 6px; }
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4px 16px;
}
.checkbox-grid label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }

.form-status { margin-top: 16px; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--error); }

/* Yard sign above the lawn sign form */
.sign-preview {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 32px;
  box-shadow: 0 8px 24px rgba(12, 34, 62, 0.25);
}

/* ---------- 12. Press page ---------- */
.press-stack { display: grid; gap: 20px; }
.kit-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 6px solid var(--sign-blue);
}
.kit-card h2 { margin-bottom: 4px; }
.kit-card p { margin: 0; color: var(--gray); }
.press-candidate { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
.press-candidate .candidate-photo { margin: 0; }
.press-candidate h3 { margin-bottom: 2px; }
.press-candidate .candidate-office { font-size: 0.8rem; margin-bottom: 8px; }
.press-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }
.logo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.logo-tiles .card { text-align: center; }
.logo-tiles img { height: 180px; width: auto; margin: 0 auto 12px; }
@media (max-width: 560px) {
  .press-candidate { grid-template-columns: 1fr; }
  .press-candidate .candidate-photo { max-width: 200px; }
}

/* ---------- 13. Print (keep last; also builds the press-kit PDFs) ---------- */
.print-masthead { display: none; }

@media print {
  @page {
    size: letter;
    margin: 0.4in 0.5in 0.6in;
    /* Page-margin boxes can't use the color names above, so the gray is typed out. */
    @bottom-center { content: "Paid for by One Tinley Park."; font: 8pt "Segoe UI", system-ui, sans-serif; color: #5b6573; }
  }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { display: block; min-height: 0; font-size: 10pt; line-height: 1.36; }
  #site-header, #site-footer, .btn, .nav-toggle, .skip-link, .vote-card { display: none !important; }
  a { color: inherit; text-decoration: none; }

  .print-masthead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2pt solid var(--navy);
    padding-bottom: 6pt;
    margin-bottom: 14pt;
    font-size: 9pt;
    color: var(--gray);
  }
  .print-masthead span:first-child {
    font-family: var(--serif);
    font-variant: small-caps;
    font-weight: 700;
    font-size: 16pt;
    color: var(--navy);
  }

  .section { padding: 0; }
  .container { max-width: none; padding: 0; }
  .candidate-layout { grid-template-columns: 1.9in 1fr; gap: 0.28in; }
  .candidate-layout aside .candidate-photo { max-width: none; margin: 0 0 10pt; }
  .summary-card { box-shadow: none; padding: 10pt 12pt; break-inside: avoid; }
  .summary-card dl { font-size: 9pt; }
  h1 { font-size: 24pt; margin-bottom: 6pt; }
  h2 { font-size: 12.5pt; margin: 6pt 0 2pt; break-after: avoid; }
  p { margin: 0 0 5pt; orphans: 3; widows: 3; }
}
