:root {
  --bg-light: #f9f9f9;
  --bg-dark: #1e1e1e;
  --text-light: #333;
  --text-dark: #f0f0f0;
  --accent: #4e7368;
  --primary: #2a4a5c;
  --secondary: #9fb2a5;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cinzel Decorative', serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
  color: var(--text-light);
  transition: all 0.3s ease;
  position: relative;
  z-index: 0;
}

/* Watermark Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: url('Logo-with-name.png') no-repeat center center;
  background-size: 60%;
  opacity: 0.15;
  filter: grayscale(100%) contrast(50%) brightness(150%);
  pointer-events: none;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem;
  background-color: var(--primary);
  color: white;
}

/* ✅ Ensure headings in header are readable */
header h1,
header h2,
header h3 {
  color: white;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

nav a:hover {
  text-decoration: underline;
}

/* Typography & Layout */
h1, h2, h3 {
  color: var(--primary);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
}

section {
  padding: 2rem;
}

/* Map */
.map-container {
  width: 100%;
  height: 400px;
  margin-top: 2rem;
  border: 2px solid var(--secondary);
}

/* Form */
form {
  background-color: white;
  padding: 1.5rem;
  margin-top: 2rem;
  border-radius: 0.75rem;
  max-width: 600px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

form input,
form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
}

form input[type="email"],
form input[type="tel"] {
  font-size: 1rem;
}

form label {
  font-weight: bold;
  display: block;
  margin-top: 1rem;
}

form button {
  margin-top: 1.5rem;
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
}

form button:hover {
  background-color: var(--accent);
}

/* Footer */
footer {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}

/* 🌙 Dark Mode Overrides */
@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--bg-dark);
    color: var(--text-dark);
  }

  body::before {
    opacity: 0.025;
    filter: grayscale(100%) contrast(40%) brightness(130%);
  }

  header,
  footer {
    background-color: var(--accent);
  }

  form {
    background-color: #2a2a2a;
    color: white;
  }

  form input,
  form textarea {
    background-color: #333;
    color: white;
    border-color: #555;
  }

  /* ✅ Fix dark mode heading visibility */
  h1,
  h2,
  h3 {
    color: var(--text-dark);
  }
}

/* 📱 Responsive Design */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    justify-content: flex-start;
    width: 100%;
    margin-top: 0.5rem;
  }

  nav a {
    padding: 0.5rem 0;
    font-size: 1rem;
  }

  section {
    padding: 1rem;
  }

  h1,
  h2 {
    font-size: 1.5rem;
  }

  form {
    padding: 1rem;
    margin: 1rem 0;
  }

  .map-container {
    height: 250px;
  }
}