:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --slate-900: #0f172a;
  --slate-600: #475569;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--white);
  color: var(--slate-600);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: "Montserrat", system-ui, sans-serif;
}

/* Solid brand text (no neon gradient) */
.text-brand {
  color: var(--brand);
}

/* Header */
#site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
#site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--slate-200);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

/* Header logo — fits nav height; white PNG corners blend into header */
.site-logo img {
  display: block;
  mix-blend-mode: multiply;
}

/* Soft pulse for CTA (no neon glow) */
@keyframes soft-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}
.btn-pulse {
  animation: soft-pulse 2.4s ease-in-out infinite;
}

/* Service cards — white, soft shadow */
.tilt-card {
  transform-style: preserve-3d;
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  border: 1px solid var(--slate-200);
  background: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.06),
    0 4px 12px rgba(15, 23, 42, 0.04);
}
.tilt-card:hover {
  border-color: #cbd5e1;
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.1),
    0 4px 10px rgba(15, 23, 42, 0.05);
}
.tilt-card .card-inner {
  transform: translateZ(30px);
  position: relative;
  z-index: 2;
  height: 100%;
}
.tilt-card .card-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 3;
  color: #94a3b8;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  transform: translateZ(40px);
}
.tilt-card:hover .card-arrow {
  color: var(--brand);
  transform: translateZ(40px) translate(2px, -2px);
}
.tilt-card .icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.tilt-card.bento-feature {
  min-height: 280px;
  background-size: cover;
  background-position: center;
  border: none;
}
.tilt-card.bento-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15, 23, 42, 0.72) 0%,
    rgba(15, 23, 42, 0.45) 55%,
    rgba(2, 132, 199, 0.35) 100%
  );
  z-index: 1;
}
.tilt-card.bento-feature:hover {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}
.tilt-card.bento-feature .card-arrow {
  color: rgba(255, 255, 255, 0.7);
}
.tilt-card.bento-feature:hover .card-arrow {
  color: #fff;
}
.tilt-card.bento-feature .icon-box {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(6px);
}

/* Area pills */
.area-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  background: var(--slate-100);
  border: 1px solid transparent;
  color: var(--slate-900);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}
.area-pill:hover {
  transform: scale(1.05);
  background: var(--brand);
  color: #fff;
}

/* About image */
.about-visual {
  position: relative;
}
.about-visual img {
  border-radius: 1.25rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  border: 1px solid var(--slate-200);
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.about-badge {
  position: absolute;
  bottom: -1rem;
  left: -0.75rem;
  background: var(--brand);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.85rem 1.15rem;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  max-width: 11rem;
  line-height: 1.25;
  z-index: 2;
}
@media (min-width: 640px) {
  .about-badge {
    bottom: 1.5rem;
    left: -1.25rem;
    font-size: 0.9rem;
    max-width: 12rem;
  }
}

/* Reviews marquee */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
}
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}
.review-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.review-stars {
  display: flex;
  gap: 0.2rem;
  color: #2563eb;
}
.review-stars svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* Form fields — light bordered inputs */
.form-field {
  width: 100%;
  background: var(--white);
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  color: var(--slate-900);
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.25s ease;
  font-family: inherit;
}
.form-field:focus {
  border-color: var(--brand);
}
.form-field::placeholder {
  color: #94a3b8;
}
select.form-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232563eb' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
select.form-field option {
  background: #fff;
  color: var(--slate-900);
}

/* FAQ accordion */
.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}
.faq-item.open {
  border-color: #bae6fd;
  background: #f8fcff;
}
.faq-item.open .faq-btn {
  color: var(--brand);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease;
  opacity: 0;
}
.faq-item.open .faq-answer {
  opacity: 1;
}
.faq-icon-wrap {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}
.faq-item.open .faq-icon-wrap {
  background: var(--brand-soft);
  border-color: #7dd3fc;
}
.faq-icon {
  position: relative;
  width: 12px;
  height: 12px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--brand);
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}
.faq-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}
.faq-icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}
.faq-item.open .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

/* Before/After slider */
.ba-slider {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.ba-slider img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-after {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}
.ba-after img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  max-width: none;
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.ba-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: var(--brand);
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
  color: #fff;
  gap: 2px;
}
.ba-label {
  position: absolute;
  top: 1rem;
  z-index: 5;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
}
.ba-label.before {
  left: 1rem;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
}
.ba-label.after {
  right: 1rem;
  background: var(--brand);
  color: #fff;
}

/* Hero canvas */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
}

#mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
#mobile-nav.open {
  max-height: 420px;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-pulse {
    animation: none;
  }
  .marquee-track {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
