/* =========================
   Base Styles
========================= */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  font-family: 'Albert Sans', sans-serif;
  color: #4c4637;
}

p {
  line-height: 1.6;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =========================
   Header & Navigation
========================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #4a5d23;
  color: #daded8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-sizing: border-box;
  padding: 0 4rem;
}

.site-logo {
  max-width: 120px;
}

nav {
  display: flex;
  justify-content: center;
  flex-grow: 1;
  padding-left: 10rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  font-size: 18px;
}

nav ul li a {
  color: #daded8;
  text-decoration: none;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* Desktop-only nav */
.desktop-nav {
  display: flex;
}

/* Mobile menu toggle */
.menu {
  display: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: white;
  text-decoration: underline;
}

/* Dropdown menu (mobile) */
.dropdown {
  display: none;
  flex-direction: column;
  text-align: center;
  position: absolute;
  left: 0;
  width: 100%;
  gap: 2rem;
  background-color: #4a5d23;
  padding: 2rem 0;
  z-index: 2000;
}

.dropdown a {
  color: #daded8;
  text-decoration: none;
  font-size: 1rem;
}

.dropdown.show {
  display: flex;
}

/* =========================
   Buttons
========================= */
.book-btn, .book-btn-home, .giftvoucher-btn {
  color: #daded8;
  font-weight: bolder;
  background: #4c4637;
  border: none;
  border-radius: 115px;
  cursor: pointer;
  text-decoration: none;
}

.book-btn {
  font-size: 18px;
  padding: 0.75rem 1.5rem;
  margin-left: 10rem;
}

.book-btn-home, .giftvoucher-btn {
  font-size: 18px;
  padding: 1rem 3rem;
  margin-left: 0;
}

.book-btn:hover, .book-btn-home:hover, .giftvoucher-btn:hover {
  background: #807966;
  text-decoration: underline;
}

/* ===================
    Body
====================*/


.treatments-heading {
  padding-top: 8rem;
  text-align: center;
  font-size: 2.5rem;
}

.treatment-card p {
  text-align: left;
  margin-left: 2rem;
  margin-right: 2rem;
  padding-bottom: 0rem !important;
}

.treatment-card p.price{
  text-align: center;
}

.treatment-card li {
  text-align: left;
  margin-left: 1.5rem;
  margin-right: 2rem;
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 3rem;
  padding: 2rem 15%;
}

.treatment-card {
  background:#fff;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.345);
}

.treatment-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.treatment-card h3 {
  margin: 1rem 5% 0.5rem 5%;
}

.treatment-card p {
  padding: 0 1rem 1rem 1rem;
}

.book-button {
  color:#fefae3;
  background:#2b361c;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* =========================
   Footer
========================= */
footer {
  background-color: #4a5d23;
  color: #daded8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 2rem;
}

.footer-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.footer-text {
  padding-top: 1rem;
}

.map-link, .phone-number, .policy-link a {
  text-decoration: none;
  color: #daded8;
}

.map-link:hover, .phone-number:hover, .policy-link a:hover {
  text-decoration: underline;
}

.facebook-logo, .instagram-logo {
  height: 50px;
}

/* =========================
   Booking Modal
========================= */
.booking-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.booking-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  height: 80%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.close-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #2b361c;
  color: #fefae3;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  z-index: 10;
}

/* Tablets <= 1024px */
@media (max-width: 1024px) {
  .site-logo {
    max-width: 100px;
  }

  nav {
    padding-left: 2rem;
  }

  nav ul {
    font-size: 12px;
  }

  .book-btn {
    font-size: 16px;
    padding: 0.6rem 1.2rem;
    margin-left: 2rem;
    display: block;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 768px) { 
/* Header */
  header {
    position: relative;
    flex-direction: column;
    height: 100px;
  }

    .book-btn {
    display: none;
    margin: 0;
    width: auto;
  }

  .site-logo {
    max-width: 100px;
    margin-top: 1rem;
    padding-bottom: 1rem;
  }

  /* Hide desktop nav, show menu */
  .desktop-nav {
    display: none;
  }
  .menu {
    display: block;
  }

  nav {
    padding-left: 2rem;
    width: 100%;
    position: relative;
  }

  .dropdown {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: absolute; /* Change to absolute to make it non-sticky */
    left: 0;
    background-color: #4a5d23;
    width: 100%;
    z-index: 2000;
    padding: 0;
    margin: 0;
    padding-bottom: 2rem;
    padding-top: 2rem;
  }


  .dropdown.show {
    display: flex;
  }

     /* Main mobile */
  .treatment-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    padding-top: 0rem;
  }

  .treatment-card {
    width: 100%;
  }

  .treatments-heading {
    padding-top: 0;
    text-align: center;
  
  }

      /* Footer mobile */
  footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    font-size: 1.5vh;
  }

  .footer-icons {
    justify-content: center;
  }

  .container {
    min-height: auto;
  }
}
