/* RESET */
body, ul {
  margin: 0;
  padding: 0;
}
ul { list-style: none; }
a {
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}
body.menu-open { overflow: hidden; }

/* TOP BAR */
.top-bar {
  background: #579679;
  color: #fff;
  font-size: 14px;
  padding: 6px 0;
}
.top-bar .container {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* handle narrow screens */
}
.top-bar a {
  margin-left: 15px;
  color: #fff;
  font-size: 14px;
}
.top-bar a:hover { color: #ffd6e3; }

/* NAVBAR */
.navbar {
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar .container {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

/* LOGO */
.logo img { height: 45px; max-width: 100%; }
.logo .tagline {
  font-size: 12px;
  color: #579679;
  font-weight: bold;
  display: block;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 25px;
  position: relative;
}
.nav-links li { position: relative; }
.nav-links a {
  color: #333;
  font-weight: 500;
  transition: 0.3s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: #579679; }
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #579679;
  transition: 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* DROPDOWN MENU (Desktop) */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  border-radius: 5px;
  min-width: 200px;
  z-index: 1000;
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu li {
  border-bottom: 1px solid #f1f1f1;
}
.dropdown-menu li:last-child {
  border-bottom: none;
}
.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: #333;
  font-size: 14px;
}
.dropdown-menu a:hover {
  background: #f8f8f8;
  color: #579679;
}

/* APPOINTMENT BUTTON */
.btn-appointment {
  background: linear-gradient(135deg,#579679,#067642);
  color: #fff;
  padding: 8px 18px;
  border-radius: 25px;
  font-weight: bold;
  transition: 0.3s;
  font-size: 14px;
  cursor: pointer;
}
.btn-appointment:hover { background: #579679; }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: 0.3s ease;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #579679;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px,5px);
}
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px,-5px);
}

/* OVERLAY */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1001;
}
.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  transition: right 0.4s ease;
  z-index: 1002;
  overflow-y: auto; /* scrollable if content exceeds screen */
}
.mobile-menu.open { right: 0; }
.mobile-menu-content {
  padding: 80px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-menu-content ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-menu-content a {
  color: #333;
  font-size: 18px;
  font-weight: 500;
}
.mobile-menu-content a:hover { color: #579679; }

/* Mobile Dropdown for Treatments */
.mobile-menu .dropdown-menu {
  position: relative;
  top: 0;
  box-shadow: none;
  background: #f9f9f9;
  border-radius: 0;
  display: none;
  padding-left: 15px;
}
.mobile-menu .dropdown.open .dropdown-menu {
  display: block;
}

/* Mobile CTA Button */
.mobile-btn {
  margin-top: 30px;
  display: inline-block;
  font-size: 16px;
  background: linear-gradient(135deg,#579679,#d11e50);
  color: #fff;
  padding: 12px;
  border-radius: 30px;
  width: 100%;
  text-align: center;
  transition: 0.3s;
}
.mobile-btn:hover { background: #579679; }

/* MODAL (Appointment Popup) */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal.active { display: flex; }

.modal-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.modal-content h2 {
  margin-bottom: 15px;
  font-size: 22px;
  color: #579679;
}

.modal-content .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #333;
}

.modal-content .form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.modal-content label {
  margin-bottom: 5px;
  font-weight: 500;
}

.modal-content input,
.modal-content textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.modal-content textarea {
  resize: none;
  height: 80px;
}

/* RESPONSIVE */
@media(max-width:991px){
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .top-bar .container {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
}

@media(max-width:600px){
  .top-bar a {
    font-size: 12px;
    margin-left: 8px;
  }
  .btn-appointment {
    padding: 6px 14px;
    font-size: 13px;
  }
  .mobile-menu-content a {
    font-size: 16px;
  }
}
