/* The Willow Practice — shared styles */

html {
  scroll-behavior: smooth;
}

body {
  background-color: #FAF7F2;
}

/* Full-page willow tree watermark */
.watermark-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url('willow-tree.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  opacity: 0.3;
}

/* Remove default marker on native <details> summary, we draw our own chevron */
summary {
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker,
summary::marker {
  display: none;
  content: "";
}

.accordion-chevron {
  transition: transform 0.25s ease;
}
details[open] > summary .accordion-chevron {
  transform: rotate(180deg);
}

details > summary .accordion-plus {
  transition: transform 0.25s ease;
}
details[open] > summary .accordion-plus {
  transform: rotate(45deg);
}

/* Smooth open animation for details content */
details summary {
  transition: color 0.2s ease;
}

.willow-fade-in {
  animation: willowFadeIn 0.5s ease both;
}
@keyframes willowFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile menu panel */
#mobile-menu {
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
#mobile-menu[data-open="false"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#mobile-menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #3A3A3A;
  outline-offset: 2px;
}

/* Footer sits on a dark background; use a light outline that still meets 3:1 there */
footer a:focus-visible,
footer button:focus-visible {
  outline-color: #E3CFBF;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #FAF7F2;
  color: #3A3A3A;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus {
  left: 0;
}

/* Hamburger icon animation */
.hamburger-line {
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
