/* Valorix International brand design system */
:root {
  --ink: #001d4a;
  --mist: #f3f7fb;
  --foam: #e8f1fb;
  --sea: #0070f3;
  --sea-deep: #001d4a;
  --brass: #00a3ff;
  --brass-deep: #0070f3;
  --line: rgba(0, 29, 74, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(0, 112, 243, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at -10% 30%, rgba(0, 163, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #f7fafc 0%, var(--mist) 40%, #eef3f9 100%);
  min-height: 100vh;
}

.font-display {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
}

.noise-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Animated wave divider */
.wave-divider {
  display: block;
  width: 100%;
  height: 72px;
  margin-top: -1px;
}

.wave-divider path {
  fill: var(--foam);
}

.wave-divider.flip path {
  fill: #fff;
}

/* Hero full-bleed */
.hero-plane {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 28, 40, 0.15) 0%, rgba(11, 28, 40, 0.55) 45%, rgba(11, 28, 40, 0.88) 100%),
    url("https://images.unsplash.com/photo-1548574505-5e239809ee19?q=80&w=2200&auto=format&fit=crop")
      center / cover no-repeat;
}

.hero-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 28, 40, 0.55) 0%, transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}

/* Soft page banner (inner pages) */
.page-banner {
  position: relative;
  overflow: hidden;
  padding: 7.5rem 0 4rem;
  background:
    linear-gradient(135deg, rgba(0, 112, 243, 0.92), rgba(0, 29, 74, 0.9)),
    url("https://images.unsplash.com/photo-1505118380757-91f5f5632de0?q=80&w=1800&auto=format&fit=crop")
      center / cover no-repeat;
}

.page-banner::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -120px;
  top: -140px;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.4), transparent 70%);
  animation: drift 12s ease-in-out infinite;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-30px, 20px);
  }
}

/* Floating nav */
.site-header {
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(11, 28, 40, 0.08);
}

.site-header.is-scrolled .nav-link-item {
  color: var(--ink);
}

.site-header.is-scrolled .brand-wordmark {
  color: var(--ink);
}

.site-header.is-scrolled .brand-wordmark span {
  color: var(--sea);
}

.site-header.is-scrolled #menuOpen {
  border-color: rgba(11, 28, 40, 0.15);
  background: rgba(11, 28, 40, 0.04);
  color: var(--ink);
}

/* Valorix logo — tight, readable on blue + white headers */
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.brand-logo-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: 0;
}

.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(200px, 48vw);
  object-fit: contain;
  object-position: center;
}

/* Swap white logo (over dark hero) and dark logo (on light/scrolled header) */
.brand-logo--dark {
  display: none;
}

.brand-logo--light {
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.site-header.is-scrolled .brand-logo--light {
  display: none;
}

.site-header.is-scrolled .brand-logo--dark {
  display: block;
}

@media (min-width: 640px) {
  .brand-logo {
    height: 56px;
    max-width: 220px;
  }
}

@media (max-width: 400px) {
  .brand-logo {
    height: 40px;
  }
}

/* Magnetic CTA */
.btn-tide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #0070f3 0%, #001d4a 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 112, 243, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-tide:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 112, 243, 0.35);
  color: #fff;
}

.btn-brass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(135deg, #00a3ff, #0070f3);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 112, 243, 0.28);
  transition: transform 0.25s ease;
}

.btn-brass:hover {
  transform: translateY(-2px);
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  color: #fff;
}

.btn-ghost-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1.5px solid rgba(11, 28, 40, 0.18);
  color: var(--ink);
  background: transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-ghost-ink:hover {
  border-color: var(--sea);
  background: rgba(15, 118, 110, 0.06);
  color: var(--sea-deep);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Marquee */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Department mosaic tiles */
.mosaic-tile {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  min-height: 180px;
  isolation: isolate;
}

.mosaic-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.mosaic-tile:hover img {
  transform: scale(1.08);
}

.mosaic-tile .mosaic-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(11, 28, 40, 0.85) 100%);
  z-index: 1;
}

.mosaic-tile .mosaic-label {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
  color: #fff;
  font-weight: 700;
}

/* Story rail */
.story-rail {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.story-rail::-webkit-scrollbar {
  height: 6px;
}

.story-rail::-webkit-scrollbar-thumb {
  background: rgba(15, 118, 110, 0.35);
  border-radius: 999px;
}

.story-slide {
  flex: 0 0 min(86vw, 360px);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(11, 28, 40, 0.06);
}

/* Forms */
.field {
  width: 100%;
  border-radius: 0.9rem;
  border: 1.5px solid rgba(11, 28, 40, 0.12);
  background: #fff;
  padding: 0.85rem 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input.btn-tide,
button.btn-tide,
input.btn-brass,
button.btn-brass {
  cursor: pointer;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
}

input.btn-tide:hover,
button.btn-tide:hover {
  transform: translateY(-2px);
}

.field:focus {
  border-color: var(--sea);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(11, 28, 40, 0.75);
}

/* Accordion */
.faq-item[open] summary .faq-chevron {
  transform: rotate(180deg);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Job rows */
.job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.job-row:hover {
  border-color: rgba(15, 118, 110, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 28, 40, 0.07);
}

/* Mobile menu */
.mobile-panel {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-panel.is-open {
  transform: translateX(0);
}

.mobile-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Parallax float orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  animation: floaty 9s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

/* Step path */
.step-path {
  position: relative;
}

.step-path::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.35), transparent);
  z-index: 0;
}

@media (max-width: 767px) {
  .step-path::before {
    display: none;
  }
}

/* Stronger mobile / responsive polish */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

main {
  min-width: 0;
}

.page-banner {
  padding-top: 6.5rem;
  padding-bottom: 3rem;
}

.hero-plane {
  min-height: min(88vh, 720px);
}

.site-header {
  padding-top: env(safe-area-inset-top, 0);
}

.mobile-panel {
  padding-bottom: env(safe-area-inset-bottom, 0);
  width: min(100%, 20.5rem);
}

#viewSwitcher {
  display: none !important;
}

@media (max-width: 640px) {
  .hero-plane {
    min-height: auto;
    padding-top: 5.5rem;
  }

  .hero-content {
    padding-bottom: 2.75rem;
  }

  .page-banner {
    padding-top: 6rem;
    padding-bottom: 2.5rem;
  }

  .page-banner h1 {
    font-size: 1.85rem;
    line-height: 1.15;
  }

  .btn-tide,
  .btn-brass,
  .btn-ghost,
  .btn-ghost-ink {
    width: 100%;
    justify-content: center;
  }

  .story-slide {
    flex: 0 0 min(88vw, 320px);
  }

  .brand-logo-shell {
    padding: 0.3rem 0.5rem;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .brand-logo {
    height: 50px;
    max-width: 180px;
  }
}

.text-balance {
  text-wrap: balance;
}

.validation-summary-errors ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: #b91c1c;
}

/* Tighter spacing between sections (override Tailwind utilities with higher specificity) */
body main section.py-20 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

body main section.py-16 {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

body main section.py-6 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Trim the wave divider + hero so the first section sits closer */
.wave-divider {
  height: 48px;
  margin-bottom: -2px;
}

.hero-content {
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

@media (max-width: 640px) {
  body main section.py-20 {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

  body main section.py-16 {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }

  .wave-divider {
    height: 32px;
  }
}
