/* FONS VITAE LTD - custom styles (plain CSS, used alongside Tailwind CDN) */

:root {
  --slate: #2E4057;
  --slate-deep: #243447;
  --oak: #C27C3E;
  --oak-dark: #9A5F2C;
  --ink: #1E2328;
  --cream: #F6F3EE;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--oak);
  outline-offset: 2px;
}

#main:focus { outline: none; }

/* Anchor offset below the sticky header */
.section-anchor { scroll-margin-top: 5rem; }

/* Global focus style */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--oak-dark);
  outline-offset: 3px;
  border-radius: 0.375rem;
}
footer a:focus-visible,
footer button:focus-visible,
#facts a:focus-visible {
  outline-color: var(--oak);
}

/* Navigation */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-link:hover { background: rgba(46, 64, 87, 0.08); color: var(--slate); }

.mobile-link {
  display: block;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid rgba(30, 35, 40, 0.08);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.mobile-link:hover { color: var(--slate); }
#mobile-menu li:last-child .mobile-link { border-bottom: 0; }

/* Section labels */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oak-dark);
}

/* Service cards */
.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid rgba(30, 35, 40, 0.1);
  border-radius: 1rem;
  background: var(--cream);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(30, 35, 40, 0.45);
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
  background: var(--slate);
  color: #E9CFAF;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.6rem;
  color: rgba(30, 35, 40, 0.85);
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 0.75rem;
  height: 0.4rem;
  border-left: 2px solid var(--oak-dark);
  border-bottom: 2px solid var(--oak-dark);
  transform: rotate(-45deg);
}

/* Footer */
.footer-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 4px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.footer-link:hover { color: #fff; text-decoration-color: var(--oak); }

/* Legal modals */
.legal-modal {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}
.legal-modal::backdrop {
  background: rgba(30, 35, 40, 0.65);
}
.legal-inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
}
.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(30, 35, 40, 0.1);
}
.legal-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem 1.75rem;
  line-height: 1.65;
}
.legal-body h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
  color: var(--slate);
}
.legal-body p { margin-bottom: 0.6rem; color: rgba(30, 35, 40, 0.88); }
.legal-body ul { margin: 0 0 0.6rem 1.2rem; list-style: disc; }
.legal-body li { margin-bottom: 0.3rem; color: rgba(30, 35, 40, 0.88); }
.legal-body a { color: var(--slate); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--oak-dark); }

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 0;
  border-radius: 9999px;
  background: rgba(46, 64, 87, 0.08);
  color: var(--slate);
  cursor: pointer;
}
.modal-close:hover { background: rgba(46, 64, 87, 0.16); }

body.modal-open { overflow: hidden; }

@media (min-width: 640px) {
  .legal-head { padding: 1.5rem 2rem; }
  .legal-body { padding: 1.5rem 2rem 2rem; }
}

/* Reduced motion */
@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;
  }
  .service-card:hover { transform: none; }
}
