.service-card {
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.service-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.service-card .service-title {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.service-card .service-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  transition: width 220ms ease;
}

.service-card:hover .service-title::after {
  width: 100%;
}

/* Hover effekt a pricing tab kártyákra is */
.tab-content:hover h2::after {
  content: "";
  display: block;
  margin-top: 6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.tab-btn {
  transition: transform 200ms ease;
}

.tab-btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 2%, black 98%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 2%, black 98%, transparent 100%);
}

.logo-track {
  display: flex;
  gap: 24px;
  padding: 12px 0;
  animation: logo-marquee 25s linear infinite;
}

.logo-item {
  min-width: 180px;
  padding: 6px 12px;
  border-radius: 12px;
  background: transparent;
  color: #1f2937;
  font-weight: 700;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-item.logo-img {
  min-width: 320px;
  padding: 0;
}

.logo-item.logo-img img {
  display: block;
  height: 72px;
  max-height: 72px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}

@keyframes logo-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Investments modal layout */
.inv-overlay {
  padding-top: calc(env(safe-area-inset-top, 0px) + 64px);
}
.inv-modal {
  max-height: 78vh;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
}
.inv-modal-scroll {
  overflow-y: auto;
  max-height: calc(78vh - 150px);
  overscroll-behavior: contain;
}
.inv-modal-img {
  max-height: 18rem;
}
@media (min-width: 768px) {
  .inv-overlay {
    padding-top: calc(env(safe-area-inset-top, 0px) + 96px);
  }
  .inv-modal {
    max-height: 82vh;
    margin-top: 24px;
  }
  .inv-modal-scroll {
    max-height: calc(82vh - 170px);
  }
  .inv-modal-img {
    max-height: 20rem;
  }
}

/* CTA & social hover animations */
.cta-float {
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}
.cta-float:hover,
.cta-float:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.3);
  filter: brightness(1.02);
}
.cta-float:active {
  transform: translateY(0) scale(0.99);
}
.social-anim {
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 8px 16px rgba(128, 90, 213, 0.25);
}
.social-anim:hover,
.social-anim:focus-visible {
  transform: translateY(-2px) rotate(-3deg) scale(1.05);
  box-shadow: 0 12px 24px rgba(128, 90, 213, 0.35);
}
.social-anim:active {
  transform: translateY(0) rotate(0deg) scale(0.97);
}

/* Info modal appearance */
.info-overlay {
  padding: 24px;
}
.modal-overlay {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 5;
}
.modal-panel {
  position: relative;
  z-index: 10;
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 243, 255, 0.96));
  border: 1px solid rgba(124, 58, 237, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.modal-panel.dark {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(24, 33, 52, 0.96));
  border-color: rgba(124, 58, 237, 0.24);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
#checkoutModal:not(.hidden) .modal-panel,
#quickQuoteModal:not(.hidden) .modal-panel,
#infoModal:not(.hidden) .modal-panel,
#detailedQuoteModal:not(.hidden) .modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}
body.info-open .hero-figure {
  z-index: 0 !important;
}
body.info-open .info-figure {
  z-index: 0 !important;
}

/* Prevent horizontal scroll/zoom shimmy on mobile */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Mobile modal padding to keep buttons visible */
@media (max-width: 640px) {
  #quickQuoteModal,
  #detailedQuoteModal,
  #infoModal {
    align-items: flex-start;
    padding: 24px 12px 12px;
  }
  #quickQuoteModal .modal-panel,
  #detailedQuoteModal .modal-panel,
  #infoModal .modal-panel {
    max-height: 78vh;
    width: 90%;
    margin-top: 42px;
    overflow: hidden;
    overscroll-behavior: contain;
  }
  #quickQuoteModal .modal-panel,
  #detailedQuoteModal .modal-panel {
    overflow-y: auto;
    padding-bottom: 18px;
  }
  #quickQuoteModal .modal-panel form,
  #detailedQuoteModal .modal-panel form {
    padding-bottom: 120px;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #infoModal .modal-panel {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* Smaller lang toggle + header CTA on mobile */
  [data-lang-toggle] {
    height: auto;
    min-width: auto;
    padding: 0.5rem 0.9rem; /* align with mobile quick-quote spacing */
    font-size: 0.8rem;
    line-height: 1.1;
    background: rgb(147, 51, 234); /* match mobile quick-quote button */
    color: #fff;
    border: none;
    box-shadow: 0 10px 22px rgba(147, 51, 234, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border-radius: 0.375rem;
  }
  .header-bar .quick-quote-trigger {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  /* Override dropdown colors on mobile to match mobile CTA */
  button[data-lang-toggle] {
    background: rgb(147, 51, 234);
    color: #fff;
  }
  [data-lang-menu] {
    box-shadow: 0 12px 30px rgba(147, 51, 234, 0.32);
  }
}

.modal-open .hero-figure {
  z-index: 0 !important;
}

/* Lang dropdown base styling (desktop colors) */
button[data-lang-toggle],
[data-lang-menu] button,
[data-lang-menu] a {
  background: #fff;
  color: #4b2c8c;
}
[data-lang-menu] a {
  display: block;
}
[data-lang-menu] {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
[data-lang-menu].show {
  opacity: 1;
  transform: translateY(0);
}
[data-lang-toggle] {
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.18);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
[data-lang-toggle]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.22);
}

/* Consistent green CTA (same behavior as purple CTA, just green) */
.btn-green {
  background: #22c55e;
  border: 1px solid #22c55e;
  color: #fff;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn-green:hover,
.btn-green:focus-visible {
  background: transparent;
  color: #22c55e;
  border-color: #22c55e;
}

/* Scrollbar styling for detailed modal */
#detailedQuoteModal form::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
#detailedQuoteModal form::-webkit-scrollbar-track {
  background: transparent;
  margin: 0 4px;
}
#detailedQuoteModal form::-webkit-scrollbar-thumb {
  background: rgba(34, 197, 94, 0.35);
  border-radius: 8px;
  border: 2px solid transparent;
}
#detailedQuoteModal form {
  scrollbar-gutter: stable both-edges;
  margin-right: -14px;
  padding-right: 14px;
  max-height: calc(80vh - 120px);
  overflow-y: auto;
}

/* Ensure full text visible in pillars/feature cards */
.inv-preview {
  display: block !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  max-height: none !important;
}

/* Investment cards layout */
.inv-card {
  position: relative;
  padding: 1.5rem !important;
}
@media (min-width: 1024px) {
  .inv-card {
    padding: 2rem !important;
  }
}
.inv-num {
  position: absolute;
  top: 0.05rem;
  left: 1.1rem;
  font-size: 2.4rem;
  font-weight: 800;
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
}
@media (min-width: 1024px) {
  .inv-num {
    top: 0.35rem;
    left: 1.2rem;
    font-size: 2.8rem;
  }
}
.inv-card img {
  margin-top: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .modal-panel {
    transform: none !important;
    transition: none !important;
  }
}
