/* ================================================================
   SOV Technologies — Apple-like Cinematic UI
   Clean · Minimal · Smooth · Premium
   All values reference design tokens from webflow.css
================================================================ */

/* ── Apple easing curves ── */
:root {
  --apple-ease:        cubic-bezier(0.25, 0.1, 0.25, 1);
  --apple-ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --apple-ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
  --apple-spring:      cubic-bezier(0.34, 1.2, 0.64, 1);
  --apple-dur-xs:  120ms;
  --apple-dur-sm:  240ms;
  --apple-dur-md:  400ms;
  --apple-dur-lg:  600ms;
  --apple-dur-xl:  900ms;
  --apple-dur-2xl: 1200ms;
}

/* ================================================================
   1. PAGE ENTRY — cinematic fade-up (Apple.com style)
================================================================ */
body {
  opacity: 0;
  animation: apple-page-in var(--apple-dur-lg) var(--apple-ease-out) 0.05s forwards;
}
@keyframes apple-page-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   2. HEADER — frosted glass, Apple nav style
================================================================ */
.header {
  transition: padding var(--apple-dur-md) var(--apple-ease) !important;
}
.header .header-container {
  background: rgba(247, 250, 244, 0.72) !important;
  backdrop-filter: saturate(180%) blur(24px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(24px) !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 24px rgba(26,46,20,0.06) !important;
  transition: all var(--apple-dur-md) var(--apple-ease) !important;
}
body.scrolled .header .header-container {
  background: rgba(247, 250, 244, 0.92) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 8px 32px rgba(26,46,20,0.08) !important;
}
.navmenu a {
  transition: color var(--apple-dur-sm) var(--apple-ease) !important;
}
.header .btn-getstarted {
  transition: all var(--apple-dur-sm) var(--apple-ease) !important;
  animation: none !important;
}
.header .btn-getstarted:hover {
  transform: scale(1.04) !important;
}

/* ================================================================
   3. HERO — cinematic entrance, Apple-style layered reveal
================================================================ */
.hero {
  background: linear-gradient(
    160deg,
    #f0f9e8 0%,
    #f7faf4 30%,
    #ffffff 60%,
    #fef9f0 100%
  ) !important;
  overflow: hidden;
}

/* Staggered word-by-word reveal on hero heading */
.hero .agency-name h5 {
  opacity: 0;
  transform: translateY(10px);
  animation: apple-fade-up var(--apple-dur-md) var(--apple-ease-out) 0.3s forwards;
}
/* ── Hero heading — use sov-line-reveal, not CSS animation ── */
.hero .main-heading h1 {
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

/* ── sov-hero-title: cinematic line-by-line reveal ── */
/* Each word group slides up from behind a clip mask */
.sov-hero-title {
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
  /* gradient text applied here, not on child spans */
  background: linear-gradient(
    135deg,
    var(--text-900, #1a2e14) 0%,
    var(--color-primary, #5B8E3E) 55%,
    var(--color-primary-dark, #3d6129) 100%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* The clip wrapper — hides the inner span before it slides up */
.sov-hero-title .sov-title-line {
  display: block;
  overflow: hidden;
  line-height: 1.15;
}

/* The animated inner span */
.sov-hero-title .sov-title-inner {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  animation: sov-title-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  /* inherit gradient from parent */
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sov-hero-title .sov-title-line:nth-child(1) .sov-title-inner {
  animation-delay: 0.3s;
}
.sov-hero-title .sov-title-line:nth-child(2) .sov-title-inner {
  animation-delay: 0.5s;
}

@keyframes sov-title-in {
  from {
    transform: translateY(110%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.hero .divider {
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: apple-line-in var(--apple-dur-md) var(--apple-ease-out) 0.8s forwards;
}
.hero .description p {
  opacity: 0;
  transform: translateY(8px);
  animation: apple-fade-up var(--apple-dur-md) var(--apple-ease-out) 0.95s forwards;
}
.hero .cta-button {
  opacity: 0;
  transform: translateY(8px);
  animation: apple-fade-up var(--apple-dur-md) var(--apple-ease-out) 1.1s forwards;
}
.hero .visual-content {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  animation: apple-visual-in var(--apple-dur-2xl) var(--apple-ease-out) 0.4s forwards;
}
.hero .stats-card {
  opacity: 0;
  transform: translateY(16px);
  animation: apple-fade-up var(--apple-dur-lg) var(--apple-ease-out) 1.2s forwards;
}

@keyframes apple-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes apple-line-in {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}
@keyframes apple-visual-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hero image — subtle parallax depth */
.hero .fluid-img {
  transition: transform var(--apple-dur-2xl) var(--apple-ease) !important;
  will-change: transform;
}

/* Stats card — glass morphism */
.hero .stats-card {
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255,255,255,0.6) !important;
  border-radius: 20px !important;
}

/* ================================================================
   4. SECTION REVEAL — Apple scroll-driven fade
   Each section fades in as it enters viewport
================================================================ */
.apple-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity    var(--apple-dur-xl) var(--apple-ease-out),
    transform  var(--apple-dur-xl) var(--apple-ease-out);
  will-change: transform, opacity;
}
.apple-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.apple-reveal-delay-1 { transition-delay: 0.08s; }
.apple-reveal-delay-2 { transition-delay: 0.16s; }
.apple-reveal-delay-3 { transition-delay: 0.24s; }
.apple-reveal-delay-4 { transition-delay: 0.32s; }
.apple-reveal-delay-5 { transition-delay: 0.40s; }
.apple-reveal-delay-6 { transition-delay: 0.48s; }

/* Scale variant */
.apple-reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity   var(--apple-dur-xl) var(--apple-ease-out),
    transform var(--apple-dur-xl) var(--apple-spring);
  will-change: transform, opacity;
}
.apple-reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Slide from left */
.apple-reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity   var(--apple-dur-xl) var(--apple-ease-out),
    transform var(--apple-dur-xl) var(--apple-ease-out);
  will-change: transform, opacity;
}
.apple-reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.apple-reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition:
    opacity   var(--apple-dur-xl) var(--apple-ease-out),
    transform var(--apple-dur-xl) var(--apple-ease-out);
  will-change: transform, opacity;
}
.apple-reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ================================================================
   5. SERVICE CARDS — Apple product card style
================================================================ */
.service-card {
  background: var(--bg-surface) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  border-radius: 20px !important;
  transition:
    transform  var(--apple-dur-md) var(--apple-spring),
    box-shadow var(--apple-dur-md) var(--apple-ease),
    border-color var(--apple-dur-sm) var(--apple-ease) !important;
  will-change: transform;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.08),
    0 24px 48px rgba(26,46,20,0.10) !important;
  border-color: rgba(91,142,62,0.15) !important;
}
.service-card:active {
  transform: translateY(-2px) scale(0.99) !important;
  transition-duration: var(--apple-dur-xs) !important;
}

/* Icon — Apple SF Symbol style */
.service-card .service-icon {
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, var(--c-green-50), var(--c-green-100)) !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(91,142,62,0.15) !important;
  transition: all var(--apple-dur-md) var(--apple-spring) !important;
}
.service-card:hover .service-icon {
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-dark)) !important;
  box-shadow: 0 4px 16px rgba(91,142,62,0.35) !important;
  transform: scale(1.08) rotate(-4deg) !important;
}
.service-card:hover .service-icon i { color: #fff !important; }

/* ================================================================
   6. BUTTONS — Apple-style with spring press
================================================================ */

/* Primary CTA */
.cta-btn-primary,
.hero .cta-button .btn,
.header .btn-getstarted,
.service-btn,
.btn-submit {
  transition:
    transform  var(--apple-dur-sm) var(--apple-spring),
    box-shadow var(--apple-dur-sm) var(--apple-ease),
    background var(--apple-dur-sm) var(--apple-ease) !important;
  will-change: transform;
}
.cta-btn-primary:hover,
.hero .cta-button .btn:hover,
.service-btn:hover,
.btn-submit:hover {
  transform: scale(1.03) translateY(-2px) !important;
}
.cta-btn-primary:active,
.hero .cta-button .btn:active,
.service-btn:active,
.btn-submit:active {
  transform: scale(0.97) !important;
  transition-duration: var(--apple-dur-xs) !important;
}

/* ================================================================
   7. SECTION TITLES — Apple typography reveal
================================================================ */
.section-title {
  overflow: hidden;
}
.section-title h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--color-primary) !important;
}
.section-title h2::before {
  content: '';
  display: inline-block;
  width: 16px; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}
.section-title div {
  font-size: clamp(1.8rem, 4vw, 2.6rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  color: var(--text-900) !important;
}

/* ================================================================
   8. ABOUT SECTION — Apple feature grid
================================================================ */
.about .about-content .feature-item {
  background: var(--bg-surface) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  border-radius: 16px !important;
  transition:
    transform  var(--apple-dur-md) var(--apple-spring),
    box-shadow var(--apple-dur-md) var(--apple-ease) !important;
  will-change: transform;
}
.about .about-content .feature-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 32px rgba(26,46,20,0.10) !important;
}
.about .about-content .feature-item:active {
  transform: scale(0.98) !important;
}
.about .about-image img {
  border-radius: 24px !important;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.04),
    0 16px 48px rgba(26,46,20,0.12) !important;
  transition: transform var(--apple-dur-xl) var(--apple-ease) !important;
  will-change: transform;
}
.about .about-image:hover img {
  transform: scale(1.015) !important;
}

/* ================================================================
   9. CONTACT CARDS — Apple info tile
================================================================ */
.contact .contact-info-box {
  background: var(--bg-surface) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  border-radius: 16px !important;
  transition:
    transform  var(--apple-dur-md) var(--apple-spring),
    box-shadow var(--apple-dur-md) var(--apple-ease) !important;
  will-change: transform;
}
.contact .contact-info-box:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 32px rgba(26,46,20,0.10) !important;
}
.contact .contact-info-box .icon-box {
  transition: all var(--apple-dur-md) var(--apple-spring) !important;
}
.contact .contact-info-box:hover .icon-box {
  background: var(--color-primary) !important;
  color: #fff !important;
  transform: scale(1.1) !important;
}

/* ================================================================
   10. FORM INPUTS — Apple input style
================================================================ */
.input-with-icon .form-control {
  border-radius: 12px !important;
  border: 1.5px solid rgba(0,0,0,0.1) !important;
  background: rgba(255,255,255,0.8) !important;
  backdrop-filter: blur(8px) !important;
  transition:
    border-color var(--apple-dur-sm) var(--apple-ease),
    box-shadow   var(--apple-dur-sm) var(--apple-ease),
    background   var(--apple-dur-sm) var(--apple-ease) !important;
}
.input-with-icon .form-control:focus {
  border-color: var(--color-primary) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(91,142,62,0.12) !important;
  outline: none !important;
}

/* ================================================================
   11. PORTFOLIO — Apple gallery hover
================================================================ */
.portfolio-entry {
  border-radius: 16px !important;
  overflow: hidden;
  transition:
    transform  var(--apple-dur-md) var(--apple-spring),
    box-shadow var(--apple-dur-md) var(--apple-ease) !important;
  will-change: transform;
}
.portfolio-entry:hover {
  transform: scale(1.02) !important;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.06),
    0 16px 40px rgba(0,0,0,0.12) !important;
}
.portfolio-entry .entry-image img {
  transition: transform var(--apple-dur-xl) var(--apple-ease) !important;
  will-change: transform;
}
.portfolio-entry:hover .entry-image img {
  transform: scale(1.06) !important;
}

/* ================================================================
   12. FAQ — Apple accordion
================================================================ */
.faq-item {
  border: 1px solid rgba(0,0,0,0.07) !important;
  border-radius: 14px !important;
  overflow: hidden;
  transition:
    box-shadow var(--apple-dur-sm) var(--apple-ease),
    border-color var(--apple-dur-sm) var(--apple-ease) !important;
  margin-bottom: 10px !important;
}
.faq-item.faq-active {
  border-color: rgba(91,142,62,0.25) !important;
  box-shadow: 0 4px 20px rgba(91,142,62,0.08) !important;
}
.faq-toggle {
  transition: transform var(--apple-dur-md) var(--apple-spring) !important;
}
.faq-item.faq-active .faq-toggle {
  transform: rotate(90deg) !important;
}

/* ================================================================
   13. SCROLL PROGRESS — Apple thin line
================================================================ */
#wf-progress {
  height: 2px !important;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-accent)  50%,
    var(--color-secondary) 100%
  ) !important;
  border-radius: 0 2px 2px 0 !important;
}

/* ================================================================
   14. SCROLL-TO-TOP — Apple minimal
================================================================ */
.scroll-top {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12) !important;
  transition: all var(--apple-dur-sm) var(--apple-spring) !important;
}
.scroll-top i { color: var(--color-primary) !important; }
.scroll-top:hover {
  transform: scale(1.1) translateY(-2px) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.16) !important;
}

/* ================================================================
   15. LINKS — Apple underline animation
================================================================ */
a:not(.btn):not(.btn-getstarted):not(.cta-btn-primary):not(.cta-btn-secondary):not(.nav-link):not([class*="btn"]) {
  text-decoration: none;
  background-image: linear-gradient(var(--color-primary), var(--color-primary));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--apple-dur-sm) var(--apple-ease) !important;
}
a:not(.btn):not(.btn-getstarted):not(.cta-btn-primary):not(.cta-btn-secondary):not(.nav-link):not([class*="btn"]):hover {
  background-size: 100% 1px;
}

/* ================================================================
   16. PAGE TITLE (inner pages) — cinematic banner
================================================================ */
.page-title {
  background: linear-gradient(
    160deg,
    var(--c-green-900) 0%,
    #1a3312 50%,
    #0f2a0a 100%
  ) !important;
  position: relative;
  overflow: hidden;
}
.page-title::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 120%,
    rgba(91,142,62,0.25) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.page-title h1 {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(16px);
  animation: apple-fade-up var(--apple-dur-lg) var(--apple-ease-out) 0.2s forwards;
}
.page-title p {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  animation: apple-fade-up var(--apple-dur-md) var(--apple-ease-out) 0.4s forwards;
}
.page-title .breadcrumbs {
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: apple-fade-up var(--apple-dur-md) var(--apple-ease-out) 0.55s forwards;
}

/* ================================================================
   17. BENEFIT CARDS (inner pages) — Apple feature tile
================================================================ */
.service-details .service-tabs .tab-content .benefit-card {
  background: var(--bg-surface) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  border-radius: 16px !important;
  transition:
    transform  var(--apple-dur-md) var(--apple-spring),
    box-shadow var(--apple-dur-md) var(--apple-ease) !important;
  will-change: transform;
}
.service-details .service-tabs .tab-content .benefit-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 32px rgba(26,46,20,0.10) !important;
}

/* ================================================================
   18. TESTIMONIALS — Apple quote card
================================================================ */
.about .testimonial-section .testimonial-item,
.testimonials .testimonial-item {
  background: var(--bg-surface) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  border-radius: 20px !important;
  transition:
    transform  var(--apple-dur-md) var(--apple-spring),
    box-shadow var(--apple-dur-md) var(--apple-ease) !important;
}
.testimonials .swiper-slide-active .testimonial-item {
  box-shadow: 0 8px 40px rgba(26,46,20,0.12) !important;
  border-color: rgba(91,142,62,0.15) !important;
}

/* ================================================================
   19. FOOTER — Apple dark footer
================================================================ */
.footer {
  background: linear-gradient(
    180deg,
    var(--c-green-900) 0%,
    #0d1f0d 100%
  ) !important;
}
.footer .footer-links ul a {
  transition:
    color     var(--apple-dur-sm) var(--apple-ease),
    transform var(--apple-dur-sm) var(--apple-ease) !important;
}
.footer .footer-links ul a:hover {
  transform: translateX(4px) !important;
}
.footer .social-links a {
  transition: all var(--apple-dur-md) var(--apple-spring) !important;
}
.footer .social-links a:hover {
  transform: scale(1.15) !important;
}

/* ================================================================
   20. REDUCED MOTION — respect user preference
================================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration:       0.01ms !important;
    animation-iteration-count: 1     !important;
    transition-duration:      0.01ms !important;
  }
  body,
  .hero .agency-name h5,
  .hero .main-heading h1,
  .hero .divider,
  .hero .description p,
  .hero .cta-button,
  .hero .visual-content,
  .hero .stats-card,
  .page-title h1,
  .page-title p,
  .page-title .breadcrumbs {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .apple-reveal,
  .apple-reveal-scale,
  .apple-reveal-left,
  .apple-reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .sov-line-reveal .line-inner,
  .sov-word-reveal .word,
  .sov-char-reveal .char {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* ================================================================
   SOV Technologies — Premium CTA Section
   "Ready to scale your business?"
================================================================ */

/* ── Section wrapper ── */
.sov-cta-section {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    #0a1a08 0%,
    #0f2a0a 30%,
    #1a3d12 60%,
    #0d2208 100%
  );
  text-align: center;
}

/* ── Animated background ── */
.sov-cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Glowing orbs */
.sov-cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.sov-cta-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(91,142,62,0.22) 0%, transparent 70%);
  top: -200px; left: -150px;
  animation: sov-cta-drift 18s ease-in-out infinite alternate;
}
.sov-cta-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(253,190,35,0.12) 0%, transparent 70%);
  top: 20%; right: -100px;
  animation: sov-cta-drift 22s ease-in-out infinite alternate-reverse;
}
.sov-cta-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(234,66,50,0.10) 0%, transparent 70%);
  bottom: -80px; left: 40%;
  animation: sov-cta-drift 26s ease-in-out infinite alternate;
}
@keyframes sov-cta-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -20px) scale(1.08); }
}

/* Dot grid */
.sov-cta-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

/* ── Eyebrow label ── */
.sov-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91,142,62,0.15);
  border: 1px solid rgba(91,142,62,0.35);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
}
.sov-cta-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #5B8E3E;
  box-shadow: 0 0 8px rgba(91,142,62,0.8);
  animation: sov-dot-blink 2s ease-in-out infinite;
}
@keyframes sov-dot-blink {
  0%,100% { opacity: 1; box-shadow: 0 0 8px rgba(91,142,62,0.8); }
  50%     { opacity: 0.5; box-shadow: 0 0 16px rgba(91,142,62,0.4); }
}

/* ── Main headline ── */
.sov-cta-headline {
  font-size: clamp(2.6rem, 6vw, 4.2rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.08 !important;
  color: #ffffff !important;
  margin-bottom: 24px !important;
}
.sov-cta-headline-accent {
  background: linear-gradient(135deg, #5B8E3E 0%, #FDBE23 60%, #EA4232 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: sov-gradient-shift 4s ease-in-out infinite alternate;
}
@keyframes sov-gradient-shift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* ── Sub-copy ── */
.sov-cta-sub {
  font-size: clamp(1rem, 2vw, 1.2rem) !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  color: rgba(255,255,255,0.62) !important;
  max-width: 580px;
  margin: 0 auto 40px !important;
}

/* ── Trust chips ── */
.sov-cta-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
.sov-cta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  transition: all 0.25s cubic-bezier(0.25,0.1,0.25,1);
  cursor: default;
}
.sov-cta-chip:hover {
  background: rgba(91,142,62,0.18);
  border-color: rgba(91,142,62,0.4);
  color: rgba(255,255,255,0.92);
  transform: translateY(-2px);
}
.sov-cta-chip i {
  color: #5B8E3E;
  font-size: 0.85rem;
}

/* ── Action buttons ── */
.sov-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

/* Primary button */
.sov-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #5B8E3E 0%, #3d6129 100%);
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(91,142,62,0.35),
    0 1px 0 rgba(255,255,255,0.12) inset;
  transition:
    transform 0.25s cubic-bezier(0.34,1.2,0.64,1),
    box-shadow 0.25s ease;
  will-change: transform;
}
/* Shimmer sweep */
.sov-cta-btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  animation: sov-btn-shimmer 3s ease-in-out infinite;
}
@keyframes sov-btn-shimmer {
  0%   { left: -100%; }
  60%  { left: 160%; }
  100% { left: 160%; }
}
.sov-cta-btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 12px 40px rgba(91,142,62,0.50),
    0 1px 0 rgba(255,255,255,0.15) inset;
  color: #ffffff !important;
}
.sov-cta-btn-primary:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}
.sov-cta-btn-icon {
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: transform 0.25s cubic-bezier(0.34,1.2,0.64,1);
  flex-shrink: 0;
}
.sov-cta-btn-primary:hover .sov-cta-btn-icon {
  transform: translateX(4px);
}

/* Ghost / secondary button */
.sov-cta-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.80) !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.16);
  text-decoration: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s cubic-bezier(0.34,1.2,0.64,1),
    color 0.25s ease;
  will-change: transform;
}
.sov-cta-btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  color: #ffffff !important;
  transform: translateY(-2px);
}
.sov-cta-btn-ghost:active {
  transform: scale(0.97);
}

/* ── Social proof ── */
.sov-cta-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.sov-cta-avatars {
  display: flex;
  align-items: center;
}
.sov-cta-avatars img {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.25);
  object-fit: cover;
  margin-right: -10px;
  transition: transform 0.2s ease;
}
.sov-cta-avatars img:hover { transform: scale(1.15) translateY(-2px); z-index: 2; }
.sov-cta-avatar-more {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(91,142,62,0.3);
  border: 2.5px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-left: 2px;
}
.sov-cta-proof-text {
  text-align: left;
}
.sov-cta-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 3px;
}
.sov-cta-stars i { color: #FDBE23; font-size: 0.75rem; }
.sov-cta-stars span {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-left: 4px;
}
.sov-cta-proof-text p {
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.5) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}
.sov-cta-proof-text p strong { color: rgba(255,255,255,0.85); }

/* ── Stats row ── */
.sov-cta-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px 40px;
  max-width: 720px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
}
.sov-cta-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
  flex: 1;
  min-width: 120px;
}
.sov-cta-stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 6px;
}
.sov-cta-stat-plus {
  font-size: 1.4rem;
  color: #5B8E3E;
  font-weight: 900;
}
.sov-cta-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  text-align: center;
}
.sov-cta-stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.10);
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .sov-cta-section { padding: 80px 0 72px; }
  .sov-cta-headline { font-size: clamp(2rem, 9vw, 2.8rem) !important; }
  .sov-cta-stats { padding: 20px 16px; gap: 0; }
  .sov-cta-stat { padding: 12px 16px; min-width: 90px; }
  .sov-cta-stat-num { font-size: 1.7rem; }
  .sov-cta-stat-divider { height: 36px; }
  .sov-cta-proof { flex-direction: column; gap: 10px; }
  .sov-cta-proof-text { text-align: center; }
}
@media (max-width: 480px) {
  .sov-cta-stats { flex-wrap: wrap; }
  .sov-cta-stat-divider:nth-child(4) { display: none; }
  .sov-cta-actions { flex-direction: column; align-items: stretch; }
  .sov-cta-btn-primary, .sov-cta-btn-ghost { justify-content: center; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .sov-cta-orb,
  .sov-cta-dot,
  .sov-cta-headline-accent,
  .sov-cta-btn-primary::before { animation: none !important; }
}
/* ================================================================
   SOV Technologies — Cinematic Scroll Experience
   Sticky image · Scene-based content · Smooth transitions
   Apple/Linear/Stripe scroll storytelling pattern
================================================================ */

/* ================================================================
   SCENE SYSTEM — the core layout
   Left: sticky visual panel (image stays fixed)
   Right: scrollable content scenes
================================================================ */

.sov-scene-wrap {
  position: relative;
}

/* The sticky+scroll container */
.sov-sticky-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 100vh;
  position: relative;
}

/* LEFT — sticky image panel */
.sov-sticky-visual {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background transitions between scenes */
.sov-sticky-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sov-scene-bg, linear-gradient(160deg, #eef6e6 0%, #f7faf4 100%));
  transition: background 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
  z-index: 0;
}

/* Image layers — one per scene, crossfade */
.sov-scene-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  opacity: 0;
  transform: scale(1.04) translateY(12px);
  transition:
    opacity    0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform  0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  z-index: 1;
  will-change: opacity, transform;
}
.sov-scene-img.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.sov-scene-img img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 24px;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.04),
    0 20px 60px rgba(26,46,20,0.14);
}

/* Scene number indicator */
.sov-scene-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.sov-scene-pip {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(91,142,62,0.25);
  transition: all 0.4s cubic-bezier(0.25,0.1,0.25,1);
  cursor: pointer;
}
.sov-scene-pip.is-active {
  width: 24px;
  border-radius: 3px;
  background: var(--color-primary);
}

/* RIGHT — scrollable scenes */
.sov-scenes-right {
  padding: 0;
}

/* Individual scene */
.sov-scene {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 64px 100px 80px;
  position: relative;
  opacity: 0.35;
  transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.sov-scene.is-active {
  opacity: 1;
}

/* Scene number */
.sov-scene-num {
  position: absolute;
  top: 48px;
  left: 80px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0.7;
}

/* Scene content */
.sov-scene-content {
  max-width: 480px;
}
.sov-scene-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.sov-scene-tag::before {
  content: '';
  display: inline-block;
  width: 14px; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}
.sov-scene-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  color: var(--text-900) !important;
  margin-bottom: 20px !important;
}
.sov-scene-body {
  font-size: 1.05rem !important;
  line-height: 1.8 !important;
  color: var(--text-500) !important;
  margin-bottom: 32px !important;
}

/* Scene stat pills */
.sov-scene-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.sov-scene-stat-pill {
  display: flex;
  flex-direction: column;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 20px;
  min-width: 100px;
}
.sov-scene-stat-pill strong {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--color-primary);
  line-height: 1;
}
.sov-scene-stat-pill span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-300);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Scene link */
.sov-scene-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary) !important;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: gap 0.25s cubic-bezier(0.34,1.2,0.64,1);
}
.sov-scene-link:hover { gap: 14px; }
.sov-scene-link i {
  font-size: 1rem;
  transition: transform 0.25s cubic-bezier(0.34,1.2,0.64,1);
}
.sov-scene-link:hover i { transform: translateX(4px); }

/* ── Scene background colors (applied via JS) ── */
.sov-sticky-visual[data-scene="0"]::before {
  background: linear-gradient(160deg, #eef6e6 0%, #f7faf4 100%);
}
.sov-sticky-visual[data-scene="1"]::before {
  background: linear-gradient(160deg, #f0f4ff 0%, #f7f9ff 100%);
}
.sov-sticky-visual[data-scene="2"]::before {
  background: linear-gradient(160deg, #fff8f0 0%, #fffaf5 100%);
}
.sov-sticky-visual[data-scene="3"]::before {
  background: linear-gradient(160deg, #f0faf5 0%, #f5fdf8 100%);
}

/* ================================================================
   SECTION SCENE TRANSITIONS
   Each major section gets a "scene" feel with bg color shift
================================================================ */

/* Smooth background color transitions on sections */
.hero.section {
  background: linear-gradient(160deg, #eef6e6 0%, #f7faf4 40%, #ffffff 100%) !important;
  transition: background 1.2s cubic-bezier(0.25,0.1,0.25,1);
}
.about.section {
  background: #ffffff !important;
}
.services.section {
  background: linear-gradient(180deg, #f7faf4 0%, #ffffff 100%) !important;
}
.steps.section {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9e8 100%) !important;
}
.sov-cta-section {
  /* already dark — handled separately */
}

/* ── Section scene dividers (subtle gradient fade between sections) ── */
.scene-fade-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--bg-page), transparent);
  pointer-events: none;
  z-index: 1;
}
.scene-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-page), transparent);
  pointer-events: none;
  z-index: 1;
}

/* ================================================================
   SCROLL-DRIVEN TEXT REVEAL
   Words/lines reveal as they enter viewport
================================================================ */

/* Word-by-word reveal */
.sov-word-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity  0.5s cubic-bezier(0.25,0.1,0.25,1),
    transform 0.5s cubic-bezier(0.25,0.1,0.25,1);
  will-change: transform, opacity;
}
.sov-word-reveal.is-visible .word {
  opacity: 1;
  transform: translateY(0);
}

/* Line-by-line reveal */
.sov-line-reveal {
  overflow: visible;
}
.sov-line-reveal .line {
  display: block;
  overflow: hidden;
}
.sov-line-reveal .line-inner {
  display: block;
  transform: translateY(105%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.sov-line-reveal.is-visible .line-inner {
  transform: translateY(0);
}
.sov-line-reveal .line:nth-child(2) .line-inner {
  transition-delay: 0.12s;
}
.sov-line-reveal .line:nth-child(3) .line-inner {
  transition-delay: 0.22s;
}

/* Char-by-char for hero heading */
.sov-char-reveal .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) rotate(3deg);
  transition:
    opacity   0.4s cubic-bezier(0.25,0.1,0.25,1),
    transform 0.4s cubic-bezier(0.34,1.2,0.64,1);
  will-change: transform, opacity;
}
.sov-char-reveal.is-visible .char {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* ================================================================
   PARALLAX LAYERS
   Multiple depth layers move at different speeds
================================================================ */
.sov-parallax-slow  { will-change: transform; }
.sov-parallax-med   { will-change: transform; }
.sov-parallax-fast  { will-change: transform; }

/* ================================================================
   PROGRESS SPINE
   Vertical line on left showing scroll progress through scenes
================================================================ */
.sov-scene-spine {
  position: absolute;
  left: 48px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border-subtle);
}
.sov-scene-spine-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  background: var(--color-primary);
  transition: height 0.1s linear;
  border-radius: 1px;
}

/* ================================================================
   MOBILE — stack layout, no sticky
================================================================ */
@media (max-width: 991px) {
  .sov-sticky-block {
    grid-template-columns: 1fr;
  }
  .sov-sticky-visual {
    position: relative;
    height: 50vw;
    min-height: 280px;
    max-height: 420px;
  }
  .sov-scene {
    min-height: auto;
    padding: 60px 24px 60px 24px;
    opacity: 1 !important;
  }
  .sov-scene-num { left: 24px; }
  .sov-scene-spine { display: none; }
  .sov-scene-indicator { display: none; }
}
@media (max-width: 575px) {
  .sov-scene { padding: 48px 20px; }
  .sov-scene-title { font-size: 1.7rem !important; }
}

/* ================================================================
   REDUCED MOTION
================================================================ */
@media (prefers-reduced-motion: reduce) {
  .sov-scene-img,
  .sov-scene,
  .sov-word-reveal .word,
  .sov-line-reveal .line,
  .sov-char-reveal .char {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
