html, body, header.bati {
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  /* Remove any fixed or min-widths if present! */
}

html {
    background-color: #ECFAE5;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body, html {
  overflow-x: hidden !important;
}


@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{
    position: relative;
    overflow: hidden;
    padding-bottom: 45px;
    padding-top: 0;
    /*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;
}
#gallery h2, #gallery h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}
#gallery h2 {
  font-size: 2.2em;
  margin-bottom: 0.3em;
}
#gallery h4 {
  font-size: 1.3em;
  font-weight: 400;
  color: #445;
  margin-top: 0.1em;
}
#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 !important;
  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;
}

#reviews {
  background-color: #f7f7f7;
  background-color: #333;
  padding: 60px 20px;
  text-align: center;
}

#reviews h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
  color: f7f7f7;
}

#bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;  /* Prevents video from blocking clicks */
}
html, body, header.bati {
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
}
.bati-hero {
 
  box-sizing: border-box; /* Add */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  text-align: center;
  position: relative;
  z-index: 2;
  background: rgba(17, 63, 103, 0.18);
  backdrop-filter: blur(3px);
  border-radius: 2em;
  padding: 2.5em 3em;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  max-width: 1300px;       /* You can adjust: try 480px - 800px */
  margin: 60px auto 0 auto;  /* centers horizontally, adds spacing at top */
  width: 90%;             /* Responsive on very small screens */
}
@media (max-width: 600px) {
  .bati-hero {
    max-width: 92vw !important;
    width: 97vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0.7em !important;
    padding-right: 0.7em !important;
    border-radius: 1.3em !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
}

#bati {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 4em;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
  margin-bottom: 0.1em;
}

#haus {
  font-family: 'Lato', Arial, sans-serif;
  color: #a5e623;
  font-size: 2em;
  font-style: italic;
  letter-spacing: 0.4em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  background: rgba(17, 63, 103, 0.25);
  border-radius: 0.4em;
  padding: 0.2em 1em;
  margin-top: 0.2em;
  display: inline-block;
}
header.bati {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1em 2em;
    position: relative;
}
#logo {
    height: 60px;
    width: auto;
    margin: 0;
}

.menu-toggle {
    width: 40px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 3; /* above nav background */
}
.menu-toggle span {
    height: 5px;
    background: #fff;
    border-radius: 4px;
    margin: 0;
    display: block;
    transition: 0.3s;
}

/* Hide nav by default; show when .open is added */

nav#main-nav ul {
    /*list-style: none;
    margin: 0; padding: 0;*/
}
nav#main-nav li {
    margin: 1em 0;
}
nav#main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
}

header.bati {
    position: relative;
    width: 100%;
    min-height: 420px;
    z-index: 2;
    /* other header styling */
}

/* Video stays as before */
#bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Hero text stays as before. Add your preferred style! */
.bati-hero {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 30px;
}

/* Logo at top left */
#logo {
    position: absolute;
    top: 24px;
    left: 32px;
    height: 60px;
    width: auto;
    z-index: 11;
}

/* Hamburger always at top right—even desktop */
.menu-toggle {
    position: absolute;
    top: 34px;
    right: 75px;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 21;
}
.menu-toggle span {
    display: block;
    height: 6px;
    width: 100%;
    background: #18456b;
    border-radius: 4px;
    margin: 0;
    transition: all .2s;
}

/* NAV OVERLAY - hidden by default */
#main-nav.nav-overlay {
    display: none;
}
#main-nav.nav-overlay.open {
    display: flex;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 96vw;
    max-width: 420px;    /* modal width */
    height: auto;
    max-height: 90vh;
    background: linear-gradient(135deg, #859416f3 0%, #a3c623f0 50%, #10b5cbf1 100%);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 100;
    border-radius: 2.5em;
    box-shadow: 0 6px 32px rgba(0,0,0,0.32);
    transform: translate(-50%, -50%);
    padding: 3em 2em;
    /* No opacity! */
}
#main-nav ul {
    width: 100%;
}
#main-nav li {
    margin: 2em 0;
}
#main-nav a {
    color: #fff !important;
    font-size: 2em;
    text-align: center;
}
#main-nav a:hover {
    color: #a5e623;
}

/* Animate hamburger into X when menu open */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(19px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-19px) rotate(-45deg);
}


@media (max-width:600px) {
  .bati-hero {
    padding: 1em 0.5em !important;
    max-width: 95vw !important;
    width: 98vw !important;
    height: auto !important;
    margin: 24px auto 0 auto !important;
    font-size: 1.1em;
    border-radius: 2em !important;
  }
}
.bati-hero {
  max-width: 640px;
  margin: 60px auto 0 auto;
  width: 90%;
  border-radius: 2em;
  padding: 2.5em 3em;
  box-sizing: border-box;
  /* (rest of your style) */
}

@media (max-width: 600px) {
  .bati-hero {
    max-width: 92vw !important;
    width: 97vw !important;
    margin: 1.5em auto 0 auto !important;
    padding: 1.2em 0.7em !important;
    border-radius: 1.3em !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  body, html {
    overflow-x: hidden !important;
  }
}

@media (max-width: 600px) {
  .bati-hero {
    max-width: 94vw !important;
    width: 97vw !important;
    margin: 1em auto 0 auto !important;
    padding: 1em 0.7em !important;
    border-radius: 1.3em !important;
    height: auto !important;
    box-sizing: border-box !important;
    /* Add next line to prevent any potential long-word problems: */
    word-break: break-word !important;
  }
}
@media (max-width: 600px) {
  header.bati {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}