/* === Base Styles === */
html, body {
  height: 100%; /* required for sticky footer */
  margin: 0;
  font-family: "Century Gothic";
  background: #fafafa;
  color: #333;
  display: flex;
  flex-direction: column; /* make body a column container */
}

/* === Header === */
header {
  background: #800000; /* mid maroon */
  color: white;
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  box-shadow: 0 6px 12px rgba(0,0,0,0.35); /* slightly more defined shadow */
  transition: box-shadow 0.3s ease;
}

/* Shadow increases on scroll */
header.scrolled {
  box-shadow: 0 10px 20px rgba(0,0,0,0.45); /* stronger on scroll */
}

/* === Header Inner === */
.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  position: relative;
  height: 100%;
}

/* === Logo + Title === */
.logo-title {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.logo {
  width: 165px;
  height: 115px;
  object-fit: contain;
}

h1 {
  font-size: 2rem;
  margin: 0;
  white-space: nowrap;
}

/* === Navigation === */
nav {
  display: flex;
  gap: 1rem;
  transition: max-height 0.3s ease-in-out;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
  position: absolute;
  bottom: -4px;
  left: 0;
}

nav a:hover {
  color: #ffd6d6;
}

nav a:hover::after {
  width: 100%;
}

/* === Hamburger === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 2;
}

.hamburger div {
  width: 20px;
  height: 2.5px;
  background: white;
  transition: all 0.3s ease;
}

.hamburger.active div:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active div:nth-child(2) {
  opacity: 0;
}

.hamburger.active div:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* === Main === */
main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  flex: 1; /* fill remaining space to push footer down */
}

/* === Footer === */
footer {
  background: #800000; /* same as banner */
  color: white;
  text-align: center;
  padding: 1rem 0;
  flex-shrink: 0; /* prevent shrinking */
  box-shadow: 0 -6px 10px rgba(0,0,0,0.45); /* subtle top shadow */
}
/* Fancy bit of text and pic */
  .picfit {
    width: 100%;
    margin: 5px;
    font-family: "Century Gothic";
    line-height: 1.3;
  }

  .picfit img {
    float: left;
    width: 600px;   /* portrait width */
    height: auto;  /* portrait height */
    margin: 0 20px 20px 0; /* spacing around the image */
    object-fit: cover;
    border-radius: 8px;
  }

  .picfit::after {
    content: "";
    display: block;
    clear: both; /* keeps layout clean */
  }
/* fancy bit end*/

  .indexpic img {
	display: flex;
    margin: 0 auto;
  }

/* === Responsive (Mobile) === */
@media (max-width: 768px) {
  header {
    height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }

  .logo-title {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.8rem;
  }

  .logo {
    width: 100px;
    height: 70px;
  }

  .hamburger {
    display: flex;
    position: absolute;
    right: 1rem;
    top: 1rem;
  }

  nav {
    overflow: hidden;
    flex-direction: column;
    background: #660000;
    width: 100%;
    max-height: 0;
  }

  nav.show {
    max-height: 300px;
  }

  nav a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  nav a::after {
    display: none;
  }
 /* Fancy bit of text and pic */
  .picfit {
    width: 100%;
    margin: 5px;
    font-family: Arial, sans-serif;
    line-height: 1.3;
  }

  .picfit img {
    float: none;
    display:block;
	width: 100%;   /* portrait width */
    height: auto;  /* portrait height */
    margin: 20px 0; /* spacing around the image */
    border-radius: 4px;
  }

  .picfit::after {
    content: "";
    display: block;
    clear: both; /* keeps layout clean */
  }
/* fancy bit end*/ 

  .indexpic img {
	float: none;
	display:block;
	width: 100%;   /* portrait width */
	height: auto;  /* portrait height */
    margin: 20px 0; /* spacing around the image */	
	border-radius: 4px;
  }


}
