/*
COLOR SCHEME:
GREEN       #706D54
DARK BROWN  #A08963
LIGHT BROWN #C9B194
LIGHT GREY  #DBDBDB
DARK GREY   #2C2C2C
*/

/* 
BLUE        #ADB2D4
LIGHT BLUE  #C7D9DD
GREEN       #D5E5D5
LIGHT GREEN #EEF1DA
*/

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  padding: 0;
  font-family: Tinos, Verdana, Geneva, Tahoma, sans-serif;
  text-align: center;
  background-color: white;
  color: #4f4f4f;
  letter-spacing: 0.01em;
}

body.mobile-menu-active {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* General heading styles for consistency */
h1 {
  font-size: 2.5em;
  margin: 0.67em 0;
  font-weight: bold;
  color: #3f3f3f;
}

footer a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
  text-shadow: 0px 0px 10px white;
}

footer {
  margin-top: auto;
  background-color: #adb2d4;
  /* color: #dbdbdb; */
}

strong {
  color: #3f3f3f;
  font-weight: bold;
}

.tinos-regular {
  font-family: "Tinos", serif;
  font-weight: 400;
  font-style: normal;
}

.tinos-bold {
  font-family: "Tinos", serif;
  font-weight: 700;
  font-style: normal;
}

.tinos-regular-italic {
  font-family: "Tinos", serif;
  font-weight: 400;
  font-style: italic;
}

.tinos-bold-italic {
  font-family: "Tinos", serif;
  font-weight: 700;
  font-style: italic;
}

#logo {
  width: 240px;
  height: 240px;
  /* margin: 0 auto; */
  /* margin-right: 20px; */
  display: block;
  /* filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)); */
  /* background: rgba(255, 255, 255, 0.1); */
  /* border-radius: 50%; */
  /* padding: 8px; */
}

.text-break {
  height: 1em;
}

.navbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around; /* Center content on desktop */
  width: 100%;
  /* padding: 15px 20px; */
  border-bottom: 1px solid white;
  box-shadow: white 0px 0px 10px;
  margin-bottom: 0;
  background-color: #adb2d4;
  position: relative;
}

.navbar-logo {
  margin-bottom: 0;
}

/* Desktop logo positioning - remove the order property */
.navbar-logo.desktop-only {
  order: unset;
}

/* Mobile logo positioning */
.navbar-logo.mobile-only {
  order: 2; /* Center the mobile logo */
}

/* Hide desktop logo on mobile, show mobile logo */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

.navbar-links {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 0;
  width: 100%;
}

.navbar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Desktop navigation */
.desktop-nav {
  order: 3; /* Place navigation on the right */
  width: auto; /* Allow natural width instead of 100% */
}

/* Hamburger menu styles */
.hamburger-menu {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  /* order: 1; Place hamburger on the left */
  z-index: 1001;
  position: relative;
}

.hamburger-menu.active {
  position: fixed;
  top: 12px;
  right: 15px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Mobile navigation menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #adb2d4;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  z-index: 1000;
  opacity: 0;
  transform: translateX(-100%);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.active {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile navigation logo styling */
.mobile-nav #logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px auto;
  padding: 8px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  /* background: rgba(255, 255, 255, 0.15); */
  border-radius: 50%;
  order: -1; /* Ensure logo appears first */
  align-self: center; /* Center the logo horizontally */
}

.mobile-nav a {
  font-size: 28px;
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 8px;
  transition:
    background-color 0.2s ease,
    text-shadow 0.2s ease;
}

.mobile-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-shadow: 0px 0px 10px white;
}

/* Mobile dropdown styles */
.mobile-dropdown {
  text-align: center;
}

.mobile-dropdown-toggle {
  font-size: 28px;
  color: white;
  margin: 0;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 8px;
  transition:
    background-color 0.2s ease,
    text-shadow 0.2s ease;
}

.mobile-dropdown-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-shadow: 0px 0px 10px white;
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-dropdown-menu.active {
  max-height: 300px;
}

.mobile-dropdown-menu a {
  font-size: 22px;
  padding: 10px 20px;
  display: block;
}

.navbar h1 {
  font-size: 24px;
  margin: 0;
  color: white;
  font-weight: bold;
}

.navbar a {
  font-size: 30px;
  text-decoration: none;
  color: white;
  transition:
    color 0.1s,
    font-size 0.1s,
    text-shadow 0.1s;
}

.navbar a:hover {
  color: white;
  font-size: 35px;
  text-decoration: underline;
  text-shadow: 0px 0px 10px white;
  /* transform: scale(1.1); */
}

.navbar a.active {
  transform: translateY(2px);
}

.navbar p {
  font-size: 30px;
  text-decoration: none;
  color: white;
}

#contact-link {
  padding: 5px 10px;
  border: 3px white;
  border-radius: 5px;
  border-style: dotted solid solid dotted;
}

/* Ensure the dropdown container is positioned relatively */
.dropdown {
  position: relative;
}

/* Style the dropdown menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% - 1px); /* attached to the toggle */
  left: 50%;
  min-width: 275px;
  background-color: #adb2d4;
  border: 1px solid white;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  opacity: 0;
  /* Combine centering with scaleY animation */
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  pointer-events: none;
  transition:
    opacity 0.1s ease,
    transform 0.1s ease,
    box-shadow 0.1s ease;
  z-index: 1000;
}

/* Style the links inside the dropdown menu */
.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: white;
  text-decoration: none;
}

/* When hovering over the dropdown, reveal the menu with a glow effect */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateX(-50%) scaleY(1);
  pointer-events: auto;
  box-shadow: 0 0 10px white;
}

/* Style the toggle to indicate interactivity */
.dropdown-toggle {
  cursor: default;
  font-size: 20px;
  color: white;
  transition:
    color 0.1s,
    font-size 0.1s,
    text-shadow 0.1s;
}

.highlighted-text {
  padding: 5px 10px;
  border: 3px white;
  border-radius: 50px;
  border-style: dotted dotted dotted dotted;
}

/* Responsive navbar styles */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 15px;
    justify-content: space-between; /* Space between hamburger and logo on mobile */
  }

  /* Show mobile logo, hide desktop logo */
  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  .navbar-logo {
    margin-bottom: 0;
  }

  /* Hide the navbar logo when mobile menu is active */
  .navbar.mobile-menu-active .navbar-logo.mobile-only {
    display: none;
  }

  #logo {
    width: 100px;
    height: 100px;
    padding: 6px;
  }

  /* Hide desktop navigation */
  .desktop-nav {
    display: none;
  }

  /* Show hamburger menu */
  .hamburger-menu {
    display: flex;
  }

  /* Show mobile navigation */
  .mobile-nav {
    display: flex;
  }

  /* Adjust dropdown menu for mobile overlap */
  .dropdown-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 250px;
  }

  /* Mobile navigation logo sizing for tablets */
  .mobile-nav #logo {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 10px 15px;
    justify-content: space-between; /* Space between hamburger and logo on small mobile */
  }

  /* Show mobile logo, hide desktop logo */
  .mobile-only {
    display: block;
  }

  .navbar-logo {
    display: block; /* Show the logo on small mobile screens */
  }

  .desktop-only {
    display: none;
  }

  /* Hide the navbar logo when mobile menu is active */
  .navbar.mobile-menu-active .navbar-logo.mobile-only {
    display: none;
  }

  #logo {
    width: 90px;
    height: 90px;
    padding: 5px;
  }

  .hamburger-line {
    width: 22px;
    height: 2px;
  }

  .mobile-nav a {
    font-size: 24px;
    padding: 12px 18px;
  }

  .mobile-dropdown-toggle {
    font-size: 24px;
    padding: 12px 18px;
  }

  .mobile-dropdown-menu a {
    font-size: 20px;
    padding: 8px 18px;
  }

  /* Mobile navigation logo sizing for phones */
  .mobile-nav #logo {
    width: 240px;
    height: 240px;
  }
}

/* Hamburger menu animation when active */
.mobile-nav.active ~ .hamburger-menu .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-nav.active ~ .hamburger-menu .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-nav.active ~ .hamburger-menu .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Alternative approach using a class on the hamburger itself */
.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}
