/* cedardrift — base styles */
html {
  scroll-behavior: smooth;
}
html,
body {
  overflow-x: hidden;
}

body {
  -webkit-font-smoothing: antialiased;
}

a,
button {
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

/* scroll reveal micro-animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* card hover lift */
.lift {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -18px rgba(62, 39, 35, 0.45);
}

/* focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #8bc34a;
  outline-offset: 2px;
}

/* tabs */
.tab-btn[aria-selected="true"] {
  background-color: #795548;
  color: #f5f3f0;
}

/* faq accordion */
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-panel {
  max-height: 420px;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-icon {
  transition: transform 0.3s ease;
}

/* responsive map */
.map-frame {
  position: relative;
  width: 100%;
  padding-bottom: 42%;
  min-height: 300px;
  border-radius: 1rem;
  overflow: hidden;
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
