/* ========================================
   VIZBL ADS — MODERN ANIMATIONS & EFFECTS
   ======================================== */

/* --- 1. Smooth Scroll --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* --- 2. Sticky Navbar — iOS-style Glass --- */
#uni-navigation-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease,
              backdrop-filter 0.4s ease,
              -webkit-backdrop-filter 0.4s ease,
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

/* Compact single-row layout */
#uni-navigation-bar .nav-02__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 0;
}

#uni-navigation-bar .nav-02__logo {
  flex-shrink: 0;
}

#uni-navigation-bar .nav-02__logo_img {
  height: 64px;
  transition: height 0.3s ease;
}

#uni-navigation-bar .nav-02__links {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#uni-navigation-bar .nav-02__list_wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#uni-navigation-bar .nav-02__list--desktop {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  padding: 0;
}

#uni-navigation-bar .nav-02__list--desktop .nav-02__item > .button--empty {
  padding: 6px 16px;
  white-space: nowrap;
}

#uni-navigation-bar .nav-02__list--desktop .button__text {
  font-size: 16px;
}

/* Auth buttons in nav */
.nav-02__item--auth {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-02__item--auth .button--accent-bg {
  padding: 10px 24px !important;
  white-space: nowrap;
}

.nav-02__item--auth .button--accent-bg .button__text {
  font-size: 15px;
}

.nav-02__item--auth > .button--empty {
  padding: 6px 12px !important;
}

/* --- Scrolled state --- */
#uni-navigation-bar.nav--scrolled {
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

#uni-navigation-bar.nav--scrolled .nav-02__logo_img {
  height: 46px;
}

#uni-navigation-bar.nav--scrolled .button--empty .button__text {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9),
               0 0 20px rgba(255, 255, 255, 0.5);
}

#uni-navigation-bar.nav--scrolled .button--accent-bg {
  box-shadow: 0 2px 10px rgba(53, 88, 218, 0.3);
}

.nav-02__item .button__text {
  transition: text-shadow 0.3s ease;
}

/* --- 3. Nav Link Hover Underline --- */
.nav-02__list--desktop > .nav-02__item > .button--empty {
  position: relative;
  overflow: visible;
}

.nav-02__list--desktop > .nav-02__item > .button--empty::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #3558DA;
  border-radius: 1px;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-02__list--desktop > .nav-02__item > .button--empty:hover::after {
  width: 70%;
  left: 15%;
}

/* --- 4. Scroll Reveal Base Classes --- */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up {
  transform: translateY(36px);
}

.reveal-left {
  transform: translateX(-44px);
}

.reveal-right {
  transform: translateX(44px);
}

.reveal-scale {
  transform: scale(0.94);
}

.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays via inline style or classes */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- 5. Parallax Backgrounds --- */
.page-component__bg_image_box--has-image {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .page-component__bg_image_box--has-image {
    background-attachment: scroll;
  }
}

/* --- 6. Service Card Hover Effects --- */
.features-01__item .feature {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border-left: 3px solid transparent;
}

.features-01__item .feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(53, 88, 218, 0.12);
  border-left-color: #3558DA;
}

/* --- 7. Hero Image Float Animation --- */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.header-23__img {
  animation: heroFloat 4.5s ease-in-out infinite;
}

/* --- 8. Image Hover Zoom --- */
.features-07__img_box,
.steps-01__img_box {
  overflow: hidden;
  border-radius: 8px;
}

.features-07__img,
.steps-01__img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.features-07__img_box:hover .features-07__img,
.steps-01__img_box:hover .steps-01__img {
  transform: scale(1.04);
}

/* --- 9. Full-Width Photo Reveal Zoom --- */
.photos-02__img_box {
  overflow: hidden;
}

.photos-02__img {
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.photos-02__img.img-zoomed {
  transform: scale(1);
}

.photos-02__img:not(.img-zoomed) {
  transform: scale(1.06);
}

/* --- 10. Button Hover & Active Effects --- */
.button--accent-bg {
  transition: transform 0.25s ease,
              box-shadow 0.25s ease,
              background-color 0.25s ease !important;
}

.button--accent-bg:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(53, 88, 218, 0.32) !important;
}

.button--accent-bg:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(53, 88, 218, 0.2) !important;
}

/* --- 11. CTA Form Card Subtle Lift --- */
.cta_form-03__wrapper {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cta_form-03__wrapper:hover {
  transform: translateY(-4px);
}

/* --- 12. Popup Smooth Appearance --- */
.popup-message {
  transition: opacity 0.35s ease, transform 0.35s ease !important;
}

.popup-message.d-none {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(0.92) !important;
  pointer-events: none;
  display: flex !important;
  visibility: hidden;
}

.popup-message:not(.d-none) {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  visibility: visible;
}

/* --- 13. Solutions Number Pulse on Reveal --- */
@keyframes numberPop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.steps-01__number.is-visible {
  animation: numberPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.steps-01__number {
  opacity: 0;
  transition: none;
}

/* --- 14. Social Icons Hover --- */
.social-buttons__link {
  transition: transform 0.3s ease;
}

.social-buttons__link:hover {
  transform: translateY(-3px);
}

/* --- 15. Reduced Motion Preference --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .steps-01__number {
    opacity: 1;
  }
}

/* ========================================
   SITE FOOTER
   ======================================== */
.site-footer {
  background: #1a1a2e;
  color: #d1d5db;
  font-family: 'Lexend', Helvetica, sans-serif;
}

.site-footer__main {
  padding: 56px 0 40px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.site-footer__col--brand {
  padding-right: 24px;
}

.site-footer__logo-link {
  display: inline-block;
  margin-bottom: 16px;
}

.site-footer__logo {
  height: 48px;
  filter: brightness(0) invert(1);
}

.site-footer__tagline {
  font-size: 14px;
  line-height: 1.65;
  color: #9ca3af;
  margin: 0;
}

.site-footer__heading {
  font-family: 'Lexend', Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #fff;
  margin: 0 0 16px;
}

.site-footer__heading--mt {
  margin-top: 24px;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__contact-text {
  font-size: 14px;
  color: #9ca3af;
  margin: 0 0 12px;
}

.site-footer__cta-btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #3558DA;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-footer__cta-btn:hover {
  background: #2f4fc3;
  transform: translateY(-1px);
}

/* Footer bottom bar */
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #6b7280;
}

.site-footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-footer__bottom-links a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__bottom-links a:hover {
  color: #fff;
}

.site-footer__sep {
  color: #4b5563;
}

/* Footer responsive */
@media (max-width: 860px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 520px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__col--brand {
    padding-right: 0;
  }

  .site-footer__bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ── Legal pages (Privacy Policy, Services Offer Agreement) ── */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  font-family: 'Lexend', Helvetica, sans-serif;
  color: #1f2937;
  line-height: 1.75;
  font-size: 15.5px;
}

.legal-page__title {
  font-family: 'Playfair Display SC', serif;
  font-size: 38px;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.legal-page__date {
  font-size: 14.5px;
  color: #6b7280;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-family: 'Lexend', Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 36px 0 12px;
}

.legal-page h3 {
  font-family: 'Lexend', Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #374151;
  margin: 24px 0 8px;
}

.legal-page p {
  margin: 0 0 14px;
}

.legal-page ul {
  margin: 0 0 14px;
  padding-left: 24px;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page a {
  color: #3558DA;
  text-decoration: none;
  font-weight: 600;
}

.legal-page a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .legal-page {
    padding: 40px 16px 60px;
  }

  .legal-page__title {
    font-size: 28px;
  }

  .legal-page h2 {
    font-size: 18px;
  }
}
