/* Remove default page margins/padding */
html,
body {
  margin: 0;
  padding: 0;
  background-image: url('../images/p6.webp');
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Remove default margin on headings */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
}

/* HEADER */
header.hdr1 {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: darkcyan;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 100;
}

.hdr1__container {
  margin: 0;
  padding: 0;
  width: 100%;
}

.hdr1__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
}

/* Stack name + municipality vertically on the left */
.hdr1__wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hdr1__name {
  font-size: 1.25rem;
  line-height: 1.1;
  color: white;
  font-weight: bold;
}

.hdr1__municipality {
  font-size: 0.9rem;
  line-height: 1.1;
  color: white;
}

.hdr1__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hdr1__nav-link {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 6px 12px;
}

.hdr1__nav-link:hover {
  text-decoration: underline;
}

.hdr1__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* DROPDOWN */
.hdr1__dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.hdr1__dropdown:hover .hdr1__dropdown-menu,
.hdr1__dropdown:focus-within .hdr1__dropdown-menu {
  display: block;
}

.hdr1__dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  font: inherit;
  font-weight: bold;
}

.hdr1__dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
}

.hdr1__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 8px;
  left: 0;
  background-color: darkcyan;
  min-width: 160px;
  z-index: 200;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.hdr1__dropdown-menu a {
  display: block;
  padding: 14px 16px;
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

.hdr1__dropdown-menu a:hover {
  background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 500px) {
  .hdr1__bar {
    padding: 8px;
    gap: 4px;
  }

  .hdr1__name {
    font-size: 0.85rem;
  }

  .hdr1__municipality {
    font-size: 0.65rem;
  }

  .hdr1__nav-link {
    font-size: 0.65rem;
    padding: 4px 6px;
  }
}

/* HERO AND BIO SECTION */
.hero {
  position: relative;
  width: 100%;
  min-height: 500px;
  background-image: url('../images/langley.jpeg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.bio__container {
  margin: 40px;
  padding: 20px 28px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  max-width: 480px;
}

.bio_name {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
}

.bio_content {
  font-size: 1rem;
  line-height: 1.6;
  color: white;
}

.bio_link {
  font-size: 1rem;
  line-height: 1.6;
  color: white;
  text-decoration: underline;
}

.bio_link:hover {
  font-weight: bold;
}

/* SECTION HEADER */
.hdr2 {
  margin-bottom: 20px;
  padding: 0;
  width: 100%;
  background-color: darkcyan;
  box-sizing: border-box;
}

.hdr2__body {
  display: block;
  font-size: 1.25rem;
  line-height: 1.1;
  color: white;
  padding: 12px 16px;
  font-weight: bold;
  text-align: center;
}

/* ISSUES GRID */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 0 40px 10px;
}

@media (max-width: 700px) {
  .issue-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 450px) {
  .issue-grid {
    grid-template-columns: 1fr;
  }
}

.issue-card {
  container-type: inline-size;
  position: relative;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  overflow: hidden;
}

.issue-card h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  color: white;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.4em 0.8em;
  border-radius: 4px;
  font-size: clamp(1rem, 8cqi, 2rem);
  white-space: nowrap;
}

.issue-card:hover h3 {
  text-decoration: underline;
}

.issue-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ISSUE PAGE CONTENT */
.page-content {
  flex: 1;
}

.issue__title {
  color: rgb(1, 105, 105);
  font-weight: bold;
  padding: 12px;
}

.issue__body {
  padding: 12px;
}

/* IMAGES FOR ISSUE PAGES */

.issue__image, .community__image {
  display: block;
  width: 80%;
  max-width: 400px;
  min-width: 100px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.green_spaces__image, .housing__image, .seniors_and_family__image {
  display: block;
  width: 60%;
  max-width: 400px;
  min-width: 100px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* VIDEO */
.video-section {
  padding: 0 0 20px;
}

.video-section__player {
  display: block;
  width: 50%;
  max-width: 400px;
  min-width: 100px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* FOOTER */
.footer-divider {
  height: 1px;
  background: #9f9f9f;
  margin: 20px 40px;
}

.ftr {
  background-color: darkcyan;
  padding: 40px;
  background-image: none;
}

.ftr__container {
  display: flex;
  align-items: flex-start;
  padding-right: 30px;
  width: 100%;
  box-sizing: border-box;
}

.ftr__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ftr__photo {
  width: 130px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.ftr__name {
  color: white;
  font-weight: bold;
  font-size: 1.3rem;
  line-height: 1.1;
}

.ftr__municipality {
  color: white;
  font-size: 1rem;
}

.ftr__right {
  display: flex;
  gap: 40px;
  margin-left: auto;
  padding-left: 30px;
}

.ftr__contact,
.ftr__social {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ftr__heading {
  color: white;
  font-weight: bold;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.ftr__link {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

.ftr__link:hover {
  text-decoration: underline;
}

.ftr__icons {
  display: flex;
  gap: 16px;
}

.ftr__icon img {
  width: 28px;
  height: 28px;
  display: block;
}

@media (max-width: 600px) {
  .ftr__container {
    flex-wrap: wrap;
  }

  .ftr__right {
    margin-left: 0;
    padding-left: 0;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
  }
}

/* Donation cards */
.donate__card_2 {
  background-color: #ede8f5;
  border: 1px solid #b0a0d0;
  border-radius: 20px;
  padding: 4px 28px;
  margin: 0 40px;
}

.donate__card {
  background-color: #d4f0f0;
  border: 1px solid #80c0c0;
  border-radius: 20px;
  padding: 4px 28px;
  margin: 0 40px 16px;
}

/* Donate subheading */
.donate__subheading {
  color: rgb(1, 105, 105);
  font-size: 20px;
  padding: 12px;
}

/* Copy block */
.copy-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background-color: #e8e8e8;
  border: 1px solid #c0c0c0;
  border-radius: 8px;
  padding: 8px 14px;
  margin: 0 12px 12px;
  font-family: monospace;
  font-size: 15px;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.copy-block__text {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.copy-block__btn {
  background-color: #008B8B;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
  margin-left: auto;
}

.copy-block__btn:hover {
  background-color: #006666;
}

/* Donation list grids */
.donate__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
  background-color: #e8e8e8;
  border: 1px solid #c0c0c0;
  border-radius: 20px;
  padding: 20px 28px;
  margin: 0 40px;
}

.donate__list_2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  background-color: #e8e8e8;
  border: 1px solid #c0c0c0;
  border-radius: 20px;
  padding: 20px 28px;
  margin: 0 40px;
}

.socials-link {
  display: inline-block;
  text-decoration: none;
  color: #000000;
  font-weight: bold;
}

.socials-link:hover{
  text-decoration: underline;
}

/* Donation cards/lists: tighter margins + smaller text on small screens */
@media (max-width: 500px) {
  .donate__card,
  .donate__card_2 {
    margin: 0 16px 16px;
    padding: 4px 16px;
  }

  .donate__list,
  .donate__list_2 {
    margin: 0 16px;
    padding: 12px 30px;
    grid-template-columns: 1fr;
  }

  .copy-block {
    margin: 0 4px 12px;
    font-size: 13px;
  }
}