/* ====================================================
  1. CSS RESET & BASE STYLES
==================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/*html {
  scroll-behavior: smooth;
}*/
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font-family: 'Merriweather', serif;
  line-height: 1.6;
  color: #2e2e2e;
  background-color: #faf9f6;
  padding-top: 70px; /* for fixed header */
   font-size: 1rem; /* Ensures consistent text scaling */
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}


/* ====================================================
  2. HEADER STYLES
==================================================== */
.header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Slightly stronger shadow */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2% 5%; /* Using percentages for adaptive spacing */
}

.logo {
  font-size: 2vw; /* Using viewport width for better scaling */
  font-weight: bold;
  color: #3b7a57;
}

.logo img {
  max-height: 10vh; /* Height adjusts dynamically */
  width: auto;
}

/* ====================================================
  3. NAVIGATION BAR
==================================================== */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 5%;
  margin: 0;
  padding: 0;
}

.navbar a {
  font-weight: 500;
  font-size: 1.2rem; /* Slightly larger for readability */
  transition: color 0.3s ease-in-out;
  text-decoration: none;
}

.navbar a:hover {
  color: #3b7a57;
  text-shadow: 0px 1px 5px rgba(59, 122, 87, 0.3); /* Soft hover effect */
}

.navbar a.active {
  border-bottom: 3px solid #3b7a57; /* Increased thickness for better visibility */
  padding-bottom: 3px; /* Added padding to prevent overlap */
}
/* ====================================================
  4. HERO BANNER
==================================================== */
.hero-banner {
  position: relative;
  background: url('/images/hero.jpg') no-repeat center center;
  background-size: cover; /* Ensures full background visibility */
  color: #ffffff;
  padding: 5% 2%;
  text-align: center;
}

.hero-banner::after {
  content: "caption by Ayurvedic Lifestyle"; /* Replace with your actual caption. **position: absolute; */
  position: relative;
  bottom: 8%; /* Adjusted for better placement */
  left: 8%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6); /* Slightly darker overlay for better readability */
  color: #fff; /* Changed to white for contrast */
  padding: 1.5% 3%;
  font-size: 1.2rem;
  border-radius: 8px;
}

.hero-banner h1 {
  font-size: 4vw; /* Uses viewport width for adaptive font size */
  margin-bottom: 2%;
}

.hero-banner p {
  font-size: 1.5vw;
  max-width: 70%;
  margin: auto;
}

#hero {
  min-height: 70vh; /* Increased height for better balance */
  background-position: center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
/* ====================================================
  5. SECTION HEADINGS & TEXT
==================================================== */
.section {
  padding: 4% 2%;
  max-width: 85%; /* Using percentage for better flexibility */
  margin: auto;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 6vw, 4rem); /* Adaptive font size */
  color: #3b7a57;
  margin-bottom: 4%;
  font-weight: bold;
}
/* Section: Treatments (Extended for treatments.php) */
.section-treatments .card-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.section-booking {
  text-align: center;
  padding: 2rem;
  background: #f0f9f1;
}

.section-booking .btn-primary {
  background: #2e7d32;
  color: #fff;
  padding: 0.6rem 1.5rem; /* Using relative units */
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease-in-out; /* Smooth hover effect */
}

.section-booking .btn-primary:hover {
  background: #1b5e20; /* Slightly darker shade for hover */
}
/* ====================================================
  6. CONTENT SECTIONS
==================================================== */
.section-about,
.section-diet,
.section-benefits,
.section-treatments,
.section-testimonials {
  margin-bottom: 3rem;
}
.section-about p,
.section-diet p,
.section-benefits p,
.section-treatments p {
  max-width: 800px;
  margin: auto;
  font-size: 1rem;
  line-height: 1.8;
}

/* Cards Grid */
.card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
}

/* ====================================================
  7. TESTIMONIALS
==================================================== */
.section-testimonials {
  background-color: #f0f8f4;
  padding: 4rem 2rem;
}
.testimonial {
  font-style: italic;
  text-align: center;
  margin-bottom: 2rem;
}

/* ====================================================
  8. FAQ SECTION
==================================================== */
.faq {
  max-width: 800px;
  margin: auto;
}
.faq-item {
  margin-bottom: 1.5rem;
}
.faq-question {
  font-weight: bold;
  cursor: pointer;
}
.faq-answer {
  display: none;
  padding-top: 0.5rem;
  color: #444;
}

/* ====================================================
  9. FOOTER STYLES
==================================================== */
.footer {
  background-color: #f4f2ec;
  color: #333;
  padding: 4% 2%;
  font-size: 95%;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5%;
  justify-content: space-between;
  max-width: 80%;
  margin: auto;
}
.footer-section {
  flex: 1 1 15%;
  min-width: 18%;
}
.footer-section h4 {
  font-size: 120%;
  margin-bottom: 5%;
  color: #2d6a4f;
}
.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #444;
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

.footer-social a {
  color: #2a7a58;
  text-decoration: none;
  margin-right: 10px;
}

.footer-social a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  font-size: 85%;
  color: #777;
  padding-top: 3%;
  margin-top: 3%;
  border-top: 0.1em solid #ccc;
} 
/* ===
.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #ccc;
} */
/*contact form*/
.contact-form label,
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 1em;
}
.success-message { color: green; }
.error-message { color: red; }

/* ====================================================
  10. BUTTONS
==================================================== */
.btn, .btn-outline {
  cursor: pointer; 
  transition: all 0.3s ease-in-out; padding: 0.75rem 1.5rem;
} /*clearly indicate the element is clickable==== */
.btn:focus, .btn-outline:focus {
  outline: 2px solid #2e5942;
  outline-offset: 2px;
} /*Helps keyboard users==== */
.btn:active, .btn-outline:active {
  transform: scale(0.98);
} /*Adds tactile feedback when clicking */
/*easier theme changes*/
:root {
  /* Spacing Variables */
  --space-1: 0.5rem;
  --space-2: 1rem;

  /* Button Color Variables */
  --btn-green: #3b7a57;
  --btn-green-dark: #2e5942;
  --btn-text: #fff;
}

.btn {
  background-color: var(--btn-green);
  color: var(--btn-text);
}

.btn:hover {
  background-color: var(--btn-green-dark); 
}

.btn-outline {
  border: 2px solid var(--btn-green);
  color: var(--btn-green);
}

.btn-outline:hover {
  background-color: var(--btn-green);
  color: var(--btn-text); padding: 0.75rem 1.5rem;
}
/* ====================================================
  11. UTILITIES
==================================================== */
.text-center {
  text-align: center;
}
.mt-2 { margin-top: var(--space-1); }
.mt-4 { margin-top: var(--space-2); }
.mb-4 { margin-bottom: var(--space-2); }

/* ====================================================
  12. MEDIA QUERIES
==================================================== */
/* Default desktop styles */

.container {
  max-width: 80%;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-container {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  justify-content: flex-end;
}
.navbar ul li a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  padding: 0.5rem;
}
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  background-color: #3b7a57;
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 1000;
}
/* Hide mobile button on desktop */
.mobile-menu-toggle {
  display: none;
  font-size: 1.75rem;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  z-index: 1001;
}

/* Mobile styles */
@media (min-width: 769px) {
  .navbar ul {
    display: flex !important;
  }}
@media (max-width: 768px) {
  .navbar ul {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    padding: 1rem;
    position: absolute;
    top: 70px;
    right: 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }

  .navbar.open ul {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
  }
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 5%;
    max-width: 90%;
  }

  .footer-section {
    width: 100%;
    margin-bottom: 5%;
  }

  .footer-bottom {
    text-align: left;
    font-size: 90%;
    padding-top: 5%;
    margin-top: 5%;
  }
  .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 2;
  padding: 2%;
  background-color: rgba(0, 0, 0, 0.4); /* Optional: improves readability */
  border-radius: 10px;
}
  .hero-content h1 {
    font-size: 6vw;
    margin-bottom: 1rem;
}
  .hero-content p {
    font-size: 4vw;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}
  .section-title {
    font-size: 10vw;
  }
}

.login-form-wrapper {
  max-width: 80%; /* Instead of 400px */
  margin: 5% auto; /* Adjusted for better spacing */
  background-color: #fff;
  padding: 4%; /* Dynamic padding */
  border-radius: 10px;
  box-shadow: 0 0 2vw rgba(0, 0, 0, 0.05); /* Using vw for better scaling */
}


.login-form-wrapper input[type="email"],
.login-form-wrapper input[type="password"],
.login-form-wrapper input[type="text"] {
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.login-form-wrapper button[type="submit"] {
  width: 100%;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: bold;
}

.login-form-wrapper {
  max-width: 80%; /* Instead of fixed pixels */
  margin: 5% auto;
  background-color: #fff;
  padding: 4%;
  border-radius: 10px;
  box-shadow: 0 0 2vw rgba(0, 0, 0, 0.05);
}

.login-form-wrapper input[type=email],
.login-form-wrapper input[type=password],
.login-form-wrapper input[type=text] {
  padding: 1.5%;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  margin-bottom: 1.5%;
}

.login-form-wrapper button[type=submit] {
  width: 100%;
  margin-top: 2%;
  font-size: 1rem;
  font-weight: bold;
}

.captcha-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2%;
}

.captcha-box img {
  margin-bottom: 1%;
  border: 1px solid #ccc;
  border-radius: 5px;
}
