/* --- KEYFRAMES FOR PAGE-LOAD ANIMATIONS --- */
@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Global Styles --- */
body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  padding-top: 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  color: #004d40;
}

/* --- Header & Navigation (SOLID WHITE BAR) --- */
header {
  background-color: white;
  padding: 4px 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e6ebe8;
  position: relative;
}

header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 6px;
  background: linear-gradient(
    90deg,
    rgba(0, 77, 64, 0.06),
    rgba(255, 111, 0, 0.04)
  );
  pointer-events: none;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}
.logo-img,
header img.logo {
  display: block;
  height: 62px;
  width: auto;
  margin: 0;
  line-height: 1;
}

@media (max-width: 480px) {
  .logo-img,
  header img.logo {
    height: 52px;
  }
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center; /* Ensures buttons align vertically */
}

header nav ul li a {
  color: #004d40;
  text-decoration: none;
  padding: 8px 15px;
  margin: 0 5px;
  display: block;
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s,
    transform 0.2s;
  font-weight: 600;
  border: 1px solid #e0f2f1;
  border-radius: 4px;
}

/* --- STAFF LOGIN BUTTON (NEW) --- */
header nav ul li a.login-header {
  background-color: #ff6f00; /* Matching CTA Orange */
  color: white;
  border: 1px solid #ff6f00;
}

header nav ul li a.login-header:hover {
  background-color: #e65100;
  border-color: #e65100;
  color: white;
  transform: translateY(-2px);
}

header nav ul li a.whatsapp-header {
  padding: 8px;
  margin: 0 5px;
  border: 1px solid #25d366;
  background-color: #25d366;
  color: white;
}

header nav ul li a.whatsapp-header:hover {
  background-color: #20ba5a;
  border-color: #20ba5a;
  transform: translateY(-2px);
}

header nav ul li a:hover:not(.whatsapp-header):not(.login-header) {
  background-color: #e0f2f1;
  color: #00251a;
  border-color: #004d40;
}

/* --- Home/Hero Section --- */
.hero {
  background:
    linear-gradient(135deg, rgba(0, 47, 39, 0.9), rgba(0, 15, 48, 0.9)),
    url("hero-texture.jpg") no-repeat center center / cover;

  color: white;
  text-align: center;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero .hero-content {
  max-width: 800px;
  z-index: 10;
}

.hero h2 {
  font-family: "Cormorant Garamond", serif;
  margin-bottom: 40px;
  font-size: 3.2em;
  color: white;
  font-weight: 700;
  animation: fadeInSlideUp 1s ease-out 0.2s forwards;
  opacity: 0;
}

.hero p {
  font-size: 1.1em;
  max-width: 600px;
  margin: 0 auto 30px;
  font-weight: 400;
  text-align: justify;
  animation: fadeInSlideUp 1s ease-out 0.5s forwards;
  opacity: 0;
}

.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: none;
  padding: 0;
}

.cta-button {
  display: inline-block;
  background-color: #ff6f00;
  color: white;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition:
    background-color 0.3s,
    transform 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  animation: fadeInSlideUp 1s ease-out 0.8s forwards;
  opacity: 0;
}

.cta-button:hover {
  background-color: #e65100;
  transform: translateY(-2px);
}

/* --- Why Choose Us --- */
.why-us {
  background-color: #fff;
  padding: 60px 0;
  text-align: center;
}

.why-us-grid {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  margin-top: 40px;
}

.why-us-grid div {
  flex-basis: 30%;
  padding: 20px;
  border: 1px solid #e0f2f1;
  border-radius: 8px;
  transition: box-shadow 0.3s;
}

.why-us-grid div:hover {
  box-shadow: 0 4px 15px rgba(0, 77, 64, 0.1);
}

.why-us-grid h3 {
  margin-top: 0;
  color: #00796b;
}

/* --- Gallery Styles --- */
.service-gallery {
  background-color: #f4f4f4;
  padding: 60px 0;
  text-align: center;
}

.gallery-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 50px;
}

.gallery-container {
  display: flex;
  overflow-x: scroll;
  scroll-behavior: smooth;
  padding: 20px 0;
  gap: 20px;
  justify-content: flex-start;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.gallery-container::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 300px;
  height: 300px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-item .caption {
  padding: 15px 10px;
  font-weight: 600;
  color: #004d40;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 77, 64, 0.7);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5em;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.scroll-button.left { left: 0; }
.scroll-button.right { right: 0; }

#services .gallery-cta {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* --- Footer --- */
footer {
  background-color: #01382f;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 0.88em;
}

footer p { margin: 6px 0; }

/* --- Responsive Layout --- */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }

  header nav ul {
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  header nav ul li a {
    padding: 5px 10px;
    margin: 5px;
  }
}