/* ==========================================================================
   EASY GRID – Custom Styles v1.1
   Korjattu: header, ilmavuus, painikkeet, FAQ, responsiivisuus
   ========================================================================== */

/* --- NAVIGATION --- */
.eg-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #222222;
}

.eg-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  max-width: 1300px;
  margin: 0 auto;
  height: 90px;
  gap: 20px;
}

.eg-nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.eg-logo-img {
  height: 55px;
  width: auto;
}

.eg-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

.eg-nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
  align-items: center;
}

.eg-nav-links li a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.eg-nav-links li a:hover,
.eg-nav-links li.current-menu-item a {
  color: #39ff14;
}

.eg-nav-cta {
  padding: 12px 28px !important;
  font-size: 0.85rem !important;
  border-radius: 30px !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.eg-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.eg-nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

/* --- RESET & BASE --- */
.eg-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #ffffff;
  background: #000000;
  line-height: 1.6;
  overflow-x: hidden;
}

.eg-page *,
.eg-page *::before,
.eg-page *::after {
  box-sizing: border-box;
}

/* --- HERO --- */
.eg-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.eg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
}

.eg-hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 160px 8% 100px;
}

.eg-hero-tagline {
  font-size: 1.15rem;
  font-weight: 600;
  color: #39ff14;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.eg-hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 35px 0;
  color: #ffffff;
}

.eg-hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 50px 0;
}

.eg-hero-bullets li {
  font-size: 1.15rem;
  color: #cccccc;
  margin-bottom: 14px;
  padding-left: 22px;
  position: relative;
}

.eg-hero-bullets li::before {
  content: "\2022";
  color: #39ff14;
  position: absolute;
  left: 0;
  font-size: 1.3rem;
}

/* --- BUTTONS (yhtenaiset) --- */
.eg-btn {
  display: inline-block;
  padding: 16px 38px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  max-width: 280px;
  text-align: center;
}

.eg-btn-primary {
  background-color: #39ff14;
  color: #000000;
  border: 2px solid #39ff14;
}

.eg-btn-primary:hover {
  background-color: transparent;
  color: #39ff14;
}

.eg-btn-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.eg-btn-outline:hover {
  background-color: #ffffff;
  color: #000000;
}

/* Visio-osion nappi (musta outline mustalla pohjalla) */
.eg-btn-dark {
  background-color: transparent;
  color: #000000;
  border: 2px solid #000000;
}

.eg-btn-dark:hover {
  background-color: #000000;
  color: #39ff14;
}

/* --- SECTION SHARED --- */
.eg-section {
  padding: 120px 8%;
}

.eg-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  border-bottom: 3px solid #39ff14;
  padding-bottom: 12px;
  display: inline-block;
}

/* --- VISIO / STATS GRID --- */
.eg-visio-section {
  padding: 0 8%;
  margin-top: 0;
}

.eg-visio-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
}

.eg-visio-box {
  padding: 55px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
}

.eg-visio-highlight {
  grid-row: 1 / 3;
  background-color: #39ff14;
  color: #000000;
}

.eg-visio-highlight h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 0 20px 0;
  color: #000000;
}

.eg-visio-highlight h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 25px 0;
  color: #000000;
}

.eg-visio-highlight p {
  font-size: 1rem;
  line-height: 1.7;
  color: #111111;
  margin: 0 0 25px 0;
}

.eg-stat-box {
  background-color: #111111;
  border: 1px solid #222222;
}

.eg-stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.eg-stat-label {
  font-size: 0.95rem;
  color: #cccccc;
  margin: 0;
  line-height: 1.5;
}

/* --- PALVELUT (Services) --- */
.eg-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.eg-service-card {
  background-color: #111111;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #222222;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eg-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(57, 255, 20, 0.15);
}

.eg-service-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.eg-service-body {
  padding: 40px;
}

.eg-service-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 18px 0;
  color: #ffffff;
}

.eg-service-body p {
  font-size: 1.05rem;
  color: #cccccc;
  margin: 0 0 30px 0;
  line-height: 1.7;
}

/* --- TOIMINTAMALLI (Process) --- */
.eg-process-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  margin-top: 40px;
}

.eg-process-left {
  background-color: #111111;
  padding: 100px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eg-process-left h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 30px 0;
  color: #ffffff;
}

.eg-process-left p {
  font-size: 1.05rem;
  color: #cccccc;
  line-height: 1.8;
  margin: 0 0 45px 0;
}

.eg-process-right {
  background-color: #39ff14;
  color: #000000;
  padding: 100px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eg-process-right h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #000000;
}

.eg-process-right p {
  font-size: 1rem;
  color: #111111;
  margin: 0 0 35px 0;
  line-height: 1.7;
}

.eg-process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eg-process-steps li {
  font-size: 1.2rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 24px;
  padding-left: 40px;
  position: relative;
}

.eg-process-steps li .eg-step-icon {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
}

/* --- ARVOT (Values) --- */
.eg-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.eg-value-card {
  background-color: #111111;
  border: 1px solid #222222;
  border-radius: 10px;
  padding: 50px 40px;
  min-height: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eg-value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(57, 255, 20, 0.15);
}

.eg-value-icon {
  font-size: 3rem;
  margin-bottom: 28px;
  display: block;
  color: #39ff14;
}

.eg-value-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 18px 0;
  color: #ffffff;
}

.eg-value-card p {
  font-size: 1rem;
  color: #cccccc;
  margin: 0;
  line-height: 1.8;
}

/* --- FAQ --- */
.eg-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 50px;
  align-items: start; /* estää naapurikorttia venymästä auki-olevan viereen */
}

.eg-faq-item {
  background-color: #111111;
  border: 1px solid #222222;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease;
  align-self: start; /* estää rivin venymisen auki-olevan naapurin korkeuden mukaan */
  height: fit-content;
}

.eg-faq-item:hover {
  border-color: #333333;
}

.eg-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.eg-faq-question:hover {
  color: #ffffff;
}

.eg-faq-question .eg-faq-icon {
  font-size: 1.5rem;
  color: #39ff14;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

.eg-faq-item.active .eg-faq-icon {
  transform: rotate(45deg);
}

.eg-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.eg-faq-item.active .eg-faq-answer {
  max-height: 300px;
}

.eg-faq-answer p {
  font-size: 0.95rem;
  color: #cccccc;
  line-height: 1.7;
  margin: 0;
  padding: 16px 30px 24px; /* 16px ylhäältä → teksti ei ole kiinni "katossa" */
}

/* --- FOOTER --- */
.eg-footer {
  border-top: 1px solid #222222;
  padding: 80px 8%;
  margin-top: 40px;
}

.eg-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
}

.eg-logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 40px 8%;
  background: #111111;
  border-top: 1px solid #222222;
  flex-wrap: wrap;
}

.eg-logo-bar img {
  height: 90px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.eg-logo-bar .eg-logo-invert {
  filter: brightness(0) invert(1);
}

.eg-footer h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 25px 0;
  color: #ffffff;
}

.eg-footer p {
  font-size: 0.95rem;
  color: #cccccc;
  line-height: 1.7;
  margin: 0 0 10px 0;
}

.eg-footer a {
  color: #39ff14;
  text-decoration: none;
  transition: color 0.3s ease;
}

.eg-footer a:hover {
  color: #ffffff;
}

.eg-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eg-footer-links li {
  margin-bottom: 12px;
}

.eg-footer-contact strong {
  color: #ffffff;
  display: block;
  margin-bottom: 8px;
}

.eg-footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #222222;
  font-size: 0.85rem;
  color: #666666;
}

/* ==========================================================================
   ALASIVUT (Subpages)
   ========================================================================== */

/* --- SUB HERO --- */
.eg-subhero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.eg-subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.eg-subhero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 160px 8% 80px;
}

.eg-subhero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 20px 0;
  line-height: 1.15;
}

.eg-subhero-desc {
  font-size: 1.15rem;
  color: #cccccc;
  line-height: 1.7;
  margin: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- CENTERED SECTION TITLES --- */
.eg-section-center {
  text-align: center;
}

.eg-section-title-center {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px 0;
  text-align: center;
}

.eg-section-title-center::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #39ff14;
  margin: 15px auto 0;
}

.eg-section-subtitle {
  font-size: 1.05rem;
  color: #cccccc;
  line-height: 1.7;
  max-width: 750px;
  margin: 20px auto 50px;
}

/* --- TABS LAYOUT --- */
.eg-tabs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  text-align: left;
  margin-top: 50px;
}

.eg-tabs-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.eg-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: transparent;
  border: 1px solid #333;
  border-radius: 8px;
  color: #ffffff !important; /* pakota valkoinen teksti aina */
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  /* Transitoi vain border ja background, EI coloria → teksti ei häviä */
  transition: border-color 0.3s ease, background-color 0.3s ease;
  text-align: left;
}

.eg-tab-btn svg {
  flex-shrink: 0;
  color: #39ff14 !important;
}

.eg-tab-btn:hover {
  border-color: #39ff14;
}

.eg-tab-btn.active {
  border-color: #39ff14;
  background-color: rgba(57, 255, 20, 0.08);
  color: #ffffff !important;
}

.eg-tabs-content {
  position: relative;
}

.eg-tab-panel {
  display: none;
  background-color: #111111;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 50px;
}

.eg-tab-panel.active {
  display: block;
  animation: egFadeIn 0.3s ease;
}

@keyframes egFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.eg-tab-number {
  font-size: 0.85rem;
  color: #39ff14;
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.eg-tab-panel h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 15px 0;
}

.eg-tab-panel > p {
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.7;
  margin: 0 0 30px 0;
}

/* Värillinen alaotsikko välilehtipaneelissa (käytönjohtaja-sivu) */
.eg-tab-subtitle {
  font-size: 0.95rem;
  color: #39ff14 !important;
  line-height: 1.6;
  margin: 0 0 25px 0 !important;
  font-style: italic;
}

.eg-tab-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eg-tab-list li {
  font-size: 0.95rem;
  color: #ffffff;
  padding: 10px 0 10px 30px;
  position: relative;
  line-height: 1.5;
}

.eg-tab-list li::before {
  content: "\2192";
  color: #39ff14;
  position: absolute;
  left: 0;
  font-size: 1rem;
}

/* --- TOIMINTAPERIAATTEET (Principles) --- */
.eg-principles {
  max-width: 900px;
  margin: 50px auto 0;
}

.eg-principle-row {
  display: grid;
  grid-template-columns: 80px 200px 1fr;
  gap: 30px;
  align-items: center;
  padding: 35px 0;
  border-bottom: 1px solid #222;
}

.eg-principle-row:last-child {
  border-bottom: 1px solid #222;
}

.eg-principle-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
}

.eg-principle-row h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.eg-principle-row p {
  font-size: 0.95rem;
  color: #cccccc;
  margin: 0;
  line-height: 1.6;
}

/* --- VASTUUT & DOKUMENTOINTI --- */
.eg-responsibility-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 60px;
}

.eg-responsibility-card {
  padding: 10px 0;
}

.eg-responsibility-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: #39ff14;
  border-radius: 8px;
  margin-bottom: 18px;
}

.eg-responsibility-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 15px 0;
}

.eg-responsibility-card p {
  font-size: 0.95rem;
  color: #cccccc;
  line-height: 1.7;
  margin: 0;
}

.eg-responsibility-img img {
  width: 100%;
  border-radius: 10px;
  border: 2px solid #39ff14;
  object-fit: cover;
  max-height: 350px;
}

/* ==========================================================================
   ALASIVUT RESPONSIVE
   ========================================================================== */

@media (max-width: 992px) {
  .eg-tabs-layout {
    grid-template-columns: 1fr;
  }

  .eg-tabs-nav {
    flex-direction: column;
    gap: 10px;
  }

  .eg-tab-btn {
    flex: 1 1 100%;
    font-size: 0.75rem;
    padding: 14px 16px;
    white-space: normal;
  }

  .eg-tab-panel {
    padding: 35px;
  }

  .eg-principle-row {
    grid-template-columns: 60px 1fr;
    gap: 15px;
  }

  .eg-principle-row p {
    grid-column: 1 / -1;
  }

  .eg-responsibility-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .eg-responsibility-img {
    order: -1;
  }
}

@media (max-width: 768px) {
  .eg-subhero {
    min-height: 50vh;
  }

  .eg-subhero-content {
    padding: 130px 6% 60px;
  }

  .eg-subhero-title {
    font-size: 2rem;
  }

  .eg-subhero-desc {
    font-size: 1rem;
  }

  .eg-tabs-nav {
    flex-direction: column;
  }

  .eg-tab-btn {
    flex: 1 1 100%;
  }

  .eg-tab-panel {
    padding: 25px;
  }

  .eg-principle-row {
    grid-template-columns: 50px 1fr;
    padding: 25px 0;
  }

  .eg-principle-num {
    font-size: 1.4rem;
  }

  .eg-section-title-center {
    font-size: 1.7rem;
  }
}

/* ==========================================================================
   REFERENSSIT-SIVU
   ========================================================================== */

/* Sivun hero-otsikko */
.eg-ref-hero {
  padding: 140px 8% 70px;
  background-color: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
}

.eg-ref-hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.1;
}

.eg-ref-hero-sub {
  font-size: 1rem;
  color: #888888;
  margin: 0;
}

/* Sisältöosiot */
.eg-ref-section {
  padding: 70px 8%;
  background-color: #0a0a0a;
}

.eg-ref-section + .eg-ref-section {
  padding-top: 0;
}

.eg-ref-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px 0;
  position: relative;
  padding-bottom: 16px;
}

.eg-ref-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #39ff14;
  border-radius: 2px;
}

/* Korttiruudukko – merkittävät (3-sarake) */
.eg-ref-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* Korttiruudukko – käynnissä (2-sarake) */
.eg-ref-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* Projektikortti */
.eg-ref-card {
  background-color: #111111;
  border: 1px solid #222222;
  border-top: 3px solid #39ff14;
  border-radius: 10px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.eg-ref-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(57, 255, 20, 0.12);
  border-color: #39ff14;
}

.eg-ref-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

.eg-ref-card-desc {
  font-size: 0.9rem;
  color: #aaaaaa;
  line-height: 1.7;
  margin: 0;
}

/* Meta-box: rooli + omistaja */
.eg-ref-card-meta {
  background-color: #0a0a0a;
  border-radius: 6px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eg-ref-meta-row {
  font-size: 0.85rem;
  color: #cccccc;
  margin: 0;
}

.eg-ref-meta-label {
  color: #39ff14;
  font-weight: 700;
}

/* Tehtävät */
.eg-ref-tasks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eg-ref-tasks-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.eg-ref-task-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #cccccc;
  line-height: 1.5;
}

.eg-ref-task-item::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  min-width: 7px;
  background: #39ff14;
  border-radius: 50%;
  margin-top: 6px;
}

/* Referenssit responsive */
@media (max-width: 992px) {
  .eg-ref-hero-title {
    font-size: 2.8rem;
  }

  .eg-ref-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .eg-ref-hero {
    padding: 120px 6% 50px;
  }

  .eg-ref-hero-title {
    font-size: 2.2rem;
  }

  .eg-ref-section {
    padding: 50px 6%;
  }

  .eg-ref-grid-3,
  .eg-ref-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FADE-UP ANIMAATIO (käytössä toimintaperiaatteet & yhteistyömalli-riveillä)
   ========================================================================== */

@keyframes eg-fadeup {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eg-fadein {
  opacity: 0;
  transform: translateY(28px);
}

.eg-fadein.eg-visible {
  animation: eg-fadeup 0.55s ease forwards;
}

/* ==========================================================================
   MEISTÄ-SIVU – Omat komponentit
   ========================================================================== */

/* --- Yritysesittely (intro-teksti hero:n jälkeen) --- */
.eg-yritysesittely {
  padding: 80px 5%;
  background-color: #0d0d0d;
  text-align: center;
  border-bottom: 1px solid #1e1e1e;
}

.eg-yritysesittely-inner {
  max-width: 860px;
  margin: 0 auto;
}

.eg-yritysesittely-inner::before {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #39ff14;
  margin: 0 auto 36px;
  border-radius: 2px;
}

.eg-yritysesittely-inner p {
  font-size: 1.1rem;
  color: #cccccc;
  line-height: 1.85;
  margin: 0;
}

/* --- Arvo-split: vihreä vasen + tumma oikea --- */
.eg-meista-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.eg-meista-left {
  background-color: #39ff14;
  padding: 70px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eg-meista-left h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0a0a0a;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.eg-meista-left p {
  font-size: 1rem;
  color: #1a1a1a;
  line-height: 1.7;
  margin: 0 0 14px 0;
}

.eg-meista-right {
  background-color: #111111;
  padding: 70px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eg-meista-right h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 15px 0;
}

.eg-meista-right > p {
  font-size: 0.95rem;
  color: #cccccc;
  line-height: 1.7;
  margin: 0 0 25px 0;
}

.eg-arvo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eg-arvo-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.eg-arvo-list li svg {
  flex-shrink: 0;
  background: #39ff14;
  border-radius: 50%;
  padding: 4px;
  width: 22px;
  height: 22px;
}

/* --- Tilastot 3-sarake pyöreillä ikoneilla --- */
.eg-meista-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 70px 5%;
  background-color: #0a0a0a;
  text-align: center;
}

.eg-meista-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.eg-meista-stat-icon {
  width: 60px;
  height: 60px;
  background-color: #39ff14;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.eg-meista-stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.eg-meista-stat-label {
  font-size: 0.9rem;
  color: #aaaaaa;
}

/* --- Sitaattikortti --- */
.eg-quote-section {
  padding: 60px 5%;
  background-color: #0a0a0a;
}

.eg-quote-block {
  max-width: 860px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 60px 70px;
  position: relative;
}

.eg-quote-mark {
  font-size: 5rem;
  line-height: 1;
  color: #dddddd;
  font-family: Georgia, serif;
  margin-bottom: 10px;
  display: block;
}

.eg-quote-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.7;
  margin: 0 0 20px 0;
}

.eg-quote-subtext {
  font-size: 1rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.7;
  margin: 0 0 30px 0;
}

.eg-quote-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111111;
  margin: 0 0 4px 0;
}

.eg-quote-author-title {
  font-size: 0.85rem;
  color: #666666;
  margin: 0;
}

/* --- Henkilöt-grid --- */
.eg-team-section {
  padding: 80px 5%;
  background-color: #0a0a0a;
  text-align: center;
}

.eg-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
}

.eg-team-card img,
.eg-team-card-placeholder {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
}

.eg-team-card-placeholder {
  background: #1a1a1a;
  border: 2px dashed #333;
}

.eg-team-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.eg-team-card .eg-team-role {
  font-size: 0.9rem;
  color: #aaaaaa;
  margin: 0 0 14px 0;
}

.eg-team-card p {
  font-size: 0.9rem;
  color: #cccccc;
  line-height: 1.7;
  margin: 0 0 16px 0;
}

.eg-team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #aaaaaa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.eg-team-linkedin:hover {
  color: #ffffff;
}

.eg-team-linkedin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #0a66c2;
  border-radius: 6px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.eg-team-linkedin-icon:hover {
  opacity: 0.85;
}

.eg-team-linkedin-icon svg {
  display: block;
}

/* --- Meistä responsive --- */
@media (max-width: 992px) {
  .eg-meista-split {
    grid-template-columns: 1fr;
  }

  .eg-meista-left,
  .eg-meista-right {
    padding: 50px 40px;
  }

  .eg-meista-stats {
    gap: 40px;
    flex-wrap: wrap;
  }

  .eg-quote-block {
    padding: 40px 45px;
  }
}

@media (max-width: 768px) {
  .eg-meista-left h2 {
    font-size: 1.6rem;
  }

  .eg-meista-left,
  .eg-meista-right {
    padding: 40px 24px;
  }

  .eg-meista-stats {
    flex-direction: column;
    align-items: center;
    gap: 35px;
    padding: 50px 5%;
  }

  .eg-quote-block {
    padding: 35px 28px;
  }

  .eg-quote-text {
    font-size: 1rem;
  }

  .eg-team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* --- CHAT WIDGET --- */
.eg-chat-trigger {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: #39ff14;
  border: none;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(57, 255, 20, 0.3);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  padding: 0;
}

.eg-chat-trigger:hover {
  transform: translateY(-5px) scale(1.05);
}

.eg-chat-trigger svg {
  width: 32px;
  height: 32px;
  display: block;
}

.eg-chat-modal {
  display: none;
  position: fixed;
  bottom: 110px;
  left: 30px;
  width: 360px;
  max-width: calc(100vw - 40px);
  background-color: #111111;
  border: 1px solid #333;
  border-top: 5px solid #39ff14;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  z-index: 9998;
  font-family: inherit;
}

.eg-chat-modal.nakuviin {
  display: block;
  animation: egSlideUp 0.3s ease-out forwards;
}

@keyframes egSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.eg-chat-header {
  text-align: right;
  padding: 10px 15px 0;
}

.eg-chat-close {
  color: #888;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.eg-chat-close:hover {
  color: #39ff14;
}

.eg-chat-content {
  padding: 0 25px 25px;
  text-align: left;
}

.eg-chat-content h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin: 0 0 12px 0;
  line-height: 1.4;
  font-weight: 700;
}

.eg-chat-content p {
  color: #cccccc;
  font-size: 0.95rem;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 992px) {
  .eg-nav-toggle {
    display: flex;
  }

  .eg-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    padding: 25px 8%;
    gap: 18px;
    border-bottom: 1px solid #222222;
  }

  .eg-nav-links.eg-nav-open {
    display: flex;
  }

  .eg-nav-cta {
    display: none;
  }

  .eg-nav-inner {
    min-height: 75px;
    padding: 15px 5%;
  }

  .eg-visio-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .eg-visio-highlight {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .eg-services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .eg-service-img {
    height: 300px;
  }

  .eg-process-split {
    grid-template-columns: 1fr;
  }

  .eg-process-left,
  .eg-process-right {
    padding: 70px 8%;
  }

  .eg-values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .eg-faq-grid {
    grid-template-columns: 1fr;
  }

  .eg-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .eg-section {
    padding: 90px 6%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .eg-chat-trigger {
    bottom: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
  }

  .eg-chat-trigger svg {
    width: 26px;
    height: 26px;
  }

  .eg-chat-modal {
    bottom: 90px;
    left: 20px;
    width: calc(100vw - 40px);
  }

  .eg-nav-inner {
    min-height: 70px;
    padding: 12px 5%;
  }

  .eg-logo-img {
    height: 42px;
  }

  .eg-hero {
    min-height: 90vh;
  }

  .eg-hero-content {
    padding: 130px 6% 70px;
  }

  .eg-hero-title {
    font-size: 2rem;
    margin-bottom: 25px;
  }

  .eg-hero-tagline {
    font-size: 0.95rem;
  }

  .eg-hero-bullets li {
    font-size: 1rem;
  }

  .eg-section {
    padding: 70px 5%;
  }

  .eg-section-title {
    font-size: 1.7rem;
  }

  .eg-visio-grid {
    grid-template-columns: 1fr;
  }

  .eg-visio-box {
    padding: 40px 30px;
    min-height: 170px;
  }

  .eg-stat-number {
    font-size: 2.5rem;
  }

  .eg-service-img {
    height: 240px;
  }

  .eg-service-body {
    padding: 30px;
  }

  .eg-service-body h3 {
    font-size: 1.3rem;
  }

  .eg-process-left,
  .eg-process-right {
    padding: 60px 6%;
  }

  .eg-process-left h2 {
    font-size: 1.6rem;
  }

  .eg-process-steps li {
    font-size: 1.05rem;
    margin-bottom: 18px;
  }

  .eg-value-card {
    padding: 35px 30px;
    min-height: auto;
  }

  .eg-faq-question {
    padding: 20px 22px;
    font-size: 0.95rem;
  }

  .eg-faq-answer p {
    padding: 14px 22px 20px;
  }

  .eg-footer {
    padding: 60px 5%;
  }

  .eg-footer h3 {
    font-size: 1.15rem;
  }

  .eg-btn {
    padding: 14px 30px;
    font-size: 0.9rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .eg-hero-content {
    padding: 110px 5% 50px;
  }

  .eg-hero-title {
    font-size: 1.7rem;
  }

  .eg-section {
    padding: 55px 5%;
  }

  .eg-service-img {
    height: 200px;
  }

  .eg-stat-number {
    font-size: 2rem;
  }

  .eg-visio-box {
    padding: 30px 20px;
    min-height: 140px;
  }

  .eg-btn {
    padding: 13px 25px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   YHTEYDENOTTO-SIVU
   ========================================================================== */

.eg-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-top: 40px;
}

.eg-contact-card {
  background-color: #111111;
  border: 1px solid #222222;
  border-radius: 10px;
  padding: 40px;
}

.eg-contact-card strong {
  color: #39ff14;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.eg-contact-card .eg-contact-name {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 18px 0;
}

.eg-contact-card p {
  margin: 0 0 10px 0;
}

.eg-contact-card a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.eg-contact-card a:hover {
  color: #39ff14;
}

.eg-contact-card .eg-team-linkedin {
  margin-top: 20px;
}

.eg-contact-map iframe {
  width: 100%;
  height: 320px;
  border: 2px solid #39ff14;
  border-radius: 10px;
  display: block;
}

.eg-contact-map-caption {
  color: #aaaaaa;
  font-size: 0.9rem;
  margin: 14px 0 0 0;
}

.eg-form-section {
  background-color: #0a0a0a;
}

.eg-form-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.eg-form-inner p {
  color: #cccccc;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 20px 0 40px 0;
}

@media (max-width: 768px) {
  .eg-contact-layout {
    grid-template-columns: 1fr;
  }

  .eg-contact-card {
    padding: 30px;
  }

  .eg-contact-map iframe {
    height: 250px;
  }
}

/* ==========================================================================
   BLOGI
   ========================================================================== */

.eg-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}

.eg-blog-card {
  display: block;
  background-color: #111111;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #222222;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eg-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(57, 255, 20, 0.15);
}

.eg-blog-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.eg-blog-img-placeholder {
  background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
}

.eg-blog-body {
  padding: 28px;
}

.eg-blog-date {
  font-size: 0.8rem;
  color: #39ff14;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.eg-blog-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 12px 0;
}

.eg-blog-body p {
  font-size: 0.95rem;
  color: #cccccc;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.eg-blog-readmore {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

.eg-blog-empty {
  color: #cccccc;
  font-size: 1.1rem;
  margin-top: 50px;
}

.eg-blog-pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.eg-blog-pagination .page-numbers {
  color: #cccccc;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid #222222;
  border-radius: 5px;
  font-size: 0.9rem;
}

.eg-blog-pagination .page-numbers.current {
  background-color: #39ff14;
  color: #000000;
  border-color: #39ff14;
}

.eg-blog-pagination .page-numbers:hover {
  border-color: #39ff14;
  color: #39ff14;
}

/* --- Yksittäinen blogikirjoitus --- */
.eg-blog-post-hero {
  height: 45vh;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.eg-blog-post-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 8%;
}

.eg-blog-post-inner h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  margin: 12px 0 30px 0;
  line-height: 1.2;
}

.eg-blog-post-content {
  color: #cccccc;
  font-size: 1.05rem;
  line-height: 1.8;
}

.eg-blog-post-content p {
  margin: 0 0 24px 0;
}

.eg-blog-post-content h2,
.eg-blog-post-content h3 {
  color: #ffffff;
  margin: 40px 0 18px 0;
}

.eg-blog-post-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 20px 0;
}

.eg-blog-post-content a {
  color: #39ff14;
}

.eg-blog-back {
  margin-top: 30px;
}

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

@media (max-width: 600px) {
  .eg-blog-grid {
    grid-template-columns: 1fr;
  }

  .eg-blog-post-inner {
    padding: 50px 6%;
  }
}
