html{
  scroll-behavior: smooth;
}
.hidden-until-ready {
  visibility: hidden;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  min-height: 100%;
}

:root {
  --green-dark: #2e7d32;
  --green: #388e3c;
  --muted: #f5f5f5;
  --text: #222;
  --bg: #fff;
  --accent: #a5d6a7;
  /* --max-width: 1100px; */
}

/* Global */
body {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#about, #services, #gallery{
  max-width: 1100px;
}
a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 6px;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: var(--green-dark);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1200;
  gap: 20px;
  height: 60px;
}

header .logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.4px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
}

nav a {
  color: white;
  font-weight: 600;
  font-size: 0.98rem;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #a5d6a7; /* accent color on hover */
}

nav a:hover::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

/* Language select */
#langSelect {
  padding: 6px 8px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  background: white;
  color: var(--green-dark);
}

/* Hero */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url("public/cover2.jpg") center/cover no-repeat;
  color: white;
  padding: 100px 20px;
  text-align: center;

}

.hero h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.05;
  margin-bottom: 0.6rem;
  font-weight: 800;
}

.hero p {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  margin-bottom: 18px;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: #2e7d32;
  transform: translateY(-1px);
}

/* Page sections */
section {
  padding: 56px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

section h2 {
  text-align: center;
  color: var(--green-dark);
  margin-bottom: 18px;
  font-size: 1.6rem;
}

/* Services grid */
#services ul {
  list-style: none;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding: 0;
}

#services li {
  background: var(--muted);
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  font-weight: 600;
  text-align: center;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.gallery-grid img {
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Lightbox as modal */
#lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

#lightbox.active {
  display: block;
}

/* Modal content wrapper */
#lightbox .content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 80%;
}

#lightbox img {
  max-width: 90vw;   /* don’t exceed 90% of viewport width */
  max-height: 80vh;  /* don’t exceed 80% of viewport height */
  height: auto;      /* keep aspect ratio */
  width: auto;       /* prevent forced stretching */
  border-radius: 10px;
  display: block;
  margin: 0 auto;    /* center horizontally */
}

/* Close button */
#lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  cursor: pointer;
}

/* Contact form */
form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input[type="text"],
input[type="email"],
textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #cfcfcf;
  font-size: 1rem;
  width: 100%;
  resize: vertical;
}

textarea {
  min-height: 120px;
}

form button {
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: var(--green-dark);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  height: 50px;
}

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

#formStatus {
  text-align: center;
  margin-top: 6px;
}

/* Footer */
footer {
  background: #111;
  color: #ddd;
  padding: 20px;
  text-align: center;
  font-size: 0.95rem;
}

footer a {
  color: var(--accent);
}
footer a:hover {
  text-decoration: underline;
}

/* Close button styling (for modal) */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #388e3c;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.close-btn:hover {
  background: #2e7d32;
  transform: scale(1.1);
}
.close-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 142, 60, 0.5);
}

#contactButton .loader {
  border:2px solid #fff;
  border-top:2px solid rgba(255,255,255,0.3);
  border-radius:50%;
  width:16px;
  height:16px;
  animation:spin 0.6s linear infinite;
  display:inline-block;
}
@keyframes spin { 0%{ transform:rotate(0deg);} 100%{ transform:rotate(360deg);} }
#contactButton.loading { pointer-events:none; opacity:0.7; }


/* Responsive tweaks */
@media (max-width: 800px) {
  header {
    padding: 12px 14px;
    gap: 10px;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 12px;
    background: var(--green-dark);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px 14px;
  }

  nav.active ul {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  #langSelect {
    margin-left: auto;
    /* margin-top: 10px; */
  }

  .hero {
    padding: 80px 16px;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --text: #ddd;
    --muted: #111;
  }
  header {
    background: #123b17;
  }
  .placeholder {
    background: #222;
    color: #ddd;
  }
  section {
    color: var(--text);
  }
}
