@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* Prevent sideways scrolling globally */
html, body {
  overflow-x: hidden;
}

/* RESET BODY MARGINS — REQUIRED FOR EDGE‑TO‑EDGE */
body {
  margin: 0;
  padding: 0;

  font-family: 'Montserrat', Arial, sans-serif;
  background-color: #93c47d;
  color: black;
}

/* BASE NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: #6aa84f;
  color: black;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 40px;
  box-sizing: border-box;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 45px;
}

.site-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: black;
}

/* Desktop nav */
.nav {
  display: flex;
  gap: 25px;
}

.nav a {
  color: black;
  text-decoration: none;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 32px;
  color: black;
  cursor: pointer;
}

/* MOBILE MODE */
@media (max-width: 900px) {
  .navbar {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 40px;
  }

  .hamburger {
    display: block;
    margin-left: auto;
    font-size: 32px;
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    line-height: 1;
    order: 1;
  }

  .nav {
    display: none;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
    flex-basis: 100%;
    order: 2;
    align-items: flex-end;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    text-align: right;
    width: 100%;
    line-height: 1;
    padding: 0;
    color: black;
    text-decoration: none;
  }

  .site-title {
    display: none;
  }

  .brand {
    order: 1;
    display: flex;
    align-items: center;
  }

  .profile-img, .regular-img {
    float: none !important;
    display: block;
    margin: 0 auto 15px auto !important;
    max-width: 80% !important;
    width: auto !important;
  }
}

/* DESKTOP MODE */
@media (min-width: 901px) {
  .hamburger {
    display: none;
  }

  .nav {
    display: flex !important;
  }
}

/* HERO BANNER */
.hero {
  width: 100%;
  height: 480px;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding-top: 80px;
  box-sizing: border-box;

  /* Safari-safe Parallax Fix */
  position: relative;
  -webkit-clip-path: inset(0);
  clip-path: inset(0);
}

/* The pseudo-element acts as the fixed background. 
  It won't glitch on mobile because it's tied to the viewport, 
  and the clip-path above guarantees it won't bleed into other sections! 
*/
.hero::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('background.jpeg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  
  z-index: -1;
  pointer-events: none;
  will-change: transform; /* Hardware acceleration to prevent mobile painting glitches */
}

/* HERO TEXT */
.hero-title {
  background: none;
  padding: 0;
  margin: 0;

  color: white;
  font-size: 3rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 1px;

  font-family: 'Montserrat', Arial, sans-serif;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);

  /* Ensure text stays layered above the new ::before background layer */
  position: relative; 
  z-index: 1;
}

/* MOBILE HERO */
@media (max-width: 900px) {
  .hero {
    height: 55vh;
    min-height: 380px;
    max-height: 520px;
    padding-top: 70px;
    padding-left: 20px;
    padding-right: 20px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    letter-spacing: 0.5px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    text-align: center;
    margin: 0;
    max-width: 100%;
    line-height: 1.2;
    overflow-wrap: break-word;
  }
}

/* BODY WRAPPER */
.body-wrapper {
  max-width: 1100px;
  margin: 20px auto 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
  text-align: justify;
}

/* SECTION CONTAINERS */
.section-block {
  margin-bottom: 50px;
}

.section-content::after,
.section-block::after {
  content: "";
  display: table;
  clear: both;
}

/* Image styles */
.profile-img {
  float: left;
  width: 500px;
  max-width: 35%;
  height: auto;
  margin: 0 20px 10px 0;
}

.regular-img {
  float: left;
  width: 500px;
  max-width: 30%;
  height: auto;
  margin: 0 20px 10px 0;
}

/* FULL-WIDTH BUTTON STYLES */
.btn-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 15px;
  clear: both;
}

.btn-container a {
  width: 100%;
  text-decoration: none;
}

.btn-container button {
  width: 100%;
  display: block;
  background-color: #274e13;
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
}

.btn-container button:hover {
  background-color: #4c8a2c;
}

/* FOOTER STYLES */
footer.body-wrapper {
  color: #767676;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
}

footer.body-wrapper a {
  color: #0066cc;
  text-decoration: underline;
}

footer.body-wrapper a:hover {
  color: #004499;
}

/* REVIEW PAGE SPACING */
.review-item {
  margin-top: 25px;
  margin-bottom: 35px;
}

.review-item h3 {
  margin-bottom: 10px;
}

.review-item p {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* PROMINENT HORIZONTAL DIVIDER */
hr.divider {
  border: none;
  height: 3px;
  background-color: #274e13;
  margin: 50px 0;
  border-radius: 2px;
}