/* Kaksin Käsin — static clone aligned with fortunato-child (kaksinkasin.fi) */

@import url("https://fonts.googleapis.com/css2?family=Clicker+Script&family=Roboto+Condensed:wght@400;700&family=Slabo+27px&display=swap");

:root {
  --color-body: #285073;
  --color-link: #444d93;
  --color-link-hover: #525893;
  --color-nav-active-bg: rgba(17, 82, 181, 0.6);
  --shadow-title: -1px -1px 1px rgba(139, 181, 244, 0.8),
    1px 1px 1px rgba(139, 181, 244, 0.8), -1px 1px 1px rgba(139, 181, 244, 0.8),
    1px -1px 1px rgba(139, 181, 244, 0.8);
  --shadow-nav: -1px 0 1px rgba(15, 74, 163, 0.3), -1px -1px 1px rgba(15, 74, 163, 0.3),
    -1px 1px 1px rgba(15, 74, 163, 0.3), 1px 0 1px rgba(15, 74, 163, 0.3),
    1px -1px 1px rgba(15, 74, 163, 0.3), 1px 1px 1px rgba(15, 74, 163, 0.3),
    0 1px 1px rgba(15, 74, 163, 0.3), 0 -1px 1px rgba(15, 74, 163, 0.3);
  --shadow-footer: -1px -1px 2px rgba(67, 113, 14, 0.6), 1px 1px 2px rgba(67, 113, 14, 0.6),
    -1px 1px 2px rgba(67, 113, 14, 0.6), 1px -1px 2px rgba(67, 113, 14, 0.6);
  --footer-green-top: #6a9a42;
  --footer-green-mid: #4a7a32;
  --footer-green-bottom: #355c24;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Slabo 27px", serif;
  font-size: 16px;
  line-height: 1.42857143;
  color: var(--color-body) !important;
}

#page {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

a {
  color: var(--color-link);
}

a:hover,
a:focus {
  color: var(--color-link-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 0.5rem 1rem;
  background: #fff;
}

.skip-link:focus {
  left: 0;
}

/* ——— Header ——— */

.site-header {
  position: relative;
  color: #fff;
  background: #6b8cae center bottom / cover no-repeat;
}

.site-header--home {
  min-height: 520px;
}

.site-header--inner {
  min-height: 300px;
}

/* Hinnasto / yhteystiedot: otsikko reilusti ylempänä; nav z-index 99 jää päälle tarvittaessa. */
.site-header--inner .site-brand-main-no-front-page {
  padding-top: 58px;
}

.site-header--inner .site-brand-main-no-front-page .site-branding {
  position: relative;
  top: -28px;
}

@media screen and (min-width: 1025px) {
  .site-header--inner .site-brand-main-no-front-page {
    padding-top: 4px;
  }

  .site-header--inner .site-brand-main-no-front-page .site-branding {
    top: -52px;
  }
}

.site-brand-main,
.site-brand-main-no-front-page {
  display: table;
  width: 100%;
  background-color: transparent !important;
}

.site-branding {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  padding: 2.5rem 1rem 4rem;
}

.site-header--home .site-branding {
  padding-top: calc(2.5rem + 32px);
  padding-left: 9%;
  padding-right: 2rem;
  text-align: left;
}

.site-brand-main-no-front-page .site-branding {
  vertical-align: top;
  padding-left: 10%;
  padding-top: 5%;
  text-align: left;
}

/* Outside table layout so position:fixed stays relative to viewport while scrolling */
img.site-logo {
  position: fixed;
  top: 50px;
  left: 50px;
  z-index: 1000;
  display: block;
  width: 100px;
  height: auto;
  line-height: 0;
}

.site-title {
  margin: 0.5rem 0 0;
  font-size: 4em;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
}

.site-title,
.site-title a {
  font-family: "Clicker Script", cursive;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
}

.site-header--home .site-title {
  margin-top: calc(2rem + 32px);
}

.site-header--home .site-title a {
  font-size: 1.5em;
  text-shadow: var(--shadow-title);
}

.site-header--inner .site-title {
  margin-top: 0;
}

.site-header--inner .site-title a {
  font-size: 0.6em;
  text-shadow: -1px -1px 1px rgba(139, 181, 244, 0.5), 1px 1px 1px rgba(139, 181, 244, 0.5),
    -1px 1px 1px rgba(139, 181, 244, 0.5), 1px -1px 1px rgba(139, 181, 244, 0.5);
}

.site-title a:hover {
  text-decoration: none;
  color: #fff;
}

.site-description {
  margin: 0.35rem 0 0;
  color: #fff;
  letter-spacing: 1px;
  font-size: 1.1em;
  text-shadow: -1px -1px 1px rgba(139, 181, 244, 0.5), 1px 1px 1px rgba(139, 181, 244, 0.5),
    -1px 1px 1px rgba(139, 181, 244, 0.5), 1px -1px 1px rgba(139, 181, 244, 0.5);
}

.site-header--inner .site-description {
  display: none;
}

/* ——— Nav ——— */

.theNavigationBar {
  position: absolute;
  width: 100%;
  top: 15px;
  left: 0;
  padding: 0 90px;
  text-align: center;
}

.main-navigation {
  clear: both;
  display: block;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.main-navigation ul li {
  position: relative;
  margin: 0 auto;
  display: inline-block;
}

.main-navigation .menu > li > a::after {
  content: none !important;
}

.main-navigation a {
  display: block;
  text-decoration: none;
  padding: 1.5em;
  border-top: 2px solid transparent;
  color: #fff !important;
  text-shadow: var(--shadow-nav);
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: #fff !important;
  background-color: var(--color-nav-active-bg);
  text-shadow: none;
  border-radius: 20px;
  border-top: none !important;
}

.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a {
  border-top: none !important;
  background-color: var(--color-nav-active-bg);
  text-shadow: none;
  border-radius: 20px;
}

#primary-menu li a {
  font-size: 16px;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  width: 100%;
  padding: 1em;
  text-align: left;
  font-size: 14px;
  line-height: 1.8;
  font-family: inherit;
  border: none;
  cursor: pointer;
  border-radius: 0;
}

.menu-toggle i {
  float: right;
  margin-top: 5px;
}

/* ——— Content ——— */

.site-content {
  flex: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 200px;
}

.fortunato-child-centered-page {
  width: 70%;
  margin-left: 15%;
}

.hentry {
  margin: 0;
}

.entry-header .entry-title {
  margin: 1.25rem 0 0.75rem;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--color-body);
}

.entry-content {
  font-weight: 400;
}

.entry-content p {
  margin: 0 0 1.5em;
}

.info-text {
  font-size: 1.2rem;
}

.bottom-image {
  display: block;
  width: 70%;
  margin-left: 15%;
  margin-top: 50px;
  text-align: center;
}

.bottom-image img {
  max-width: 100%;
  height: auto;
}

.hinnasto-table {
  width: auto;
  max-width: 100%;
  border-collapse: collapse;
  border: none;
  margin: 1rem 0 1.5rem;
}

.hinnasto-table td {
  padding: 0.5rem 1rem;
  text-align: center;
  border: none;
  font-size: calc(1em + 2px);
}

.hinnasto-table th {
  padding: 0.5rem 1rem;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 900;
  font-size: calc(1em + 4px);
}

.contact-lead {
  font-size: 1.2em;
}

.contact-lead h3 {
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--color-body);
}

.map-figure {
  margin: 2rem 0 0;
  text-align: center;
}

.map-figure img {
  max-width: 100%;
  height: auto;
}

/* ——— Footer (KaksinKasinFooter.jpg from app/pictures → public/images) ——— */

.site-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 200px;
  margin: 0;
}

.fortunato-child-footer {
  width: 100%;
  height: 200px;
  background-color: var(--footer-green-mid);
  background-image: url("/images/KaksinKasinFooter.jpg");
  background-repeat: repeat-x;
  background-position: center bottom;
}

.fortunato-child-footer-text {
  width: 100%;
  margin-top: 0;
}

.footerContainer {
  position: absolute;
  bottom: 10px;
  width: 100%;
  font-size: 20px;
  height: 40%;
  color: #fff;
  text-shadow: var(--shadow-footer);
}

.footerContainer::after,
.footerInfo::after {
  content: "";
  display: table;
  clear: both;
}

.footerInfo {
  position: relative;
  display: block;
  width: 60%;
  margin-left: 30%;
  margin-right: auto;
  line-height: 1.3;
  height: 100%;
}

.footerInfoBlock {
  float: left;
  height: 100%;
  color: #fff;
  margin-left: 5%;
}

.mobile-view {
  display: none;
}

.normal-view {
  display: block;
}

.FIBtitle {
  font-size: 1em;
}

.FIBtitle a {
  color: #fff;
  text-decoration: none;
}

.FIBtitleText {
  font-size: 1.1em;
}

.FIBlinks ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.FIBlinks ul li a,
.FIBlinks {
  color: #fff;
  text-shadow: var(--shadow-footer);
  font-size: 0.9em;
  text-decoration: none;
}

.FIBlinks ul li a:hover,
.FIBtitle a:hover {
  color: #d1e3ab;
}

.FIBlinks ul li span {
  font-size: 0.9em;
}

.site-info {
  margin: 0;
}

/* ——— Responsive ——— */

@media screen and (max-width: 1024px) {
  .theNavigationBar {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    z-index: 99;
    box-sizing: border-box;
  }

  .main-navigation {
    width: 100%;
    max-width: 100%;
    text-transform: inherit;
  }

  .main-navigation .menu-valikko-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .menu-toggle {
    display: block;
    margin: 0;
    background: rgba(37, 112, 219, 0.7);
    color: #fff !important;
    text-shadow: none;
    border: none;
    box-shadow: none;
  }

  .menu-toggle i {
    color: inherit;
  }

  .main-navigation:not(.toggled) .menu-toggle:hover,
  .main-navigation:not(.toggled) .menu-toggle:focus {
    background: rgba(37, 112, 219, 0.8);
    color: #fff !important;
  }

  .main-navigation.toggled .menu-toggle {
    background: #2570db;
    color: #fff !important;
    border: none;
    box-shadow: none;
  }

  .main-navigation.toggled .menu-toggle:hover,
  .main-navigation.toggled .menu-toggle:focus {
    background: #2570db;
    color: #fff !important;
  }

  .main-navigation.toggled .menu-toggle i {
    color: #fff;
  }

  .main-navigation ul {
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(37, 112, 219, 0.7);
    margin: 0;
    padding: 0;
  }

  .main-navigation.toggled ul {
    display: flow-root;
  }

  .main-navigation ul li {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .main-navigation ul a {
    border: none;
    text-align: left;
    color: #fff !important;
    text-shadow: none;
    border-radius: 12px;
    background-color: transparent;
    margin: 0.35rem 1.15rem;
    box-sizing: border-box;
  }

  .main-navigation ul a:hover,
  .main-navigation ul a:focus {
    background-color: var(--color-nav-active-bg) !important;
    color: #fff !important;
  }

  .main-navigation li.current-menu-item > a,
  .main-navigation li.current_page_item > a {
    background-color: var(--color-nav-active-bg);
    color: #fff !important;
  }

  .main-navigation li.current-menu-item > a:hover,
  .main-navigation li.current_page_item > a:focus {
    background-color: var(--color-nav-active-bg) !important;
    color: #fff !important;
  }
}

@media screen and (max-width: 800px) {
  .footerContainer {
    font-size: 18px;
  }

  .bottom-image {
    width: 90%;
    margin-left: 5%;
  }

  .footerInfo {
    width: 95%;
    margin-left: 5%;
  }
}

@media screen and (max-width: 579px) {
  body .footerContainer {
    font-size: 16px;
  }

  .footerInfo {
    width: 99%;
    margin: 0 1%;
  }

  .footerInfoBlock {
    margin-left: 2%;
  }

  .bottom-image {
    width: 100%;
    margin-left: 0;
  }
}

@media screen and (max-width: 480px) {
  .fortunato-child-centered-page {
    width: 96%;
    margin-left: 2%;
  }

  .site-header--home .site-branding {
    padding-left: 1.25rem;
    padding-right: 1rem;
  }

  .entry-header .entry-title {
    text-align: center;
    margin-left: 0;
  }

  .site-brand-main .site-branding .site-title {
    width: 100%;
  }

  .mobile-view {
    display: block;
  }

  .normal-view {
    display: none;
  }

  .footerInfo {
    width: 80%;
    margin: 0 20%;
  }

  .FIBtitle a {
    font-size: 1.3em;
  }

  .FIBlinks ul li a {
    font-size: 1.2em;
  }

  .footerContainer {
    bottom: 30px;
  }

  .FIBtitleText {
    text-decoration: underline;
  }
}

@media screen and (max-width: 280px) {
  .footerInfo {
    width: 90%;
    margin: 0 5%;
  }
}
