/*
Theme Name:     Hostadum v3 Child
Theme URI:      n/a
Template:       kadence
Author:         Hostadum
Author URI:     https://www.hostadum.fi/
Description:    Hostadum lapsiteema, pohjalla Kadence.
Version:        1.0
Text Domain:    hostadum-v3-child
*/

/* =========================================================
   BOREN PALVELU - Kadence content sections only
   Ei headeria, navigaatiota tai footeria.
   Ei !important-sääntöjä.
   ========================================================= */

:root {
  --boren-navy: #062b55;
  --boren-dark: #021f3f;
  --boren-accent: #13a8c7;
  --boren-light: #f6f8fa;
  --boren-text: #1f2933;
  --boren-border: rgba(6, 43, 85, 0.12);
  --boren-shadow: 0 18px 45px rgba(6, 43, 85, 0.10);
}

/* Sivun sisäinen Kadence padding pois etusivulta */
.home .content-area {
  margin-top: 0;
  margin-bottom: 0;
}

.home .content-container.site-container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.home .entry.single-entry {
  box-shadow: none;
}

.home .entry-content-wrap {
  padding: 0;
}

/* Fontit vain Boren-sisältöön */
.boren-hero,
.boren-section,
.boren-extra-services,
.boren-why-box,
.boren-contact-band,
.boren-trust-box {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.boren-hero h1,
.boren-section h2,
.boren-section h3,
.boren-extra-services h2,
.boren-extra-services h3,
.boren-why-box h2,
.boren-contact-band h2,
.boren-contact-band h3 {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Yleiset */
.boren-section {
  background: var(--boren-light);
}

.boren-section-title {
  color: var(--boren-navy);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.boren-title-center {
  text-align: center;
}

.boren-section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  background: var(--boren-accent);
  border-radius: 999px;
  margin: 18px auto 0;
}

.boren-section-text {
  color: var(--boren-text);
  font-size: clamp(1rem, 0.96rem + 0.15vw, 1.1rem);
  line-height: 1.65;
}

/* Hero */
.boren-hero {
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 48%, #f4f8fb 100%);
  overflow: hidden;
}

.boren-hero .kt-row-column-wrap {
  min-height: 680px;
}

.boren-hero-content .kt-inside-inner-col {
  padding-right: 56px;
}

.boren-hero-title {
  color: var(--boren-navy);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-size: clamp(2.6rem, 5vw, 5rem);
  max-width: 720px;
  margin: 0 0 1.2rem;
}

.boren-hero-text {
  max-width: 640px;
  color: var(--boren-text);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.2rem);
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* Hero-napit: nämä olivat aiemmin väärin */
.boren-hero-buttons {
  gap: 14px;
}

.boren-hero-buttons .kb-button,
.boren-hero-buttons .wp-block-button__link {
  border-radius: 12px;
  font-weight: 700;
  padding: 15px 28px;
  text-decoration: none;
}

.kb-button.boren-primary-btn,
.wp-block-button__link.boren-primary-btn {
  background: var(--boren-navy);
  border: 2px solid var(--boren-navy);
  color: #ffffff;
}

.kb-button.boren-secondary-btn,
.wp-block-button__link.boren-secondary-btn {
  background: #ffffff;
  border: 2px solid var(--boren-navy);
  color: var(--boren-navy);
}

.kb-button.boren-primary-btn:hover,
.wp-block-button__link.boren-primary-btn:hover,
.kb-button.boren-secondary-btn:hover,
.wp-block-button__link.boren-secondary-btn:hover {
  background: var(--boren-accent);
  border-color: var(--boren-accent);
  color: #ffffff;
}

/* Hero-kuva */
.boren-hero-image-wrap {
  border-radius: 0 0 0 36px;
  overflow: hidden;
}

.boren-hero-image {
  height: 100%;
  margin: 0;
}

.boren-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

/* Luottorivi */
.boren-trust-strip {
  margin-top: -42px;
  position: relative;
  z-index: 5;
}

.boren-trust-box > .kt-inside-inner-col {
  background: #ffffff;
  border: 1px solid var(--boren-border);
  border-radius: 18px;
  box-shadow: var(--boren-shadow);
  padding: 28px 34px;
}

.boren-trust-columns {
  margin: 0;
  gap: 0;
}

.boren-trust-item {
  text-align: center;
  font-weight: 700;
  color: var(--boren-navy);
}

.boren-trust-item p {
  margin: 0;
  line-height: 1.35;
}

/* Palvelukortit */
.boren-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.boren-card > .kt-inside-inner-col {
  height: 100%;
  min-height: 245px;
  background: #ffffff;
  border: 1px solid var(--boren-border);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(6, 43, 85, 0.08);
  padding: 34px 32px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.boren-card:hover > .kt-inside-inner-col {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(6, 43, 85, 0.13);
}

.boren-card h3 {
  color: var(--boren-navy);
  font-weight: 800;
  font-size: clamp(1.15rem, 1rem + 0.25vw, 1.35rem);
  line-height: 1.25;
  margin: 0 0 0.65rem;
}

.boren-card p {
  color: var(--boren-text);
  line-height: 1.55;
  margin: 0;
}

.boren-card .boren-icon {
  color: var(--boren-accent);
  font-size: 46px;
  line-height: 1;
  margin-bottom: 16px;
}

/* Kuvalliset palvelukortit */
.boren-extra-services {
  background: #ffffff;
}

.boren-image-card {
  min-height: 260px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(6, 43, 85, 0.16);
  position: relative;
}

.boren-image-card > .kt-inside-inner-col {
  min-height: 260px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

/* Overlay oikeaan elementtiin, koska Kadence taustakuva on innerissä */
.boren-image-card > .kt-inside-inner-col::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,31,63,0.05) 0%, rgba(2,31,63,0.82) 100%);
  z-index: 1;
}

.boren-image-card h3,
.boren-image-card p {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.boren-image-card h3 {
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 0 0 6px;
}

.boren-image-card p {
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

/* Miksi valita */
.boren-why-box > .kt-inside-inner-col {
  background: #ffffff;
  border: 1px solid var(--boren-border);
  border-radius: 24px;
  box-shadow: var(--boren-shadow);
  padding: 44px;
}

.boren-why-box .kt-row-column-wrap {
  padding: 0;
}

.boren-why-box img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.boren-check-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0 0;
  color: var(--boren-text);
}

.boren-check-list li {
  position: relative;
  display: block;
  padding-left: 44px;
  margin-bottom: 0.9rem;
  line-height: 1.5;
  color: var(--boren-text);
  min-height: 28px;
}

.boren-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 26px;
  height: 26px;
  background: var(--boren-accent);
  color: #ffffff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}

/* Yhteydenotto */
.boren-contact-band > .kt-inside-inner-col {
  background: var(--boren-dark);
  color: #ffffff;
  border-radius: 24px;
  padding: 52px;
}

.boren-contact-band h2,
.boren-contact-band h3,
.boren-contact-band p,
.boren-contact-band a {
  color: #ffffff;
}

.boren-contact-band .kt-row-column-wrap {
  padding: 0;
}

.boren-contact-band input,
.boren-contact-band textarea {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
}

.boren-contact-band .gform_button {
  background: var(--boren-accent);
  color: #ffffff;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  padding: 14px 32px;
}

/* Mobiili */
@media (max-width: 767px) {
  .boren-hero .kt-row-column-wrap {
    min-height: 0;
  }

  .boren-hero-content .kt-inside-inner-col {
    padding-right: 0;
  }

  .boren-hero-title {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .boren-hero-image img {
    min-height: 360px;
  }

  .boren-hero-image-wrap {
    border-radius: 0;
  }

  .boren-trust-strip {
    margin-top: 0;
  }

  .boren-trust-box > .kt-inside-inner-col {
    padding: 24px;
  }

  .boren-trust-columns {
    flex-wrap: wrap;
    gap: 18px;
  }

  .boren-card > .kt-inside-inner-col {
    min-height: 0;
    padding: 28px 24px;
  }

  .boren-image-card,
  .boren-image-card > .kt-inside-inner-col {
    min-height: 220px;
  }

  .boren-why-box > .kt-inside-inner-col,
  .boren-contact-band > .kt-inside-inner-col {
    padding: 28px 24px;
    border-radius: 18px;
  }
}
/* Gravity Forms värit Boren yhteysosiossa */
.boren-contact-band .gform_wrapper,
.boren-contact-band .gform_wrapper form {
  color: #ffffff;
}

.boren-contact-band .gform_wrapper label,
.boren-contact-band .gform_wrapper .gfield_label,
.boren-contact-band .gform_wrapper .gform-field-label,
.boren-contact-band .gform_wrapper .gfield_description {
  color: #ffffff;
}

.boren-contact-band .gform_wrapper .gfield_required,
.boren-contact-band .gform_wrapper .gfield_required_text {
  color: #13a8c7;
  font-weight: 700;
}

.boren-contact-band .gform_wrapper input[type="text"],
.boren-contact-band .gform_wrapper input[type="email"],
.boren-contact-band .gform_wrapper input[type="tel"],
.boren-contact-band .gform_wrapper textarea {
  background: #ffffff;
  color: #1f2933;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 10px;
}

.boren-contact-band .gform_wrapper input:focus,
.boren-contact-band .gform_wrapper textarea:focus {
  border-color: #13a8c7;
  outline: 2px solid rgba(19,168,199,0.35);
  outline-offset: 2px;
}

.boren-contact-band .gform_wrapper .gform_button,
.boren-contact-band .gform_wrapper input[type="submit"] {
  background: #13a8c7;
  color: #ffffff;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  padding: 14px 32px;
}

.boren-contact-band .gform_wrapper .gform_button:hover,
.boren-contact-band .gform_wrapper input[type="submit"]:hover {
  background: #ffffff;
  color: #062b55;
}


/* BOREN palvelu tekstit värit mustall */
.boren-subpage-card.boren-service-page h1,
.boren-subpage-card.boren-service-page h2,
.boren-subpage-card.boren-service-page h3,
.boren-subpage-card.boren-service-page p,
.boren-subpage-card.boren-service-page li,
.boren-subpage-card.boren-service-page strong {
  color: #000000;
}

/* =========================================================
   BOREN PALVELU - Valikon tekstin kirjainkoko
   Estää Kadencen text-transform: capitalize -muunnoksen.
   ========================================================= */

.main-navigation .primary-menu-container > ul li.menu-item > a,
.mobile-navigation ul li a {
  text-transform: none;
}