/* ===== Rootlevel Training — Custom Styles ===== */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ===== Scroll Animations ===== */
.animate-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger card animations */
.stagger-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-card.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header scroll shadow ===== */
#site-header {
  transition: box-shadow 0.3s ease;
}

#site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ===== Focus-visible styles ===== */
*:focus-visible {
  outline: 2px solid #d97706;
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #d97706;
  outline-offset: 2px;
}

/* Remove default outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* ===== Form input focus transitions ===== */
input,
select,
textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* ===== Mobile touch targets ===== */
@media (pointer: coarse) {
  a,
  button,
  summary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  nav a {
    min-height: 44px;
  }
}

/* ===== Details/Summary accordion styling ===== */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  border-bottom: 1px solid rgba(217, 119, 6, 0.1);
}

/* ===== Blob shape helpers ===== */
.blob-shape-1 {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.blob-shape-2 {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.blob-shape-3 {
  border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
}

/* ===== Print Styles ===== */
@media print {
  /* Hide navigation, footer, cookie banner */
  #site-header,
  footer,
  #cookie-banner,
  #mobile-menu,
  .bg-brand-900:first-child {
    display: none !important;
  }

  /* Reset backgrounds */
  body {
    background: white !important;
    color: #1a1a1a !important;
  }

  section {
    background: white !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  /* Ensure text is readable */
  * {
    color: #1a1a1a !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a {
    text-decoration: underline !important;
  }

  /* Show link URLs */
  a[href^="http"]::after,
  a[href^="mailto"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }

  /* Prevent breaks inside cards */
  .rounded-3xl {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Remove animations */
  .animate-hidden,
  .stagger-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== Mobile bottom sheet transition ===== */
#mobile-sheet {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.hidden #mobile-sheet {
  transform: translateY(100%);
}

/* ===== Selection color ===== */
::selection {
  background: #fde68a;
  color: #451a03;
}