/* ========================================
   Yrityssähkö.com - Custom Styles
   Vihreä värimaailma
   
   Värit:
   - #a0d63a (lime - pääaksentti)
   - #005924 (tumma metsänvihreä)
   - #8bba3b (oliivinvihreä)
   - #53914d (keskivihreä)
   - #25764f (tumma vihreä)
   ======================================== */

:root {
  --ys-lime: #a0d63a;
  --ys-lime-light: #b8e35c;
  --ys-lime-dark: #8bba3b;
  --ys-forest: #005924;
  --ys-forest-light: #25764f;
  --ys-green: #53914d;
  --ys-dark: #0a1f12;
  --ys-dark-2: #112318;
}

/* -------- Hero Section -------- */
.heroStack {
  background: linear-gradient(145deg, var(--ys-dark) 0%, var(--ys-forest) 40%, var(--ys-forest-light) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern */
.heroStack::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 2px 2px, rgba(160, 214, 58, 0.05) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Glow effects */
.heroStack::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(160, 214, 58, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.tj-hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 100px;
  position: relative;
  z-index: 2;
}

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content .hero-title {
  color: #fff;
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-content .hero-title .active-color {
  background: linear-gradient(135deg, var(--ys-lime) 0%, var(--ys-lime-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content .desc p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.hero-images-box {
  flex: 0 0 auto;
  position: relative;
}

/* -------- Price Badge -------- */
.price-highlight {
  background: rgba(160, 214, 58, 0.15);
  border: 1px solid rgba(160, 214, 58, 0.35);
  color: var(--ys-lime);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.price-highlight i {
  color: var(--ys-lime-light);
}

/* -------- Hero Feature Badges -------- */
.hero-features .badge {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hero-features .badge:hover {
  background: rgba(160, 214, 58, 0.15) !important;
  border-color: rgba(160, 214, 58, 0.4);
}

.hero-features .badge i {
  color: var(--ys-lime) !important;
}

/* ======== HERO LEAD FORM ======== */
.hero-lead-form {
  background: #fff;
  border-radius: 20px;
  padding: 2.25rem 2rem;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
}

/* Glow-efekti lomakkeen taakse */
.hero-lead-form::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(160, 214, 58, 0.25), transparent 50%);
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-lead-form:hover::before {
  opacity: 1;
}

.hero-lead-form h3 {
  color: var(--ys-forest);
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-lead-form .form-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Underline-inputit */
.hero-lead-form .form-control {
  border: none;
  border-bottom: 1.5px solid #e5e7eb;
  border-radius: 0;
  padding: 0.85rem 0;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  background: transparent;
  color: #1a1a2e;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-lead-form .form-control:hover {
  border-color: var(--ys-lime-dark);
}

.hero-lead-form .form-control:focus {
  border-color: var(--ys-lime);
  box-shadow: none;
  outline: none;
  background: linear-gradient(to bottom, transparent 95%, rgba(160, 214, 58, 0.08) 100%);
}

.hero-lead-form .form-control::placeholder {
  color: #9ca3af;
  font-weight: 400;
  transition: all 0.3s ease;
}

.hero-lead-form .form-control:focus::placeholder {
  color: var(--ys-lime-dark);
}



/* -------- Responsive Hero -------- */
@media (max-width: 1199px) {
  .hero-wrapper {
    gap: 3rem;
  }
  
  .hero-content .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 991px) {
  .hero-wrapper {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-content .hero-title {
    font-size: 2.4rem;
  }
  
  .hero-lead-form {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
  
  .hero-features .d-flex {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-content .hero-title {
    font-size: 2rem;
  }
  
  .hero-lead-form {
    padding: 1.75rem 1.5rem;
  }
}

/* -------- Pricing Cards -------- */
.pricing-item {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f0f0f0;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 89, 36, 0.12);
  border-color: #e0e0e0;
}

.pricing-item.featured {
  border: 2px solid var(--ys-lime);
  transform: scale(1.03);
  box-shadow: 0 10px 40px rgba(160, 214, 58, 0.2);
}

.pricing-item.featured:hover {
  transform: scale(1.03) translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--ys-lime) 0%, var(--ys-lime-dark) 100%);
  color: var(--ys-forest);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(160, 214, 58, 0.35);
}

.pricing-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.pricing-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ys-forest);
  margin-bottom: 1rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.pricing-price .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--ys-lime-dark);
  line-height: 1;
}

.pricing-price .period {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.pricing-features li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #f9fafb;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #4b5563;
  font-size: 0.95rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li i {
  color: var(--ys-lime-dark);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.pricing-item .tj-primary-btn {
  margin-top: auto;
}

/* -------- General Primary Button -------- */
.tj-primary-btn {
  background: linear-gradient(135deg, var(--ys-forest) 0%, var(--ys-forest-light) 100%);
  border: none;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.tj-primary-btn:hover {
  background: linear-gradient(135deg, var(--ys-forest-light) 0%, var(--ys-green) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 89, 36, 0.3);
}

/* -------- Feature Items / Sopimuskortit -------- */
.feature-item.style-4 {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 2px 20px rgba(0, 89, 36, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e8f0e8;
}

.feature-item.style-4:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 89, 36, 0.12);
  border-color: var(--ys-lime);
}

.feature-item.style-4 .feature-icon {
  margin-bottom: 1.25rem;
}

.feature-item.style-4 .feature-icon i {
  color: var(--ys-lime-dark) !important;
  font-size: 2.5rem !important;
}

.feature-item.style-4 .title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ys-forest);
  margin-bottom: 0.75rem;
}

.feature-item.style-4 .desc p {
  color: #5a6a5a;
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}

/* -------- Section Headings -------- */
.sec-heading .sub-title {
  color: var(--ys-lime-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}

.sec-heading .sec-title {
  color: var(--ys-forest);
}

/* -------- FAQ Accordion -------- */
.tj-faq-accordion .accordion-item {
  border: none;
  margin-bottom: 0.75rem;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid #f3f4f6;
}

.tj-faq-accordion .accordion-button {
  background: #fff;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ys-forest);
  padding: 1.25rem 1.5rem;
  border-radius: 16px !important;
}

.tj-faq-accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--ys-forest) 0%, var(--ys-forest-light) 100%);
  color: #fff;
  box-shadow: none;
}

.tj-faq-accordion .accordion-button:focus {
  box-shadow: none;
}

.tj-faq-accordion .accordion-button::after {
  background-size: 1rem;
}

.tj-faq-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.tj-faq-accordion .accordion-body {
  padding: 1.5rem;
  background: #fff;
}

.tj-faq-accordion .accordion-body p {
  color: #6b7280;
  line-height: 1.75;
  margin: 0;
}

/* -------- CTA Section -------- */
.tj-cta-section.bg-dark {
  background: linear-gradient(145deg, var(--ys-dark) 0%, var(--ys-forest) 50%, var(--ys-forest-light) 100%);
  position: relative;
  overflow: hidden;
}

.tj-cta-section.bg-dark::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(160, 214, 58, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.tj-cta-section .rounded-4 {
  border-radius: 24px !important;
}

.tj-cta-section h2.text-white {
  color: #fff !important;
}

.tj-cta-section .form-control {
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
  border: 1.5px solid #e5e7eb;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.tj-cta-section .form-control:hover {
  border-color: var(--ys-lime-dark);
}

.tj-cta-section .form-control:focus {
  border-color: var(--ys-lime);
  box-shadow: 0 0 0 4px rgba(160, 214, 58, 0.15);
}

/* -------- About/Miksi Section -------- */
.tj-about-section h6 {
  color: var(--ys-forest);
}

.tj-about-section .tji-check-circle {
  color: var(--ys-lime-dark) !important;
}

/* Why Item - Miksi valita meidät listaus */
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8f0e8;
  transition: all 0.3s ease;
  height: 100%;
}

.why-item:hover {
  border-color: var(--ys-lime);
  box-shadow: 0 5px 20px rgba(0, 89, 36, 0.08);
}

.why-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--ys-lime) 0%, var(--ys-lime-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon i {
  color: var(--ys-forest);
  font-size: 0.85rem;
  font-weight: 700;
}

.why-content h6 {
  color: var(--ys-forest);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.why-content p {
  color: #5a6a5a;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.text-success {
  color: var(--ys-lime-dark) !important;
}

/* -------- Section Spacing -------- */
.section-space {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-space {
    padding: 70px 0;
  }
}

/* -------- Honeypot Hide -------- */
.hp-wrap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* -------- Reference Logo Grid -------- */
.ref-logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.ref-logo-grid img {
  max-height: 50px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.4s ease;
}

.ref-logo-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Stats Grid - Asiakkaamme tilastot */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 991px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8f0e8;
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: var(--ys-lime);
  box-shadow: 0 10px 30px rgba(0, 89, 36, 0.1);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--ys-lime-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #5a6a5a;
  font-weight: 500;
}

/* Customer Types Tags */
.customer-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.customer-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: #fff;
  border: 1px solid #e0e8e0;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--ys-forest);
  font-weight: 500;
  transition: all 0.3s ease;
}

.customer-tag:hover {
  background: var(--ys-lime);
  border-color: var(--ys-lime);
  color: var(--ys-forest);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(160, 214, 58, 0.3);
}

.customer-tag i {
  color: var(--ys-lime-dark);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.customer-tag:hover i {
  color: var(--ys-forest);
}

/* -------- Footer -------- */
.tj-footer-area.footer-1 {
  background: var(--ys-dark);
}

.footer-top-area {
  padding: 3.5rem 0;
}

.footer-top-area .title {
  color: #fff;
}

.footer-top-area a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-top-area a:hover {
  color: var(--ys-lime);
}

.footer-copyright-area {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
}

.copyright-content-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.copyright-text p {
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  font-size: 0.875rem;
}

.copyright-socails ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.copyright-socails ul li a {
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.copyright-socails ul li a:hover {
  color: var(--ys-lime);
}

.copyright-menu ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.copyright-menu ul li a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.copyright-menu ul li a:hover {
  color: #fff;
}

/* -------- Header Overrides -------- */
/* Header button - lime tausta, tumma pallero */
.tj-header-area .tj-primary-btn.header_btn {
  background: linear-gradient(135deg, var(--ys-lime) 0%, var(--ys-lime-dark) 100%);
}

.tj-header-area .tj-primary-btn.header_btn .btn_inner::before {
  background-color: var(--ys-forest);
}

.tj-header-area .tj-primary-btn.header_btn .btn_inner .btn_icon {
  color: var(--ys-lime);
}

.tj-header-area .tj-primary-btn.header_btn .btn_inner .btn_text {
  color: var(--ys-forest);
}

.tj-header-area .tj-primary-btn.header_btn:hover .btn_inner .btn_text {
  color: #fff;
}

.tj-header-area .tj-primary-btn.header_btn:hover {
  box-shadow: 0 8px 25px rgba(160, 214, 58, 0.4);
}

/* Header topbar */
.header-topbar {
  background: var(--ys-dark);
}

.header-topbar .topbar_note {
  color: rgba(255, 255, 255, 0.8);
}

.header-topbar .topbar_note i {
  color: var(--ys-lime);
}

.header-topbar .topbar_note a {
  color: var(--ys-lime);
}

.header-topbar .topbar_note a:hover {
  color: var(--ys-lime-light);
}

/* -------- About Section bg-light -------- */
.bg-light {
  background-color: #f8faf5 !important;
}

/* -------- Utility -------- */
.rounded-4 {
  border-radius: 1.25rem !important;
}

/* -------- Animation -------- */
.wow {
  visibility: hidden;
}

.animated {
  visibility: visible;
}

/* ========================================
   OLD SAFARI / iOS FALLBACKS
   iPhone 6 Safari 12 ei tue inset-inline-end
   ======================================== */

/* Hamburger menu - fallback vanhoille selaimille */
.hamburger-area {
  right: -490px; /* Fallback ennen inset-inline-end */
}
.hamburger-area.opened {
  right: 0; /* Fallback ennen inset-inline-end */
}
@media (max-width: 575px) {
  .hamburger-area {
    right: -320px;
  }
}

/* Body overlay - varmista piilotus */
.body-overlay {
  opacity: 0;
  visibility: hidden;
}
.body-overlay.opened {
  opacity: 1;
  visibility: visible;
}
