:root {
  --brand-orange: #e8581a;
  --brand-navy: #111827;
  --brand-light: #f3f4f6;
  --brand-text: #374151;
  --brand-muted: #6b7280;
  --brand-success: #10b981;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--brand-text);
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

/* Fallback brand utility classes if Tailwind custom config is unavailable */
.bg-brand-navy {
  background-color: #111827 !important;
}

.text-brand-navy {
  color: #111827 !important;
}

.bg-brand-orange {
  background-color: #e8581a !important;
}

.text-brand-orange {
  color: #e8581a !important;
}

.border-brand-orange {
  border-color: #e8581a !important;
}

.from-brand-orange {
  --tw-gradient-from: #e8581a var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgb(232 88 26 / 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

/* Force a guaranteed high-contrast footer theme site-wide */
footer {
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
}

footer h3,
footer .text-orange-300 {
  color: #fdba74 !important;
  font-size: 1.06rem !important;
  line-height: 1.45 !important;
}

footer p,
footer li,
footer span,
footer a,
footer .text-slate-300,
footer .text-slate-400 {
  color: #e2e8f0 !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

footer .text-white {
  color: #ffffff !important;
}

footer .text-sm {
  font-size: 1rem !important;
}

footer .text-xs {
  font-size: 0.94rem !important;
  line-height: 1.6 !important;
}

footer a:hover {
  color: #ffffff !important;
}

footer .border-t,
footer .border-slate-700 {
  border-color: rgba(148, 163, 184, 0.32) !important;
}

footer .bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.12) !important;
}

/* Improve readability for muted text shades across the site */
footer .text-slate-300,
footer .text-slate-400 {
  color: #e2e8f0 !important;
}

section.bg-brand-navy .text-slate-300,
section.bg-brand-navy .text-slate-400,
div.bg-brand-navy .text-slate-300,
div.bg-brand-navy .text-slate-400 {
  color: #dbe4ef !important;
}

section.bg-white .text-slate-300,
section.bg-white .text-slate-400,
div.bg-white .text-slate-300,
div.bg-white .text-slate-400,
article.bg-white .text-slate-300,
article.bg-white .text-slate-400,
section.bg-\[\#F3F4F6\] .text-slate-300,
section.bg-\[\#F3F4F6\] .text-slate-400,
section.bg-\[\#F8FAFC\] .text-slate-300,
section.bg-\[\#F8FAFC\] .text-slate-400,
section.bg-amber-50 .text-slate-300,
section.bg-amber-50 .text-slate-400 {
  color: #475569 !important;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

#site-header.nav-scrolled {
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.08);
}

.texture-diagonal {
  position: relative;
  isolation: isolate;
}

.texture-diagonal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image: repeating-linear-gradient(
    -35deg,
    rgba(255, 255, 255, 0.9) 0,
    rgba(255, 255, 255, 0.9) 1px,
    transparent 1px,
    transparent 14px
  );
}

.texture-dots {
  position: relative;
  isolation: isolate;
}

.texture-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 12px 12px;
}

.hero-orb {
  background: radial-gradient(circle at 30% 30%, rgba(232, 88, 26, 0.32), rgba(232, 88, 26, 0.1) 45%, transparent 70%);
}

.logo-marquee {
  overflow: hidden;
  position: relative;
}

.logo-marquee::before,
.logo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 54px;
  z-index: 2;
  pointer-events: none;
}

.logo-marquee::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}

.logo-marquee::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 1.9rem;
  animation: marquee 25s linear infinite;
}

.marquee-track img {
  width: clamp(180px, 14vw, 240px);
  height: clamp(76px, 6vw, 110px);
  object-fit: contain;
  margin-inline: 0;
  filter: none;
  opacity: 1;
  transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

.marquee-track img:hover {
  transform: translateY(-1px) scale(1.03);
  opacity: 1;
}

@media (max-width: 768px) {
  .marquee-track {
    gap: 1rem;
  }

  .marquee-track img {
    width: clamp(130px, 34vw, 175px);
    height: clamp(56px, 14vw, 80px);
    margin-inline: 0;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.float-soft {
  animation: floatSoft 6s ease-in-out infinite;
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.accordion-item.active .accordion-content {
  opacity: 1;
}

.accordion-trigger .symbol-minus {
  display: none;
}

.accordion-item.active .accordion-trigger .symbol-plus {
  display: none;
}

.accordion-item.active .accordion-trigger .symbol-minus {
  display: inline;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

#site-header nav a,
#site-header nav button {
  font-size: 1rem !important;
}

#mobile-menu a,
#mobile-menu button {
  font-size: 1rem !important;
}

form[data-validate] input,
form[data-validate] select,
form[data-validate] textarea {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form[data-validate] input:hover,
form[data-validate] select:hover,
form[data-validate] textarea:hover {
  border-color: var(--brand-orange);
}

form[data-validate] input:focus,
form[data-validate] select:focus,
form[data-validate] textarea:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 2px rgba(232, 88, 26, 0.2), 0 6px 14px rgba(15, 23, 42, 0.08);
  outline: none;
}

main article.rounded-xl {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

main article.rounded-xl:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.1);
  cursor: pointer;
}

/* Premium card depth for internal service pages */
:is(#process, #recovery-process, #protection-layers, #what-we-cover, #why-kp, #why-pr, #editing-scope, #why-matters, #why-us) article[data-reveal]:not([data-accordion-item]):not(.group) {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

:is(#process, #recovery-process, #protection-layers, #what-we-cover, #why-kp, #why-pr, #editing-scope, #why-matters, #why-us) article[data-reveal]:not([data-accordion-item]):not(.group):hover {
  transform: translateY(-5px);
  border-color: rgba(232, 88, 26, 0.34);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

:is(#process, #recovery-process) article[data-reveal]:not(.group) > p:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #fff7ed;
  color: var(--brand-orange);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 1px rgba(232, 88, 26, 0.24);
}

:is(#process, #recovery-process) article[data-reveal]:not(.group) > h3 {
  margin-top: 0.8rem;
  font-size: 1.25rem;
  line-height: 1.35;
}

section#process.bg-brand-navy article[data-reveal]:not([data-accordion-item]):not(.group),
section#why-different article[data-reveal]:not([data-accordion-item]),
section#signal-building article[data-reveal]:not([data-accordion-item]) {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.2);
}

section#process.bg-brand-navy article[data-reveal]:not([data-accordion-item]):not(.group):hover,
section#why-different article[data-reveal]:not([data-accordion-item]):hover,
section#signal-building article[data-reveal]:not([data-accordion-item]):hover {
  border-color: rgba(253, 186, 116, 0.7);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.3);
}

section#process.bg-brand-navy article[data-reveal]:not([data-accordion-item]):not(.group) > p:first-child {
  background: rgba(255, 255, 255, 0.14);
  color: #fdba74;
  box-shadow: inset 0 0 0 1px rgba(253, 186, 116, 0.35);
}

a.bg-brand-orange:hover,
button.bg-brand-orange:hover {
  box-shadow: 0 8px 20px rgba(232, 88, 26, 0.24);
}

/* Keep CTA text visible on hover across all pages */
a.bg-brand-orange,
button.bg-brand-orange {
  color: #ffffff !important;
}

a.bg-brand-orange:hover,
button.bg-brand-orange:hover {
  background-color: #cf4d14 !important;
  color: #ffffff !important;
}

a.border-brand-orange,
button.border-brand-orange {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a.border-brand-orange:hover,
button.border-brand-orange:hover {
  background-color: #e8581a !important;
  border-color: #e8581a !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(232, 88, 26, 0.22);
}

section.bg-brand-navy a.border-white,
section.bg-brand-navy button.border-white,
.bg-brand-orange a.border-white,
.bg-brand-orange button.border-white,
section[class*="from-brand-orange"] a.border-white,
section[class*="from-brand-orange"] button.border-white {
  color: #ffffff !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

section.bg-brand-navy a.border-white:hover,
section.bg-brand-navy button.border-white:hover,
.bg-brand-orange a.border-white:hover,
.bg-brand-orange button.border-white:hover,
section[class*="from-brand-orange"] a.border-white:hover,
section[class*="from-brand-orange"] button.border-white:hover {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #e8581a !important;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.28);
}

section.bg-brand-navy a.bg-white,
section.bg-brand-navy button.bg-white {
  color: #111827 !important;
}

section.bg-brand-navy a.bg-white:hover,
section.bg-brand-navy button.bg-white:hover {
  background-color: #f1f5f9 !important;
  color: #111827 !important;
}

/* Support border-white/60, border-white/70, etc. on dark blocks */
.bg-brand-navy a[class*="border-white"][class*="hover:bg-white"],
.bg-brand-navy button[class*="border-white"][class*="hover:bg-white"],
[class*="bg-brand-orange"] a[class*="border-white"][class*="hover:bg-white"],
[class*="bg-brand-orange"] button[class*="border-white"][class*="hover:bg-white"],
[class*="from-brand-orange"] a[class*="border-white"][class*="hover:bg-white"],
[class*="from-brand-orange"] button[class*="border-white"][class*="hover:bg-white"] {
  color: #ffffff !important;
}

.bg-brand-navy a[class*="border-white"][class*="hover:bg-white"]:hover,
.bg-brand-navy button[class*="border-white"][class*="hover:bg-white"]:hover,
[class*="bg-brand-orange"] a[class*="border-white"][class*="hover:bg-white"]:hover,
[class*="bg-brand-orange"] button[class*="border-white"][class*="hover:bg-white"]:hover,
[class*="from-brand-orange"] a[class*="border-white"][class*="hover:bg-white"]:hover,
[class*="from-brand-orange"] button[class*="border-white"][class*="hover:bg-white"]:hover {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #e8581a !important;
}

@media (max-width: 1023px) {
  body.home-has-sticky-cta {
    padding-bottom: 5.75rem;
  }
}

@media (max-width: 767px) {
  main {
    overflow-x: clip;
  }

  main h1 {
    font-size: clamp(1.95rem, 8.6vw, 2.45rem) !important;
    line-height: 1.14 !important;
    overflow-wrap: anywhere;
  }

  main h2 {
    font-size: clamp(1.5rem, 6.8vw, 2rem) !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
  }

  main h3 {
    font-size: clamp(1.15rem, 5.4vw, 1.4rem) !important;
    line-height: 1.28 !important;
    overflow-wrap: anywhere;
  }

  main p,
  main li,
  main a {
    overflow-wrap: anywhere;
  }

  #mobile-menu {
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
  }

  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }

  .overflow-x-auto table {
    min-width: 560px !important;
  }

  .overflow-x-auto th,
  .overflow-x-auto td {
    padding: 0.65rem 0.75rem !important;
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
  }

  .pr-logo-item {
    min-width: 160px !important;
  }

  .np-logo-pill {
    padding: 0.58rem 0.95rem !important;
    font-size: 0.82rem !important;
  }
}

@media (min-width: 1024px) {
  .group > .desktop-dropdown {
    margin-top: 0 !important;
    top: calc(100% + 2px);
    z-index: 60;
  }

  .desktop-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .desktop-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
  }

  .group:hover > .desktop-dropdown,
  .group:focus-within > .desktop-dropdown,
  .group.open > .desktop-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .float-soft,
  .marquee-track,
  .np-logo-track,
  .pr-slider-track {
    animation: none !important;
  }

  .desktop-dropdown,
  .accordion-content,
  [data-reveal] {
    transition: none !important;
  }
}
