/* ============================================================
   reisner.info — Main Stylesheet
   Mobile-first, warm family-friendly aesthetic
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #2C2C2C;
  background-color: #FDF8F0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #2D6A4F;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: #40916C;
  text-decoration: underline;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid #E6DCC3;
  padding: 0.75rem 0;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #7F5539;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #2C2C2C;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #2D6A4F;
  background: rgba(45, 106, 79, 0.08);
  text-decoration: none;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: #2C2C2C;
}

.nav-toggle svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #2D6A4F;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #2D6A4F;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.25rem;
  color: #FFFFFF;
}

.hero-content h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* --- Section Shared Styles --- */
.section {
  padding: 3rem 0;
}

.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  color: #7F5539;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: #2D6A4F;
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

/* --- 2025 Newsletter Section --- */
.newsletter-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
  color: #555;
}

.newsletter-pages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.newsletter-page-card {
  background: #FFFFFF;
  border: 1px solid #E6DCC3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.newsletter-page-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.newsletter-page-card a {
  display: block;
}

.newsletter-page-thumb {
  width: 100%;
  display: block;
  border-bottom: 1px solid #E6DCC3;
}

.newsletter-page-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
}

.newsletter-page-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: #2D6A4F;
}

.newsletter-page-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E8F0E6;
  color: #2D6A4F;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}

.newsletter-page-dl:hover {
  background: #2D6A4F;
  color: #FFFFFF;
  text-decoration: none;
}

/* --- Newsletter Lightbox --- */
.newsletter-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}

.newsletter-lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #FFFFFF;
  transition: background 0.2s;
  z-index: 5;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 80vh;
}

.lightbox-image-wrap img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.lightbox-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  color: #FFFFFF;
  font-size: 0.9rem;
}

.lightbox-counter {
  opacity: 0.8;
}

.lightbox-action {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
}

.lightbox-action:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  text-decoration: none;
}

/* --- Contact Section --- */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-card {
  background: #FFFFFF;
  border: 1px solid #E6DCC3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.contact-card-body {
  padding: 1.25rem;
}

.contact-card-body h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  color: #7F5539;
  margin-bottom: 0.75rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  color: #2D6A4F;
}

.contact-external-links {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #E6DCC3;
}

.contact-external-links p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-external-links a {
  font-weight: 500;
}

/* --- Contact Info Block (Email & Phone) --- */
.contact-info-block {
  text-align: center;
  margin: 2rem auto;
  max-width: 500px;
}

.contact-info-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  color: #7F5539;
  margin-bottom: 1rem;
}

.contact-info-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-info-item {
  font-size: 0.95rem;
}

.contact-info-label {
  font-weight: 600;
  color: #7F5539;
}

/* --- Archive Section --- */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.archive-card {
  background: #FFFFFF;
  border: 1px solid #E6DCC3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.archive-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.archive-card-body {
  padding: 0.75rem 1rem;
  text-align: center;
}

.archive-card-year {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  color: #7F5539;
  margin-bottom: 0.4rem;
}

.archive-card-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #2D6A4F;
  padding: 0.25rem 0;
}

.archive-card-link:hover {
  text-decoration: underline;
}

/* --- Footer --- */
.site-footer {
  background: #2D6A4F;
  color: #FFFFFF;
  text-align: center;
  padding: 1.5rem 1.25rem;
  font-size: 0.9rem;
}

.site-footer p {
  opacity: 0.9;
}

/* --- Scroll-to-Top Button --- */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2D6A4F;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: scale(1.1);
  background: #40916C;
}

.scroll-top svg {
  width: 22px;
  height: 22px;
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .hero {
    min-height: 75vh;
  }

  .hero-content h1 {
    font-size: 2.75rem;
  }

  .hero-content p {
    font-size: 1.25rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .contact-cards {
    grid-template-columns: 1fr 1fr;
  }

  .archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .hero {
    min-height: 80vh;
    max-height: 90vh;
  }

  .hero-content h1 {
    font-size: 3.25rem;
  }

  .section {
    padding: 5rem 0;
  }

  .archive-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-links a {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
}

/* Mobile nav toggle: show hamburger below 640px */
@media (max-width: 639px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #E6DCC3;
    flex-direction: column;
    padding: 0.5rem 1.25rem;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid #F0EBE0;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .newsletter-pages {
    grid-template-columns: 1fr;
  }
}

/* Small phone: < 480px */
@media (max-width: 479px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.4rem;
  }
}
