/* ===== YOUR ORIGINAL STYLES (kept) ===== */
* {
  margin: 0;
  padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

@media (max-width: 900px){
  html, body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.navBar {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  background-color: #0d2543;
  width: 100%;
  margin: 0;  
  height: 120px;
  align-items: center;
  flex-wrap: wrap;
}

.topText {
  color: white;
  font-size: 40px;
  font-family: Inria Serif;
  font-weight: 500;
  word-wrap: break-word;
  margin-left: 20px;
}

.bottomText {
  color: white;
  font-size: 22px;
  font-family: Inria Serif;
  line-height: 15.86px;
  letter-spacing: 3.72px;
  font-weight: 1000;
  word-wrap: break-word;
  text-align: center;
  margin-left: 20px;
  margin-top: 8px;
}

.topText a,
.bottomText a { color: white; text-decoration: none; }

.navBar li { list-style: none; }

.navLogo, .navLogoFooter {
  display: flex;
  flex-direction: column;
  color: white;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: bold;
  letter-spacing: 1.5px;
  line-height: 1;
  text-align: center;
}

.navItems {
  display: flex;
  flex-direction: row;
  gap: 40px;
  list-style: none;
  align-items: center;
  text-align: center;
}


.menuOption {
  color: white; 
  font-size: 1rem; 
  font-family: Instrument Sans; 
  font-weight: 700; 
  line-height: 14.64px; 
  letter-spacing: 3.60px; 
  list-style: none;
  text-align: center;
  position: relative;
  display: inline-block;
}

.navOption {
  color: white; 
  font-size: 14px; 
  font-family: Instrument Sans; 
  font-weight: 700; 
  line-height: 14.64px; 
  letter-spacing: 3.60px; 
  list-style: none;
  text-align: center;
  position: relative;
  display: inline-block;
}

/* underline hover */
.navOption::after,
.navOption::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, white, white);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}
.navOption::before { top: -5px; transform-origin: left; }
.navOption:hover::after,
.navOption:hover::before { transform: scaleX(1); }

a { text-decoration: none; }
.navOption a { color: white; text-decoration: none; display: block; text-align: center; white-space: nowrap; }

.findAGraveButton {
  width: 154px; height: 40px; background: #af8c30; border-radius: 19px;
  border-style: solid; border-color: #af8c30; color: white;
  font-weight: 700; font-size: 14px; cursor: pointer; transition: 0.3s ease;
}
.findAGraveButton:hover { color: black; background: white; border-color: black; }

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box;
}

.aboutHeader {
  color: black;
  font-size: 32px;
  font-family: Instrument Sans;
  font-weight: 600;
  margin-bottom: 5px;
}

/* Hero section with parallax background */
.bg-hero {
  position: relative;
  background: url("img/nisky.JPG") center/cover no-repeat; 
  color: #fff;
  min-height: 45vh;   /* adjust height (70% of viewport) */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* dark overlay for readability */
.bg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* darker overlay for better text contrast */
}

/* content sits above overlay */
.bg-hero .content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

/* tighter spacing for this hero */
.bg-hero .historyHeader {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  color: #fff;
}

.bg-hero .historyInfo {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: #fff;
}


  .footer {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background-color: #af8c30;
    width: 100%;
    margin: 0;  
    padding: 20px; 
    height: 90px;
    align-items: center;
    box-sizing: content-box;
  }


.footerColumns { display: flex; flex-direction: column; }

  .footerTop {
    color: white;
    font-size: 20px;
    font-family: Inria Serif;
    font-weight: 500;
    word-wrap: break-word;
    margin-left: 40px;
    text-align: center;
    text-decoration: none;
  }
  
  .footerTopTitle {
    color: white;
    font-size: 30px;
    font-family: Inria Serif;
    font-weight: 500;
    word-wrap: break-word;
    margin-left: 40px;
    margin-bottom: 10px;
    text-align: center;
  }
  
  .footerBottom {
    color: white;
    font-size: 20px;
    font-family: Inria Serif;
    line-height: 15.86px;
    font-weight: 500;
    word-wrap: break-word;
    text-align: center;
    margin-left: 40px;
  }

.historyHeader {
  color: black; font-size: 3.125rem; font-family: Instrument Sans; font-weight: 600; margin-top: 1.775rem; text-align: center;
}
.historyInfo {
  color: black; font-size: 30px; font-family: Inria Serif; font-weight: 400; word-wrap: break-word; margin-bottom: 20px; text-align: center;
}
.aboutInfo {
  color: black; font-size: 16px; font-family: Instrument Sans; font-weight: 400; word-wrap: break-word; margin-bottom: 10px;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  min-width: 0;
}

/* Dropdown */
.dropbtn {
  background-color: #0d2543; color: white; padding: 16px; font-size: 20px; border: none; cursor: pointer; display: none; font-family: Inria Serif; transition: 0.3s ease;
}
.dropbtn:hover, .dropbtn:focus { background-color: #0d2543; }
.dropdown { position: relative; display: none; color: white; font-size: 18px; font-family: Inria Serif; font-weight: 700; line-height: 14.64px; letter-spacing: 3.60px; list-style: none; text-align: center; }
.dropdown-content {
  display: none; position: absolute; background-color: white; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1; left: 50%; transform: translateX(-50%);
}
.dropdown-content a { color: #0d2543; padding: 12px 16px; text-decoration: none; display: block; }
.dropdown-content a:hover { background-color: #ddd; }
.show { display: block; }

/* mobile tweaks for your original layout */
@media (max-width: 1000px){
  .navOption, .findAGraveButton{ display: none; }
  .dropbtn{ display: block; }
  .dropdown{ display: inline-block; }
  .navLogo { width: 50%; }
  .navLogoFooter{ display: none; }
  .footerColumns { width: 50%; }
  .footerTop, .footerBottom, .footerTopTitle{ font-size: 1.2rem; }
}

/* ===== NEW EASTON-STYLE BLOCK LAYOUT (Moravian colors) ===== */
:root{
  --nh-navy:#0d2543;
  --nh-gold:#af8c30;
  --nh-white:#ffffff;
  --panel-pad: clamp(2.5rem, 4vw, 6rem);
  --content-max: 1100px;
  --section-min: clamp(340px, 44vh, 560px);
  --measure: 65ch; /* ideal paragraph width */
}

/* full-width panels - FIXED */
.block{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* Fixed with minmax */
  align-items: stretch;
  gap: clamp(1rem, 2vw, 2rem);
  padding: var(--panel-pad) clamp(1rem, 4vw, 4rem);
  width:100%;
  max-width: 100%;
  overflow:hidden;
  box-sizing: border-box;
}

/* color variants (Moravian palette) */
.bg-blue  { background: var(--nh-navy); color:#fff; }
.bg-gold  { background: var(--nh-gold); color:#fff; }
.bg-white { background: var(--nh-white); color: var(--nh-navy); }

/* ensure type color flips nicely */
.bg-blue .aboutHeader,
.bg-blue .aboutInfo,
.bg-blue .historyInfo,
.bg-gold .aboutHeader,
.bg-gold .aboutInfo,
.bg-gold .historyInfo { color:#fff; }

.bg-white .aboutHeader,
.bg-white .aboutInfo,
.bg-white .historyInfo { color: var(--nh-navy); }

/* media + content - FIXED */
.block .content{
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 1rem;
  align-self: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-width: 0;
  box-sizing: border-box;
}
.block .media{
  position:relative;
  min-height: 340px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.block .media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  border-radius: 8px;
}

/* direction control */
.block.image-right .media{ order:2; }
.block.image-right .content{ order:1; }

/* centered panels */
.block.center{ grid-template-columns: 1fr; text-align:center; }
.block .narrow{ max-width: 800px; margin: 0 auto; }


/* refine headings in panels */
.aboutHeader{
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 700;
  margin-bottom: .75rem;
}
.aboutInfo{
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
}
.block .aboutInfo + .aboutInfo{ margin-top: .75rem; }

/* responsive stacking */
@media (max-width: 1000px){
  .block{
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: clamp(2rem, 5vw, 3rem) 1rem;
  }
  .block .media{ min-height: 240px; }
  .block .media img{ border-radius: 6px; }
  .block.image-right .media,
  .block.image-right .content{ order: initial; }
  .historyHeader{ font-size: 2.25rem; }
  .historyInfo{ font-size: 1.25rem; }
}

/* subtle separators when same color repeats */
.bg-blue + .bg-blue,
.bg-gold + .bg-gold,
.bg-white + .bg-white{
  border-top: 1px solid rgba(0,0,0,.06);
}

/* optional entrance animation */
@keyframes fadeUp { from{opacity:0; transform: translateY(12px);} to{opacity:1; transform:none;} }
.block{ animation: fadeUp .5s ease both; }


/* Compact variant: shrink overall box + image height for short blurbs */
.block.compact{
  /* trim vertical padding */
  padding-top: clamp(.75rem, 2.5vw, 2rem);
  padding-bottom: clamp(.75rem, 2.5vw, 2rem);

  /* drop the panel min-height only for this section */
  --section-min: clamp(220px, 28vh, 380px);
}

/* Make content top-align (instead of centered) so it feels intentional */
.block.compact .content{
  align-content: start;     /* top */
  gap: .6rem;               /* slightly tighter spacing */
}

/* Keep the image from towering over the short text */
.block.compact .media{
  min-height: clamp(220px, 28vh, 360px);
}

/* Slightly narrower text for a tighter look */
.block.compact .aboutInfo{
  max-width: 58ch;
}

/* On mobile, let it flow naturally */
@media (max-width: 1000px){
  .block.compact{
    padding-top: clamp(1rem, 3vw, 1.5rem);
    padding-bottom: clamp(1rem, 3vw, 1.5rem);
  }
  .block.compact .content,
  .block.compact .media{
    min-height: auto;
  }
  .block.compact .aboutInfo{
    max-width: 100%;
  }
}
