/* ParkOne Solutions — global styles */

:root {
  --navy: #1A1A4E;
  --navy-deep: #0D1030;
  --navy-darker: #080812;
  --gold: #C9A84C;
  --gold-light: #E4C46E;
  --gold-pale: #F5E6B8;
  --off-white: #F7F5F0;
  --text-gray: #444444;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--navy-darker);
  color: white;
  cursor: none;
}

@media (max-width: 1024px) {
  body { cursor: auto; }
}

/* ------------------ LIQUID GLASS ------------------ */

.liquid-glass {
  background: rgba(0, 0, 0, 0.32);
  background-blend-mode: luminosity;
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    inset 0 -1px 1px rgba(255, 255, 255, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.08) 22%,
    rgba(255,255,255,0) 45%, rgba(255,255,255,0) 55%,
    rgba(255,255,255,0.08) 78%, rgba(255,255,255,0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.liquid-glass-navy {
  background: linear-gradient(180deg, rgba(26,26,78,0.62) 0%, rgba(13,16,48,0.62) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(201, 168, 76, 0.18);
  box-shadow:
    inset 0 1px 1px rgba(201, 168, 76, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}
.liquid-glass-navy::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg,
    rgba(201,168,76,0.45) 0%, rgba(201,168,76,0.06) 38%,
    rgba(201,168,76,0.06) 62%, rgba(201,168,76,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* ------------------ GLOBAL WATERMARK ------------------ */
.brand-watermark {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url('assets/logo-mark.png');
  background-repeat: no-repeat;
  background-position: center 38%;
  background-size: min(72vmin, 920px) auto;
  opacity: 0.035;
  mix-blend-mode: screen;
}
@media (max-width: 768px) {
  .brand-watermark { background-size: 80vw auto; opacity: 0.045; }
}

/* On light sections, hide the global watermark and overlay a navy-tinted local one */
.light-section { position: relative; isolation: isolate; }
.light-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('assets/logo-mark.png');
  background-repeat: no-repeat;
  background-position: 95% 95%;
  background-size: 280px auto;
  opacity: 0.035;
  z-index: 0;
}
@media (max-width: 768px) {
  .light-section::after { background-size: 180px auto; }
}
.light-section > * { position: relative; z-index: 1; }

/* ------------------ HERO BACKDROP ------------------ */
.hero-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #04050d;
}

.hero-stage::after {
  /* subtle vignette + grain feel without darkening center */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 0%, transparent 55%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

.hero-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 18%, #1b1d3a 0%, #0a0c1f 55%, #04050d 100%);
}

.hero-ground {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 42%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 35%, #000 100%);
  transform-origin: 50% 100%;
}

.hero-ground::before {
  /* wet asphalt reflective sheen */
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg,
      rgba(201,168,76,0.0) 0px,
      rgba(201,168,76,0.0) 12px,
      rgba(201,168,76,0.04) 13px,
      rgba(201,168,76,0.0) 14px);
  mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
}

/* Building silhouette */
.hero-skyline {
  position: absolute;
  left: 0; right: 0;
  bottom: 38%;
  height: 28%;
  background:
    linear-gradient(180deg, transparent 0%, #06070f 95%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 200' preserveAspectRatio='none'><path fill='%23090b18' d='M0 200V70h60V40h40v30h30V20h50v50h40V60h60v40h50V30h60v70h60V50h50v50h40V70h60v30h50V40h60v60h60V20h50v80h40V60h60v40h50V70h60v30h50V50h60v50h40V80h60v20h50V40h60v60h50V70h60v30h40V50h60v50H0z'/></svg>");
  background-size: cover, 100% 100%;
}

/* Distant building windows */
.hero-windows {
  position: absolute;
  left: 0; right: 0;
  bottom: 40%;
  height: 22%;
  opacity: 0.55;
  background:
    radial-gradient(circle 1px at 12% 30%, #C9A84C 50%, transparent 60%),
    radial-gradient(circle 1px at 18% 60%, #E4C46E 50%, transparent 60%),
    radial-gradient(circle 1px at 24% 22%, #C9A84C 50%, transparent 60%),
    radial-gradient(circle 1px at 31% 55%, #E4C46E 50%, transparent 60%),
    radial-gradient(circle 1px at 38% 32%, #C9A84C 50%, transparent 60%),
    radial-gradient(circle 1px at 44% 70%, #C9A84C 50%, transparent 60%),
    radial-gradient(circle 1px at 51% 25%, #E4C46E 50%, transparent 60%),
    radial-gradient(circle 1px at 58% 58%, #C9A84C 50%, transparent 60%),
    radial-gradient(circle 1px at 64% 38%, #E4C46E 50%, transparent 60%),
    radial-gradient(circle 1px at 71% 72%, #C9A84C 50%, transparent 60%),
    radial-gradient(circle 1px at 78% 28%, #E4C46E 50%, transparent 60%),
    radial-gradient(circle 1px at 85% 62%, #C9A84C 50%, transparent 60%),
    radial-gradient(circle 1px at 91% 42%, #E4C46E 50%, transparent 60%);
  animation: windowFlicker 11s ease-in-out infinite;
}

@keyframes windowFlicker {
  0%, 100% { opacity: 0.55; }
  47% { opacity: 0.58; }
  53% { opacity: 0.42; }
  72% { opacity: 0.6; }
}

/* Moving car headlights along an unseen road */
.hero-headlights {
  position: absolute;
  bottom: 18%;
  left: -20%;
  width: 140%;
  height: 12%;
  overflow: hidden;
  pointer-events: none;
}
.headlight-pair {
  position: absolute;
  top: 50%;
  width: 220px;
  height: 4px;
  transform: translateY(-50%);
  filter: blur(2px);
}
.headlight-pair::before,
.headlight-pair::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  background: radial-gradient(ellipse at left, #fff7d8 0%, rgba(228,196,110,0.8) 35%, transparent 70%);
  border-radius: 50%;
}
.headlight-pair::before { left: 0; }
.headlight-pair::after { left: 30px; }

.hl1 { animation: headlightDrift 14s linear infinite; }
.hl2 { animation: headlightDrift 18s linear infinite; animation-delay: -7s; top: 62%; transform: translateY(-50%) scale(0.7); opacity: 0.7; }
.hl3 { animation: headlightDrift 22s linear infinite; animation-delay: -14s; top: 38%; transform: translateY(-50%) scale(0.5); opacity: 0.5; }

@keyframes headlightDrift {
  0%   { left: -20%; }
  100% { left: 120%; }
}

/* Gold "spotlight" sweeping across canopy */
.hero-spot {
  position: absolute;
  top: 0; bottom: 0; left: -30%;
  width: 60%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(228,196,110,0.10) 0%, transparent 70%);
  mix-blend-mode: screen;
  animation: spotSweep 22s ease-in-out infinite;
  pointer-events: none;
}
@keyframes spotSweep {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(160%); }
}

/* Subtle film grain */
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* Hide the static stage when an actual video plays */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-stage.has-video { display: none; }

/* Hero video overlay: darken + gold tint */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,8,18,0.5) 0%, rgba(13,16,48,0.35) 40%, rgba(8,8,18,0.85) 100%),
    radial-gradient(ellipse at 30% 60%, rgba(201,168,76,0.08) 0%, transparent 60%);
  pointer-events: none;
}


/* ------------------ GRAIN OVERLAY (navy sections) ------------------ */
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ------------------ SCROLL REVEAL ------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------ MARKER PULSE ------------------ */
@keyframes markerPulse {
  0%   { r: 5; opacity: 0.9; }
  70%  { r: 18; opacity: 0; }
  100% { r: 18; opacity: 0; }
}
.marker-pulse {
  transform-origin: center;
  animation: markerPulse 2.4s ease-out infinite;
}

/* ------------------ SHIMMER (submit button) ------------------ */
.btn-shimmer { position: relative; overflow: hidden; isolation: isolate; }
.btn-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.65) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 900ms cubic-bezier(.4,.0,.2,1);
  pointer-events: none;
}
.btn-shimmer:hover::after { transform: translateX(120%); }

/* ------------------ CUSTOM CURSOR ------------------ */
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  border: 1.5px solid rgba(201, 168, 76, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate3d(-50%, -50%, 0);
  transition: transform 120ms ease-out, width 200ms, height 200ms, border-color 200ms, background 200ms;
  mix-blend-mode: difference;
}
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: 999;
  transform: translate3d(-50%, -50%, 0);
}
.cursor-ring.hover {
  width: 56px; height: 56px;
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(228, 196, 110, 0.9);
}

@media (max-width: 1024px) {
  .cursor-ring, .cursor-dot { display: none; }
}

/* ------------------ SCROLL PROGRESS ------------------ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  z-index: 100;
  width: 0%;
  transition: width 60ms linear;
  box-shadow: 0 0 8px rgba(201,168,76,0.5);
}

/* ------------------ TYPE ------------------ */
.font-accent { font-family: 'Cormorant Garamond', Georgia, serif; }

/* Subtle gold underline on inputs focus */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 1px rgba(201,168,76,0.4);
}

/* Form select arrow */
.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* SERVICE CARD photo header */
.svc-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 28px;
}
.svc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}
.svc-photo:hover img { transform: scale(1.08); }
.svc-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(13,16,48,0.7) 100%);
  pointer-events: none;
}
.svc-photo .svc-photo-tag {
  position: absolute;
  bottom: 16px;
  left: 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  z-index: 2;
}

/* Problem card photo */
.prob-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 22px;
}
.prob-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prob-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(13,16,48,0.4) 100%);
}

/* Corner gold accent on cards */
.corner-accent {
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  pointer-events: none;
}
.corner-accent::before, .corner-accent::after {
  content: '';
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.corner-accent::before { top: 18px; right: 0; width: 60px; height: 1px; }
.corner-accent::after { top: 0; right: 18px; height: 60px; width: 1px; background: linear-gradient(180deg, var(--gold), transparent); }

/* Process step number background numerals */
.step-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 7rem;
  line-height: 1;
  color: rgba(26, 26, 78, 0.08);
  position: absolute;
  top: -8px;
  left: -4px;
  user-select: none;
  pointer-events: none;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 18, 0.97);
  backdrop-filter: blur(16px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.mobile-menu a:hover { color: var(--gold); }

/* Utility: text gradient gold */
.text-gold-gradient {
  background: linear-gradient(180deg, #F5E6B8 0%, #C9A84C 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
