/* ==========================================================================
   SPAS IV SOLUTIONS — EXTRAORDINARY PREMIUM THEME (v3)
   Includes Logo Zoom Entrance Animation & Polished Badge Layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #06101E;         
  --navy-light: #122238;
  --steel: #506982;        
  --amber: #F26A1B;        
  --amber-dark: #D4540C;
  --paper: #F6F8FA;        
  --ink: #0F172A;          
  --line: rgba(6, 16, 30, 0.08);
  --white: #FFFFFF;
  --shadow: 0 20px 60px rgba(6, 16, 30, 0.12);
  --font-display: "Barlow Semi Condensed", sans-serif;
  --font-body: "Inter", sans-serif;
  --max-width: 1180px;
}

/* RESET & BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(242, 106, 27, 0.05), transparent 30%),
    var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -.025em;
}

::selection {
  background: var(--amber);
  color: var(--white);
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #E9EDF2; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--amber), var(--navy));
  border-radius: 20px;
}

/* CONTAINER & SPACIOUS PADDING */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section--tight { padding: 75px 0; }

.section--white {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

/* LUXURY DIVIDERS */
.section--white::after,
.section::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0.5;
}
.section--white::after { bottom: 0; }
.section::before { top: 0; }

/* HEADER & LOGO ZOOM ENTRANCE ANIMATION */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(6, 16, 30, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 15px 40px rgba(6, 16, 30, 0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}

/* Smooth Zoom-In Entrance Keyframes for the Logo */
@keyframes logoZoomEntrance {
  0% {
    transform: scale(2.4);
    opacity: 0;
    filter: blur(8px);
  }
  70% {
    transform: scale(0.96);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  animation: logoZoomEntrance 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover {
  transform: scale(1.04);
}

/* Polished Badge Wrapper to seamlessly blend JPEG background */
.logo-badge {
  background: #FFFFFF;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(6, 16, 30, 0.08);
  box-shadow: 0 4px 15px rgba(6, 16, 30, 0.06);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.logo:hover .logo-badge {
  border-color: rgba(242, 106, 27, 0.4);
  box-shadow: 0 6px 20px rgba(242, 106, 27, 0.15);
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* NAVIGATION LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: .95rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--amber-dark);
  transform: translateY(-1px);
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--amber), var(--amber-dark));
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }

.nav-links a.is-active {
  color: var(--navy);
  font-weight: 700;
}

.nav-cta {
  padding: 12px 22px !important;
  border: 1px solid rgba(6, 16, 30, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.nav-cta:hover {
  color: var(--white) !important;
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 10px 25px rgba(6, 16, 30, 0.22);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px 0;
  background: var(--navy);
  border-radius: 5px;
  transition: 0.3s ease;
}

/* BUTTON ANIMATIONS */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: .96rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s ease,
    border-color 0.3s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.48) 50%,
    transparent 80%
  );
  transform: translateX(-140%);
  transition: transform 0.75s ease-in-out;
}

.btn:hover::before { transform: translateX(140%); }
.btn:hover { transform: translateY(-5px) scale(1.02); }
.btn:active { transform: translateY(-1px) scale(0.97); }

.btn--amber {
  color: var(--white);
  background: linear-gradient(135deg, #FF833B, var(--amber));
  box-shadow: 0 12px 32px rgba(242, 106, 27, 0.32);
}

.btn--amber:hover {
  box-shadow: 0 22px 48px rgba(242, 106, 27, 0.48);
  background: linear-gradient(135deg, #F57224, #D4540C);
}

.btn--navy {
  color: var(--white);
  background: linear-gradient(135deg, #122238, var(--navy));
  box-shadow: 0 12px 32px rgba(6, 16, 30, 0.25);
}

.btn--navy:hover {
  box-shadow: 0 22px 48px rgba(6, 16, 30, 0.38);
}

.btn--outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.12);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn:hover .btn-arrow { transform: translateX(8px) scale(1.15); }

/* FORMS */
.field { display: block; margin-bottom: 22px; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: .89rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  font: inherit;
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.25s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(242, 106, 27, 0.15);
  transform: translateY(-2px);
}

.form-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(6, 16, 30, 0.08);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
}

/* BADGES / STATUS STAMPS */
.status-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.status-stamp::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  animation: pulseDot 1.8s infinite;
}

/* CARDS WITH HOVER DYNAMICS */
.card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(6, 16, 30, 0.08);
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 10px 35px rgba(6, 16, 30, 0.05);
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.45s ease,
    border-color 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -70px;
  bottom: -70px;
  border-radius: 50%;
  background: rgba(242, 106, 27, 0.08);
  transition: transform 0.5s ease;
}

.card:hover {
  transform: translateY(-12px);
  border-color: rgba(242, 106, 27, 0.35);
  box-shadow: 0 30px 60px rgba(6, 16, 30, 0.12);
}

.card:hover::before { transform: scaleX(1); }
.card:hover::after { transform: scale(1.6); }

.card svg {
  color: var(--amber);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover svg {
  transform: translateY(-6px) rotate(-8deg) scale(1.12);
}

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stats > div {
  position: relative;
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(145deg, #FFFFFF, rgba(255, 255, 255, 0.65));
  border: 1px solid var(--line);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stats > div:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(6, 16, 30, 0.1);
  border-color: rgba(242, 106, 27, 0.3);
}

.stats .num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--navy);
}

.stats .label {
  margin-top: 4px;
  font-size: .88rem;
  color: rgba(15, 23, 42, 0.65);
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(242, 106, 27, 0.2), transparent 25%),
    radial-gradient(circle at 15% 85%, rgba(80, 105, 130, 0.3), transparent 30%),
    linear-gradient(135deg, #06101E 0%, #0C1A2E 50%, #122238 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(to bottom, black, transparent);
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -160px;
  border: 1px solid rgba(242, 106, 27, 0.25);
  border-radius: 50%;
  box-shadow:
    0 0 0 60px rgba(242, 106, 27, 0.04),
    0 0 0 120px rgba(242, 106, 27, 0.02);
  animation: rotateRing 30s linear infinite;
  z-index: -1;
}

.hero .container {
  position: relative;
  width: 100%;
  padding: 130px 32px;
}

.hero h1 {
  max-width: 840px;
  color: var(--white);
  font-size: clamp(3rem, 7.5vw, 6rem);
  letter-spacing: -.045em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.hero p.lead {
  max-width: 660px;
  margin-top: 25px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
}

.hero .cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* FLOATING BLOBS */
.floaty {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(85px);
  z-index: -1;
}

.floaty-1 {
  width: 380px;
  height: 380px;
  top: -100px;
  right: 8%;
  background: rgba(242, 106, 27, 0.22);
  animation: floatOne 10s ease-in-out infinite;
}

.floaty-2 {
  width: 300px;
  height: 300px;
  bottom: -100px;
  left: 8%;
  background: rgba(80, 105, 130, 0.32);
  animation: floatTwo 14s ease-in-out infinite;
}

/* SCROLL CUE */
.scroll-cue {
  position: absolute;
  bottom: 25px;
  left: 50%;
  color: rgba(255, 255, 255, 0.7);
  transform: translateX(-50%);
  animation: bob 2s ease-in-out infinite;
}

/* FOOTER */
.site-footer {
  padding: 65px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: .9rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

/* ANIMATIONS */
@media (prefers-reduced-motion: no-preference) {
  .hero-in {
    animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero-in-1 {
    animation: rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
  }
  .hero-in-2 {
    animation: rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
  }
  .hero-in-3 {
    animation: rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both;
  }

  .reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition:
      opacity 0.8s ease,
      transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  body {
    animation: pageFade 0.6s ease both;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

@keyframes floatOne {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.1); }
}

@keyframes floatTwo {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -25px) scale(1.15); }
}

@keyframes rotateRing {
  to { transform: rotate(360deg); }
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* MOBILE NAV */
.nav-links.is-open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 24px 32px 32px;
  gap: 16px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 25px 40px rgba(6, 16, 30, 0.12);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }

  .hero { min-height: 600px; }
  .hero h1 { font-size: clamp(2.8rem, 9vw, 4.5rem); }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 85px 0; }

  .stats,
  .grid--4,
  .grid--2 { grid-template-columns: 1fr; }

  .logo-img { height: 38px; }

  .hero .container { padding: 90px 20px; }
  .hero h1 { font-size: clamp(2.5rem, 13vw, 3.8rem); }
  .hero p.lead { font-size: 1rem; }

  .hero .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn { width: 100%; }
  .card { padding: 26px; }

  .site-footer {
    padding: 45px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}