/* ALLGDP LTD: custom styles (plain CSS, used alongside the Tailwind CDN) */

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 4.5rem;
}

#main:focus {
  outline: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  background: #1C1917;
  color: #ffffff;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* Focus states */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #F59E0B;
  outline-offset: 3px;
  border-radius: 0.375rem;
}

/* Navigation */
.nav-link {
  font-weight: 600;
  color: #1C1917;
  transition: color 0.15s ease;
}
.nav-link:hover {
  color: #C2410C;
}
.mobile-link {
  display: block;
  padding: 0.75rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: #1C1917;
}
.mobile-link:hover {
  background: #FFEDD5;
  color: #9A3412;
}

/* Hero background */
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(194, 65, 12, 0.45), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(245, 158, 11, 0.18), transparent 40%),
    linear-gradient(135deg, #1C1917 0%, #292524 100%);
}

.steam path {
  animation: steam-rise 3.2s ease-in-out infinite;
}
.steam path:nth-child(2) { animation-delay: 0.6s; }
.steam path:nth-child(3) { animation-delay: 1.2s; }

@keyframes steam-rise {
  0%, 100% { opacity: 0.35; transform: translateY(4px); }
  50% { opacity: 0.9; transform: translateY(-4px); }
}

/* Section headings */
.section-kicker {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C2410C;
}
.bg-ink .section-kicker {
  color: #F59E0B;
}
.section-title {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #1C1917;
}
@media (min-width: 640px) {
  .section-title { font-size: 2.25rem; }
}

/* Service cards */
.card {
  height: 100%;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #FED7AA;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(194, 65, 12, 0.12);
}
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
  background: #FFF7ED;
  color: #C2410C;
}
.card-icon svg {
  width: 2rem;
  height: 2rem;
}
.card-title {
  margin-top: 1.5rem;
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1C1917;
}
.card-text {
  margin-top: 0.75rem;
  line-height: 1.7;
  color: #57534E;
}

/* Key facts */
.fact {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.fact-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F59E0B;
}
.fact-value {
  margin-top: 0.5rem;
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #ffffff;
}

/* Footer */
.footer-link {
  color: #D6D3D1;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.footer-link:hover {
  color: #F59E0B;
  text-decoration-color: currentColor;
}

/* Legal modals */
.legal-modal {
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #ffffff;
  color: #1C1917;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}
.legal-modal::backdrop {
  background: rgba(28, 25, 23, 0.7);
}
.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 #FED7AA;
  background: #FFF7ED;
}
.legal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 9999px;
  color: #1C1917;
}
.legal-close:hover {
  background: #FFEDD5;
  color: #9A3412;
}
.legal-body {
  overflow-y: auto;
  padding: 1.5rem;
  line-height: 1.7;
  color: #44403C;
}
.legal-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.375rem;
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1C1917;
}
.legal-body ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.legal-body li + li {
  margin-top: 0.25rem;
}

body.modal-open {
  overflow: hidden;
}

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