.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1rem 0;
  width: 100%;
  box-sizing: border-box;
}

/* Ensure the page does not exceed viewport width */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.header--transparent {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.header--solid {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box; /* Ensure padding is included in width calculation */
}

.header__logo-link {
  text-decoration: none;
  color: inherit;
}

.header__logo-text {
  font-size: 1.5rem;
  font-weight: 400;
  font-family: 'Dancing Script', cursive;
  color: #333;
  margin: 0;
  line-height: 1.2;
}
.header__logo-subtitle {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  font-family: inherit;
  color: #666;
  margin-top: 0.25rem;
}

.header__logo-subtitle {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: #666;
  margin-top: 0.25rem;
}

.header__nav--desktop {
  display: none;
}

.header__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.header__nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 400;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.header__nav-link:hover {
  color: #8B5A3C;
}

.header__nav-link--active {
  color: #8B5A3C;
  font-weight: 500;
}

.header__nav-link--active::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  right: 0;
  height: 2px;
  background: #8B5A3C;
}

.header__mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.header__mobile-toggle-line {
  width: 1.5rem;
  height: 2px;
  background: #333;
  transition: all 0.3s ease;
}

.header__mobile-toggle--active .header__mobile-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(0.375rem, 0.375rem);
}

.header__mobile-toggle--active .header__mobile-toggle-line:nth-child(2) {
  opacity: 0;
}

.header__mobile-toggle--active .header__mobile-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.375rem, -0.375rem);
}

.header__nav--mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: none;
  box-shadow: none;
  align-items: flex-start;
  justify-content: flex-end;
  transition: none;
  z-index: 1000;
  width: 100%;
}

.header__nav--mobile.header__nav--mobile-open {
  display: flex;
  margin-top: 0;
}

.header__nav--mobile .header__nav-list {
  flex-direction: column;
  text-align: center;
  width: 100%;
  background: #fff;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 1rem;
  max-height: 90vh;
  overflow-y: auto;
}

.header__nav--mobile .header__nav-item {
  margin-bottom: 0.5rem;
  margin-top: 0.5rem; 
}

.header__nav--mobile .header__nav-link {
  font-size: 1.5rem;
}

/* Desktop styles */
@media (min-width: 768px) {
  .header__nav--desktop {
    display: block;
  }

  .header__mobile-toggle {
    display: none;
  }

  .header__nav--mobile {
    display: none;
  }

  .header__logo-text {
    font-size: 1.75rem;
  }

  .header__logo-subtitle {
    font-size: 1rem;
  }

  .header__nav-list {
    gap: 2rem;
  }
}

.header__nav-item--social {
  margin-right: 0.5rem;
  display: inline-flex;
  align-items: center;
}

.header__nav-link--social {
  color: inherit;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  padding: 0.25rem;
}

.header__nav-link--social:hover {
  color: #666;
}

.header__nav-link--social svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* Add Font Awesome CDN link to your layout file */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');

@media (max-width: 767px) {
  .header__container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
  }

  .header__logo {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .header__mobile-toggle {
    order: 2;
    margin-left: auto;
  }

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

  .header__nav--mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    align-items: flex-start;
    justify-content: center;
    transform: translateY(0);
    transition: none;
    z-index: 1000;
  }
  .header__nav--mobile.header__nav--mobile-open {
    display: flex;
  }

  .header__nav--mobile .header__nav-list {
    flex-direction: column;
    text-align: center;
  }

  .header__nav--mobile .header__nav-link {
    font-size: 1.5rem;
  }

  .header__logo-text {
    font-size: 1.1rem;
    line-height: 1.2;
    word-break: break-word;
    display: block;
  }

  .header__logo-subtitle {
    font-size: 0.8rem;
    margin-top: 0.1rem;
    display: block;
    color: #888;
  }
}

.header__nav--mobile .header__nav-item--social {
  display: inline-flex;
  gap: 1.5rem;
  justify-content: center;
  width: 100%;
  margin-bottom: 1rem;
}

.header__nav--mobile .header__nav-link--social svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.2;
}

.header__social-mobile {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-left: 1rem;
}

@media (min-width: 768px) {
  .header__social-mobile {
    display: none;
  }
}
