/* ============================================
   Hopscons OU — Custom Styles (Nordic Theme)
   ============================================ */

html {
  scroll-behavior: smooth;
}

/* ---- Header ---- */
#header {
  background: transparent;
  transition: all 0.3s ease;
}

#header.scrolled {
  background: rgba(11, 30, 51, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ---- Nav Links ---- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4ade80;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ---- Language Switcher Button ---- */
.lang-switch-btn {
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.lang-switch-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---- Mobile Menu ---- */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Hero Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

#hero h1 {
  animation: fadeInUp 0.8s ease forwards;
}

#hero p {
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

#hero .btn-primary,
#hero .btn-secondary {
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

#hero .flex-wrap {
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* ---- Service Cards ---- */
.service-card:hover {
  transform: translateY(-4px);
}

/* ---- Pricing Cards ---- */
.pricing-card {
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
}

/* ---- FAQ Accordion ---- */
.faq-toggle i {
  transition: transform 0.3s ease;
}

.faq-toggle.active i {
  transform: rotate(45deg);
}

.faq-answer {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Cookie Banner ---- */
#cookie-banner.show {
  transform: translateY(0);
}

/* ---- Contact Form Focus ---- */
#contact-form input:focus,
#contact-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
}

/* ---- Legal Pages ---- */
.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.legal-content ol {
  list-style: decimal;
  padding-left: 1.5rem;
}

.legal-content a {
  color: #4c6a97;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #3b5998;
}

.legal-content table {
  border-collapse: collapse;
}

/* ---- Language Toggle on Legal Pages ---- */
.lang-toggle-legal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4c6a97;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 14px;
  border: 1px solid #bcccdc;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: #f0f4f8;
}

.lang-toggle-legal:hover {
  background: #d9e2ec;
  border-color: #829ab1;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .pricing-card:hover {
    transform: none;
  }

  .service-card:hover {
    transform: none;
  }
}

/* ---- Print ---- */
@media print {
  #header,
  #mobile-menu,
  #cookie-banner,
  footer {
    display: none;
  }
}
