/* Header (Roseline Flowers) */

.rf-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(245, 241, 243, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(177, 153, 162, 0.18);
}

.rf-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.rf-header__brand {
  display: flex;
  align-items: center;
}

.rf-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.rf-header__logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffe8f0 0, #f5cedd 35%, #e9b7c9 65%, #caa5b4 100%);
  box-shadow: 0 4px 14px rgba(129, 93, 108, 0.35);
  position: relative;
}

.rf-header__logo-mark::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.rf-header__logo-text {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  color: #403137;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Navigation */

.rf-header__nav {
  display: flex;
}

.rf-header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.rf-header__nav-item {
  position: relative;
}

.rf-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.94rem;
  font-weight: 500;
  color: #514047;
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.rf-header__nav-link::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b58a9b, #86a58b);
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: center;
  transition: opacity 150ms ease, transform 150ms ease;
}

.rf-header__nav-link:hover,
.rf-header__nav-link:focus-visible {
  background-color: rgba(255, 255, 255, 0.9);
  color: #32252a;
  box-shadow: 0 6px 16px rgba(101, 76, 88, 0.18);
  outline: none;
}

.rf-header__nav-link:hover::after,
.rf-header__nav-link:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.rf-header__nav-link--cta {
  background: linear-gradient(135deg, #b58a9b, #86a58b);
  color: #fff;
  box-shadow: 0 8px 18px rgba(124, 97, 109, 0.35);
}

.rf-header__nav-link--cta::after {
  display: none;
}

.rf-header__nav-link--cta:hover,
.rf-header__nav-link--cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(108, 84, 97, 0.45);
}

.rf-header__nav-link:focus-visible {
  outline: 2px solid #86a58b;
  outline-offset: 2px;
}

/* Mobile toggle */

.rf-header__toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(128, 101, 112, 0.35);
  background: rgba(255, 255, 255, 0.9);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 120ms ease, border-color 150ms ease;
}

.rf-header__toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: #5f4a53;
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease;
}

.rf-header__toggle:hover,
.rf-header__toggle:focus-visible {
  background-color: #fff;
  box-shadow: 0 6px 18px rgba(114, 88, 101, 0.35);
  outline: none;
}

.rf-header__toggle:focus-visible {
  outline: 2px solid #86a58b;
  outline-offset: 2px;
}

.rf-header__toggle--open .rf-header__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(42deg);
}

.rf-header__toggle--open .rf-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.rf-header__toggle--open .rf-header__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-42deg);
}

/* Responsive layout */

@media (max-width: 768px) {
  .rf-header__inner {
    padding-inline: 1rem;
  }

  .rf-header__toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .rf-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(245, 241, 243, 0.97);
    border-bottom: 1px solid rgba(177, 153, 162, 0.25);
    transform-origin: top;
    transform: scaleY(1);
  }

  .rf-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.35rem 1.25rem 0.9rem;
  }

  .rf-header__nav-link {
    justify-content: space-between;
    width: 100%;
    font-size: 0.98rem;
    padding: 0.7rem 0.35rem;
    border-radius: 0.6rem;
  }

  .rf-header__nav-item--primary {
    margin-top: 0.25rem;
  }

  .rf-header__nav--closed {
    display: none;
  }

  .rf-header__nav--open {
    display: block;
  }
}

@media (min-width: 769px) {
  .rf-header__nav {
    position: static;
  }

  .rf-header__nav-list {
    gap: 0.25rem;
  }

  .rf-header__nav-item--primary {
    margin-left: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rf-header,
  .rf-header * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
