/* ----------------------- Google Fonts ----------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Acme&display=swap');

/* ----------------------- Global Styles ----------------------- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Acme', sans-serif;
  font-size: 22px;
  color: white;
  background-color: dimgray;
  background-image: url(../Wimages/Background.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#wrapper {
  background-color: rgba(0,0,0,0.8);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----------------------- Header ----------------------- */
header {
  text-align: center;
  margin-top: 20px;
}

header h1 {
  font-size: 2em;
  color: rgb(247,244,244);
  margin: 0;
  padding: 10px;
}

.header {
  background-color: #0c0b0b;
  padding: 10px;
}

.header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header nav a {
  text-decoration: none;
  color: #faf6f6;
  font-weight: bold;
  margin-right: 10px;
}

.header nav a:hover {
  color: rgb(152,152,152);
}

nav.responsive-text { font-size: 2rem; }
@media (max-width: 768px) { nav.responsive-text { font-size: 1.5rem; } }
@media (max-width: 480px) { nav.responsive-text { font-size: 1rem; } }

#logo {
  width: 100%;
  max-width: 900px;
  display: block;
  margin: 0 auto;
}

/* ----------------------- Main ----------------------- */
main { padding-bottom: 55px; }

/* Headings side by side */
.menu-van-headings {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 20px 0;
  flex-wrap: wrap;
}

.menu-van-headings .menu-heading,
.menu-van-headings .van-heading {
  flex: 1 1 45%;
}

.menu-van-headings .menu-heading { text-align: left; }
.menu-van-headings .van-heading { text-align: right; }

@media (max-width: 768px) {
  .menu-van-headings {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .menu-van-headings .menu-heading,
  .menu-van-headings .van-heading {
    text-align: center;
    flex: 1 1 100%;
    margin-bottom: 20px;
  }
}

/* ----------------------- Menu Section ----------------------- */
.menu-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin: 40px 0;
}

/* Menu Left */
.menu-left {
  flex: 1 1 60%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  min-width: 300px;
}

/* Menu Boxes 2x2 */
.menu-box {
  flex: 1 1 45%;
  text-align: center;
}

.menu-box .image-container {
  width: 100%;
  padding-bottom: 100%;
  position: relative;
}

.menu-box .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 10px;
}

.menu-box .label {
  display: block;
  margin-top: 5px;
  font-size: 1.1em;
  color: white;
}

/* Hover Text Popup */
.hovertext {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #000;
  color: #fff;
  padding: 15px;
  border-radius: 5px;
  z-index: 999;
  font-size: clamp(16px, 2vw, 24px);
  max-height: 80vh;
  width: 80vw;
  overflow-y: auto;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (min-width: 769px) {
  .image-container:hover .hovertext {
    display: block;
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .hovertext {
    display: block;
    position: static;
    transform: none;
    width: 100%;
    max-height: none;
    opacity: 1;
    background: transparent;
    padding: 10px 0;
  }
}

/* ----------------------- Van Right ----------------------- */
.menu-right {
  flex: 1 1 35%;
  min-width: 250px;
  text-align: center;
}

.menu-right .van-image-container {
  width: 100%;
  padding-bottom: 100%;
  position: relative;
  margin-bottom: 20px;
}

.menu-right .van-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 10px;
}

.menu-right .van-blurb p {
  font-size: 1em;
  line-height: 1.5;
  color: white;
}

/* ----------------------- Footer ----------------------- */
footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  background-color: #0c0b0b;
  color: white;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* ----------------------- Responsive ----------------------- */
@media (max-width: 768px) {
  .menu-section {
    flex-direction: column;
    align-items: center;
  }
  .menu-left, .menu-right { flex: 1 1 100%; }
  .menu-left .menu-box { flex: 1 1 100%; }
  .menu-right .van-image-container { padding-bottom: 70%; }
}

/* ----------------------- About Us Page Fixes ----------------------- */

/* Container for founders’ photos */
.founders-photos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 80px;               /* more space between photos */
    margin: 60px 0;          /* more vertical spacing */
}

/* Each founder photo */
.founder-photo {
    width: 400px;       /* larger width */
    height: auto;       /* let height scale automatically */
    text-align: center;
    position: relative;
}

/* Image styling */
.founder-photo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain; /* keeps the full image visible */
}

/* Hover text for founders */
.founder-photo .hovertext {
    display: none;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 1em;
    text-align: center;
    width: 90%;
}

/* Show hover text on desktop */
@media (min-width: 769px) {
    .founder-photo:hover .hovertext {
        display: block;
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .founders-photos {
        flex-direction: column;
        align-items: center;
    }
    .founder-photo {
        width: 80%;
        margin-bottom: 20px;
    }
    .founder-photo img {
        height: auto;
    }
    .founder-photo .hovertext {
        position: static;
        transform: none;
        display: block;
        background-color: transparent;
        padding: 10px 0;
        width: 100%;
    }
}

/* History Blurb */
.history-blurb {
    max-width: 2000px;       /* increase width for more room */
    margin: 0 auto 60px auto; /* more bottom spacing */
    line-height: 1.8;        /* increase line height for readability */
    font-size: 1.2em;        /* slightly bigger font */
    color: white;
    text-align: center;
    padding: 0 20px;         /* padding on sides so it doesn’t hit edges on small screens */
}

/* Center the headings above the history */
.centered-heading {
    text-align: center;
    margin: 30px auto 50px auto;
    max-width: 900px;
}

/* ----------------------- Founders Names and Paragraphs ----------------------- */
.founders-container {
    display: flex;
    justify-content: center;   /* center horizontally */
    flex-wrap: wrap;           /* allow wrapping on smaller screens */
    gap: 60px;                 /* space between founders */
    margin: 40px 0;
    text-align: center;        /* center text inside each founder */
}

.founders-container .founder {
    max-width: 900px;        /* wider to allow paragraphs more room */
    line-height: 1.7;        /* more readable line height */
    font-size: 1.15em;       /* slightly bigger font */
}

/* ----------------------- Contact Form Styles ----------------------- */

/* Style the fieldset */
form fieldset {
    border: 2px solid #fff;
    border-radius: 10px;
    padding: 20px;
    max-width: 800px;
    margin: 30px auto;
    background-color: rgba(20, 20, 20, 0.8);
}

/* Style the legend */
form fieldset legend {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    padding: 0 10px;
}

/* Labels */
form label {
    font-size: 1.2em;
    margin-top: 10px;
    display: block;
}

/* Required asterisk */
form .req {
    color: #ff5555;
    font-weight: bold;
}

/* Inputs and select boxes */
form input[type="text"],
form input[type="email"],
form select,
form textarea {
    width: 98%;
    padding: 12px;
    margin: 8px 0 16px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.2em;
    background-color: #222;
    color: white;
}

/* Textarea adjustments */
form textarea {
    resize: vertical;
}

/* Buttons */
form input[type="submit"],
form input[type="reset"] {
    font-size: 1.2em;
    padding: 12px 25px;
    margin: 10px 5px 0 0;
    border: none;
    border-radius: 8px;
    background-color: #444;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form input[type="submit"]:hover,
form input[type="reset"]:hover {
    background-color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    form fieldset {
        padding: 15px;
        margin: 20px;
    }
    form label,
    form input,
    form select,
    form textarea,
    form input[type="submit"],
    form input[type="reset"] {
        font-size: 1.1em;
    }
}
