/* SynApps homepage tweaks on Finetech layout */

/* Never show theme preloader */
.preloader {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Hero must stay visible even if theme JS fails (Swiper/WOW/GSAP). */
.hero .wow,
.hero .text-anime-style-2 {
  visibility: visible !important;
  opacity: 1 !important;
  animation-name: none !important;
  transform: none !important;
}

.no-js .wow,
.wow {
  visibility: visible !important;
}

/*
 * Theme CSS sets .reveal { visibility: hidden } until GSAP ScrollTrigger plays.
 * On production that animation often never starts — photos stay invisible.
 * Keep content images visible; optional slide animation can still run on top.
 */
figure.reveal,
.reveal {
  visibility: visible !important;
  opacity: 1 !important;
}

.hero-img img[src*="hero-synaps"] {
  object-fit: contain !important;
  object-position: center bottom !important;
  background: transparent !important;
  border-radius: 0 !important;
  aspect-ratio: auto !important;
  max-height: min(560px, 70vh);
  width: 100%;
  height: auto !important;
}

.hero-img figure {
  background: transparent !important;
}

.footer-logo img {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* Footer is dark — lighten navy logo for contrast */
.main-footer .footer-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.home-hero-actions {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

/* Home hero quick actions */
.home-cta-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 640px;
}

.home-cta-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 13px;
  border-radius: 18px;
  text-decoration: none !important;
  color: #0f172a !important;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 36px rgba(2, 20, 24, 0.28);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 78px;
}

.home-cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(2, 20, 24, 0.34);
}

.home-cta-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 16px;
}

.home-cta-card--doctor .home-cta-card__icon {
  background: linear-gradient(145deg, #2dd4bf, #0f766e);
}

.home-cta-card--patient .home-cta-card__icon {
  background: linear-gradient(145deg, #38bdf8, #0284c7);
}

.home-cta-card--nobat .home-cta-card__icon {
  background: linear-gradient(145deg, #34d399, #059669);
}

.home-cta-card__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.home-cta-card__text strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.home-cta-card__text small {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

.home-cta-lead {
  margin: 14px 0 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.95rem !important;
  line-height: 1.7;
}

.home-cta-register {
  margin-top: 14px;
}

.home-cta-register .btn-default {
  min-width: 150px;
}

.hero .hero-content-footer {
  margin-top: 18px;
}

@media (max-width: 991px) {
  .home-cta-panel {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .home-hero-actions {
    margin-top: 12px !important;
  }

  .home-cta-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: none;
  }

  .home-cta-card {
    width: 100%;
    min-height: 72px;
    padding: 16px 18px;
    border-radius: 16px;
    gap: 14px;
    box-shadow: 0 12px 28px rgba(2, 20, 24, 0.3);
  }

  .home-cta-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 18px;
  }

  .home-cta-card__text strong {
    font-size: 17px;
    font-weight: 800;
  }

  .home-cta-card__text small {
    font-size: 12.5px;
  }

  .home-cta-lead {
    margin-top: 16px;
    font-size: 0.92rem !important;
  }

  .home-cta-register {
    margin-top: 14px;
    width: 100%;
  }

  .home-cta-register .btn-default {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    font-size: 17px !important;
    justify-content: center;
    display: inline-flex !important;
    align-items: center;
  }
}
