/* =========================
   REUSABLE CARD EFFECTS
========================= */

.choice-card,
.priority-card,
.help-item {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.choice-card:hover,
.priority-card:hover,
.help-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}


/* =========================
   GENERIC CONTENT CARDS
========================= */

.content-card {
  background: var(--true-white);
  border: 1px solid var(--soft-gray);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}


/* =========================
   SECTION WRAPPER
========================= */

.section-space {
  padding: 90px 0;
}

.section-space-small {
  padding: 60px 0;
}


/* =========================
   PAGE HERO
========================= */

.page-hero {
  padding: 110px 0 80px;
  background: var(--warm-ivory);
  border-bottom: 1px solid var(--soft-gray);
}

.page-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1;
  font-weight: 900;
  max-width: 950px;
}

.page-hero p {
  margin-top: 20px;
  max-width: 760px;
  font-size: 19px;
  color: var(--text-gray);
}


/* =========================
   INFO GRID
========================= */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  background: var(--true-white);
  border-radius: 12px;
  padding: 30px;
  border-top: 5px solid var(--leaf-green);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.info-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 23px;
  margin-bottom: 12px;
}

.info-card p {
  color: var(--text-gray);
}


/* =========================
   COLOUR ACCENTS
========================= */

.border-green {
  border-top-color: var(--leaf-green);
}

.border-gold {
  border-top-color: var(--gold-yellow);
}

.border-red {
  border-top-color: var(--chili-red);
}

.border-blue {
  border-top-color: var(--democratic-blue);
}


/* =========================
   ACCORDION / DETAILS
========================= */

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-item {
  background: var(--true-white);
  border: 1px solid var(--soft-gray);
  border-radius: 10px;
  overflow: hidden;
}

.accordion-item summary {
  cursor: pointer;
  list-style: none;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 800;
  padding: 20px 24px;
  position: relative;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  font-size: 25px;
  font-weight: 900;
}

.accordion-item[open] summary::after {
  content: "−";
}

.accordion-content {
  padding: 0 24px 24px;
  color: var(--text-gray);
  line-height: 1.7;
}


/* =========================
   CANDIDATE CARDS
========================= */

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.candidate-card {
  background: var(--true-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--soft-gray);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: 0.25s ease;
}

.candidate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.candidate-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f2f2f2;
}

.candidate-info {
  padding: 24px;
}

.candidate-info h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 23px;
}

.candidate-ward {
  color: var(--leaf-green);
  font-weight: 800;
  margin-top: 4px;
}

.candidate-area {
  color: var(--text-gray);
  margin-top: 8px;
}


/* =========================
   SEARCH BOX
========================= */

.search-box {
  background: var(--true-white);
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--soft-gray);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.search-row {
  display: flex;
  gap: 12px;
}

.search-input {
  flex: 1;
  padding: 15px 18px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-family: "Lato", sans-serif;
  font-size: 16px;
}

.search-input:focus {
  outline: 2px solid rgba(0, 122, 77, 0.2);
  border-color: var(--leaf-green);
}

.search-button {
  border: none;
  background: var(--gold-yellow);
  color: var(--pure-black);
  border-radius: 6px;
  padding: 15px 22px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  cursor: pointer;
}


/* =========================
   FORMS
========================= */

.form-card {
  background: var(--true-white);
  padding: 35px;
  border-radius: 12px;
  border: 1px solid var(--soft-gray);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-family: "Lato", sans-serif;
  font-size: 16px;
}

.form-control:focus {
  outline: 2px solid rgba(0, 122, 77, 0.18);
  border-color: var(--leaf-green);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  border: none;
  background: var(--leaf-green);
  color: var(--true-white);
  padding: 14px 22px;
  border-radius: 6px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  cursor: pointer;
}


/* =========================
   QUOTE / CALLOUT
========================= */

.callout-box {
  padding: 32px;
  border-radius: 10px;
  margin: 30px 0;
}

.callout-green {
  background: var(--leaf-green);
  color: var(--true-white);
}

.callout-gold {
  background: var(--gold-yellow);
  color: var(--pure-black);
}

.callout-blue {
  background: var(--democratic-blue);
  color: var(--true-white);
}

.callout-red {
  background: var(--chili-red);
  color: var(--true-white);
}

.callout-box h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 27px;
  margin-bottom: 10px;
}


/* =========================
   METRIC BLOCKS
========================= */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.metric-card {
  background: var(--dark-charcoal);
  color: var(--true-white);
  padding: 30px;
  border-radius: 10px;
}

.metric-number {
  font-family: "Montserrat", sans-serif;
  font-size: 38px;
  font-weight: 900;
}

.metric-label {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.75);
}


/* =========================
   RESPONSIVE COMPONENTS
========================= */

@media (max-width: 900px) {

  .info-grid,
  .candidate-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {

  .search-row {
    flex-direction: column;
  }

  .search-button {
    width: 100%;
  }

  .page-hero {
    padding: 80px 0 55px;
  }

  .form-card,
  .content-card,
  .search-box {
    padding: 22px;
  }

}
/* =========================
   CANDIDATE MODAL
========================= */

.candidate-card {
  cursor: pointer;
}

.candidate-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.candidate-modal.open {
  display: flex;
}

.candidate-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.candidate-modal-content {
  position: relative;
  z-index: 2;
  width: min(850px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--true-white);
  border-radius: 14px;
  padding: 35px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

.candidate-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--pure-black);
  color: var(--true-white);
  font-size: 27px;
  cursor: pointer;
  z-index: 3;
}

.candidate-modal-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 40px;
  align-items: center;
}

.candidate-modal-image {
  width: 100%;
  border-radius: 12px;
  background: #eeeeee;
}

.candidate-modal-info h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  line-height: 1.1;
  margin: 8px 0 12px;
}

.candidate-modal-info h3 {
  font-family: "Montserrat", sans-serif;
  margin-top: 25px;
  margin-bottom: 7px;
}

.candidate-modal-nickname {
  color: var(--leaf-green);
  font-weight: 800;
  font-size: 18px;
}

body.modal-open {
  overflow: hidden;
}


@media (max-width: 700px) {

  .candidate-modal-content {
    padding: 25px;
  }

  .candidate-modal-grid {
    grid-template-columns: 1fr;
  }

  .candidate-modal-image {
    max-width: 280px;
    margin: 0 auto;
  }

  .candidate-modal-info h2 {
    font-size: 29px;
  }

}