.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 {
  color: white;
  text-decoration: none;
}

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

.navBar li {
  list-style: none;
}

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

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

.navItems {
  display: flex;
  flex-direction: row;
  gap: 40px; /* Adds space between menu items */
  list-style: none;
  align-items: center;
  text-align: center;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%; /* Ensures body does not exceed viewport */ 
    overflow-x: hidden;
}

.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;
}

/* #4: https://prismic.io/blog/css-hover-effects */
.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;  /* white color for all links inside navOption */
  text-decoration: none; /* Remove underline */
  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;
}

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

.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;
}


.formContainer {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.centerButton {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact input[type="text"], #contact input[type="email"], #contact input[type="tel"], #contact input[type="url"], #contact textarea, #contact button[type="submit"] { font:400 12px/16px "Open Sans", Helvetica, Arial, sans-serif; }

#contact {
  background: #F9F9F9;
  padding: 25px;
  margin: 50px 0;
}

fieldset {
  border: thick none black;
  margin: 0 0 10px;
  min-width: 97.5%;
  padding: 0;
  width: 97.5%;
}


#contact input[type="text"], #contact input[type="email"], #contact input[type="tel"], #contact input[type="url"], #contact textarea {
	width:100%;
	border:1px solid #CCC;
	background:#FFF;
	margin:0 0 5px;
	padding:10px;
}


#contact textarea {
  height: 100px;
  max-width: 100%;
  resize: none;
}


#contact button[type="submit"] {
	cursor:pointer;
	width:100%;
	border:none;
	background: #0d2543;
	color:#FFF;
	padding:10px;
	font-size:15px;
}

#contact button[type="submit"]:hover {
	background:black;
	transition:background-color 0.3s ease-in-out;
}

#contact button[type="submit"]:active { box-shadow:inset 0 1px 3px rgba(0, 0, 0, 0.5); }

#contact input:focus, #contact textarea:focus {
	outline:0;
	border:1px solid #999;
}

.contactFormHeader {
  color: #0d2543;
  font-family: Instrument Sans;
  font-size: 18px;
  margin-bottom: 2px;
}

.contactFormFooter {
  color: #0d2543;
  font-family: Instrument Sans;
  font-size: 15px;
  margin-top: 3px;
}


.asterisk {
  color: #0d2543;
  font-family: Instrument Sans;
  font-size: 13px;
}


/* Dropdown Button */
/* credit: https://www.w3schools.com/howto/howto_js_dropdown.asp */
.dropbtn {
  background-color: #0d2543;
  color: white;
  padding: 16px;
  font-size: 20px;
  border: none;
  cursor: pointer;
  display: none;
  font-family: Inria Serif; 
}

/* Dropdown button on hover & focus */
.dropbtn:hover, .dropbtn:focus {
  background-color: #0d2543;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: none;
}

.dropdown{
  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 (Hidden by Default) */
.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%);
}

/* Links inside the dropdown */
.dropdown-content a {
  color: #0d2543;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ddd;}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}

/* Hero section with parallax background */
.bg-hero {
  position: relative;
  background: url("img/redTrees.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;
}

/* Base block styles */
.block{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  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;
}

/* Centered panels */
.block.center{ 
  grid-template-columns: 1fr; 
  text-align:center; 
}

/* Narrow content wrapper */
.block .narrow{ 
  max-width: 800px; 
  margin: 0 auto; 
}

/* Content area */
.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;
}

/* Base heading styles */
.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;
}

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

/* Responsive stacking */
@media (max-width: 1000px){
  .block{
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: clamp(2rem, 5vw, 3rem) 1rem;
  }
  .historyHeader{ 
    font-size: 2.25rem; 
  }
  .historyInfo{ 
    font-size: 1.25rem; 
  }
}



@media (max-width: 900px){
  .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;
  }
  html, body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}