html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: #f7f0e4;
}

* {
  box-sizing: border-box;
}

@keyframes lm-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes lm-pop {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  70% {
    transform: scale(1.15);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lm-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.75, 0.25, 1);
  }

  [data-reveal].lm-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-draw] {
    stroke-dashoffset: 0 !important;
    animation: none !important;
  }

  [data-pop] {
    opacity: 1 !important;
    animation: none !important;
  }

  [data-float] {
    animation: none !important;
  }
}

@media (max-width: 768px) {
  [data-desktop-nav] {
    display: none !important;
  }

  [data-menu-btn] {
    display: inline-flex !important;
  }

  [data-howline] {
    display: none !important;
  }
}

@media (min-width: 769px) {
  [data-menu-btn] {
    display: none !important;
  }

  [data-mobile-menu] {
    display: none !important;
  }
}

::selection {
  background: var(--accent-soft, #ead0c0);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent, #c2603c);
  outline-offset: 2px;
}

.lm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 240, 228, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  padding: 16px 0;
  transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.lm-header.is-scrolled {
  background: rgba(247, 240, 228, 0.92);
  border-bottom-color: #e4d8c4;
  box-shadow: 0 6px 22px -16px rgba(20, 35, 58, 0.5);
  padding: 10px 0;
}

.lm-mobile-menu {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
}

.lm-mobile-menu.is-open {
  padding: 10px 24px 20px;
  max-height: 340px;
  opacity: 1;
}

.lm-input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: #14233a;
  background: #fbf6ec;
  border: 1.5px solid #e1d6c4;
  border-radius: 11px;
  padding: 12px 14px;
}

.lm-textarea {
  resize: vertical;
  min-height: 104px;
}

.lm-photo {
  width: 100%;
  display: block;
  object-fit: cover;
  background: linear-gradient(135deg, #f1ddce 0%, #e4d8c4 100%);
}

.lm-photo-hero {
  height: clamp(340px, 46vw, 500px);
}

.lm-photo-niki {
  height: clamp(360px, 42vw, 460px);
}

.lm-form-success {
  display: none;
}

.lm-form-success.is-visible {
  display: block;
}

.lm-form-panel.is-hidden {
  display: none;
}

.lm-error {
  font-size: 13px;
  color: #c2603c;
}

.lm-error[hidden] {
  display: none;
}

a.lm-btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

a.lm-btn-secondary:hover {
  background: #fffdf8;
  border-color: #c2603c;
}

a.lm-btn-header:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

article.lm-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -24px rgba(20, 35, 58, 0.4);
}

button.lm-submit:hover {
  filter: brightness(1.06);
}

button.lm-reset:hover {
  border-color: #c2603c;
}
