:root {
  --green: #1b7a2f;
  --green-dark: #0f4a1d;
  --red: #d7262b;
  --black: #111111;
  --light: #f6f6f4;
  --gray: #6c6c6c;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.brand-title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-subtitle {
  margin: 0;
  color: var(--green);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
  flex-wrap: wrap;
  row-gap: 8px;
}

.nav a {
  text-decoration: none;
  color: var(--black);
  transition: color 0.2s ease;
  opacity: 1;
  visibility: visible;
}

.nav a.active {
  color: var(--green);
}

.nav a:visited {
  color: var(--black);
}

.nav a:hover {
  color: var(--green);
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
}

.hero {
  background: linear-gradient(120deg, var(--light) 35%, rgba(27, 122, 47, 0.15));
  padding: 72px 0 64px;
}

.header-on-hero {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(6px);
}

.hero-cover {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 120px 0 110px;
  min-height: 70vh;
}

.hero-cover .lead,
.hero-cover .eyebrow,
.hero-cover h1 {
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-compact {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-cover .btn.ghost {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
}

.hero-cover .btn.ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

.stat-strip {
  display: grid;
  gap: 14px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px;
  border-radius: 16px;
  display: grid;
  gap: 6px;
}

.stat-item .stat-number {
  color: var(--white);
  font-size: 1.8rem;
}

.stat-item .stat-label {
  color: rgba(255, 255, 255, 0.8);
}

.stat-birthday-names {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.35;
  display: block;
}

.stat-birthday-names small {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.news-grid-alt {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cta-panel {
  display: grid;
  gap: 16px;
}

.alt-hero {
  padding: 64px 0 72px;
}

.hero-alt-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  margin: 6px 0 16px;
}

.hero-media {
  display: grid;
  gap: 18px;
}

.hero-badge {
  background: var(--green);
  color: var(--white);
  padding: 18px 20px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  font-family: "Montserrat", sans-serif;
}

.hero-badge-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-badge-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.card-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 40px;
  border-radius: 999px;
  background: rgba(27, 122, 47, 0.12);
  color: var(--green-dark);
  font-weight: 700;
}

.muted {
  display: block;
  color: var(--gray);
  font-size: 0.9rem;
}

.section-split {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.calendar-cards {
  display: grid;
  gap: 20px;
}

.calendar-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.calendar-date {
  background: var(--green);
  color: var(--white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  padding: 12px;
  text-align: center;
}

.calendar-meta {
  color: var(--gray);
  margin: 8px 0 0;
}

.news-list {
  display: grid;
  gap: 18px;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: center;
}

.hero-text h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  margin: 6px 0 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 700;
  margin: 0;
}

.lead {
  font-size: 1.05rem;
  color: var(--gray);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
}

.btn.primary {
  background: var(--green);
  color: var(--white);
}

.btn.ghost {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.btn-outline {
  border: 2px solid rgba(27, 122, 47, 0.35);
  color: var(--green-dark);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--green);
  background: rgba(27, 122, 47, 0.06);
}

.hero-card {
  background: var(--white);
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--green-dark);
}

.stat-label {
  color: var(--gray);
}

.note {
  background: rgba(27, 122, 47, 0.08);
  border-left: 4px solid var(--green);
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--black);
  margin: 0;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--light);
}

.section-header {
  max-width: 600px;
  margin-bottom: 32px;
}

.section-header h2 {
  font-family: "Montserrat", sans-serif;
  margin: 0 0 10px;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--white);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  font-family: "Montserrat", sans-serif;
}

.statute-section {
  margin-top: 26px;
}

.statute-card {
  padding: 18px 20px;
}

.statute-accordion {
  padding: 0;
  overflow: hidden;
}

.statute-accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.statute-accordion-summary::-webkit-details-marker {
  display: none;
}

.statute-accordion-summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.statute-accordion[open] .statute-accordion-summary::after {
  content: "−";
}

.statute-accordion-content {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0 20px 18px;
}

.statute-content {
  margin: 0;
  white-space: pre-line;
  line-height: 1.55;
}

.card.highlight {
  border-left: 5px solid var(--red);
}

.calendar {
  display: grid;
  gap: 18px;
}

.calendar-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  background: var(--white);
  padding: 18px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.date {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--white);
  background: var(--green);
  border-radius: 12px;
  padding: 14px 0;
  text-align: center;
  font-size: 1.1rem;
}

.list {
  padding-left: 18px;
  margin: 0;
  color: var(--gray);
}

.banner {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  color: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.banner .btn.ghost {
  border-color: var(--white);
  color: var(--white);
}

.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 48px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.footer-inner h3,
.footer-inner h4 {
  margin-top: 0;
  font-family: "Montserrat", sans-serif;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 24px;
  padding-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.editor-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.editor-toolbar button {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--white);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.editor {
  min-height: 180px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 12px;
  background: var(--white);
}

.editor:empty:before {
  content: attr(data-placeholder);
  color: var(--gray);
}

.preview-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
}

.preview-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-body {
  padding: 16px;
}

.preview-title {
  font-family: "Montserrat", sans-serif;
  margin: 0 0 8px;
}

.preview-meta {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.preview-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.post {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.post-meta {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0 0 6px;
}

.news-grid {
  display: grid;
  gap: 20px;
}

.news-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-content {
  padding: 16px;
}

.news-excerpt {
  color: var(--gray);
  margin: 0;
}

.news-link {
  display: inline-flex;
  margin-top: 10px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: -8px 0 20px;
}

.gallery-filters label {
  font-size: 0.9rem;
  font-weight: 700;
}

.gallery-filters select {
  min-width: 88px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #fff;
  font: inherit;
}

.gallery-albums-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
  justify-content: start;
}

.gallery-album-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-album-cover {
  display: block;
  background: #ececec;
}

.gallery-album-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
}

.gallery-album-cover video {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
  background: #000;
}

.gallery-album-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--gray);
  font-weight: 700;
}

.gallery-album-body {
  padding: 16px;
}

.gallery-album-body h3 {
  margin: 0 0 6px;
}

.gallery-album-body h3 a {
  color: var(--black);
  text-decoration: none;
}

.gallery-photos-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.gallery-photo-card {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-photo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-photo-card video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}

.gallery-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 8px;
}

.gallery-admin-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.gallery-admin-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.gallery-admin-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.gallery-admin-actions {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.gallery-modal-panel {
  width: min(980px, 95%);
  padding: 16px 16px 12px;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.gallery-modal-zoom-bar {
  position: absolute;
  top: 10px;
  left: 48px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.gallery-modal-zoom-btn {
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text, #222);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.gallery-modal-zoom-btn:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.2);
}

.gallery-modal-zoom-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gallery-modal-img-scroller {
  overflow: auto;
  max-height: 78vh;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}

.gallery-modal-panel img {
  max-height: 74vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: max-height 0.2s ease;
}

.gallery-modal-panel video {
  max-height: 74vh;
  width: auto;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
}

.gallery-modal-caption {
  margin: 0;
  color: var(--gray);
  text-align: center;
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.gallery-modal-nav--prev {
  left: 12px;
}

.gallery-modal-nav--next {
  right: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 999;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(860px, 92%);
  max-height: 85vh;
  overflow: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.post-body img {
  max-width: 100%;
  height: auto;
}

.attachments {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.attachments img {
  max-height: 240px;
  width: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

@media (max-width: 700px) {
  .news-card {
    grid-template-columns: 1fr;
  }

  .calendar-card {
    grid-template-columns: 1fr;
  }

  .preview-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
  }

  .calendar-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .logo {
    width: 64px;
    height: 64px;
  }

  .hero {
    padding: 56px 0;
  }

  .section {
    padding: 48px 0;
  }
}
