/* XD Designs: small additions on top of Tailwind */

html { scroll-padding-top: 5rem; }
section[id], footer[id] { scroll-margin-top: 5rem; }

h1, h2, h3 { font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  background: #121417;
  color: #F6F4F0;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; outline: 3px solid #D9774B; outline-offset: 2px; }

/* Focus states */
.focus-ring:focus { outline: none; }
.focus-ring:focus-visible {
  outline: 3px solid #D9774B;
  outline-offset: 3px;
}
main:focus { outline: none; }

/* Nav links */
.nav-link {
  position: relative;
  padding: 0.25rem 0;
  color: #1E2A38;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #D9774B;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

/* Section labels */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #A8532D;
}
.eyebrow-dark { color: #D9774B; }

/* Hero frames */
.frame-back {
  background:
    radial-gradient(circle at 30% 30%, rgba(246, 244, 240, 0.35), transparent 55%),
    linear-gradient(140deg, #D9774B 0%, #b9603a 100%);
}
.frame-front {
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 25%, rgba(217, 119, 75, 0.55), transparent 50%),
    radial-gradient(circle at 20% 85%, rgba(138, 143, 152, 0.45), transparent 55%),
    linear-gradient(160deg, #2a3a4d 0%, #1E2A38 55%, #121417 100%);
}

/* Service cards */
.service-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(30, 42, 56, 0.1);
  background: #ffffff;
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 119, 75, 0.45);
  box-shadow: 0 18px 40px -24px rgba(30, 42, 56, 0.45);
}
.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: #F6F4F0;
  color: #1E2A38;
}
.icon-wrap svg { width: 2.5rem; height: 2.5rem; }

/* Process steps */
.step-card {
  border-radius: 1rem;
  border: 1px solid rgba(246, 244, 240, 0.12);
  background: rgba(246, 244, 240, 0.04);
  padding: 1.5rem;
}
.step-num {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: #D9774B;
}

/* Legal dialogs */
.legal-dialog {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: none;
  border-radius: 1.25rem;
  background: #F6F4F0;
  color: #1E2A38;
  box-shadow: 0 30px 80px -20px rgba(18, 20, 23, 0.6);
}
.legal-dialog::backdrop { background: rgba(18, 20, 23, 0.65); }
.legal-dialog > div:first-child {
  position: sticky;
  top: 0;
  background: #F6F4F0;
  z-index: 1;
}
.legal-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.legal-body p { margin-top: 0.5rem; line-height: 1.65; color: #3a4350; }
.legal-body ul { margin-top: 0.5rem; padding-left: 1.25rem; list-style: disc; color: #3a4350; line-height: 1.65; }
.legal-body li + li { margin-top: 0.25rem; }
.close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  color: #1E2A38;
}
.close-btn:hover { background: rgba(30, 42, 56, 0.08); }

body.modal-open { overflow: hidden; }

/* 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; }
}
