/*
Theme Name: aplinka
Author: Deivis
Version: 1.0
*/
body {margin:0;padding:0;font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;background: url('/wp-content/themes/aplinka/images/vejos-fonas.png') fixed no-repeat center center;background-size: cover;min-height: 100vh;}
a {text-decoration: none;}
.wraperis,.atsiliepimai {max-width:1428px;margin:auto;display:block;}
header { display:block;width:100%;position: relative; margin:0px auto 60px auto;}
.logo a {color: #fff;}
.logo {text-align:center;position:relative;margin:0px auto;font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 120px;color: #ffffff;text-transform: uppercase;letter-spacing: 8px;text-shadow: 2px 2px 8px rgba(0,0,0,0.7);animation: float 4s ease-in-out infinite;}
.phone_number {font-size: 30px;font-weight: bold;color: #fff;display: flex;gap: 8px;text-decoration: none;transition: color 0.3s ease;margin: auto;text-align: center;justify-content: center;align-items: center;}
.phone_number:hover {color: #555;cursor: pointer;}
.phone_icon {
font-size: 34px;
    color: white;
    font-weight: 400;
    display: flex;
    height: 56px;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
}
.call {display: flex;flex-direction: column;}
.call small {
    font-size: 14px;
    text-align: left;
    color: black;
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: -8px;
}
.phone_icon {
    font-size: 34px;
    color: white;
    font-weight: 400;
    display: flex;
    height: 56px;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
}
.after-header {display: flex;justify-content: center;align-items: center;flex-wrap: wrap;gap: 20px;padding: 50px;}
h1.slogan {text-align: center;color: #d3fba9;-webkit-text-stroke: 1px rgb(0 0 0 / 45%);text-transform: uppercase;background: rgb(255 244 244 / 14%);padding: 15px 35px;max-width: 713px;font-size: 30px;margin: 0 auto 15px auto;}
.service-wrapper {position: relative;box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);padding:15px;background: rgb(113 166 57);clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);}
.after-header {display: flex;flex-wrap: wrap;justify-content: center;gap: 70px;}
.paslauga a:hover {transform: scale(0.5);animation: float 1s ease-in-out infinite;}
.paslauga {opacity: 0;transform: scale(0.5);animation: grow 1.2s ease-out forwards;}
.paslauga:nth-child(1) { animation-delay: 0.3s; }
.paslauga:nth-child(2) { animation-delay: 0.5s; }
.paslauga:nth-child(3) { animation-delay: 0.7s; }
.paslauga:nth-child(4) { animation-delay: 0.9s; }
.paslauga:nth-child(5) { animation-delay: 1.1s; }
.paslauga:nth-child(6) { animation-delay: 1.3s; }

@keyframes grow {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}
.service {width: 220px;height: 185px;padding:15px;background: rgb(127 186 65 / 62%);clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);display: flex;align-items: center;justify-content: center;text-align: center;}
.service img {width: 114%;height: auto;}
.paslauga:hover .service-wrapper, .paslauga:hover .titlas { background: rgb(98 175 16);}
.titlas {position: relative;padding: 7px;background: #71a639;width: 180px;height:53px;top: -50px;
right: -43px;border-bottom-left-radius: 7px;border-bottom-right-radius: 7px;text-align: center;font-weight: 300;
color: #ffffff;text-transform: uppercase;font-size: 20px;display: flex;align-items: center;justify-content: space-around;}
.titlas::after {content: "";position: absolute;left: 50%;transform: translateX(-50%);bottom: -15px;width: 95%;height: 12px;background: rgba(0, 0, 0, 0.9);filter: blur(6px);border-radius: 50%;z-index: -1;}
.content_wrapper {padding: 20px;}
.custom_title {color: #2e7d32;font-size: 36px;margin-top:0;margin-bottom: 20px;text-align: center;}
.custom_content {background: rgba(255, 255, 255, 0.8);padding: 30px;border-radius: 10px;font-size: 24px;line-height: 1.6;color: #333;}
.wp-block-columns-is-layout-flex {display: flex;flex-direction: row;align-items: center;}
.kaina-box {background: rgba(255, 255, 255);border-left: 4px solid #71a639;padding: 15px 20px;margin-top: 20px;font-size: 18px;color: #293b16;box-shadow: 0 2px 8px rgba(0,0,0,0.1);border-radius: 6px;max-width: 400px;}
.kaina-box .kaina {font-size: 20px;color: #759003;font-weight: bold;}
.cta-button {display: inline-block;margin: 40px auto 0;padding: 15px 30px;background-color: #71a639;color: #fff;text-transform: uppercase;font-weight: bold;border-radius: 30px;box-shadow: 0px 4px 10px rgba(0,0,0,0.3);text-decoration: none;font-size: 18px;transition: background-color 0.3s, transform 0.3s;}
.cta-button:hover {background-color: #5e8e2b;transform: translateY(-2px);}

.wpcf7 form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 20px;
}
.form-row.double p {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0px;
}


.form-row.double input {
  flex: 1 1 48%;
}


.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  background: #fff;
  color: #000;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="tel"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 textarea::placeholder {
  opacity: 1;
  color: #888;
  transition: opacity 0.2s;
}

.wpcf7 input[type="text"]:focus::placeholder,
.wpcf7 input[type="tel"]:focus::placeholder,
.wpcf7 input[type="email"]:focus::placeholder,
textarea:focus::placeholder {
  opacity: 0;
}

.wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

.wpcf7 input[type="submit"] {
  background-color: #2d511f;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.wpcf7 input[type="submit"]:hover {
  background-color: #3b6c2b;
}
.wp-block-column.is-layout-flow.wp-block-column-is-layout-flow {
    margin-left: 20px;
}
.worktime-box {
  background: #f6f6f0;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #7ba045;
  font-size: 15px;
  line-height: 1.4;
}
.matsiliepimai, .glsr-button {
  display: inline-block;
  margin: 20px auto;
  padding: 10px 20px;
    background-color: #6c9518;
    box-shadow: 0 2px 6px rgb(0 0 0 / 59%);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

/* Tėvinio elemento centravimas */
.matsiliepimai-wrapper {
  text-align: center;
}

/* Tėvinis konteineris – išdėsto korteles */
.glsr-reviews {
  display: flex !important;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Kiekviena atsiliepimo kortelė */
.glsr-review {
  flex: 1 1 calc(33.333% - 20px);
  box-sizing: border-box;
background: #32501261;
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgb(0 0 0 / 59%);
}
.glsr-review-author {
  display: none !important;
}
/* Mažuose ekranuose – po 1 arba 2 */
@media (max-width: 1024px) {
  .glsr-review {
    flex: 1 1 calc(50% - 20px);
  }
}
@media (max-width: 640px) {
  .glsr-review {
    flex: 1 1 100%;
  }
}


.footer {height: 150px;margin-top: -20px;position: relative;z-index: 2;}
.footer-content {padding: 40px;text-align: center;color: #000;font-size: 18px;}
.footer-content p {margin-top: 27px;}
.footer-content p a {color: #fff;}

.wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.wp-block-gallery .wp-block-image {
  margin: 0 !important;
}

.wp-block-gallery .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
	
.logo {font-size: 16vw;margin:10px auto;}
.after-header {padding:0;}
.callTo a {position: fixed;bottom: 0;left: 0;right: 0;display: block;padding: 10px;font-size: 25px;text-align: center;background: #71a639;color: white;z-index: 2;}
.wp-block-columns-is-layout-flex {flex-direction: column;}
.content_wrapper {padding: 10px;}
.custom_content {padding: 15px;border-radius: 3px;}
.wp-block-column.is-layout-flow.wp-block-column-is-layout-flow {margin-left: 0px;}
  .wp-block-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
	.callTo {display:none;}
}