/* HeadHunt Group Oy - Yhteiset tyylit */

/* Multi-step wizard */
.form-step { display: none; animation: stepFadeIn 0.25s ease; }
.form-step.active { display: block; }
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 14px;
  gap: 4px;
}
.step-indicator div {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  border-bottom: 3px solid #dee2e6;
  color: #6c757d;
  transition: all 0.2s ease;
}
.step-indicator .active {
  border-color: #0d6efd;
  color: #0d6efd;
  font-weight: 600;
}
.step-indicator .completed {
  border-color: #198754;
  color: #198754;
}
@media (max-width: 576px) {
  .step-indicator div { font-size: 11px; padding: 8px 2px; }
}
.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}
.wizard-nav .wizard-btn-prev { visibility: hidden; }
@media (max-width: 576px) {
  .wizard-nav .btn { min-width: 44%; }
}

body {
  font-family: 'Nunito', sans-serif;
}

a {
  color: black;
}
a:hover {
  text-decoration: none;
}

.bg-primary {
  background-color: #8bc34a !important;
}

/* Navbar */
.navbar {
  background-color: #051c2c !important;
}
.nav-link {
  color: white !important;
}
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}
.navbar .dropdown-menu {
  border: none;
  border-radius: 3px;
  padding: 0.5rem 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  background-color: #fff;
}
.navbar .dropdown-item {
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  color: #333;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.navbar .dropdown-item:hover {
  background-color: #f5f5f5;
  color: #0078d7;
}
.navbar .dropdown-divider {
  margin: 0.5rem 0;
  border-top: 1px solid #eee;
}
a[href^="tel"] {
  color: #fff !important;
}

/* Offcanvas mobile menu */
.offcanvas {
  background-color: #051c2c !important;
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}
@supports (-webkit-touch-callout: none) {
  body.offcanvas-open {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none;
    background-color: #051c2c;
  }
  .offcanvas-backdrop.show {
    background-color: #051c2c !important;
    opacity: 1 !important;
  }
  #mobileMenu.offcanvas-top {
    height: 100vh;
    top: 0;
    background-color: #051c2c;
  }
}

/* Lazy image fade-in */
img {
  opacity: 0;
  transition: opacity .4s ease;
}
img.loaded {
  opacity: 1;
}

/* Buttons */
.btn-primary {
  padding-left: 40px;
  border-radius: 5px;
  padding-right: 40px;
  background-color: #3B82F6;
  border-color: #3B82F6;
  color: #FFFFFF;
  font-weight: 700;
}
.btn-primary:hover {
  background-color: #60A5FA;
  border-color: #60A5FA;
}
.btn-outline-secondary {
  border-color: #60A5FA;
  color: #60A5FA;
  font-weight: 700;
}
.btn-outline-secondary:hover {
  background-color: #60A5FA;
  border-color: #60A5FA;
  color: #FFFFFF;
  font-weight: 700;
}

/* Section titles */
.section-title h2 {
  font-size: 20px;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 8px 20px;
  margin: 0;
  background: color-mix(in srgb, var(--accent-color), transparent 82%);
  color: #030263 !important;
  display: inline-block;
  text-transform: uppercase;
  border-radius: 50px;
}
.section-title {
  text-align: center;
  position: relative;
}

/* Row fix */
.row {
  margin-right: 0;
}

/* Post cards (blog) */
.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-image2 img {
  width: 100%;
  height: 250px !important;
  object-fit: cover;
}
.post-content {
  padding: 1.2rem;
}
.post-content h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.post-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}
.read-more {
  font-weight: 500;
  color: #004c89;
  text-decoration: none;
  transition: color 0.2s ease;
}
.read-more:hover {
  color: #004c89;
}

/* Footer */
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px 0;
}
.footer-col { flex: 1; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--brand); }
.social a {
  display: inline-block;
  margin-right: 16px;
  font-size: 28px;
  color: #ffffff;
  transition: color 0.2s ease, transform 0.2s ease;
}
.social a:hover {
  color: var(--brand);
  transform: scale(1.15);
}
.social img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease;
}
.social a:hover img {
  transform: scale(1.1);
}
.channel-card {
  margin-bottom: 10px;
}

/* Sticky mobile footer */
.footer-btn.phone {
  background-color: #007bff;
}
@media (max-width: 768px) {
  .footer-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #25D366;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
  }
  .sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: #051c2c;
    border-top: 1px solid #ddd;
    padding: 10px 20px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    z-index: 999;
  }
}
@media (min-width: 770px) {
  .desk-none {
    display: none;
  }
}
#stiky {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
#stiky.visible {
  opacity: 1;
  transform: translateY(0);
}
.op {
  position: absolute;
  left: -9999px;
}

/* Article width */
@media (min-width: 800px) {
  .artik {
    width: 800px;
  }
}

/* Responsive lead text */
@media (max-width: 991px) {
  .lead {
    font-size: 18px;
  }
}
