/*
Theme Name: Sunniemi Child
Template: twentytwentyfive
*/

body {
  background-color: #FFFFFF;
  color: #1f1f1f;
  font-family: Lucida Sans Unicode, Trebuchet MS, Verdana, Arial, Geneva, Helvetica, sans-serif;
               
}

strong, b {
  font-weight: 700 !important;
}

/* Links */
a {
  color: #330000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-title-spacing {

  padding-right: 30px;
}


/*header*/

/* Aktiivinen sivu nav barissa  */
.wp-block-navigation .current-menu-item > a,
.wp-block-navigation .current_page_item > a,
.wp-block-navigation .current-menu-ancestor > a {
  color: #330000;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
  
}

.logoteksti{
    padding-top:30px;
}

.wp-block-navigation{
    padding-top:40px;
    padding-left:30px;
    padding-right:20px;
}

/* Sticky header */
header.wp-block-template-part,
header.wp-block-group,
header.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color:white;
  
}






/* Polylang switcher list inline */
.pll-parent-menu-item,
.lang-item {
  list-style: none;
  
}

.lang-item {
  display: inline;
  margin-left: 10px;
}

/* Language switcher in header */
.sunniemi-lang {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 16px;
  white-space: nowrap;
  padding-top: 40px;
  
}

.sunniemi-lang a {
  text-decoration: none;
  opacity: 0.85;
  
}

.sunniemi-lang a.lang-current {
  font-weight: 600;
  opacity: 1;
  
}

.sunniemi-lang .lang-sep {
  padding: 0 8px;
  opacity: 0.5;
  
}

.wp-block-navigation {
  margin-right: 20px;
}


/* Turn FI/EN text into flags */
.sunniemi-lang a {
  font-size: 0;              /* hide FI/EN text */
  width: 26px;
  height: 18px;
  display: inline-block;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  opacity: 0.9;
}

/* Finland */
.sunniemi-lang a[data-lang="fi"] {
  background-image: url("https://flagcdn.com/w40/fi.png");
}

/* English (UK flag) */
.sunniemi-lang a[data-lang="en"] {
  background-image: url("https://flagcdn.com/w40/gb.png");
}

.sunniemi-lang a.lang-current {
  opacity: 1;
  outline: 2px solid rgba(0,0,0,0.25);
  outline-offset: 2px;
}

@media (max-width: 782px) {
  .sunniemi-lang {
    display: flex !important;
    width: auto;
    justify-content: flex-start;
    margin-top: 0;
    margin-right: 20px;
  }
  .wp-block-navigation {
  margin-right: 10px;
}

 .wp-block-navigation__responsive-container-open {
    margin-left: 12px;
  }
}


/*etusivu*/
/* Hide seasonal hero until JS has updated it */
.monthly-hero {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.monthly-hero.monthly-hero-ready {
  opacity: 1;
}




/*YHTEYSTIEDOT*/

/* Responsive Google Map */
/* Wide & low Google Map (contact page style) */
.map-embed {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 25%;   /* MATALAMPI kartta */
}

.map-small {
  max-width: 1000px;    /* LEVEÄMPI */
  margin: 0 auto;
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* Contact form styling */
.wpcf7 form {
  max-width: 600px;
}

.wpcf7 input,
.wpcf7 textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
}

.wpcf7 input[type="submit"] {
  background: #2f5d3a;
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
}


/* CF7 acceptance: checkbox tight next to text */
.wpcf7 .wpcf7-acceptance label {
  display: inline-flex;
  align-items: center;   /* teksti alkaa checkboxin yläreunasta */
  gap: 0.4rem;               /* pieni, hallittu väli */
  margin: 0;
}

/* Kill CF7 default spacing */
.wpcf7 .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

/* Make checkbox compact */
.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  margin: 0;
  width: auto;
  flex: 0 0 auto;
}





/* Facebook Page embed inside column */
.fb-embed {
  width: 100%;
  max-width: 500px;  
  height: 800px;
  
  overflow: hidden;
  border-radius: 12px;
}

.fb-embed iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .fb-embed {
    max-width: 100%;
    height: 480px;
    margin-left: 0;
  }
}



/* --- Footer responsive layout --- */

/* Prevent ugly letter-by-letter wrapping */
footer .wp-block-site-title,
footer .wp-block-site-title a {
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
}


/* --- Mobile --- */
/* Footer responsive: only change layout on mobile */
@media (max-width: 768px) {
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* logo + title full width */
  .footer-row .wp-block-site-logo,
  .footer-row .wp-block-site-title {
    width: 100%;
  }

  /* prevent letter-by-letter wrapping */
  footer .wp-block-site-title,
  footer .wp-block-site-title a {
    word-break: normal;
    overflow-wrap: normal;
    white-space: normal;
    width: 100%;
  }

  /* Media & Text: stack on mobile */
  .footer-row .wp-block-media-text {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .footer-row .wp-block-media-text__media {
    margin: 0 0 0.75rem 0;
  }

  .footer-row .wp-block-media-text__content {
    text-align: left;
  }

  /* contact line wrap */
  footer .footer-row p {
    white-space: normal;
  }
}

footer.wp-block-template-part{
    background-color:white;
}




@media (min-width: 1200px) {

.footerkuvateksti{
    padding-left:200px;
}

/* käyttö ja lajikkeet sivu*/

.details-main > summary {
    font-size: 30px;
    font-weight: 600;
}
}


