html {
  background-color: #fffaf2;
}

body.menu-open {
  overflow: hidden;
}

body {
  color: #3f3429;
  background-color: #fffaf2;
  background-image: none;
  text-rendering: optimizeLegibility;
}

:root {
  --menu-cream: #e4dbcf;
  --menu-cream-light: #f8f2ea;
  --menu-cream-line: #ddd2c0;
  --menu-brown: #2f241d;
  --menu-brown-soft: #46382e;
  --menu-brown-deep: #3a2c23;
  --menu-olive: #a7b491;
  --menu-sand: #d4b36f;
  --menu-line: rgba(235, 223, 206, 0.85);
}

[data-menu-toggle] {
  color: #3f3429;
}

.site-menu {
  position: fixed;
  top: 0;
  right: -100vw;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: calc(100vw - 0.75rem);
  max-width: 24.5rem;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  box-sizing: border-box;
  overflow: hidden;
  border-left: 1px solid var(--menu-cream-line);
  border-radius: 2rem 0 0 2rem;
  background: var(--menu-cream);
  box-shadow: 0 32px 72px -34px rgba(47, 36, 29, 0.6);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    right 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    visibility 0s linear 0.5s;
  will-change: right, opacity;
}

body.menu-open .site-menu {
  opacity: 1;
  pointer-events: auto;
  right: 0;
  visibility: visible;
  transition:
    right 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    visibility 0s linear 0s;
}

.site-menu__top {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  padding: calc(1.1rem + env(safe-area-inset-top)) 1.5rem 1.35rem;
  border-bottom: 1px solid #d9cdbb;
  background: linear-gradient(145deg, var(--menu-cream-light) 0%, #ede1d1 100%);
}

.site-menu__top::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.04) 38%,
      rgba(82, 66, 51, 0.04) 100%
    );
  content: "";
  pointer-events: none;
}

.site-menu__top-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-menu__brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.9rem;
}

.site-menu__logo {
  width: 3.75rem;
  height: 3.75rem;
  flex-shrink: 0;
  border-radius: 1.3rem;
  object-fit: cover;
  box-shadow: 0 18px 36px -24px rgba(47, 36, 29, 0.56);
}

.site-menu__eyebrow {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8b7b69;
}

.site-menu__title {
  margin-top: 0.25rem;
  font-size: clamp(1.7rem, 1.34rem + 0.9vw, 1.92rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #35281f;
}

.site-menu__close {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7cab8;
  border-radius: 9999px;
  background: var(--menu-brown);
  color: #fff8ef;
  box-shadow: 0 18px 32px -24px rgba(47, 36, 29, 0.72);
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.site-menu__close:hover {
  background: #3a2d24;
  transform: rotate(90deg);
}

.site-menu__lead {
  position: relative;
  max-width: 17.5rem;
  margin-top: 1.15rem;
  font-size: 0.96rem;
  line-height: 1.75;
  color: #8c7d69;
}

.site-menu__body {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  background: linear-gradient(180deg, #8b7c6f 0%, #706356 100%);
}

.site-menu__nav {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
}

.site-menu__card {
  display: flex;
  min-height: 5.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--menu-line);
  border-radius: 1.9rem;
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 36px -30px rgba(47, 36, 29, 0.44);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.site-menu__card:hover {
  transform: translateY(-4px);
  border-color: #f3e9d9;
  background: rgba(255, 255, 255, 0.15);
}

.site-menu__card-main {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.9rem;
}

.site-menu__card-icon {
  display: inline-flex;
  width: 3.8rem;
  height: 3.8rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-menu__card-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.site-menu__card-title {
  font-size: clamp(0.98rem, 0.9rem + 0.34vw, 1.08rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--menu-brown);
}

.site-menu__card-desc {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(70, 56, 46, 0.85);
}

.site-menu__card-arrow {
  flex-shrink: 0;
  padding-left: 0.5rem;
  font-size: 1.95rem;
  color: #f5eee2;
  transition: transform 0.3s ease;
}

.site-menu__card:hover .site-menu__card-arrow {
  transform: translateX(0.25rem);
}

.site-menu__footer {
  flex: 0 0 auto;
  padding: 0 1rem calc(1rem + env(safe-area-inset-bottom));
}

.site-menu__contact {
  border-radius: 2.15rem;
  background: linear-gradient(180deg, var(--menu-brown) 0%, var(--menu-brown-deep) 100%);
  padding: 1.35rem 1.25rem;
  color: #fff8ef;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 48px -34px rgba(47, 36, 29, 0.76);
}

.site-menu__contact-label {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--menu-sand);
}

.site-menu__contact-text {
  margin-top: 0.95rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(243, 234, 223, 0.88);
}

.site-menu__contact-button {
  display: inline-flex;
  margin-top: 1.15rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--menu-sand);
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--menu-brown);
  box-shadow: 0 18px 34px -24px rgba(212, 179, 111, 0.58);
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.site-menu__contact-button:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.03);
}

.floating-contact {
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

body.menu-open .floating-contact {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  pointer-events: none;
}

.hero-reveal {
  opacity: 0;
  animation: hero-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity, filter;
}

.hero-title-line {
  overflow: hidden;
}

.hero-title-word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 115%, 0);
  animation: hero-line-up 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}

.hero-delay-1 {
  animation-delay: 0.12s;
}

.hero-delay-2 {
  animation-delay: 0.28s;
}

.hero-delay-3 {
  animation-delay: 0.52s;
}

.hero-delay-4 {
  animation-delay: 0.72s;
}

@keyframes hero-line-up {
  0% {
    opacity: 0;
    transform: translate3d(0, 115%, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-fade-up {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.985);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reveal,
  .hero-title-word {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  filter: blur(14px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: transform, opacity, filter;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.reveal-delay-1 {
  --reveal-delay: 0.12s;
}

.reveal-delay-2 {
  --reveal-delay: 0.22s;
}

.reveal-delay-3 {
  --reveal-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

@media (max-width: 380px) {
  .site-menu {
    width: calc(100vw - 0.5rem);
    border-radius: 1.65rem 0 0 1.65rem;
  }

  .site-menu__top {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .site-menu__nav,
  .site-menu__footer {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .site-menu__card {
    padding: 0.9rem;
  }

  .site-menu__card-icon {
    width: 3.4rem;
    height: 3.4rem;
  }
}

@media (max-height: 760px) {
  .site-menu__lead {
    display: none;
  }

  .site-menu__card {
    min-height: 5.3rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }

  .site-menu__card-icon {
    width: 3.45rem;
    height: 3.45rem;
  }

  .site-menu__contact {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
  }
}
