html {
    background-color: #ECFAE5;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}



@media (max-width:600px) {
  header.bati {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .slides img {
    flex: 0 0 50%; 
    height: 300px;
  }
}

@media (max-width: 480px) {
  .slides img {
    flex: 0 0 100%; 
    height: 250px;
  }
}

nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
  }

  @media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
}
@media (max-width: 992px) {
  .service-group {
    max-width: 100%;
  }
}

@media (hover: hover) and (pointer: fine) {
  .service-group:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
  }  
}

@media screen and (max-width: 768px) {
  .flex-container {
    display: flex;
    flex-wrap: wrap; /* This is the key property */
    flex-direction: column; /* Stacks items vertically on small screens */
  }

  .contact-container, .map-container {
    width: 100%; /* Each item takes full width on a new line */
  }

  .map-container {
    height: 300px; /* Keep a fixed height for the map, but it now takes up 100% of the width */
  }
}
  

  #logo {
    max-width: 140px;
  }


.bati{
    background-image: url(./leafpic.jpg);
    background-image: url(./pexels-ridoframe-997209.jpg);
    padding-bottom: 45px;
    padding-top: 0;
}

header .bati {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* ✅ allows stacking on small screens */
  padding: 20px;
  background-color: #ffffff;
  gap: 20px;
}

#logo {
  max-width: 180px;
  height: auto;
  margin-left: 20px;
  flex-shrink: 0; /* prevents it from shrinking too small */
  margin-top: 30px;
 
}


header.bati > div {
  flex-grow: 1;
  text-align: center;
}

header div {
    display: flex;
    flex-direction: column;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 20px 0 0 0;
  flex-wrap: wrap;
  justify-content: center;
  
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
  text-decoration: none;
  color:rgb(167, 161, 54);
  font-weight:800;
  letter-spacing: 0.3em;
  transition: 0.3 ease;
}
nav ul li a:hover {
  color: white;
}



nav a {
    color: navy;
    text-decoration: none;
}

section {
    padding: 20px;
    margin: 10px;
    border: 1px solid #ccc ;
}

.slider {
    overflow: hidden;
    width: 100%;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slides img {
    flex: 0 0 33.3333%;
    width:100%;
    height: 450px;
    border: 3px solid whitesmoke;
    box-sizing: border-box;
    border-radius: 30px;
  
}

footer {
    text-align: center;
    background: #333;
    color: white;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}
#bati {
    color: #113F67;
    font-size: 4em;
    letter-spacing: 1em;
    text-align: center;
    
    
}
#haus {
 color: rgb(165, 230, 35);
    letter-spacing: 1em;
    font-size: 2em;
    border: 2px solid #78ac00;
    width: fit-content;
    margin: 0 auto;

    /* Add padding to balance spacing */
    padding-left: 1em;  /* Matches the letter-spacing */
    padding-right: 0;   /* Leave right side untouched */
}

#services {
  padding: 70px;
  background-color: #f8f9fa; /* light gray background */
  font-family: sans-serif;
  color: whitesmoke;
}
#services h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
  color:black;
  color: whitesmoke;
}

.services-container {
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 40px; /* smaller gap for balance */
  flex-wrap: wrap; /* responsive */
  align-items: stretch;
  padding-bottom: 150px;
}


.service-group {
  background:  #50505099;/*white */;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px 30px;
  max-width: 280px;
  flex: 1 1 280px;
  max-width: 360px;
  opacity: 0;
  transform: translateY(var(--translateY, 0px));
  transition:  0.3s ease, box-shadow 0,3s ease !important;
  will-change: transform;
  box-shadow: 0 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.service-group[data-visible="true"] {
  opacity: 1;
}

.service-group {
  opacity: 0;
  transform: transform 0.3s ease, opacity 0.3s ease;
}
/*
.service-group.visible {
  opacity: 1;
  transform: translateY(0);
} */
.service-description {
  max-width: 500px;
  flex: 2 1 100%;
  font-size: 0.95em;
  line-height: 1.6;
  font-weight: bolder;
}



.heading-style {
  font-size: 1.4em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  color: rgb(39, 14, 14);
  color: whitesmoke;
}


.service-group ul {
  list-style-type: none;
  padding-left: 0;
}

.service-group li {
  background-color: rgba(88, 42, 42, 0.225);
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.blanklist{
  height:1.1em;
}

.service-group li:hover {
  background-color: #d4ebba;
  background-color: black;
  background-color: 	#821210;
 
}

#about {
    background-color: #78ac00;
    font-weight: bolder;
    text-align: center;
}
#services {
background: linear-gradient(180deg, rgba(97, 180, 58, 1) 0%, rgba(100, 204, 201, 1) 50%, rgba(214, 176, 122, 1) 100%);
  background-image: url(./pexels-heyho-7174108.jpg);
  background-size: cover; /* Or 'cover' depending on your need */
  background-repeat: repeat; /* Prevents the image from tiling */
  background-position: center; /* Centers the image */
  background-attachment: fixed;

}
#gallery {
    background-color: #D2D0A0;
    padding: 30px;
    text-align: center;
    color: #3e5a06;
}
#contact{
    background-color: #A2B9A7;
    font-weight: bolder;
}


.slider-wrapper {
  max-width: 100%;
  overflow: hidden;
}


.contact-container {
  display: flex;
  flex-wrap: wrap; /* optional: makes it responsive on small screens */
  gap: 20px;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
  min-width: 250px;
  margin-top: 45px;
}

.contact-container iframe {
    flex: 1;
    min-width: 200px;
    width: 100%;
    max-width: 100%;
    height: 300px;
    box-sizing: border-box;
}
#address{
  color: #2a3d05;
}

#contact h2 {
  color:#1C352D;
}

.container {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 20px;
 
}

/* Password overlay */
.password-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.password-box {
  background: white;
  padding: 24px;
  border-radius: 8px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.password-box input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  box-sizing: border-box;
  font-size: 1rem;
}
.password-box button {
  margin-top: 12px;
  padding: 10px 16px;
  cursor: pointer;
}
.password-error { color: #b00020; margin-top: 8px; font-size: .9rem }


@media (max-width: 768px) {
  .service-group {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .service-group p {
    text-align: left;   /* avoids stretched spacing */
    word-spacing: normal;
  }
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 2px;
  background-color:rgba(0, 128, 0, 0.5);
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  font-size: 24px;
  text-decoration: none;
  display: none; /* Initially hide it, we'll show with JavaScript */
  z-index: 1000;
}
