:root {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: Montserrat, sans-serif;
  font-weight: 300;
}

p:not([class*="font-semibold"]):not([class*="font-bold"]):not([class*="font-extrabold"]) {
  font-family: Montserrat, sans-serif;
  font-weight: 300 !important;
}

:where(strong, b, [class*="font-semibold"], [class*="font-bold"], [class*="font-extrabold"]) {
  font-family: Lora, serif;
  font-weight: 700;
}

[data-hero] > div > div:last-child {
  max-width: none;
  min-height: 34rem;
}

[data-hero] > div {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

[data-hero] > div > div:last-child > div:nth-child(2) {
  position: relative;
  height: 100%;
  min-height: 34rem;
  overflow: hidden;
  border-radius: 1rem;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

[data-hero] > div > div:last-child > div:nth-child(2)::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 6rem;
  background: linear-gradient(to right, #F9F6F0, rgba(249, 246, 240, 0.8), transparent);
  pointer-events: none;
}

[data-hero] > div > div:last-child > div:nth-child(2) img {
  width: 100%;
  height: 100%;
  min-height: 34rem;
  border-radius: 1rem;
  object-fit: cover;
  object-position: top;
}

[data-hero] > div > div:last-child > div:nth-child(2) > div:last-child {
  z-index: 20;
  opacity: 1 !important;
  color: #303632;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 1px 3px rgba(48, 54, 50, 0.12);
}

[data-hero] > div > div:last-child > div:last-child {
  right: 1.75rem;
  left: auto;
  z-index: 20;
  opacity: 1 !important;
  color: #303632;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 1px 3px rgba(48, 54, 50, 0.12);
}

[data-hero] > div > div:last-child > div:nth-child(2) > div:last-child span,
[data-hero] > div > div:last-child > div:last-child span {
  color: #303632;
  opacity: 1;
}

[data-hero] h1 {
  font-family: Lora, serif;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.375;
}

[data-hero] h1 + p {
  margin-top: 1rem;
  max-width: 36rem;
  font-weight: 400;
}

@media (min-width: 1024px) {
  [data-hero] h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 1023px) {
  [data-hero] > div > div:last-child,
  [data-hero] > div > div:last-child > div:nth-child(2),
  [data-hero] > div > div:last-child > div:nth-child(2) img {
    min-height: 28rem;
  }
}

::selection {
  background: #d9c5b2;
  color: #303632;
}

.animate-rise {
  animation: rise-in 700ms ease-out both;
}

.service-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  animation: rise-in 650ms ease-out both;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card > span:first-child {
  flex: 0 0 auto;
}

.service-card h3 {
  min-height: 3.5rem;
}

.service-card p {
  flex: 1;
}

[data-about] .grid.sm\:grid-cols-3 > div {
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(48, 54, 50, 0.08);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 220ms ease, opacity 220ms ease;
}

.faq-answer > p {
  min-height: 0;
  overflow: hidden;
}

.faq-answer.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
