@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: #f7f9fa;
  color: #333333;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Page container */
.page-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

/* Navigation Header - Centered 900px max-width, scrolls normally */
.main-header {
  width: 100%;
  background-image: url('assets/green fence for header2.png');
  background-size: cover;
  background-position: center;
  border-bottom: 4px solid #e05a1f; /* Thin orange accent bottom border */
  padding: 15px 20px;
  position: relative; /* Normal scroll positioning */
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative; /* Anchor for absolute positioning of logo */
  min-height: 50px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  flex-wrap: nowrap; /* Keep menu on a single line on desktop */
  gap: 6px; /* Narrower gap to save horizontal space */
  max-width: 55%; /* Keep nav area narrow to prevent going underneath logo */
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.82rem; /* Compact font size to avoid menu wrapping */
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.6); /* Dark translucent background */
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 10px; /* Compact padding to ensure all links fit on one line */
  border-radius: 4px;
  transition: all 0.2s ease;
  backdrop-filter: blur(2px);
  white-space: nowrap; /* Prevent menu links from wrapping */
}

.nav-links a:hover {
  background-color: rgba(224, 90, 31, 0.9); /* Theme orange background on hover */
  border-color: #e05a1f;
  color: #ffffff;
}

/* Language switch highlight */
.nav-links a.lang-switch {
  font-weight: 700;
  background-color: rgba(224, 90, 31, 0.7); /* translucent orange for language switch */
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-links a.lang-switch:hover {
  background-color: rgba(224, 90, 31, 1);
  border-color: #ffffff;
}

/* Active page link styling */
.nav-links a.active {
  background-color: rgba(0, 0, 0, 0.85);
  border: 1.5px solid #e05a1f; /* Orange accent border on active button */
  color: #ffffff;
  font-weight: 600;
}

/* Overlapping Logo positioning - large, inside the header container width */
.logo-container {
  position: absolute;
  right: 5px; /* Shifted slightly to the right to make space for the menu */
  top: -5px;
  z-index: 1005;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.header-logo {
  width: 370px; /* Logo width around 370px to fit desktop comfortably side-by-side with menu */
  height: auto;
  display: block;
  transition: transform 0.2s ease;
}

.header-logo:hover {
  transform: scale(1.03);
}

/* Medium screens responsiveness */
@media (max-width: 1050px) and (min-width: 769px) {
  .header-logo {
    width: 300px; /* Reduce logo width to fit medium width screens */
  }
  
  .logo-container {
    right: 5px;
  }
  
  .nav-links {
    max-width: 58%;
    gap: 5px;
  }
  
  .nav-links a {
    font-size: 0.76rem;
    padding: 6px 8px;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column-reverse; /* Put logo at the top, navigation links below */
    gap: 15px;
    justify-content: center;
    min-height: auto;
  }
  
  .nav-links {
    justify-content: center;
    width: 100%;
    max-width: 100%; /* Use full width on mobile */
    flex-wrap: wrap; /* Wrapping allowed on mobile */
    gap: 8px;
  }
  
  .nav-links a {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
  
  .logo-container {
    position: relative; /* Reset absolute positioning on mobile to keep stacked flow */
    right: auto;
    top: auto;
    margin-left: 0;
    margin-bottom: 5px;
  }
  
  .header-logo {
    width: 280px;
    height: auto;
  }
}

/* Image stacking and hotspots */
.image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.stacked-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hotspots */
.hotspot {
  position: absolute;
  cursor: pointer;
  z-index: 20; /* Lift above content stack */
  color: transparent; /* Hide visual link text */
  font-size: 0;
  overflow: hidden;
  transition: background-color 0.2s ease-in-out;
}

.hotspot:hover {
  background-color: rgba(224, 90, 31, 0.08); /* subtle hover feedback */
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Inner page top spacing to prevent header logo overlap on titles */
.inner-page .image-wrapper:first-of-type {
  margin-top: 55px; /* Offset the logo hang-down */
}

@media (max-width: 1050px) and (min-width: 769px) {
  .inner-page .image-wrapper:first-of-type {
    margin-top: 40px; /* Reduced offset for medium screen logo size */
  }
}

@media (max-width: 768px) {
  .inner-page .image-wrapper:first-of-type {
    margin-top: 0; /* No offset needed on mobile where logo is stacked in flow */
  }
}

/* Hero wrappers for relative positioning */
.image-section {
  position: relative;
}
