/**
 * CSS Variables
 *
 * @format
 */
:root {
  --color-background: #f5f1ec;
  --color-text: #3a312a;
  --color-heading: #3c2f25;
  --color-accent: #c8aa8c;
  --color-accent-hover: #b59679;
  --color-overlay: rgba(0, 0, 0, 0.35);
  --color-about-bg: #f8f4f0;
  --color-services-bg: #f0e8e0;
  --color-cta-bg: #c3a68d;
  --color-footer-bg: #3a312a;
  --color-white: #ffffff;
  --color-brown-transparent: rgba(58, 49, 42, 0.8);
}

body {
  margin: 0;
  font-family: "Karla", sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
}

h1,
h2,
h3 {
  font-family: "Petrona", serif;
  color: var(--color-heading);
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0;
}

.logo {
  text-decoration: none;
}

/* Header Navigation */
.main-header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  opacity: 0.7;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-family: "Petrona", serif;
  color: var(--color-heading);
}

.main-nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-family: "Karla", sans-serif;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--color-accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav li {
  list-style: none;
}

/* Hero Section */
.hero.service-hero {
  background-image: url("../images/services/brows/b2.jpg"); /* Replace with your actual path */
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--color-white);
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.hero.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero.service-hero .container {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero.service-hero h1 {
  font-size: 3rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.hero.service-hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-white);
}

/* Accordion Section */
.service-detail {
  padding: 4rem 1rem;
  background-color: var(--color-about-bg);
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid #ccc;
}

.accordion-item {
  border-bottom: 1px solid #ccc;
}

.accordion-header {
  position: relative;
  background: none;
  font-family: "Petrona", serif;
  font-size: 1.2rem;
  text-align: left;
  padding: 1.25rem;
  width: 100%;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
  transition: background-color 0.3s;
}

.accordion-header::after {
  content: "+";
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.accordion-header.active::after {
  content: "−";
  transform: rotate(180deg);
}

.accordion-header:hover {
  background-color: rgba(0, 0, 0, 0.03);
  cursor: pointer;
}

.accordion-content {
  padding: 0 1.25rem 1.25rem;
  font-family: "Karla", sans-serif;
  font-size: 1rem;
  color: var(--color-text);
  display: none;
}

/* Book Button */
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  font-family: "Karla", sans-serif;
  font-weight: 500;
  margin: 2rem auto 0;
  transition: background-color 0.3s ease;
  text-align: center;
}

.btn:hover {
  background-color: var(--color-accent-hover);
}

/* Footer */
.footer {
  background-color: var(--color-footer-bg);
  color: var(--color-white);
  text-align: center;
  padding: 1rem 0;
  font-family: "Karla", sans-serif;
}

/* Optional Before/After */
.before-after h2 {
  text-align: center;
  font-family: "Petrona", serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.carousel {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.carousel img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .hero.service-hero h1 {
    font-size: 2.2rem;
  }
  .main-nav a {
    margin-left: 1rem;
  }
}

.before-after {
  background-color: var(--color-about-bg);
  padding: 3rem 1rem;
  text-align: center;
}

.before-after h2 {
  font-family: "Petrona", serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-heading);
}

.before-after img {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.gallery-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}

.mini-gallery {
  background-image: url("../images/back2.png");
  background-position: center;
  background-size: cover;
}

.gallery-row img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.gallery-row img {
  width: 400px;
  height: 300px;
  overflow: hidden;
}

.gallery-row img:hover {
  transform: scale(1.05);
}

.section-alt {
  background-color: #f8f4f0;
  text-align: center;
}

/* Hero Wave Divider */
.wave-divider {
  display: block;
  width: 100%;
  height: 100px;
  position: relative;
  top: 0;
  z-index: 2;
}

.wave-top {
  position: relative;
  top: -1px;
  z-index: 0;
}

/*dropdown*/
.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  color: var(--color-text);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s;
}

.dropdown-toggle:hover {
  color: var(--primary-hover);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  z-index: 999;
  min-width: 220px;
  padding: 12px 0;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.2s;
}

.dropdown-menu a:hover {
  background-color: #f5f5f5;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: all 0.3s ease;
}

/* Desktop: hide mobile services */
.mobile-services {
  display: none;
}

/* ------------------------------------------------------ */
/* RESPONSIVE — MOBILE LAYOUT (MAX-WIDTH 768) */
/* ------------------------------------------------------ */

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Container cleanup */
  .container {
    width: 92%;
    padding: 1.5rem 0;
  }

  /* HEADER */
  .main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 1;
    z-index: 9999;
  }

  body {
    padding-top: 80px;
  }

  /* NAV */
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 0;
    transition:
      height 0.4s ease,
      opacity 0.3s ease,
      transform 0.3s ease;
    z-index: 9998;
  }

  .main-nav.open {
    height: 100vh;
    opacity: 1;
    transform: translateY(0);
    overflow-y: auto;
  }

  .main-nav a {
    padding: 1rem 0;
    width: 100%;
    text-align: center;
    font-size: 1.3rem;
    margin: 0;
  }


  .nav-toggle {
    display: flex !important;
    z-index: 10000;
    cursor: pointer;
  }

  /* HERO SECTIONS */
  .hero,
  .hero.service-hero {
    min-height: 40vh;
    padding: 2.5rem 1rem;
    background-size: cover;
  }

  .hero h1,
  .hero.service-hero h1 {
    font-size: 2rem;
  }

  .hero p,
  .hero.service-hero p {
    font-size: 1rem;
  }

  /* GALLERIES & CARDS */
  .gallery-row,
  .carousel {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    overflow: hidden;
  }

  .gallery-row img {
    width: 100% !important;
    max-width: 100% !important;
    height: 280px !important;
    object-fit: cover;
  }

  .gallery-row {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  .before-after img {
    width: 100%;
    max-width: 300px;
  }

  .accordion {
    width: 100%;
  }

  .accordion-header {
    font-size: 1.1rem;
    padding: 1rem;
  }

  section,
  div {
    max-width: 100%;
    overflow-x: hidden;
  }

  .main-nav.open {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav a {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0.75rem 0;
    font-size: 1.1rem;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-services {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
}

