* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: white;
}

body.sn {
  background:
    linear-gradient(rgba(0,0,0,.32), rgba(0,0,0,.32)),
    url("../img/bg/puzzles.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Page Section */
.page {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.page-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  color: white;
}

.page-section h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.page-section p {
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 65ch;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.nav a {
  color: inherit;
  text-decoration: none;
  margin-left: 1rem;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  font-weight: 700;
}

/* Hero section */

.hero{
  display:grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "banner banner"
    "text photo";
  gap: 40px;
  align-items:start;
  margin-top: 60px;
  margin-bottom: 70px;
}

.hero-banner{
  grid-area: banner;
  width: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.hero-text{
  grid-area: text;
  min-height: 260px;
  border-radius: 12px;
}

.hero-text p {
  margin: 0 0 16px 0;
  line-height: 1.7;
  text-align: justify;
  max-width: 34ch;
}

.hero-text p:last-child {
  margin-bottom: 0;
}

.hero-text h2 {
  margin: 0 0 14px 0;
  font-size: 2rem;
}

.hero-photo{
  grid-area: photo;
}

.photo-placeholder{
  min-height: 320px;
  border-radius: 12px;
}

.placeholder-box{
  border: 2px dashed rgba(255,255,255,.55);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  display: grid;
  place-items: center;
  text-align: center;
}

.section-placeholder{
  width:100%;
  min-height:140px;
  border-radius: 12px;
}

/* Info Grid. This section is the layout for the three bottom windows. They all are 400px
wide */

/* Bottom 3-column row */
.info-grid {
  display: grid;
  grid-template-columns: 400px 300px 400px;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  margin-top: 40px;
  padding: 0 0 3rem;
}

.info-card {
  width: 100%;
}

.left-card,
.right-card {
  text-align: left;
}

.center-card {
  text-align: center;
  padding-top: 10px;
}

.section-banner {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 10px 0;
}

.address-banner {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.info-card p {
  margin: 0 0 12px 0;
  line-height: 1.55;
  text-align: justify;
  max-width: none;
}

.list-intro {
  margin: 14px 0 8px 0;
  text-align: left;
}

.info-card ul {
  margin: 0;
  padding-left: 18px;
  text-align: left;
}

.info-card li {
  margin: 2px 0;
}

@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .info-card,
  .left-card,
  .center-card,
  .right-card {
    width: 100%;
    text-align: left;
  }

  .center-card {
    padding-top: 50px;
    text-align: center;
  }

  .address-banner {
    margin: 0 auto;
  }
}

/* About Page Section */

.about-section h2{
  margin: 28px 0 12px;
  font-size: 1.35rem;
}

.about-list{
  margin: 0;
  padding-left: 20px;
  line-height: 1.6;
}

.about-list li{
  margin: 4px 0;
}

/* Contact Page Section */

.contact-section h2{
  margin: 28px 0 12px;
  font-size: 1.3rem;
}

.contact-list{
  margin: 0 0 16px 0;
  padding-left: 20px;
  line-height: 1.6;
}

.contact-list li{
  margin: 6px 0;
}

.contact-section a{
  color: #fff;
  text-decoration: underline;
}

/* download button */

.btn-download{
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.btn-download:hover{
  background: rgba(255,255,255,0.2);
}

/* Calendar Page Section */

.calendar-section{
  padding-top: 70px;
  padding-bottom: 80px;
}

.calendar-shell{
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 18px;
  background: rgba(12, 24, 40, 0.32);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
}

.calendar-head{
  text-align: center;
  margin-bottom: 22px;
}

.calendar-head h1{
  margin: 0 0 10px 0;
}

.calendar-intro{
  margin: 0;
  opacity: .92;
}

.calendar-wrap{
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  background: rgba(255,255,255,.06);
}

.calendar-wrap iframe{
  display: block;
  width: 100%;
  height: 650px;
  border: 0;
}

@media (max-width: 900px){
  .calendar-shell{
    padding: 18px;
    border-radius: 14px;
  }

  .calendar-wrap iframe{
    height: 560px;
  }
}

/* Events Page Section */

.events-section h2{
  margin: 28px 0 12px;
  font-size: 1.3rem;
}

.events-list{
  margin: 0 0 18px 0;
  padding-left: 20px;
  line-height: 1.6;
}

.events-list li{
  margin: 6px 0;
}

.events-section a{
  color: inherit;
  text-decoration: underline;
}

/* Footer */

.site-footer {
  padding: 2rem 0;
  font-size: .9rem;
  opacity: .85;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "banner"
      "text"
      "photo" 
    gap: 24px;
  }

  .hero-text {
    border-right: 0;
    padding: 0;
  }

  .hero-photo {
    padding: 0;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}