:root {
  --primary: #2a6e3f;
  --secondary: #f1f8e9;
  --accent: #d32f2f;
  --text-dark: #333;
  --text-light: #fff;
  --nav-height: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
  padding-top: var(--nav-height);
}
a { text-decoration: none; color: inherit; }

header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
header .logo-img {
  max-height: calc(var(--nav-height) - 20px);
  width: auto;
  object-fit: contain;
  display: block;
}
header .logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

nav ul { display: flex; list-style: none; gap: 20px; }
nav li a { font-size: 0.95rem; padding: 6px 0; }
nav li a:hover { color: var(--accent); }

/* Generic card component used for attraction and news items. Ensures
   images scale proportionally, content is padded and a subtle shadow
   adds separation from the background. */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  /* Maintain a 16:9 aspect ratio on modern browsers and crop excess
     portions when necessary */
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Limit the height of news images so they don't dominate the page on
   larger screens. On smaller screens the aspect ratio still applies
   and the image will shrink proportionally. */
#news .news-cards .card img {
  max-height: 240px;
}
.card-body {
  padding: 15px;
}
.card-body h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--primary);
}
.card-body p {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.4;
}

#hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url("images/0d47a192-f61f-42ca-a5be-b51bcbf9a423.png") center/cover no-repeat;
  color: var(--text-light);
  position: relative;
}
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
#hero .hero-content { position: relative; z-index: 1; }

section { padding: 80px 20px; scroll-margin-top: calc(var(--nav-height) + 20px); }
section h2 { text-align: center; color: var(--primary); margin-bottom: 20px; }

#about { background: var(--secondary); max-width: 900px; margin: auto; }

#attractions .cards {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  max-width: 1200px; margin: auto;
}

#news { background: #fafafa; }
#news .news-cards {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  max-width: 1200px; margin: auto;
}

#gallery { background: var(--secondary); }
#gallery .gallery-grid {
  display: grid; gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  max-width: 1200px; margin: auto;
}
#gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 6px; }

#contact { background: #fafafa; text-align: center; }

footer { background: var(--primary); color: #fff; text-align: center; padding: 20px; }

/* Safety patch for logo */
img[src*="logo"] {
  max-width: 140px !important;
  max-height: 60px !important;
  height: auto !important;
  width: auto !important;
  object-fit: contain !important;
  position: static !important;
  float: none !important;
  display: inline-block !important;
  z-index: 1 !important;
}

header .logo-img {
  max-height: calc(var(--nav-height) - 20px) !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Mobile navigation toggle button. Hidden on larger screens. */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  padding: 0 10px;
}

@media (max-width: 992px) {
  /* Reduce header padding on medium screens */
  header { padding: 0 15px; }
  nav ul { gap: 15px; }
}

@media (max-width: 768px) {
  /* Adjust typography and layout for small screens */
  header { padding: 0 10px; }
  header .logo-text { font-size: 1rem; }
  header .logo-img { max-height: 40px; }
  section { padding: 60px 15px; }
  #hero { height: 70vh; }
  #hero h1 { font-size: 1.8rem; }
  #hero p { font-size: 1rem; }

  /* Show the nav toggle button */
  .nav-toggle { display: block; }
  /* Hide the navigation menu by default and position it below the header */
  nav ul {
    display: none;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 999;
  }
  /* When open class is toggled via JS, display the menu */
  nav ul.open {
    display: flex;
  }
  /* Make sure list items span full width and center text */
  nav li {
    margin: 5px 0;
  }
  nav li a {
    display: block;
    width: 100%;
    padding: 8px 0;
    text-align: center;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  #hero { height: 60vh; }
  #hero h1 { font-size: 1.5rem; }
  #hero p { font-size: 0.9rem; }
  section { padding: 40px 10px; }
  .card-body h3 { font-size: 1rem; }
  .card-body p { font-size: 0.85rem; }
}

@media (max-width: 768px) {
  header { padding: 0 10px; }
  header .logo-text { font-size: 1rem; }
  header .logo-img { max-height: 40px; }
}
#google_translate_element {
  font-size: 12px;
  background: white;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

