* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

body {
  background-color: #fff;
  color: #111;
}

img,
iframe {
  max-width: 100%;
}

@font-face {
  font-family: 'Broadway';
  src: url('/fonts/Broadway.woff2') format('woff2'),
       url('/fonts/Broadway.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.site-header,
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  width: 100%;
  min-height: 120px;
  background-color: white;
  padding: 1rem;
  position: relative;
  z-index: 2;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.logo {
  width: 100px;
  height: auto;
  display: block;
}

.ally {
  width: 75px;
  height: auto;
  display: block;
}

.text-container,
.mobile-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.main-title,
h1 {
  color: orange;
}

.main-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.875rem);
  color: orange;
  font-family: 'Broadway', serif;
  text-shadow: 0.125rem 0.125rem #ccc;
}

.tagline {
  margin: 0;
  font-size: clamp(0.875rem, 3vw, 1rem);
  color: orange;
  font-family: 'Notable', serif;
}

.nav {
  display: flex;
  flex: 1 1 420px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  text-align: center;
}

/* Legacy table classes retained so older pages still behave if linked directly. */
.table,
.mobile-table {
  width: 100%;
  margin: 1rem auto;
  border-collapse: collapse;
  text-align: center;
}

.table td,
.mobile-table td {
  display: inline-block;
  padding: 0.5rem;
}

.bioheader {
  font-family: 'Broadway', serif;
  color: orange;
  font-size: 36px;
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem;
}

.bio-text,
.contact-text {
  flex: 1 1 28rem;
  min-width: 0;
  text-align: justify;
}

.bio-text {
  font-family: 'Broadway', serif;
}

.contact-text {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

.bio-text h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: black;
}

.bio-photo {
  flex: 1 1 18rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.bio-photo img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.banner-image,
.page-banner {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.image-overlay-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.background-image {
  width: 100%;
  height: auto;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90%, 760px);
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem);
  color: white;
  text-align: center;
  font-family: 'Broadway', serif;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  z-index: 1;
}

.overlay-text h2,
.overlay-text h3 {
  margin: 0 0 1rem;
}

.overlay-text a {
  color: #f9f4eb;
  text-decoration: none;
  font-weight: bold;
}

.overlay-text a:hover {
  color: #ffc107;
}

.btn-orange {
  display: inline-block;
  max-width: 100%;
  background-color: #ff7a00;
  color: white;
  padding: 0.625rem 1.25rem;
  font-size: clamp(1rem, 4vw, 1.5rem);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-orange:hover {
  background-color: #e66a00;
}

.contact-form-wrap {
  width: 100%;
}

.contact-form {
  display: block;
  width: 100%;
  max-width: 1240px;
  min-height: 1446px;
  margin: 0 auto;
  border: 0;
}

footer,
.footer,
.mobile-footer {
  width: 100%;
  min-height: 5rem;
  margin: 0;
  padding: 1rem;
  background-color: gray;
  text-align: center;
}

a {
  font-family: 'Broadway', serif;
}

a:link {
  color: orange;
  text-decoration: none;
}

a:visited {
  color: rgb(28, 3, 87);
}

a:hover {
  color: rgb(27, 164, 182);
  text-decoration: none;
}

a:active {
  color: black;
}

p {
  font-family: 'Gill Sans MT Condensed', Times, serif;
  font-size: clamp(1.125rem, 3vw, 1.5rem);
}

h2 {
  font-family: 'Gill Sans MT Condensed', Times, serif;
  font-size: 1rem;
}

h3 {
  margin: 0;
  font-family: 'Broadway', sans-serif;
  font-size: clamp(1.75rem, 6vw, 3rem);
}

h4 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: orange;
}

.mobile-h1 {
  font-size: 2rem;
}

@media (max-width: 768px) {
  .site-header,
  .mobile-header {
    flex-direction: column;
    align-items: center;
    min-height: auto;
    text-align: center;
  }

  .nav {
    flex: 1 1 auto;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }

  .logo {
    width: 80px;
  }

  .ally {
    width: 70px;
  }

  .container {
    flex-direction: column;
    padding: 1.25rem;
  }

  .bio-text,
  .bio-photo,
  .contact-text {
    padding: 0;
  }

  .overlay-text {
    width: 92%;
  }
}

@media (max-width: 480px) {
  .background-image {
    min-height: 420px;
  }

  .overlay-text {
    position: static;
    transform: none;
    width: 100%;
    border-radius: 0;
  }

  .btn-orange {
    white-space: normal;
  }
}
