/**
 * RS Manicure — header, footer, navigation
 */

.rm-skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 100000;
  padding: 0.75rem 1rem;
  background: var(--rm-charcoal);
  color: var(--rm-white);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
}

.rm-skip-link:focus {
  left: 1rem;
}

.rm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rm-blush-deep);
}

.rm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.rm-logo {
  text-decoration: none;
  color: var(--rm-charcoal);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.rm-logo__img {
  max-height: 3rem;
  width: auto;
}

.rm-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rm-header__cta {
  display: none;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.rm-nav--desktop {
  display: none;
}

.rm-nav__list,
.rm-mobile-nav__list,
.rm-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rm-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.rm-nav__list a,
.rm-mobile-nav__list a,
.rm-footer__links a {
  text-decoration: none;
  color: var(--rm-charcoal-soft);
  font-weight: 500;
  transition: color 0.2s ease;
}

.rm-nav__list a {
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
}

.rm-nav__list a:hover,
.rm-nav__list .current-menu-item > a,
.rm-mobile-nav__list a:hover,
.rm-footer__links a:hover {
  color: var(--rm-rose-dark);
}

.rm-nav__list .current-menu-item > a {
  background: var(--rm-blush);
}

.rm-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
  border: 1px solid var(--rm-blush-deep);
  border-radius: 0.75rem;
  background: var(--rm-white);
  cursor: pointer;
}

.rm-nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--rm-charcoal);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.rm-nav-toggle[aria-expanded="true"] .rm-nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.rm-nav-toggle[aria-expanded="true"] .rm-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.rm-nav-toggle[aria-expanded="true"] .rm-nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.rm-mobile-nav[hidden] {
  display: none;
}

.rm-mobile-nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgb(61 61 61 / 0.4);
  z-index: 1001;
}

.rm-mobile-nav__panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(20rem, 88vw);
  height: 100%;
  background: var(--rm-white);
  z-index: 1002;
  padding: 5rem 1.5rem 2rem;
  box-shadow: -4px 0 24px rgb(0 0 0 / 0.08);
  overflow-y: auto;
}

.rm-mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.rm-mobile-nav__list a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.125rem;
  border-bottom: 1px solid var(--rm-blush-deep);
}

.rm-mobile-nav__cta {
  display: block;
  text-align: center;
}

body.rm-nav-open {
  overflow: hidden;
}

.rm-footer {
  background: var(--rm-blush);
  border-top: 1px solid var(--rm-blush-deep);
  padding-top: 4rem;
}

.rm-footer__inner {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.rm-footer__title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--rm-charcoal);
}

.rm-footer__desc {
  margin: 0 0 1.25rem;
  color: var(--rm-charcoal-soft);
  max-width: 28rem;
  line-height: 1.6;
}

.rm-footer__cta {
  display: inline-block;
}

.rm-footer__nav-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--rm-charcoal);
}

.rm-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.rm-footer__bottom {
  border-top: 1px solid var(--rm-blush-deep);
  padding-block: 1.5rem;
}

.rm-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--rm-charcoal-soft);
}

.rm-footer__bottom-inner a {
  color: var(--rm-charcoal-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rm-footer__bottom-inner a:hover {
  color: var(--rm-charcoal);
}

@media (min-width: 768px) {
  .rm-nav--desktop {
    display: block;
  }

  .rm-nav-toggle {
    display: none;
  }

  .rm-header__cta {
    display: inline-block;
  }

  .rm-footer__inner {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }

  .rm-footer__bottom-inner {
    flex-direction: row;
    justify-content: center;
  }
}
