/* Base Styles */
body {
  font-family: 'Open Sans', sans-serif;
  color: #4B3621; /* Deep rustic brown */
  background-color: #f5f0eb;
  margin: 0;
  padding: 0;
  padding-top: 120px; /* Prevent content from hiding behind fixed nav */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #4B3621;
  margin-top: 0;
}

/* Header */
.header {
  background-color: #d8c3a5;
  padding: 20px 0;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999; /* Stay above everything else */
}

.logo {
  font-size: 2.8rem; /* Increased from 2rem to 2.8rem */
  color: #4B3621;
  display: inline-block;
}

.logo span {
  color: #8e735b;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.nav a {
  color: #4B3621;
  text-decoration: none;
  padding: 8px 12px;
  transition: background-color 0.3s ease;
}

.nav a:hover {
  background-color: #e4d6c3;
  border-radius: 5px;
}

/* Dropdowns */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
  color: #4B3621;
  text-decoration: none;
  padding: 8px 12px;
  font-weight: bold; /* Make Stylists and Beauticians bold */
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1e7da;
  min-width: 160px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1;
  text-align: left;
}

.dropdown-content a {
  color: #4B3621;
  padding: 10px 16px;
  display: block;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #e4d6c3;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Hero Section */
.hero {
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  text-align: center;
  color: #4B3621;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-subtext {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  background-color: #8e735b;
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  background-color: #735d48;
}

/* About Section */
.about {
  padding: 60px 0;
  background-color: #fffaf4;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
  color: #4B3621;
}

.section-divider {
  border: 1px solid #d8c3a5;
  width: 60px;
  margin: 0 auto 30px;
}

.features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.feature {
  flex: 1;
  max-width: 300px;
  background-color: #f5f0eb;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(139, 69, 19, 0.1);
}

.feature h4 {
  margin-bottom: 10px;
  color: #4B3621;
}

.feature p {
  color: #4B3621;
}

/* Call to Action */
.cta {
  background-color: #e8ded1;
  padding: 40px 0;
  text-align: center;
}

.cta-heading {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #4B3621;
}

/* Footer */
.footer {
  background-color: #d8c3a5;
  color: #4B3621;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: #4B3621;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .features {
    flex-direction: column;
    align-items: center;
  }

  .nav {
    flex-direction: column;
    align-items: center;
  }

  .dropdown-content {
    position: static;
  }
}

/* Fancy rounded image styling with smooth animation and glow */
.profile-images img {
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.profile-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  filter: brightness(1.05) drop-shadow(0 0 10px rgba(139, 69, 19, 0.3));
}
/* Fancy Contact Form Styling */
.fancy-form {
  background-color: #fffaf4;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  font-family: 'Open Sans', sans-serif;
}

.fancy-form .form-group {
  margin-bottom: 1.5rem;
}

.fancy-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #5a4634;
  font-family: 'Playfair Display', serif;
}

.fancy-form .form-input,
.fancy-form .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d6cfc3;
  border-radius: 10px;
  background-color: #fefdfb;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.fancy-form .form-input:focus,
.fancy-form .form-textarea:focus {
  border-color: #c6a77d;
  outline: none;
  box-shadow: 0 0 0 3px rgba(198, 167, 125, 0.2);
}

.styled-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1rem;
}

.styled-radio-group label {
  font-weight: normal;
  font-size: 1rem;
  color: #4a3b2c;
}

.btn-fancy {
  background-color: #a67c52;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
  transition: background-color 0.3s ease;
}

.btn-fancy:hover {
  background-color: #8a6541;
}

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #5a4634;
  margin-bottom: 1.5rem;
  text-align: center;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
}
.contact-form .form-input,
.contact-form .form-textarea {
  max-width: 500px;
  margin: 0 auto;
  display: block;
}
.hero-image {
  position: relative;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Adjust opacity here */
  z-index: 1;
}

.hero-image .container {
  position: relative;
  z-index: 2;
}
.hero-title {
  color: #fff; /* Forces white text */
}
.gallery .image-grid img {
  width: 60%;
  max-width: 300px;
  display: block;
  margin: 0 auto 20px auto;
}

.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px 0;
}

.image-grid img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
/* Keeps the nav horizontal and sticky */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff; /* or whatever fits your theme */
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Pushes page content down so it's not hidden under the fixed header */
body {
  padding-top: 100px; /* adjust based on actual header height */
}

/* Flex layout for horizontal nav */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: flex-end;
}

/* Dropdown menu stays styled correctly */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  display: none;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown:hover .dropdown-content {
  display: flex;
}

.dropbtn {
  cursor: pointer;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
}
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #4B3621;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  #mainNav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background-color: #f5f0eb;
    width: 100%;
    padding: 15px 30px;
  }

  #mainNav.active {
    display: flex;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }
}
/* Mobile dropdowns fix */
.nav.active .dropdown-content {
  display: none;
  flex-direction: column;
  background-color: #fff;
  padding-left: 10px;
}

.nav.active .dropdown.open .dropdown-content {
  display: flex;
}

/* Make dropdown arrow indicator visible */
.dropbtn::after {
  content: ' ▼';
  font-size: 0.6em;
}
.header {
  text-align: center;
  padding: 20px 0;
  background-color: #fff;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin: 0;
}

.logo span {
  color: #b97c5c;
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 0;
  background-color: #f9f9f9;
  font-family: 'Open Sans', sans-serif;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  padding: 5px;
  position: relative;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #b97c5c;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
  min-width: 120px;
}

.dropdown-content a {
  display: block;
  padding: 8px 10px;
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  color: #333;
  white-space: nowrap;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Responsive stacking on smaller screens */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background: transparent;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    padding: 6px 0;
  }
}
