/* AX Composites - custom styles (Tailwind CDN handles utilities) */

html { scroll-padding-top: 5rem; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  background: #E0662B;
  color: #0F1418;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; outline: 2px solid #F4F5F7; outline-offset: 2px; }

#main:focus { outline: none; }

/* Global focus fallback */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #E0662B;
  outline-offset: 3px;
}

/* Subtle twill weave background */
.weave-bg {
  background-image:
    repeating-linear-gradient(45deg, rgba(244, 245, 247, 0.035) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(224, 102, 43, 0.04) 0 2px, transparent 2px 14px);
}

/* Navigation links */
.nav-link {
  position: relative;
  padding: 0.25rem 0;
  border-radius: 0.25rem;
  transition: color 0.15s ease;
}
.nav-link:hover { color: #F4F5F7; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: #E0662B;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

/* Headings */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B4471A;
}
.eyebrow-dark { color: #E0662B; }

.section-title {
  margin-top: 0.75rem;
  font-family: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) { .section-title { font-size: 3rem; } }

/* Service cards */
.service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #F4F5F7;
  padding: 1.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  border-color: rgba(224, 102, 43, 0.5);
  box-shadow: 0 12px 30px -18px rgba(15, 20, 24, 0.45);
  transform: translateY(-2px);
}
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: #1F2A36;
}
.card-title {
  margin-top: 1.25rem;
  font-family: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 600;
  text-transform: uppercase;
  color: #1F2A36;
}
.card-list {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: #334155;
}
.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;
  width: 0.5rem;
  height: 2px;
  background: #E0662B;
}

/* Why cards */
.why-card {
  border: 1px solid rgba(244, 245, 247, 0.12);
  border-radius: 1rem;
  background: rgba(15, 20, 24, 0.4);
  padding: 1.75rem;
}
.why-title {
  margin-top: 1rem;
  font-family: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.6rem;
  line-height: 1.1;
  font-weight: 600;
  text-transform: uppercase;
  color: #F4F5F7;
}
.why-text {
  margin-top: 0.5rem;
  line-height: 1.65;
  color: rgba(244, 245, 247, 0.8);
}

/* Footer */
.footer-link {
  border-radius: 0.25rem;
  color: rgba(244, 245, 247, 0.8);
  text-decoration: underline;
  text-decoration-color: rgba(224, 102, 43, 0.5);
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}
.footer-link:hover { color: #E0662B; }

/* Legal modals */
.legal-modal {
  width: min(46rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 30px 60px -20px rgba(15, 20, 24, 0.6);
}
.legal-modal[open] { display: flex; flex-direction: column; }
.legal-modal::backdrop { background: rgba(15, 20, 24, 0.75); }
.legal-body {
  overflow-y: auto;
  padding: 1.5rem;
  line-height: 1.7;
  font-size: 0.95rem;
}
.legal-body h3 {
  margin-top: 1.5rem;
  font-family: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #1F2A36;
}
.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; }
.legal-body a { color: #B4471A; text-decoration: underline; text-underline-offset: 3px; }
.modal-close {
  flex-shrink: 0;
  border-radius: 0.375rem;
  padding: 0.35rem;
  color: #1F2A36;
}
.modal-close:hover { background: #F4F5F7; }

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;
    scroll-behavior: auto !important;
  }
  .service-card:hover { transform: none; }
}

[tabindex="-1"]:focus { outline: none; }
