/* ============================================================
   NASR Junk Removal — design layer (loaded after tailwind.css)
   Motion system: transform + opacity only, one-shot animations,
   premium expo-out easing, full reduced-motion support.
   ============================================================ */

/* --- motion tokens ------------------------------------------------------ */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);   /* premium expo-out */
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  --dur-fast: .28s;
  --dur: .55s;
  --dur-slow: .8s;
}

/* --- global guards ------------------------------------------------------ */
html {
  overflow-x: clip;               /* no horizontal scroll, sticky-safe */
  scroll-padding-top: 84px;       /* anchor offset for sticky header */
}
@media (max-width: 767px) {
  html {
    scroll-padding-bottom: 96px;  /* keep anchor/tab focus above the fixed dock */
  }
}
body {
  overflow-x: clip;
  /* keep all content clear of the fixed mobile dock, incl. iPhone home bar */
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
@media (min-width: 768px) {
  body { padding-bottom: 0; }
}
::selection {
  background: #F59E0B;
  color: #10192E;
}
:focus-visible {
  outline: 3px solid #F59E0B;
  outline-offset: 2px;
  border-radius: 4px;
}
/* programmatic focus targets (skip link / in-page navigation) */
[tabindex="-1"]:focus { outline: none; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 90;
  background: #10192E;
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 10px 30px rgba(16, 25, 46, .3);
  transition: top .25s var(--ease-out);
}
.skip-link:focus {
  top: 12px;
}
img {
  max-width: 100%;
  height: auto;
}

/* --- scroll reveals ------------------------------------------------------
   Base state is VISIBLE: without JS (or if JS fails) nothing is ever
   hidden. html.js switches elements to a hidden start state; app.js
   releases the reveal-all guard below, so a failed app.js can never
   strand content invisible. */
.reveal {
  opacity: 1;
  transform: none;
}
html.js .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out),
              box-shadow .45s ease,
              border-color .4s ease;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
html.js.reveal-all .reveal {
  opacity: 1 !important;
  transform: none !important;
}
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }

/* --- hero entrance (pure CSS — runs with or without JS) ----------------- */
.hero-in {
  animation: fadeUpIn .9s var(--ease-out) backwards;
}
.hb1 { animation-delay: .05s; }
.hb3 { animation-delay: .34s; }
.hb4 { animation-delay: .50s; }
.hb5 { animation-delay: .66s; }
@keyframes fadeUpIn {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
  to   { opacity: 1; transform: none; }
}
.hero-title .hero-mask {
  display: block;
  overflow: hidden;
  padding-bottom: .14em;          /* room for descenders */
  margin-bottom: -.14em;
}
.hero-title .hero-line {
  display: block;
  animation: lineUpIn .95s var(--ease-out) backwards;
}
.hero-title .hl1 { animation-delay: .16s; }
.hero-title .hl2 { animation-delay: .30s; }
@keyframes lineUpIn {
  from { transform: translate3d(0, 112%, 0); }
  to   { transform: none; }
}
.hero-parallax {
  animation: fadeIn 1.2s var(--ease-soft) backwards;
  will-change: transform;
}
@media (min-width: 768px) {
  .hero-parallax {
    transform: scale(1.06);
  }
}
.hero-veil {
  animation: fadeIn 1.1s var(--ease-soft) .08s backwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- sticky header ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: box-shadow .3s var(--ease-out), background-color .3s ease,
              border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(16, 25, 46, .08);
}
.site-header.is-stuck .header-inner {
  padding-top: .6rem;
  padding-bottom: .6rem;
}
.header-inner {
  transition: padding .3s var(--ease-out);
}
.site-header .brand-logo {
  transition: transform .4s var(--ease-out);
}
.site-header .brand-logo:hover {
  transform: scale(1.06) rotate(-3deg);
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;                /* comfortable touch target at 1024+ */
  transition: color .25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: #F59E0B;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav-link:hover::after,
.nav-link[aria-current="true"]::after {
  transform: scaleX(1);
}

/* --- mobile menu ----------------------------------------------------------
   Collapsed state applies only when JS is available; without JS the menu
   renders expanded so navigation is never lost. */
html.js #mobileMenu {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height .4s var(--ease-out), visibility .4s;
}
html.js #mobileMenu.is-open {
  max-height: 600px;
  visibility: visible;
}
html.js #mobileMenu a {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out),
              color .2s ease, border-color .2s ease;
}
html.js #mobileMenu.is-open a {
  opacity: 1;
  transform: none;
}
html.js #mobileMenu.is-open nav a:nth-child(1) { transition-delay: .06s; }
html.js #mobileMenu.is-open nav a:nth-child(2) { transition-delay: .10s; }
html.js #mobileMenu.is-open nav a:nth-child(3) { transition-delay: .14s; }
html.js #mobileMenu.is-open nav a:nth-child(4) { transition-delay: .18s; }
html.js #mobileMenu.is-open nav a:nth-child(5) { transition-delay: .22s; }
html.js #mobileMenu.is-open nav a:nth-child(6) { transition-delay: .26s; }
html.js #mobileMenu.is-open nav a:nth-child(7) { transition-delay: .30s; }
html.js #mobileMenu.is-open nav a:nth-child(8) { transition-delay: .34s; }
html.js #mobileMenu.is-open div a { transition-delay: .38s; }
html:not(.js) .menu-btn { display: none; }
.menu-btn .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .2s ease;
}
.menu-btn[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- service cards -------------------------------------------------------- */
.svc-card {
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out),
              border-color .4s ease;
}
.svc-card:hover,
html.js .reveal.is-visible.svc-card:hover,
.svc-card:focus-within {
  transform: translate3d(0, -6px, 0);
  border-color: rgba(245, 158, 11, .45);
}
.svc-img img {
  transition: transform .8s var(--ease-out);
}
.svc-card:hover .svc-img img,
.svc-card:focus-within .svc-img img {
  transform: scale(1.05);
}

/* --- buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .9rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out),
              background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn .material-symbols-outlined {
  transition: transform .3s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: #10192E;
  color: #fff;
  box-shadow: 0 10px 28px rgba(16, 25, 46, .25);
}
.btn-primary:hover { background: #1B2740; transform: translate3d(0, -2px, 0); box-shadow: 0 16px 34px rgba(16, 25, 46, .3); color: #fff; }
.btn-whatsapp {
  background: #16C967;
  color: #10192E;
  box-shadow: 0 10px 28px rgba(22, 201, 103, .3);
}
.btn-whatsapp:hover { background: #12B25B; transform: translate3d(0, -2px, 0); box-shadow: 0 16px 34px rgba(22, 201, 103, .38); color: #10192E; }
.btn-ghost-light {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); transform: translate3d(0, -2px, 0); color: #fff; }
.btn-sm {
  min-height: 44px;
  padding: .6rem 1.2rem;
  font-size: .9rem;
}
/* one-shot light sweep on hover (pointer devices only) */
@media (hover: hover) and (pointer: fine) {
  .btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  .btn::after {
    content: "";
    position: absolute;
    inset: -20% -40%;
    background: linear-gradient(105deg,
      transparent 38%, rgba(255, 255, 255, .22) 50%, transparent 62%);
    transform: translate3d(-130%, 0, 0);
    transition: transform .75s var(--ease-out);
    pointer-events: none;
    z-index: 1;
  }
  .btn:hover::after,
  .btn:focus-visible::after {
    transform: translate3d(130%, 0, 0);
  }
  .btn:hover .material-symbols-outlined {
    transform: translate3d(3px, 0, 0);
  }
}
.icon-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, .12);
  color: #D97706;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out),
              transform .35s var(--ease-out);
}
.svc-card:hover .icon-badge {
  background: #F59E0B;
  color: #10192E;
  transform: translate3d(0, -2px, 0);
}
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  margin-top: .75rem;
  font-size: .9rem;
  font-weight: 700;
  color: #B45309;                  /* 5.0:1 on white — AA text contrast */
}
.svc-link .material-symbols-outlined {
  font-size: 18px;
  transition: transform .3s var(--ease-out);
}
.svc-link:hover .material-symbols-outlined { transform: translate3d(5px, 0, 0); }

/* --- before / after slider -------------------------------------------------- */
.ba {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #10192E;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.ba .ba-img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 7;
  object-fit: cover;
}
.ba .ba-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}
.ba .ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 4px;
  transform: translateX(-50%);
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(16, 25, 46, .25), 0 0 18px rgba(16, 25, 46, .35);
  pointer-events: none;
}
.ba .ba-knob {
  position: absolute;
  top: 50%;
  left: var(--pos);
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  background: #FFFFFF;
  color: #10192E;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(16, 25, 46, .4);
  pointer-events: none;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.ba:hover .ba-knob {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 10px 26px rgba(16, 25, 46, .5);
}
.ba .ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.ba .ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.ba .ba-range::-moz-range-thumb { width: 44px; height: 100%; border: 0; opacity: 0; }
.ba:has(.ba-range:focus-visible) {
  outline: 3px solid #F59E0B;
  outline-offset: 4px;
}
.ba .ba-range:focus-visible ~ .ba-knob {
  outline: 3px solid #F59E0B;
  outline-offset: 3px;
}
.ba-badge {
  position: absolute;
  top: 16px;
  padding: .45rem 1rem;
  border-radius: 9999px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  background: rgba(16, 25, 46, .82);
  color: #fff;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.ba-badge.is-before { left: 16px; }
.ba-badge.is-after { right: 16px; background: rgba(245, 158, 11, .92); color: #10192E; }

/* --- FAQ accordion (details stays usable without JS) ------------------------- */
details summary {
  list-style: none;
  cursor: pointer;
  transition: color .25s ease;
}
details summary::-webkit-details-marker { display: none; }
details summary .expand-icon {
  transition: transform .4s var(--ease-out);
  flex-shrink: 0;
}
details[open] summary .expand-icon {
  transform: rotate(180deg);
}
details[open] .faq-body {
  animation: faqReveal .4s var(--ease-out);
}
@keyframes faqReveal {
  from { opacity: 0; transform: translate3d(0, -8px, 0); }
  to   { opacity: 1; transform: none; }
}

/* --- misc -------------------------------------------------------------------- */
.mobile-dock {
  /* sit above the iPhone home indicator; body padding matches this calc */
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
.pulse-dot {
  animation: pulseDot 1.5s var(--ease-soft) 1s 1;   /* one-shot, never loops */
}
@keyframes pulseDot {
  0%   { opacity: .4; transform: scale(.7); }
  45%  { opacity: 1; transform: scale(1.25); }
  100% { opacity: 1; transform: scale(1); }
}
.tag-chip {
  transition: border-color .3s ease, color .3s ease, transform .3s var(--ease-out),
              box-shadow .3s ease;
}
.tag-chip:hover {
  border-color: #F59E0B;
  color: #B45309;
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 8px 18px rgba(16, 25, 46, .1);
}

/* --- shared component styles -------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #B45309;                  /* 5.0:1 on white/canvas — AA text contrast */
}
/* --- service highlight cards (white, navy headings, orange accents) ------ */
.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 2rem;
  padding: 2rem 1.75rem;
  box-shadow: 0 1px 3px 0 rgb(16 25 46 / .06), 0 1px 2px -1px rgb(16 25 46 / .08);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2rem;
  height: 2rem;
  border-top: 3px solid rgba(245, 158, 11, .5);
  border-right: 3px solid rgba(245, 158, 11, .5);
  border-top-right-radius: .85rem;
  pointer-events: none;
}
.service-card::after {
  content: "";
  position: absolute;
  right: -3.5rem;
  bottom: -3.5rem;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, .14), rgba(245, 158, 11, 0) 70%);
  pointer-events: none;
}
html.js .service-card {
  transition: opacity var(--dur) var(--ease-out),
              transform .35s var(--ease-out),
              box-shadow .35s var(--ease-out),
              border-color .35s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: 0 12px 40px 0 rgb(16 25 46 / .14);
    border-color: rgba(245, 158, 11, .45);
  }
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  flex: none;
  border-radius: 1.1rem;
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .3);
  color: #B45309;
}
.service-icon .material-symbols-outlined { font-size: 1.6rem; }
.service-title {
  margin: 0;
  color: #10192E;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.service-text {
  margin: 0;
  color: #475569;
  font-size: .95rem;
  line-height: 1.65;
}

/* --- reduced motion: show everything, animate nothing --------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js .reveal,
  html.js.reveal-all .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .hero-in, .hero-title .hero-line, .hero-parallax, .hero-veil, .pulse-dot {
    animation: none !important;
  }
  html.js #mobileMenu a {
    opacity: 1;
    transform: none;
  }
}
