/* CHO Management - custom styles (Tailwind handles the rest) */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  background: #C8963E;
  color: #121418;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid #F7F4EF;
  outline-offset: 2px;
}

#main:focus { outline: none; }

/* Navigation links */
.nav-link {
  position: relative;
  padding: 0.25rem 0;
  border-radius: 0.25rem;
  transition: color 0.2s ease;
}
.nav-link:hover { color: #C8963E; }
.nav-link:focus-visible,
.footer-link:focus-visible,
.mobile-link:focus-visible {
  outline: 2px solid #C8963E;
  outline-offset: 3px;
}

.mobile-link {
  display: block;
  padding: 0.75rem 0.5rem;
  border-radius: 0.5rem;
}
.mobile-link:hover { background: rgba(255, 255, 255, 0.08); color: #C8963E; }

.footer-link {
  border-radius: 0.25rem;
  color: rgba(247, 244, 239, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(200, 150, 62, 0.5);
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.footer-link:hover { color: #C8963E; }

/* Hero background glow */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(200, 150, 62, 0.18), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(18, 20, 24, 0.7), transparent 70%);
  pointer-events: none;
}

.beam {
  transform-origin: 240px 58px;
  animation: sway 7s ease-in-out infinite alternate;
}
@keyframes sway {
  from { transform: rotate(-4deg); }
  to   { transform: rotate(4deg); }
}

/* Service cards */
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(31, 42, 68, 0.1);
  border-radius: 1.5rem;
  background: #F7F4EF;
  padding: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 150, 62, 0.5);
  box-shadow: 0 18px 40px -24px rgba(31, 42, 68, 0.45);
}
.card-icon {
  display: inline-flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: #1F2A44;
  color: #F7F4EF;
}
.card-icon svg { height: 2.25rem; width: 2.25rem; }

.card-list {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(31, 42, 68, 0.1);
  color: #1F2A44;
  font-size: 0.95rem;
  font-weight: 500;
}
.card-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  height: 0.45rem;
  width: 0.45rem;
  border-radius: 9999px;
  background: #C8963E;
}

/* Approach section */
.approach-num {
  flex: none;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #C8963E;
}

.fact-row {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
}
.fact-row dt {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C8963E;
}
.fact-row dd { color: #F7F4EF; font-weight: 500; }
@media (min-width: 640px) {
  .fact-row { grid-template-columns: 10rem 1fr; gap: 1rem; }
}

/* Legal modals */
.legal-modal {
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 1.25rem;
  background: #F7F4EF;
  color: #121418;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.legal-modal::backdrop {
  background: rgba(18, 20, 24, 0.7);
  backdrop-filter: blur(2px);
}
.legal-inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 2rem);
}
.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(31, 42, 68, 0.12);
}
.legal-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem 2rem;
  line-height: 1.65;
  color: #2E333B;
}
.legal-body h3 {
  margin-top: 1.5rem;
  font-weight: 700;
  color: #1F2A44;
}
.legal-body p { margin-top: 0.5rem; }
.legal-body ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.legal-body li { margin-top: 0.35rem; }

.modal-close {
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #1F2A44;
  transition: background 0.2s ease;
}
.modal-close:hover { background: rgba(31, 42, 68, 0.08); }
.modal-close:focus-visible { outline: 2px solid #8A6420; outline-offset: 2px; }

body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .beam { animation: none; }
  .card:hover { transform: none; }
}
