/* ============================================================
   Pristine Windows — Premium Stylesheet
   Custom polish layered on top of Tailwind (CDN)
   ============================================================ */

:root {
  --teal: #11808a;
  --teal-deep: #0c5057;
  --teal-bright: #18a8b4;
  --ink: #16232b;
  --slate: #475a64;
  --mist: #f4f8f8;
  --line: rgba(22, 35, 43, 0.08);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: #ffffff;
  overflow-x: hidden;
}

.font-display {
  font-family: "Sora", "Inter", sans-serif;
}

/* Selection */
::selection {
  background: var(--teal);
  color: #fff;
}

/* ---------- Custom scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #eef3f3;
}
::-webkit-scrollbar-thumb {
  background: #b9cccd;
  border-radius: 999px;
  border: 2px solid #eef3f3;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--teal);
}

/* ---------- Gradient helpers ---------- */
.text-gradient {
  background: linear-gradient(120deg, var(--teal-bright), var(--teal) 55%, var(--teal-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-aurora {
  background:
    radial-gradient(60% 60% at 15% 10%, rgba(24, 168, 180, 0.18), transparent 60%),
    radial-gradient(55% 55% at 85% 0%, rgba(17, 128, 138, 0.14), transparent 55%),
    radial-gradient(50% 60% at 50% 100%, rgba(12, 80, 87, 0.10), transparent 60%);
}

/* ---------- Hero ---------- */
.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 40%, transparent 100%);
}

.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.glass-light {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ---------- Buttons ---------- */
.btn-primary {
  position: relative;
  background: linear-gradient(120deg, var(--teal-bright), var(--teal));
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(17, 128, 138, 0.6);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(17, 128, 138, 0.7);
}
.btn-primary:hover::after {
  transform: translateX(130%);
}

.btn-ghost {
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.btn-ghost:hover {
  transform: translateY(-2px);
}

/* ---------- Nav ---------- */
.nav-shell {
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
}
.nav-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -18px rgba(22, 35, 43, 0.4);
  border-bottom: 1px solid var(--line);
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--teal);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ---------- Adaptive nav colors (light over hero, dark when scrolled) ---------- */
#navbar .brand-title { color: #fff; transition: color 0.4s ease; }
#navbar .brand-sub { color: var(--teal-bright); transition: color 0.4s ease; }
#navbar .nav-item { color: rgba(255, 255, 255, 0.82); transition: color 0.3s ease; }
#navbar .nav-item:hover { color: #fff; }
#navbar .nav-phone { color: #fff; }
#navbar .nav-phone .ico { color: var(--teal-bright); }
#navbar .menu-btn { color: #fff; }

#navbar.nav-scrolled .brand-title { color: var(--ink); }
#navbar.nav-scrolled .brand-sub { color: var(--teal); }
#navbar.nav-scrolled .nav-item { color: var(--slate); }
#navbar.nav-scrolled .nav-item:hover { color: var(--ink); }
#navbar.nav-scrolled .nav-phone { color: var(--ink); }
#navbar.nav-scrolled .nav-phone .ico { color: var(--teal); }
#navbar.nav-scrolled .menu-btn { color: var(--ink); }

/* ---------- Subpage hero band ---------- */
.page-hero {
  background-color: var(--ink);
}

/* ---------- Legal / prose ---------- */
.prose-legal h2 {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
  scroll-margin-top: 6rem;
}
.prose-legal h2:first-child { margin-top: 0; }
.prose-legal p { color: var(--slate); line-height: 1.75; margin-bottom: 1rem; }
.prose-legal ul { margin: 0.5rem 0 1.25rem; padding-left: 0; list-style: none; }
.prose-legal ul li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.prose-legal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--teal);
}
.prose-legal a { color: var(--teal); font-weight: 600; }
.prose-legal a:hover { text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Cards ---------- */
.card-hover {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.4s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(22, 35, 43, 0.35);
}

.service-card {
  position: relative;
  overflow: hidden;
}
.service-card .img-zoom {
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .img-zoom {
  transform: scale(1.07);
}

/* ---------- Trust marquee ---------- */
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track:hover .marquee {
  animation-play-state: paused;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Before / After slider ---------- */
.ba-slider {
  position: relative;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  overflow: hidden;
}
.ba-after {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}
.ba-after img {
  width: 100vw;
  max-width: none;
  height: 100%;
  object-fit: cover;
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.45);
  color: var(--teal);
}

/* ---------- Grade meter ---------- */
.grade-step {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.grade-step:hover {
  transform: translateY(-6px);
}

/* ---------- Stat counter ---------- */
.float-slow {
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Process line ---------- */
.process-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 38px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal) 15%, var(--teal) 85%, transparent);
  opacity: 0.25;
}
@media (max-width: 767px) {
  .process-line::before { display: none; }
}

/* ---------- Section label ---------- */
.eyebrow {
  letter-spacing: 0.22em;
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.hidden-menu {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

/* ---------- Logo tint on dark ---------- */
.logo-on-dark {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* ---------- Subtle noise overlay for premium depth ---------- */
.noise::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  mix-blend-mode: overlay;
}
