/* css/tyhy-tarjous.css */

/* 0) Sivukohtaiset globaalit poikkeukset */
body.hash-tyhy-tarjous #sidebar,
body.hash-tyhy-tarjous #hamburger-menu {
  display: none !important;
}

/* Poista yleisen layoutin sivupalkkimarginaali + sisäpadding */
body.hash-tyhy-tarjous #content {
  margin-left: 0 !important;
  padding: 0 !important;
  padding-top: 0 !important; /* mobiilin “yläpalkki-offset” pois */
}

/* 1) Hero: full-bleed, kiinni ylä- ja vasemmassa reunassa, hieman zoomattu */
body.hash-tyhy-tarjous img[src*="nyt/kannelle.jpg"] {
  display: block;
  width: 100vw;
  height: clamp(260px, 55vh, 560px);
  object-fit: cover;

  /* “Kiinni vasemmassa ja ylälaidassa” + zoom-tuntuma */
  object-position: left top;
  transform: scale(1.12);
  transform-origin: left top;

  /* Full-bleed vaikka sisältö olisi keskitettyyn konttiin */
  margin-left: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 22px;
}

/* Jos hero-kuva on kääritty erilliseen .tyhy-hero -konttiin, tuetaan myös sitä */
body.hash-tyhy-tarjous .tyhy-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 0;
}

/* 2) Perus-typografia ja sisältöleveys */
body.hash-tyhy-tarjous #tyhy-tarjous {
  background: #eef4f7;
}

body.hash-tyhy-tarjous #tyhy-tarjous .tyhy-container,
body.hash-tyhy-tarjous #tyhy-tarjous .tyhy-page,
body.hash-tyhy-tarjous #tyhy-tarjous_content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

body.hash-tyhy-tarjous #tyhy-tarjous h1 {
  margin: 0 0 8px;
  /* font-size: clamp(26px, 3.2vw, 40px); */
  line-height: 1.08;
}

body.hash-tyhy-tarjous #tyhy-tarjous h2 {
  margin: 22px 0 12px;
  font-size: 22px;
}

/* 3) Lomakekortti (vaaleanruskea, pyöristetyt nurkat) */
/* Jos sinulla on wrapper-luokka (esim. .tyhy-form-card), käytä sitä.
   Muuten tyylitetään varmuuden vuoksi myös form suoraan. */
/* body.hash-tyhy-tarjous #tyhy-tarjous .tyhy-form-card, */
body.hash-tyhy-tarjous #tyhy-tarjous form {
  background: var(--card-bg, #efe6d8);
  border-radius: var(--card-radius, 14px);
  padding: var(--card-pad, 24px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

/* 4) Grid-asettelu: sisältö vasemmalle, formi oikealle (desktop) */
body.hash-tyhy-tarjous #tyhy-tarjous .tyhy-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  body.hash-tyhy-tarjous #tyhy-tarjous .tyhy-grid {
    grid-template-columns: 1fr;
  }
}

/* 5) Lomakekentät siisteiksi */
body.hash-tyhy-tarjous #tyhy-tarjous label {
  display: block;
  font-weight: 600;
  margin: 10px 0 6px;
}

body.hash-tyhy-tarjous #tyhy-tarjous input,
body.hash-tyhy-tarjous #tyhy-tarjous select,
body.hash-tyhy-tarjous #tyhy-tarjous textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 10px 12px;
  background: rgba(255,255,255,0.6);
}

/* 6) Mobiili: varmista ettei mikään “yläpalkki-offset” palaudu */
@media (max-width: 768px) {
  body.hash-tyhy-tarjous #content {
    padding-top: 0 !important;
  }
}

/* ===== TYHY HERO (teksti kuvan päälle) ===== */

/* Estetään vaakavuoto tämän sivun aikana */
body.hash-tyhy-tarjous {
  overflow-x: hidden;
}

/* Hero on “full-bleed” ja kiinni yläreunassa */
body.hash-tyhy-tarjous .tyhy-hero{
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  height: clamp(260px, 55vh, 560px);
  overflow: hidden;
  margin: 0;             /* tärkeä: ei ylä-/sivumarginaaleja */
  padding: 0;
}

/* Kuva täyttää heron; “kiinni” ylä- ja vasemmassa laidassa + kevyt zoom */
body.hash-tyhy-tarjous .tyhy-hero__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;   /* kiinni vasempaan + ylös */
  transform: scale(1.08);      /* zoom: säädä 1.04–1.14 */
}

/* Hero-teksti kuvan päälle */
body.hash-tyhy-tarjous .tyhy-hero__content{
  position:absolute;
  bottom:5%;
  left:55%;
  /* inset: 0; */
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(16px, 4vw, 56px);
}

body.hash-tyhy-tarjous .tyhy-hero__text{
  z-index: 3;
  font-family: "Lato", Arial, sans-serif;
  font-size: 18px;
  color: black; /*#fff;*/
  font-weight:800;
  background: #f2c46e; /* rgba(0,0,0,0.35); */
  border-radius: 14px;
  padding: 14px 18px;
  /* max-width: 760px; */
}


/* Hero-otsikko (h1) kuvan päälle */
body.hash-tyhy-tarjous .tyhy-hero__headline{
  position:absolute;
  top:25%;
  left:20%;
  z-index: 3;
  margin: 0;

  font-size: 54px;
  line-height: 1.05;
  font-weight: 900;
  color: #18324a;
  text-shadow: 0 0 0.5px #fff, 0 2px 12px rgba(255,255,255,.8);
  
  
    text-shadow:
    0 0 10px rgba(186,216,250,.95),
    0 0 18px rgba(186,216,250,.75);
	
  pointer-events: none;
}

/*

    text-shadow:
    -2px -2px 0 #bad8fa,
     2px -2px 0 #bad8fa,
    -2px  2px 0 #bad8fa,
     2px  2px 0 #bad8fa,
     0 0 6px rgba(186,216,250,.8);

*/

/* Match etusivu H1 (computed) for TYHY hero headline */
body.hash-tyhy-tarjous #tyhy-tarjous h1{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 44.1px; /* 42px * 1.05 = 44.1px */
  color: rgb(27, 42, 54);


  
    text-shadow:
    0 0 10px rgba(186,216,250,.95),
    0 0 18px rgba(186,216,250,.75);
	

}


/*

    text-shadow:
    -2px -2px 0 #bad8fa,
     2px -2px 0 #bad8fa,
    -2px  2px 0 #bad8fa,
     2px  2px 0 #bad8fa,
     0 0 6px rgba(186,216,250,.8);

*/

  /* etusivun sinertävä “outline + glow” */
  /*
  text-shadow:
    rgb(186, 216, 250) -2px -2px 0px,
    rgb(186, 216, 250)  2px -2px 0px,
    rgb(186, 216, 250) -2px  2px 0px,
    rgb(186, 216, 250)  2px  2px 0px,
    rgba(186, 216, 250, 0.8) 0px 0px 6px;
	*/

/* Match etusivu CTA-button (computed) for TYHY hero button */
/*body.hash-tyhy-tarjous #tyhy-tarjous .tyhy-hero a,
body.hash-tyhy-tarjous #tyhy-tarjous .tyhy-hero button */
body.hash-tyhy-tarjous .tyhy-hero__content .tyhy-hero__text{
  display: inline-flex;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  color: rgb(26, 26, 26);

  background-color: #e7f0f2; /* rgb(242, 196, 110); */
  background-image: none;
  background-repeat: repeat;
  background-size: auto;
  background-position: 0% 0%;

  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;

  box-shadow: rgba(0, 0, 0, 0.12) 0px 8px 18px 0px;

  padding-top: 14px;
  padding-right: 18px;
  padding-bottom: 14px;
  padding-left: 18px;

  text-decoration-line: none;
  text-decoration-style: solid;
}


/* TYHY: sisältökuva pyöristetyillä nurkilla (etusivu-tyyli) */
body.hash-tyhy-tarjous #tyhy-tarjous .tyhy-photo{
  border-radius: 14px;
  overflow: hidden;
  margin: 12px 0 18px;
}

body.hash-tyhy-tarjous #tyhy-tarjous .tyhy-photo__img{
  display: block;
  width: 100%;
  height: auto;
}


.my-table{
  border-collapse: separate;
  border-spacing: 60px 0; /* 20px sarakkeiden väliin, 0px rivien väliin */
}

/* TYHY: Lähetä tarjouspyyntö -nappi samaan tyyliin kuin .tyhy-hero__text */
body.hash-tyhy-tarjous #tyhyOfferForm .tyhy-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: rgb(26, 26, 26);

  background-color: rgb(242, 196, 110);
  border: 0;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 8px 18px 0px;

  padding: 14px 18px;
  text-decoration: none;
  cursor: pointer;
}

body.hash-tyhy-tarjous #tyhyOfferForm .tyhy-cta:hover{
  background-color: #e8b85b; /* sama hover-sävy kuin etusivu-tyyli */
}


/* TYHY: CTA-napin "valmis" -tila */

body.hash-tyhy-tarjous #tyhyOfferForm .tyhy-cta.is-done{
  /* Painettu: tekstin väri limevihreäksi, muu ulkoasu ennallaan */
  background-color: rgb(242, 196, 110);
  color: #32cd32;
}

body.hash-tyhy-tarjous #tyhyOfferForm .tyhy-cta.is-done:hover{
  background-color: rgb(242, 196, 110);
}


/*
body.hash-tyhy-tarjous #tyhyOfferForm .tyhy-cta.is-done{
  background-color: #4caf50;
  color: #fff;
}
*/

body.hash-tyhy-tarjous #tyhyOfferForm .tyhy-cta.is-done:hover{
  background-color: #4caf50; /* lukitaan vihreäksi myös hoverissa */
}


/* TYHY: submit-nappi (etusivun tyylinen “badge/cta”) */
body.hash-tyhy-tarjous #tyhy-tarjous .tyhy-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  color: rgb(26, 26, 26);

  background-color: rgb(242, 196, 110);
  border: 0;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 8px 18px 0px;

  padding: 14px 18px;
  cursor: pointer;
}

/* Kun painettu: vihreäksi + teksti valkoiseksi */
body.hash-tyhy-tarjous #tyhy-tarjous .tyhy-cta.is-done{
  background-color: #4caf50;
  color: #fff;
}

/* Varmistus: vaikka nappi disabled, pidä vihreä ulkoasu */
body.hash-tyhy-tarjous #tyhy-tarjous .tyhy-cta.is-done:disabled{
  background-color: #4caf50;
  color: #fff;
  opacity: 1;
}

