/* calderease — base styles */
html {
  scroll-behavior: smooth;
}
html,
body {
  overflow-x: hidden;
}
body {
  font-family: "Manrope", system-ui, sans-serif;
  color: #263238;
  background: #fafafa;
  line-height: 1.7;
}
h1,
h2,
h3,
.font-display {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.01em;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Links + buttons micro-interactions */
a,
button {
  transition: color 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.cta-pulse:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(255, 138, 101, 0.7);
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #ff8a65;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

/* Benefit / card hover */
.lift:hover {
  transform: translateY(-6px);
}

/* Accordion */
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.acc-item.open .acc-body {
  max-height: 460px;
}
.acc-item.open .acc-icon {
  transform: rotate(45deg);
}

/* Cookie banner */
#cookie-bar {
  transition: transform 0.4s ease, opacity 0.4s ease;
}
#cookie-bar.hidden-bar {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.toggle {
  appearance: none;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #b0bec5;
  position: relative;
  cursor: pointer;
  outline: none;
  flex: none;
}
.toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s ease;
}
.toggle:checked {
  background: #607d8b;
}
.toggle:checked::before {
  transform: translateX(20px);
}
.toggle:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 138, 101, 0.55);
  outline-offset: 2px;
}
