/* ============================================================
   DoorHelpService — custom.css
   Plain CSS design system. Works with Tailwind CDN.
   No build step. Colors used as literal values.
   ============================================================ */

:root {
  --nav-h: 76px;
  --navy: #0b1d37;
  --orange: #ff8c00;
}

* { -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b1d37;
  text-wrap: balance;
}

::selection { background: rgba(255, 140, 0, 0.22); color: #0b1d37; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; border: 3px solid #f8fafc; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

img { content-visibility: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Section spacing ---------- */
.section { padding-top: 4rem; padding-bottom: 4rem; }
.section-tight { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 640px) {
  .section { padding-top: 5rem; padding-bottom: 5rem; }
  .section-tight { padding-top: 4rem; padding-bottom: 4rem; }
}
@media (min-width: 1024px) {
  .section { padding-top: 7rem; padding-bottom: 7rem; }
  .section-tight { padding-top: 5rem; padding-bottom: 5rem; }
}

/* ---------- Buttons ----------
   Every variant carries the base styles (plain CSS has no @apply),
   so markup can use `.btn-primary` alone without also adding `.btn`. */
.btn,
.btn-primary,
.btn-navy,
.btn-ghost,
.btn-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

.btn-primary {
  background: #ff8c00;
  color: #fff;
  box-shadow: 0 8px 30px -6px rgba(255, 140, 0, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ff9e1f 0%, #ff8c00 100%);
  box-shadow: 0 16px 50px -8px rgba(255, 140, 0, 0.45);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-navy {
  background: #0b1d37;
  color: #fff;
  box-shadow: 0 2px 8px -2px rgba(11, 29, 55, 0.08), 0 4px 16px -4px rgba(11, 29, 55, 0.06);
}
.btn-navy:hover { background: #28344d; transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: #0b1d37;
  box-shadow: inset 0 0 0 1px #e2e8f0;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px #c6d1e2; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: #0b1d37;
  border: 1px solid #e2e8f0;
}
.btn-outline:hover { border-color: #ff8c00; color: #e07600; }

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 9999px;
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(3); opacity: 0; } }

/* ---------- Cards ---------- */
.card {
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 4px 24px -6px rgba(11, 29, 55, 0.10), 0 8px 40px -12px rgba(11, 29, 55, 0.08);
  box-shadow: 0 4px 24px -6px rgba(11, 29, 55, 0.10), 0 8px 40px -12px rgba(11, 29, 55, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.7);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-hover {
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 4px 24px -6px rgba(11, 29, 55, 0.10), 0 8px 40px -12px rgba(11, 29, 55, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.7);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px -8px rgba(11, 29, 55, 0.16), 0 20px 60px -20px rgba(11, 29, 55, 0.14), 0 0 0 1px rgba(255, 140, 0, 0.3);
}

/* ---------- Glass ---------- */
.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.glass-dark {
  background: rgba(11, 29, 55, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Sticky header glass on scroll */
[data-header].is-scrolled [data-header-inner] {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 8px -2px rgba(11, 29, 55, 0.08), 0 4px 16px -4px rgba(11, 29, 55, 0.06);
}

/* ---------- Badges & pills ----------
   Same rule: each variant includes the base so `.badge-orange` works alone. */
.badge,
.badge-orange,
.badge-navy,
.badge-success {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
}
.badge-orange { background: rgba(255, 140, 0, 0.10); color: #b85a00; box-shadow: inset 0 0 0 1px rgba(255, 140, 0, 0.2); }
.badge-navy { background: rgba(11, 29, 55, 0.05); color: #0b1d37; box-shadow: inset 0 0 0 1px rgba(11, 29, 55, 0.1); }
.badge-success { background: rgba(34, 197, 94, 0.10); color: #15803d; box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #e07600;
}

/* ---------- Nav links ---------- */
.nav-link {
  position: relative;
  border-radius: 9999px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d3d5d;
  transition: color 0.2s ease;
}
.nav-link:hover { color: #0b1d37; }
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  height: 2px;
  width: 0;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: #ff8c00;
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { width: 1rem; }
.nav-link.is-active { color: #0b1d37; }

/* ---------- Inputs ---------- */
.field {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: #0f172a;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}
.field::placeholder { color: rgba(100, 116, 139, 0.7); }
.field:focus {
  border-color: #ff8c00;
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1);
}
.field-label { display: block; margin-bottom: 0.375rem; font-size: 0.875rem; font-weight: 600; color: #0b1d37; }

/* ---------- Text gradients ---------- */
.text-gradient {
  background: linear-gradient(120deg, #ff8c00 0%, #ff6a00 60%, #ffab3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-gradient-navy {
  background: linear-gradient(120deg, #0b1d37 0%, #2d3d5d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Marquee / dividers ---------- */
.marquee-mask {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hairline { height: 1px; background: linear-gradient(90deg, transparent, rgba(11, 29, 55, 0.12), transparent); }

/* ---------- Background meshes ---------- */
.bg-mesh {
  background-color: #f8fafc;
  background-image:
    radial-gradient(42rem 42rem at 10% -10%, rgba(255, 140, 0, 0.08), transparent 60%),
    radial-gradient(38rem 38rem at 100% 0%, rgba(11, 29, 55, 0.06), transparent 55%);
}
.bg-mesh-navy {
  background-color: #0b1d37;
  background-image:
    radial-gradient(50rem 40rem at 15% 0%, rgba(255, 140, 0, 0.14), transparent 55%),
    radial-gradient(40rem 40rem at 100% 100%, rgba(72, 96, 140, 0.35), transparent 55%);
}

/* ---------- Misc utilities ---------- */
.perspective { perspective: 1200px; }
.preserve-3d { transform-style: preserve-3d; }
.tabular { font-variant-numeric: tabular-nums; }
.clip-blob { clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

[data-aos] { will-change: transform, opacity; }

/* ---------- Service filter tabs ---------- */
.filter-tab {
  border-radius: 9999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2d3d5d;
  background: #fff;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
}
.filter-tab:hover { border-color: #ffc04d; color: #b85a00; }
.filter-tab.is-active {
  background: #0b1d37;
  border-color: #0b1d37;
  color: #fff;
}

/* ---------- Legal / prose content ---------- */
.legal { color: #334155; font-size: 0.95rem; line-height: 1.75; }
.legal > * + * { margin-top: 1rem; }
.legal h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0b1d37;
  scroll-margin-top: 6rem;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin-top: 1.5rem; font-size: 1.08rem; font-weight: 700; color: #0b1d37; }
.legal p { color: #475569; }
.legal ul { margin-top: 0.5rem; padding-left: 1.25rem; list-style: disc; }
.legal ol { margin-top: 0.5rem; padding-left: 1.25rem; list-style: decimal; }
.legal li { margin-top: 0.4rem; color: #475569; }
.legal li::marker { color: #ff8c00; }
.legal a { color: #b85a00; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: #0b1d37; font-weight: 700; }
