/*
Theme Name: Griovimas Solid
Author: Deividas
Version: 1.0
*/

:root {
	--blackas: #000000; /* juodas*/
    --primary: #1f2933;        /* Antracitas */
    --accent: #ff7a00;         /* Statybinė oranžinė */
    --light: #f5f5f5;
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--light);
    color: var(--primary);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 20px;
}

.btn, .btn-sticky-call {
    background: var(--accent);
    color: #fff;
    padding: 15px 25px;
    text-decoration: none;
	font-size:20px;
    font-weight: bold;
    text-align:center;
    border-radius: 4px; display:block;margin:auto;width:300px;
}
.btn:hover {opacity: 0.9;}

header {
    background: var(--blackas);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}
.logo a {font-size: 25px;text-transform: uppercase; color: #fff;}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero {
    background: var(--primary);
    color: white;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
span.checkas {color:#ff7a00;}
.form-box {
padding: 45px;
    border-radius: 5px !important;
    background: rgb(31 31 31);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgb(62 62 62);
    box-shadow: 0 20px 40px rgb(0 0 0 / 49%), inset 0 1px 0 rgb(62 62 62);
}
.form-row {margin-bottom: 0px;}
.two-col {display: flex;gap: 10px;}
.two-col .field {flex: 1;}
.form-box input,
.form-box textarea {
    width: 100%;
    padding: 15px;
    border-radius: 7px;
    border: 1px solid rgb(75 75 75);
    background: rgb(31 41 51);
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}
.form-box input:focus,
.form-box textarea:focus {
    outline: none;
    border-color: #ff7a00;
    background: #999;
    box-shadow: 0 0 0 4px rgba(255,122,0,0.15);
}
.form-box input[type="submit"] {
    width: 280px;margin:auto;display:block;
    padding: 15px;
    border-radius: 3px;
    border: none;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #693200, #ff7a00);
    color: white;
    cursor: pointer;
    transition: 0.3s ease;
    text-transform: uppercase;
}

.form-box input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255,122,0,0.35);
}
textarea::placeholder, input::placeholder {
    color: #fff;
    opacity: 1;
    font-style: italic;
}

input:-ms-input-placeholder {
    color: #fff;
}

input::-ms-input-placeholder {
    color: #fff;
}

.glsr-reviews {
    display: flex !important;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 10px;
    cursor: grab;
    scrollbar-width: none;
}

.glsr-reviews::-webkit-scrollbar {
    display: none;
}
.glsr-default .glsr-review-rating {
    justify-content: flex-start;
}
.glsr-review {
    flex: 0 0 calc(33.33% - 20px); /* Rodo po 4 (25%). Jei norite 3, keiskite į 33.33% */
    min-width: 280px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.glsr-review-title {
    display: none !important;
}

.glsr-review-author {
    order: -2;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #333;
}
.glsr-review-rating {
    order: -1;
    margin-bottom: 10px;
}
.glsr-review-date {
    font-size: 0.85em;
    color: #888;
    margin-top: auto;
}

.glsr-reviews:active {
    cursor: grabbing;
}
/* Planšetėms: rodom po 2-3 */
@media (max-width: 1024px) {
    .glsr-review { flex: 0 0 calc(50% - 20px); }
}

/* Telefonams: rodom po 1 pilną */
@media (max-width: 600px) {
    .glsr-review { flex: 0 0 calc(100% - 20px); }
}
.card {
    background: white;
    padding: 30px;
    border-radius: 6px;
    text-align: center;
	min-height: 250px;
}

/* Pagrindinis galerijos konteineris */
.gallery {
    display: block;
    column-count: 4; /* Stulpelių skaičius desktop'e */
    column-gap: 15px;
    width: 100%;
    margin: 0 auto;
}

/* Kiekviena nuotrauka */
.gallery-item {
    display: inline-block !important; /* Svarbu Masonry efektui */
    width: 100% !important;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    break-inside: avoid; /* Neleidžia nuotraukai "persikirsti" tarp stulpelių */
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 8px;
}

/* Paslepiame BR žymes, kurias generuoja WP default galerija */
.gallery br {
    display: none !important;
}

/* Ribojimo logika: paslepiame viską nuo 9-os nuotraukos */
.gallery-item.is-hidden {
    display: none;
}

/* Prisitaikymas mobiliems */
@media (max-width: 900px) {
    .gallery { column-count: 3; }
}
@media (max-width: 600px) {
    .gallery { column-count: 2; }
}

.testimonials {
    padding: 80px 0;
    background: var(--light);
}

footer {
    background: var(--primary);
    color: white;
    padding: 40px 0;
    text-align: center;
}

@media(max-width: 768px){
    .hero-grid,
    .services-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
	.head-c {display:none;}
	.logo {text-align: center;}
	.header-flex {justify-content: center;}
	 .two-col {
        flex-direction: column;
    }
	.btn-sticky-call {
		width: 100%;border-radius: 0;box-sizing: border-box;
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    background: #e97205;
    color: white;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transform: translateY(120%);
    transition: transform 0.4s ease-in-out;
}
.btn-sticky-call.is-visible {
    transform: translateY(0); bottom: 0px;
}
}
