@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: white;
  color: #333;
  line-height: 1.8;
  overflow-x: hidden;
  transition: background 0.3s ease;
}

h1, h2, h3,
.nav-item span:first-child {
  font-family: "Crimson Text", serif;
}


.site-header,
.nav-item,
.submenu a,
.nav-footer a,
.header-left,
.header-logo,
.menu-toggle,
.nav-menu,
.nav-menu ul,
.submenu li,
.submenu a,
.toggle-icon,
.nav-footer {
    font-family: "Crimson Text", sans-serif;
}

body.light-hero .site-header {
  background-color: white;
}

body.light-hero .site-header .menu-text,
body.light-hero .site-header .appointment-btn,
body.light-hero .site-header .nav-item {
  color: black !important;
}

body.light-hero .site-header .white-logo {
  display: none !important;
}

body.light-hero .site-header .black-logo {
  display: block !important;
}

body.light-hero .site-header .menu-toggle span {
  background-color: black !important;
}


.header-logo span {
  font-family: "Crimson Text", serif;
}



body.menu-open {
  overflow: hidden;
}

/* === Header === */
.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2000;
  background: transparent;
  transition: all 0.3s ease;
  font-family: "brandon";
}

.site-header.hidden {
  transform: translateY(-100%);
}

.site-header.scrolled-up,
body.menu-open .site-header {
  background: #FFFAF5;
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

body.menu-open .site-header {
  transition: background 0.3s ease;
}

.header-left {
  display: flex;
  align-items: center;
}

/* === Menu Toggle === */
.menu-toggle {
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer !important;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #FFFAF5;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.menu-toggle.active span {
  background: black;
}

.site-header.scrolled-up .menu-toggle span,
body.menu-open .menu-toggle span {
  background: black;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
  position: absolute;
}

.menu-toggle.active span:nth-child(2) {
  transform: rotate(-45deg);
  top: 9px;
  position: absolute;
}

/* === Menu Text & Button === */
.menu-text {
  margin-left: 10px;
  /*font-weight: bold;*/
  color: white;
  transition: color 0.3s ease;
  font-size: 0.95rem;
  /*font-family: "brandon";*/
   font-family: 'Poppins', sans-serif;
  
}

.site-header.scrolled-up .menu-text,
body.menu-open .menu-text {
  color: black;
}

.appointment-btn {
  background: none;
  border: none;
  color: white;
  /*font-weight: bold;*/
  cursor: pointer;
  transition: color 0.3s ease;
  font-size: 0.95rem;
  text-decoration: none;
  /*font-family: "brandon";*/
  font-family: 'Poppins', sans-serif;
}

/* .site-header.scrolled-up .appointment-btn,
body.menu-open .appointment-btn .appointment-text {
  color: black !important;
} */

body.menu-open .appointment-btn,
.site-header.scrolled-up .appointment-btn {
  color: black !important;
}

/* === Centered Logo === */
.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  display: flex;
  align-items: center;
  /* pointer-events: none; prevents overlap issues */
}

.header-logo a {
  pointer-events: auto; /* allow link to work */
}

.header-logo img {
  max-height: 50px;
  width: auto;
}

/* === Blur Background === */
.blur-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.blur-background.active {
  opacity: 1;
  visibility: visible;
}

/* === Sidebar Navigation === */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100%;
  background: #FFFAF5;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 2rem 1.5rem;
  z-index: 1100;
  overflow-y: auto;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-overlay.open {
  transform: translateX(0);
}

.nav-menu {
  padding-top: 2rem;
}

.nav-menu ul {
  list-style: none;
}


.nav-menu > ul > li {
  margin-bottom: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-menu > ul > li:last-child {
  border-bottom: none;
}

/* === Navigation Items === */
.nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  color: #111;
  padding: 10px;
  transition: all 0.3s ease;
  user-select: none;
}

.nav-item:hover {
  color: #666;
}

.nav-item span:first-child {
  flex: 1;
}

.toggle-icon {
  font-weight: bold;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  width: 20px;
  text-align: center;
  line-height: 1;
}

/* === Submenu === */
.submenu {
  display: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  background: transparent;
  margin: 0;
  padding: 0;
}

.submenu.open {
  display: block;
  max-height: 300px;
  opacity: 1;
  padding: 0.5rem 0 1rem 0;
}

.submenu li {
  margin: 0;
  list-style: none;
}

.submenu a {
  color: #666;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.submenu a:hover {
  color: #111;
}

/* === Footer === */
.nav-footer {
  margin-top: 3rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  position: absolute;
  bottom: 0;
}

.nav-footer a {
  color: #666;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05rem;
  transition: color 0.3s ease;
}

.nav-footer a:hover {
  color: #111;
}

/* === Responsive Header === */
/* @media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.8rem 1.5rem;
  }

  .header-left,
  .appointment-btn {
    width: 33.33%;
    text-align: center;
    order: 1;
  }

  .header-left {
    text-align: left;
  }

  .appointment-btn {
    text-align: right;
  }

  .header-logo {
    order: 2;
    position: relative;
    left: auto;
    transform: none;
    margin: 0.5rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }
} */
@media (max-width: 768px) {
  .site-header {
    padding: 0.8rem 1.2rem;
  }

  .header-left, .appointment-btn {
    flex: 0 0 auto;
    width: auto;
  }

  .menu-text {
    font-size: 0.85rem;
  }

  .appointment-btn {
    font-size: 0.85rem;
    display: none;
  }

  .header-logo img {
    max-height: 42px;
  }

  .header-logo{
    left: 50%;
  }
  
  .menu-toggle{
      height: 12px;
  }
}

@media (max-width: 480px){
    .menu-toggle{
      height: 12px;
    }
    .header-logo{
    left: 50%;
    }
    .appointment-btn{
        display: none;
    }
}

.logo {
  max-height: 50px;
  width: auto;
  display: none;
}

.white-logo {
  display: block;
  height: 100px;
}

.site-header.scrolled-up .white-logo,
body.menu-open .white-logo {
  display: none;
}

.site-header.scrolled-up .black-logo,
body.menu-open .black-logo {
  display: block;
}

.site-header:hover {
  background-color: #fff !important;
}

.site-header:hover .menu-text,
.site-header:hover .appointment-btn,
.site-header:hover .nav-item {
  color: #000 !important;
}

.site-header:hover .white-logo {
  display: none !important;
}

.site-header:hover .black-logo {
  display: block !important;
}

.white-logo, .black-logo {
  transition: opacity 0.3s ease;
}

.site-header:hover .menu-toggle span {
  background-color: black !important;
}

