/* Home hero, rotating hero image, bulletin board, and front sticky notes. */
.home-hero {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: max(20px, calc((100% - var(--max)) / 2)) minmax(0, var(--max)) max(20px, calc((100% - var(--max)) / 2));
  grid-template-areas:
    "photo photo photo"
    ". headline ."
    ". board .";
  row-gap: 22px;
  column-gap: 0;
  align-items: start;
  padding: 0 0 54px;
  background:
    linear-gradient(180deg, rgba(223, 244, 241, 0.38), rgba(255, 247, 227, 0.58)),
    var(--paper);
  border-bottom: 1px solid rgba(201, 151, 53, 0.32);
}

.hero-intro-copy {
  grid-area: headline;
  position: relative;
  justify-self: center;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(250px, max-content) 1px minmax(0, 1fr);
  column-gap: clamp(18px, 2vw, 28px);
  row-gap: 18px;
  align-items: center;
  width: min(1100px, 100%);
  margin: -52px auto 0;
  padding: 24px 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 249, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  box-shadow:
    0 18px 42px rgba(16, 38, 61, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  backdrop-filter: blur(10px) saturate(1.08);
  color: var(--navy);
  text-align: left;
}

.hero-intro-copy::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--green), var(--blue));
  border-radius: var(--radius) var(--radius) 0 0;
  content: "";
}

.hero-intro-copy::after {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  width: 0;
  min-height: 64px;
  margin: 4px 0;
  border-left: 1px dashed rgba(13, 111, 167, 0.22);
  content: "";
}

.hero-intro-copy > * {
  position: relative;
  z-index: 1;
}

.hero-intro-copy h1 {
  grid-column: 3;
  grid-row: 1;
  max-width: 780px;
  margin: 0;
  color: var(--navy);
  font-size: 2.38rem;
  line-height: 1.06;
  text-shadow: none;
}

.hero-intro-copy .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 0 0 0 15px;
  color: rgba(16, 38, 61, 0.68);
  border-left: 5px solid var(--green);
}

.hero-location-link {
  display: inline-grid;
  grid-template-columns: max-content 1px max-content;
  align-items: stretch;
  justify-self: start;
  column-gap: 12px;
  max-width: 100%;
  min-height: 2.35em;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.hero-intro-copy .hero-location-link {
  display: inline-grid;
}

.hero-location-link::before {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  width: 1px;
  margin: 1px 0;
  background: rgba(16, 38, 61, 0.22);
  content: "";
}

.hero-location-address {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.hero-location-address::after {
  content: none;
}

.hero-location-place {
  grid-column: 3;
  grid-row: 1;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  line-height: 1.05;
}

.hero-location-link:hover,
.hero-location-link:focus-visible {
  color: var(--navy);
  border-left-color: var(--blue);
  box-shadow: inset 0 -2px rgba(13, 111, 167, 0.18);
  outline: none;
}

.hero-photo {
  grid-area: photo;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  overflow: hidden;
  background: var(--white);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-strong);
}

.hero-photo[role="button"],
.photo-grid figure[role="button"],
.flyer[role="button"],
.donate-gallery[role="button"] {
  cursor: pointer;
}

.photo-grid figure[role="button"],
.flyer[role="button"],
.donate-gallery[role="button"] {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.hero-photo[role="button"]:focus-visible,
.photo-grid figure[role="button"]:hover,
.photo-grid figure[role="button"]:focus-visible,
.flyer[role="button"]:hover,
.flyer[role="button"]:focus-visible,
.donate-gallery[role="button"]:hover,
.donate-gallery[role="button"]:focus-visible {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  outline: none;
}

.photo-grid figure[role="button"]:hover,
.photo-grid figure[role="button"]:focus-visible,
.flyer[role="button"]:hover,
.flyer[role="button"]:focus-visible,
.donate-gallery[role="button"]:hover,
.donate-gallery[role="button"]:focus-visible {
  transform: translateY(-2px);
}

.hero-photo[role="button"]:focus-visible {
  outline: 4px solid rgba(13, 111, 167, 0.38);
  outline-offset: -4px;
}

.hero-photo picture,
.hero-slide {
  display: block;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: var(--paper-strong);
}

.hero-photo-dots {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(16, 38, 61, 0.14);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.hero-photo-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(16, 38, 61, 0.42);
  transition: width 220ms ease, background 220ms ease;
}

.hero-photo-dot.is-active {
  width: 18px;
  background: var(--blue);
}

.hero-board {
  grid-area: board;
  position: relative;
  width: min(1120px, 100%);
  margin: 2px auto 0;
  padding: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20px 18px, rgba(84, 52, 29, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 56px 46px, rgba(255, 242, 195, 0.18) 0 2px, transparent 3px),
    linear-gradient(135deg, #c58a51, #b6783e 52%, #d09a5d);
  background-size: 72px 64px, 72px 64px, auto;
  border: 12px solid #8b5b35;
  border-radius: var(--radius);
  box-shadow:
    0 24px 60px rgba(16, 38, 61, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  scroll-margin-top: var(--anchor-scroll-margin);
}

.hero-board::before {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 239, 190, 0.32);
  border-radius: calc(var(--radius) - 2px);
  content: "";
  pointer-events: none;
}

.hero-board > * {
  position: relative;
  z-index: 1;
}

.hero-board .hero-board-cards {
  width: 100%;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding-bottom: 0;
  z-index: 1;
}

.hero-board .hero-board-cards .quick-note {
  grid-column: span 2;
  min-height: 236px;
}

.hero-board .quick-info p {
  color: rgba(16, 38, 61, 0.78);
  font-size: 0.94rem;
  line-height: 1.47;
}

.hero-board .hero-board-cards .quick-note:nth-child(4) {
  grid-column: 2 / span 2;
  --note-rotation: 0.65deg;
  background:
    linear-gradient(90deg, rgba(47, 109, 85, 0.16) 0 3px, transparent 3px 100%),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(47, 109, 85, 0.1) 25px 26px),
    linear-gradient(180deg, #fff4a8, #fff8bf);
  border-bottom: 5px solid rgba(47, 109, 85, 0.5);
}

.hero-board .hero-board-cards .quick-note:nth-child(5) {
  grid-column: 4 / span 2;
  --note-rotation: -0.85deg;
  background:
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(13, 111, 167, 0.09) 30px 31px),
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(13, 111, 167, 0.11) 26px 27px),
    linear-gradient(180deg, #dff4ff, #edf9ff);
  border-bottom: 5px solid rgba(13, 111, 167, 0.46);
}

.hero-board-actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.hero-board-actions .button {
  min-width: 210px;
  box-shadow: 0 14px 28px rgba(16, 38, 61, 0.22);
}

.quick-info {
  width: min(var(--max), calc(100% - 40px));
  margin: -18px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 34px;
  position: relative;
  z-index: 2;
}

.quick-info .quick-note {
  --note-rotation: -1.1deg;
  position: relative;
  min-height: 168px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 30px 24px 24px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius);
  color: inherit;
  box-shadow: 0 18px 30px rgba(17, 24, 39, 0.12);
  text-decoration: none;
  transform: rotate(var(--note-rotation));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.quick-info .quick-note::before {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 82px;
  height: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 4px;
  box-shadow: 0 6px 12px rgba(17, 24, 39, 0.08);
  content: "";
  transform: translateX(-50%) rotate(-3deg);
}

.quick-info .quick-note::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, transparent 0 48%, rgba(17, 24, 39, 0.08) 49% 100%);
  border-radius: 0 0 var(--radius) 0;
  content: "";
}

.quick-info .quick-note:hover,
.quick-info .quick-note:focus-visible {
  box-shadow: 0 24px 38px rgba(17, 24, 39, 0.14);
  transform: translateY(-3px) rotate(0deg);
  outline: none;
}

.quick-info .quick-note:nth-child(1) {
  background:
    linear-gradient(90deg, rgba(200, 63, 61, 0.16) 0 3px, transparent 3px 100%),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(200, 63, 61, 0.1) 25px 26px),
    linear-gradient(180deg, #fff4a8, #fff8bf);
  border-bottom: 5px solid rgba(200, 63, 61, 0.5);
}

.quick-info .quick-note:nth-child(2) {
  --note-rotation: 1deg;
  background:
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(13, 111, 167, 0.09) 30px 31px),
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(13, 111, 167, 0.11) 26px 27px),
    linear-gradient(180deg, #dff4ff, #edf9ff);
  border-bottom: 5px solid rgba(13, 111, 167, 0.46);
}

.quick-info .quick-note:nth-child(3) {
  --note-rotation: -0.6deg;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34) 0 10px, transparent 10px 100%),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(47, 109, 85, 0.1) 27px 28px),
    linear-gradient(180deg, #dff7d9, #effbe7);
  background-size: 78px 78px, auto, auto;
  border-bottom: 5px solid rgba(47, 109, 85, 0.48);
}

.quick-info .quick-note:nth-child(2)::before {
  transform: translateX(-50%) rotate(2deg);
}

.quick-info .quick-note:nth-child(3)::before {
  transform: translateX(-50%) rotate(-1deg);
}

.quick-info strong {
  color: var(--navy);
  font-size: 1.22rem;
  line-height: 1.16;
}

.quick-info p {
  margin-bottom: 0;
  font-size: 0.98rem;
}
