/* ==================================================
   KILPIKAIVERTAMO JOUTSENVIRTA – 1-SIVU (KJ)
   Turvallinen Kotisivukoneessa:
   - koskee vain .kj-* luokkia
   - ei yliaja teeman container/h1/img -yleissääntöjä
   ================================================== */

:root{
  --kj-green-dark:#0f5f2a;
  --kj-green:#1f7a3a;
  --kj-green-soft:#eaf4ec;
  --kj-text:#0f172a;
  --kj-muted:#475569;
  --kj-border:#d9e6dd;
  --kj-card:#ffffff;
  --kj-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* Perus */
.kj-page{
  color: var(--kj-text);
}

.kj-muted{ color: var(--kj-muted); }

/* ===========================
   LEVEYS: sisällön maksimi
   =========================== */
.kj-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ===========================
   HERO: täysleveä tausta
   =========================== */
.kj-hero{
  /* täysleveä tausta ilman että koko teema hajoaa */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  background: linear-gradient(180deg, var(--kj-green-soft) 0%, #ffffff 70%);
  border-top: 1px solid var(--kj-border);
  border-bottom: 1px solid var(--kj-border);
  padding: 44px 0;
}

/* hero-sisältö */
.kj-hero__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: 340px 1fr 420px; /* logo / tekstit / kuva */
  gap: 24px;
  align-items: center;
}

/* ===========================
   LOGO isommaksi
   =========================== */
.kj-logo{
  width: 100%;
  max-width: 340px; /* isompi kuin ennen */
  height: auto;
  display: block;
}

/* ===========================
   Tekstit
   =========================== */
.kj-badge{
  display: inline-block;
  background: rgba(15,95,42,.10);
  border: 1px solid rgba(15,95,42,.18);
  color: var(--kj-green-dark);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.kj-title{
  margin: 0 0 10px;
  color: var(--kj-green-dark);
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.kj-lead{
  margin: 0 0 14px;
  color: var(--kj-muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 760px;
}

.kj-points{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--kj-muted);
  line-height: 1.6;
}

/* ===========================
   NAPIT (varmasti nappeja)
   =========================== */
.kj-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0;
}

.kj-cta a{
  display: inline-block;
}

.kj-btn{
  text-decoration: none !important;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
}

.kj-btn--primary{
  background: var(--kj-green);
  color: #ffffff !important;
}

.kj-btn--primary:hover{
  background: var(--kj-green-dark);
}

.kj-btn--ghost{
  background: transparent;
  color: var(--kj-green-dark) !important;
  border: 1px solid rgba(15,95,42,.30);
}

.kj-btn--ghost:hover{
  background: rgba(15,95,42,.06);
}

.kj-btn--block{
  display: block !important;
  text-align: center;
  width: 100%;
}

/* ===========================
   HERO-kuva
   =========================== */
.kj-hero__image img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--kj-border);
  box-shadow: var(--kj-shadow);
}

/* ===========================
   Osioiden rytmi
   =========================== */
.kj-section{
  padding: 26px 0;
  border-bottom: 1px solid #e5e7eb;
}

.kj-section h2{
  margin: 0 0 12px;
  color: var(--kj-green-dark);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

/* ===========================
   Kortit ja gridit
   =========================== */
.kj-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

.kj-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.kj-card{
  background: var(--kj-card);
  border: 1px solid var(--kj-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.kj-card__title{
  font-weight: 900;
  margin-bottom: 8px;
}

.kj-list{
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.6;
}

/* ===========================
   Galleria
   =========================== */
.kj-gallery{
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* leveällä näytöllä 4 */
  gap: 14px;
  margin-top: 12px;
}

.kj-figure{
  margin: 0;
  background: #fff;
  border: 1px solid var(--kj-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.kj-figure img{
  width: 100%;
  height: auto;
  display: block;
}

.kj-figure figcaption{
  padding: 10px 12px;
  font-size: 13px;
  color: var(--kj-muted);
}

/* ===========================
   Huomiolaatikko / lomakepaikka
   =========================== */
.kj-note{
  margin-top: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  border-radius: 14px;
  color: #334155;
}

/* Footer */
.kj-footer{
  padding: 18px 0;
  color: #64748b;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1200px){
  .kj-hero__inner{
    grid-template-columns: 300px 1fr 380px;
  }
  .kj-logo{ max-width: 300px; }
  .kj-gallery{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px){
  .kj-hero{
    padding: 28px 0;
  }
  .kj-hero__inner{
    grid-template-columns: 1fr;
  }
  .kj-logo{ max-width: 240px; }
  .kj-title{ font-size: 34px; }
  .kj-grid{ grid-template-columns: 1fr; }
  .kj-cards{ grid-template-columns: 1fr; }
  .kj-gallery{ grid-template-columns: 1fr; }
  .kj-container{ padding: 0 16px; }
  .kj-hero__inner{ padding: 0 16px; }
}
.ksk_footer_wrapper {
  display: none;
}
#columns #content.ksk_middle_area {
  width: 979px;
}
.ksk_container {
  width: 980px;
  max-width: 980px;
}.kj-contact{
  font-size: 15.5px;
  line-height: 1.55;
}

.kj-contact__title{
  font-weight: 900;
  margin-bottom: 10px;
}

.kj-contact__line{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
}

.kj-ico{
  width: 22px;
  flex: 0 0 22px;
  opacity: 0.8;
}

.kj-person{
  margin: 4px 0;
}

.kj-person a{
  text-decoration: none;
  font-weight: 700;
}
/* ===== FACEBOOK-FOOTER ===== */

.kj-social {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.kj-social__link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1f7a3a; /* yritysvihreä */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.kj-social__icon {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.kj-social__link:hover {
  background: #145c2b;
  transform: translateY(-2px);
}
/* ===== Facebook-nappi footerissa (vihreä, varma klikattavuus) ===== */

.kj-social {
  display: flex;
  justify-content: center;
  margin-top: 22px;
  margin-bottom: 10px;
}

.kj-social__link{
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;

  background: var(--kj-green, #1f7a3a);
  color: #fff !important;

  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;

  border: 1px solid rgba(15,95,42,.25);
  box-shadow: 0 8px 18px rgba(15,23,42,.08);

  /* varmista että mikään ei peitä linkkiä */
  position: relative;
  z-index: 9999;
  pointer-events: auto;
}

.kj-social__link:hover{
  background: var(--kj-green-dark, #0f5f2a);
  transform: translateY(-1px);
}

.kj-social__icon{
  width: 20px;
  height: 20px;
  fill: #fff;
  flex: 0 0 20px;
}

.kj-social__text{
  font-size: 14px;
  letter-spacing: .2px;
}
/* ===== Facebook-nappi – korjaus tekstiin ja kokoon ===== */

.kj-social__link{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  min-width: 160px;          /* TÄRKEÄ: estää tekstin leikkautumisen */
  padding: 14px 22px;        /* lisää tilaa tekstille */

  background: #1f7a3a;
  color: #ffffff !important;

  font-size: 15px;           /* hieman pienempi mutta selkeä */
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;       /* estää rivittymisen */

  border-radius: 999px;
  text-decoration: none !important;

  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.kj-social__text{
  display: inline-block;
  margin-left: 8px;
}

.kj-social__icon{
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: #ffffff;
}
/* ===== Kartta footerissa ===== */
.kj-map{
  width: 100%;
  max-width: 520px;
  margin: 14px auto 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15,95,42,.18);
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.kj-map iframe{
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

.kj-map__links{
  padding: 10px 12px;
  text-align: center;
  background: #f6fbf7;
}

.kj-map__links a{
  color: #0f5f2a !important;
  font-weight: 700;
  text-decoration: none !important;
}

.kj-map__links a:hover{
  text-decoration: underline !important;
}

@media (max-width: 860px){
  .kj-map{ max-width: 100%; }
  .kj-map iframe{ height: 220px; }
}
/* Google Maps */
.kj-map{
  margin: 32px auto;
  max-width: 1100px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  clear: both;
}

.kj-map iframe{
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.kj-map-link{
  text-align: center;
  padding: 12px;
  background: #f5f9f6;
}

.kj-map-link a{
  color: #1f7a3a;
  font-weight: 600;
  text-decoration: none;
}

.kj-map-link a:hover{
  text-decoration: underline;
}
.social-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin: 24px 0;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

/* Facebook */
.social-btn.facebook {
  background: #1f7a3a; /* teeman vihreä */
}

/* Instagram */
.social-btn.instagram {
  background: linear-gradient(135deg,
    #1f7a3a,
    #2e8b57
  );
}

.social-btn .icon {
  font-size: 18px;
  font-weight: 700;
}
.social-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin: 24px 0;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

/* Facebook */
.social-btn.facebook {
  background: #1f7a3a;
}

/* Instagram */
.social-btn.instagram {
  background: linear-gradient(135deg, #1f7a3a, #2e8b57);
}

.social-btn .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

/* IG-teksti erikseen */
.social-btn .icon.ig {
  letter-spacing: -1px;
}