/* ============================================================
   Ironclad Ops Academy LLC — Custom Stylesheet
   Editorial / Magazine Style
   ============================================================ */

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

/* ---- Scroll Animations (slide-from-side) ------------------- */
.animate-hidden-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.7s ease;
}

.animate-hidden-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.7s ease;
}

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

/* ---- Header ------------------------------------------------ */
.header-scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ---- Focus-Visible ----------------------------------------- */
*:focus-visible {
  outline: 2px solid var(--color-brand-600, #2563eb);
  outline-offset: 2px;
}

/* ---- Print Styles ------------------------------------------ */
@media print {
  header,
  footer,
  #cookie-banner,
  .cookie-banner,
  nav {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
}

/* ---- Mobile Touch Targets ---------------------------------- */
@media (pointer: coarse) {
  a,
  button,
  input[type="submit"],
  input[type="button"],
  select,
  summary {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ---- Form Input Focus Transitions -------------------------- */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
  border-color: var(--color-brand-600, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ---- Details / Summary ------------------------------------- */
details summary {
  list-style: none;
  cursor: pointer;
}

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

details summary::marker {
  display: none;
  content: "";
}

/* ---- Prose (Legal Pages) ----------------------------------- */
.prose h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.prose ul,
.prose ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.35rem;
  line-height: 1.7;
}

.prose a {
  color: var(--color-brand-600, #2563eb);
  text-decoration: underline;
}

.prose a:hover {
  color: var(--color-brand-800, #1e40af);
}

/* ---- Mobile Panel Transition Helper ------------------------ */
.panel-open {
  transform: translateX(0) !important;
}

/* ---- Button Hover Transitions ------------------------------ */
button,
.btn,
a.btn,
[role="button"] {
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

button:hover,
.btn:hover,
a.btn:hover,
[role="button"]:hover {
  transform: translateY(-1px);
}

button:active,
.btn:active,
a.btn:active,
[role="button"]:active {
  transform: translateY(0);
}

/* ---- Link Hover Underline Animations ----------------------- */
.nav-link,
.footer-link {
  position: relative;
  text-decoration: none;
}

.nav-link::after,
.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.footer-link:hover::after {
  width: 100%;
}
