/* CTNE v1 styles */

:root {
  --bg-white: #ffffff;
  --bg-soft: #f4f3ef;
  --text-dark: #1f1f1f;
  --text-muted: #666;
  --accent: #5c3d8b;
  --header-height: 72px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sofia Sans", system-ui, sans-serif;
  font-size: 1.25rem;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
}

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

nav a,
a.button {
  text-decoration: none;
}

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

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  z-index: 1000;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
}

nav a {
  margin-left: 1.25rem;
  font-weight: 500;
}

.donate {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-weight: 600;
}

section {
  scroll-margin-top: calc(var(--header-height) + 20px);
  padding: 4rem 1.25rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero {
  padding-top: calc(var(--header-height) + 4rem);
  background-image: url("../img/venti-views-_MjAjDQQgrY-unsplash-frosted-bw.jpg");
  background-position: 25% 20%;
  /* background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), #999; */
  color: #fff;
}

.button {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  padding: 0.65rem 1.1rem;
  border-radius: 4px;
  font-weight: 600;
}

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

.program {
  padding: 1.75rem;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
}

.tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.about {
  background: var(--bg-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.sidebar {
  background: #fff;
  padding: 1.5rem;
  border-radius: 6px;
  border: 0.25rem dashed #b0b0b0;
  height: fit-content;
  margin-top: 5rem;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sidebar {
    margin-top: 0;
  }
}

form {
  max-width: 700px;
}

label {
  display: block;
  font-weight: 600;
  margin-top: 1.25rem;
}

input,
textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.4rem;
  font-family: inherit;
  border-radius: 4px;
  border: 1px solid #ccc;
}

textarea {
  min-height: 140px;
}

button {
  margin-top: 1.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

footer {
  padding: 2rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
}

.board-photo {
  width: 7.5rem;
  height: 7.5rem;
}

.board-member h4 {
  margin: 0.5rem 0 0 0;
}

.board-member .title {
  margin: 0.25rem 0 0 0;
}

/* Mobile menu */
.menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-icon {
  margin-top: 0rem;
}

.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.35rem;
}

.menu-icon span {
  display: block;
  width: 1.5rem;
  height: 0.175rem;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .menu-icon {
    display: flex;
  }

  a.donate {
    max-width: 90px;
    margin-top: 1rem;
  }

  nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 0 1.25rem;
  }

  nav a {
    margin: 0;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
  }

  nav a:last-child {
    margin-bottom: 1rem;
  }

  .menu-toggle:checked ~ nav {
    max-height: 400px;
    padding-top: 0.5rem;
  }

  /* Animate hamburger to X when checked */
  .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
    transform: translateY(0.525rem) rotate(45deg);
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
    transform: translateY(-0.525rem) rotate(-45deg);
  }
}

label.menu-icon div {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
