/* MCC & K SERVICES LTD - custom styles (plain CSS, works alongside the Tailwind CDN) */

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: #E07A1F;
  color: #14181F;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

/* Focus states */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #E07A1F;
  outline-offset: 3px;
}
[tabindex="-1"]:focus { outline: none; }

/* Navigation */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #E2E6EB;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover { color: #ffffff; background-color: rgba(255, 255, 255, 0.08); }

.mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: #E2E6EB;
  text-decoration: none;
}
.mobile-link:hover { color: #ffffff; background-color: rgba(255, 255, 255, 0.08); }

/* Hero */
.hero {
  background-color: #1F3A5F;
  background-image:
    radial-gradient(60rem 30rem at 85% 30%, rgba(224, 122, 31, 0.16), transparent 60%),
    linear-gradient(160deg, #1F3A5F 0%, #132741 55%, #14181F 100%);
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background-color: #E07A1F; color: #14181F; }
.btn-primary:hover { background-color: #EE8C33; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.35); color: #ffffff; }
.btn-ghost:hover { border-color: #ffffff; background-color: rgba(255, 255, 255, 0.08); }

/* Section headings */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #A4510E;
}
.eyebrow-dark { color: #E07A1F; }

.section-title {
  margin-top: 0.5rem;
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Service cards */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid #E2E6EB;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(20, 24, 31, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 1.75rem;
  right: 1.75rem;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #E07A1F, #1F3A5F);
}
.service-card:hover {
  border-color: #C9D2DD;
  box-shadow: 0 12px 30px -12px rgba(31, 58, 95, 0.35);
  transform: translateY(-2px);
}
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
  background: #EEF2F7;
  color: #1F3A5F;
}
.service-icon svg { width: 2.25rem; height: 2.25rem; }
.service-title {
  margin-top: 1.25rem;
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  color: #1F3A5F;
}
.service-text {
  margin-top: 0.75rem;
  line-height: 1.7;
  color: #334155;
}
.service-list {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #E2E6EB;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: #334155;
}
.service-list li,
.check-item {
  position: relative;
  padding-left: 1.5rem;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  background: #E07A1F;
  transform: rotate(45deg);
}

/* Contact checklist */
.check-item { padding-left: 2rem; line-height: 1.6; }
.check-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #1F3A5F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23F4F5F7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
}

/* Fact cards */
.fact-card {
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(31, 58, 95, 0.55), rgba(31, 58, 95, 0.2));
}
.fact-figure {
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: #E07A1F;
}
.fact-title {
  margin-top: 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #ffffff;
}
.fact-text {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #CBD5E1;
}

/* Footer */
.footer-link {
  color: #CBD5E1;
  text-decoration: underline;
  text-decoration-color: rgba(203, 213, 225, 0.35);
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer-link:hover { color: #ffffff; text-decoration-color: #E07A1F; }

/* Legal dialogs */
body:has(dialog[open]) { overflow: hidden; }

.legal-dialog {
  width: min(46rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #ffffff;
  color: #14181F;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
}
.legal-dialog::backdrop { background: rgba(20, 24, 31, 0.7); }
.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 #E2E6EB;
}
.legal-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem 2rem;
  line-height: 1.7;
  color: #334155;
}
.legal-body h3 {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1F3A5F;
}
.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.25rem; }
.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  color: #334155;
  cursor: pointer;
}
.dialog-close:hover { background-color: #EEF2F7; color: #14181F; }

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