/*
Theme Name:latech
Theme URI: https://latech.pl
Author: Michael St. Charles for Latech S.P. z o.o.
Author URI: themefreesia & Michael St. Charles
Description: Theme based on Idyllic by themefreesia and modified my Michael St. Charles for Latech.pl
Version: 1.2.2
Requires at least: 6.7
Requires PHP: 5.6
Tested up to: 6.8.1
Template: idyllic
Text Domain: latech
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Tags: latech, white-label, private-label, cosmetics, custom-brand

All files, unless otherwise stated, are released under the GNU General Public License
version 3.0 (http://www.gnu.org/licenses/gpl-3.0.html)
==================================================
*/

/* ===========================================
   GLOBAL FONT — Century Gothic Pro sitewide
   =========================================== */
body,
input,
textarea,
select,
button {
    font-family: "century-gothic", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "century-gothic", sans-serif;
}

#content {
    padding: 0;
}

.page-title {
	color: #ef6600;
	font-size: 26px;
    font-family: "century-gothic", sans-serif;
	line-height: 1.333;
}

.page-header {
    padding: 0 0 0 0;
    position: relative;
    overflow: hidden;
}

.page-header-block {
    margin-bottom: 0;
    padding: 50px 0 0;
    position: relative;
    text-align: center;
}

.our-feature-one .feature-icon {
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 2;
	display: block;
	float: none;
	height: 70px;
	margin: 0 auto;
	padding: 0;
	width: 70px;
}

.our-feature-box {
    margin-bottom: 0;
    padding: 50px 0 50px;
    position: relative;
    text-align: center;
}

.page-header-block .wrap{
    margin: 0 auto;
    max-width: 2000px;
    padding: 0;
    position: relative;
}

.our-feature-box .wrap,
.fact-figure-box .wrap,
.about-box-bg .wrap {
	margin: 0 auto;
	max-width: 1200px;
	padding: 0;
	position: relative;
}

.latech-full-width-page #primary {
	float: none;
	width: 100%;
}

/* Oferta header grid — 7 columns, responsive */
.oferta-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.oferta-col {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 10px 20px;
    box-sizing: border-box;
}

.oferta-col .feature-title {
    white-space: nowrap;
    font-size: 18px;
}

@media only screen and (max-width: 767px) {
    .oferta-grid {
        flex-wrap: wrap;
        margin-left: 0;
        margin-right: 0;
    }
    .oferta-col {
        flex: 0 0 calc(100% / 3);
    }
}

@media only screen and (max-width: 480px) {
    .oferta-col {
        flex: 0 0 50%;
    }
}

.about-box-bg {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 40px 0 10px;
    position: relative;
}

.latech-fact-figure-box .fact-figure-bg {
    background-attachment: fixed;
}
.latech-fact-figure-box .latech-counter {
    font-size: 56px;
    font-weight: 700;
    font-family: "century-gothic", sans-serif;
    margin-bottom: 0;
    position: relative;
    text-align: left;
    color: #fff;
    display: inline-block;
}
.latech-fact-figure-box .latech-counter:after {
    content: "";
    display: block;
    height: 3px;
    width: 120px;
}
.latech-fact-figure-box .four-column:nth-child(4n+1) .latech-counter:after { background-color: #ff4530; }
.latech-fact-figure-box .four-column:nth-child(4n+2) .latech-counter:after { background-color: #a85ad4; }
.latech-fact-figure-box .four-column:nth-child(4n+3) .latech-counter:after { background-color: #3dace1; }
.latech-fact-figure-box .four-column:nth-child(4n+4) .latech-counter:after { background-color: #acc66b; }
.latech-fact-figure-box .facts-content-wrap p {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
}

.latech-fact-figure-box .latech-fact-figure-item-link {
	color: inherit;
	text-decoration: none;
	display: block;
}

.latech-fact-figure-box .latech-counter-prefix {
	display: inline-block;
	margin-right: 2px;
}

.latech-fact-figure-box .facts-content-wrap p {
	display: block;
	margin-top: 12px;
}

/* No-wrap mode: auto-size columns equally without text wrapping */
.latech-ff-nowrap .column {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
}
.latech-ff-nowrap .four-column {
	flex: 1 1 0;
	width: auto;
	white-space: nowrap;
}
.latech-ff-nowrap .facts-content-wrap p {
	white-space: nowrap;
}

/* Fact-figures responsive */
@media only screen and (max-width: 1023px) {
	.latech-fact-figure-box .column {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}
	.latech-fact-figure-box .four-column {
		float: none;
		width: 50%;
		box-sizing: border-box;
	}
	.latech-ff-nowrap .column {
		flex-wrap: wrap;
	}
	.latech-ff-nowrap .four-column {
		flex: 0 0 50%;
		white-space: normal;
	}
	.latech-ff-nowrap .facts-content-wrap p {
		white-space: normal;
	}
}

@media only screen and (max-width: 767px) {
	.latech-fact-figure-box .four-column {
		width: 50%;
		padding: 0 10px 20px;
	}
	.latech-fact-figure-box .latech-counter {
		font-size: 40px;
	}
}

@media only screen and (max-width: 480px) {
	.latech-fact-figure-box .four-column {
		width: 100%;
		padding: 0 0 20px;
	}
	.latech-ff-nowrap .four-column {
		flex: 0 0 100%;
	}
	.latech-fact-figure-box .latech-counter {
		font-size: 36px;
	}
}

/* Per-box background image: image sets the box size, text overlays */
.latech-ff-has-bg {
	position: relative;
	display: inline-block;
}
.latech-ff-has-bg .latech-ff-bg-img {
	display: block;
	max-width: 100%;
	height: auto;
}
.latech-ff-has-bg .latech-fact-figure-item-link,
.latech-ff-has-bg > .latech-counter-prefix,
.latech-ff-has-bg > .latech-counter,
.latech-ff-has-bg > p {
	position: absolute;
	left: 0;
	right: 0;
}
.latech-ff-has-bg .latech-fact-figure-item-link {
	top: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 10px;
}
/* When there's no link wrapper, position text elements directly */
.latech-ff-has-bg > .latech-counter {
	top: 50%;
	transform: translateY(-50%);
	text-align: center;
}
.latech-ff-has-bg > p {
	bottom: 10px;
	text-align: center;
}

/* ===========================================
   O NAS — Counter row & Founders responsive
   =========================================== */
.onas-counter-row {
	flex-wrap: wrap;
}

.onas-founders img {
	max-width: 100%;
	height: auto;
}

@media only screen and (max-width: 767px) {
	.onas-counter-row {
		gap: 25px !important;
	}
	.onas-counter-row > div {
		flex: 0 0 auto;
	}
	.onas-founders {
		flex-direction: column;
		align-items: center !important;
		text-align: center;
	}
	.onas-founders > div:first-child img {
		width: 200px !important;
	}
}

@media only screen and (max-width: 480px) {
	.onas-counter-row {
		flex-direction: column;
		gap: 20px !important;
	}
}

/* ===========================================
   GALLERY — inherits parent team-member-box +
   team-content-hover + FlexSlider styles.
   Only minimal overrides here.
   =========================================== */
.team-content-hover .team-content-wrap {
	height: 400px;
	overflow: hidden;
}
.team-content-hover .team-content-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ===========================================
   SPONSOR LOGOS
   =========================================== */

.latech-sponsor-logos-section {
	padding: 40px 0 20px;
}

.latech-sponsor-tier {
	margin-bottom: 30px;
	padding-top: 20px;
	border-top: 3px solid transparent;
}

.latech-sponsor-tier .box-header {
	text-align: center;
	margin-bottom: 20px;
}

.latech-sponsor-tier .client-slider img {
	max-height: 80px;
	width: auto;
	margin: 0 auto;
	display: block;
	object-fit: contain;
}

.latech-sponsor-tier .client-slider li {
	text-align: center;
}

/* ===========================================
   CLIENT REVIEWS — multi-item carousel.
   .latech-reviews-slider is initialized by
   latech-sliders.js (not by the parent).
   =========================================== */

.latech-reviews-content {
	margin: 0 auto;
	padding: 40px 20px;
	box-sizing: border-box;
}

.latech-client-reviews .latech-reviews-slider {
	max-width: 100%;
	overflow: hidden;
	margin: 0 auto;
	z-index: 1;
	position: relative;
}

.latech-client-reviews .latech-reviews-slider .slides > li {
	display: flex !important;
}

.latech-client-reviews .testimonial-wrap {
	margin: 0;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.testimonial-box .testimonial-bg {
	background-size: cover;
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	padding: 0;
	position: relative;
}

.latech-client-reviews .testimonial-quote {
	margin-left: 0;
}

/* Custom 1-per-review control nav (replaces FlexSlider's carousel paging) */
.latech-control-nav {
	text-align: center;
	list-style: none;
	margin: 15px 0 0;
	padding: 0;
}
.latech-control-nav li {
	display: inline-block;
	margin: 0 3px;
}
.latech-control-nav a {
	display: block;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: rgba(0,0,0,0.25);
	text-indent: -9999px;
	cursor: pointer;
}
.latech-control-nav a.flex-active {
	background: rgba(0,0,0,0.75);
}

.latech-client-reviews .testimonial-quote p {
	margin: 0;
	text-align: justify;
	position: relative;
	padding-top: 40px;
}

/* Decorative open quote */
.latech-client-reviews .testimonial-quote p::before {
	content: '\201C';
	display: block;
	text-align: center;
	font-size: 60px;
	line-height: 1;
	color: #ccc;
	margin-bottom: 5px;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
}

/* Decorative close quote */
.latech-client-reviews .testimonial-quote p::after {
	content: '\201D';
	display: block;
	text-align: center;
	font-size: 60px;
	line-height: 1;
	color: #ccc;
	margin-top: 5px;
}

/* Star rating — anchored to inside bottom center of review box */
.latech-client-reviews .latech-star-rating {
	margin-top: auto;
	padding-top: 15px;
	text-align: center;
	width: 60%;
	align-self: center;
	font-size: 0;
	line-height: 1;
	display: flex;
	justify-content: center;
}

.latech-client-reviews .latech-star-rating .star {
	flex: 1 1 0;
	text-align: center;
	font-size: 24px;
}

.latech-star-rating .star-full {
	color: #f5a623;
}

.latech-star-rating .star-half {
	color: #f5a623;
	position: relative;
}

.latech-star-rating .star-empty {
	color: #ccc;
}

.latech-client-reviews cite {
	display: block;
	font-style: normal;
	margin-top: 10px;
}

.latech-review-role {
	display: block;
	font-size: 0.85em;
	opacity: 0.8;
}

/* ===========================================
   FAQ ACCORDION
   =========================================== */

.latech-faq {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0 60px;
}

.latech-faq h2 {
    text-align: center;
    margin-bottom: 40px;
    font-family: "century-gothic", sans-serif;
}

.faq-item {
    border-bottom: 1px solid #e8e8e8;
}

.faq-item:first-child {
    border-top: 1px solid #e8e8e8;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: "century-gothic", sans-serif;
    font-size: 22px;
    color: #333;
    transition: color 0.2s;
}

.faq-question-img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    margin-right: 16px;
}

.faq-question:hover,
.faq-question:focus {
    color: #3498db;
    outline: none;
}

.faq-question i {
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
    font-size: 14px;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0;
}

.faq-answer.open {
    max-height: 800px;
    padding: 0 0 24px 0;
}

.faq-answer-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.faq-answer-img {
    flex-shrink: 0;
    width: 80px;
    height: 120px;
    border-radius: 6px;
    object-fit: cover;
}

.faq-answer-text {
    flex: 1;
}

.faq-answer p,
.faq-answer-text p {
    color: #555;
    line-height: 1.8;
    margin: 0;
    font-size: 17px;
}

.faq-answer ol,
.faq-answer-text ol {
    color: #555;
    line-height: 1.8;
    margin: 0;
    padding-left: 20px;
    font-size: 17px;
}

.faq-answer ol li,
.faq-answer-text ol li {
    margin-bottom: 8px;
}

/* ===========================================
   OFERTA PAGE — Services Layout
   (mirrors .our-feature-box / .our-feature-one styling)
   =========================================== */

.latech-oferta-page {
    margin-bottom: 0;
    padding: 80px 0 50px;
    position: relative;
    text-align: center;
}

/* Header — matches Front Page Features .box-header */
.oferta-header {
    margin-bottom: 40px;
    padding: 0 50px;
    padding-bottom: 35px;
    position: relative;
    text-align: center;
}

/* Logo image — matches .box-title-image */
.oferta-title-image {
    margin-bottom: 15px;
}

.oferta-title-image img {
    width: 200px;
    max-width: 200%;
    object-fit: contain;
    height: auto;
}

/* Subtitle — matches .box-sub-title */
.oferta-sub-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 25px;
    font-family: "century-gothic", sans-serif;
}

/* Nav strip */
.oferta-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
}

.oferta-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 24px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.oferta-nav a:hover,
.oferta-nav a:focus {
    background-color: #ef6600;
    color: #fff;
    border-color: transparent;
}

.oferta-nav a i {
    font-size: 13px;
}

/* Service row */
.oferta-service {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.oferta-service:last-child {
    border-bottom: none;
}

/* Image — 3:1 landscape box with portfolio hover */
.oferta-service-img {
    flex-shrink: 0;
    width: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 3 / 1.5;
}

.oferta-service-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transition: opacity 500ms ease-out;
    z-index: 1;
    border-radius: 8px;
}

.oferta-service-img:hover::before {
    opacity: 1;
}

.oferta-service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.oferta-service-img:hover img {
    transform: scale(1.1) rotate(1deg);
}

/* Content */
.oferta-service-content {
    flex: 1;
}

.oferta-service-content h3 {
    font-family: "century-gothic", sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.318;
    color: #ef6600;
    margin: 0 0 12px;
}

.oferta-step-num {
    color: #ef6600;
    margin-right: 4px;
}

.oferta-service-content p {
    color: #555;
    line-height: 1.8;
    margin: 0;
    font-size: 16px;
}

/* OFERTA responsive */
@media (max-width: 768px) {
    .oferta-service {
        flex-direction: column;
        align-items: center;
    }

    .oferta-service-img {
        width: 360px;
        aspect-ratio: 3 / 1;
    }
}

@media (max-width: 600px) {
    .oferta-nav a {
        font-size: 13px;
        padding: 6px 14px;
    }

    .oferta-header {
        padding: 0 15px;
    }
}

/* ===========================================
   CONTACT FORM 7 — LaTech styled
   =========================================== */
.latech-contact-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: "century-gothic", sans-serif;
}

.latech-contact-info {
    flex: 0 0 280px;
}

.latech-contact-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ef6600;
    margin: 0 0 20px;
}

.latech-contact-info p {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin: 0 0 12px;
}

.latech-contact-info .latech-contact-company {
    font-weight: 700;
    font-size: 16px;
}

.latech-contact-info a {
    color: #ef6600;
    text-decoration: none;
}

.latech-contact-info a:hover {
    text-decoration: underline;
}

.latech-contact-form {
    flex: 1 1 0;
    min-width: 300px;
}

.latech-form-row {
    margin-bottom: 18px;
}

.latech-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    margin-bottom: 6px;
}

.latech-form-row .latech-form-half {
    display: inline-block;
    width: calc(50% - 10px);
    vertical-align: top;
}

.latech-form-row .latech-form-half:first-child {
    margin-right: 16px;
}

.latech-contact-form input[type="text"],
.latech-contact-form input[type="email"],
.latech-contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: "century-gothic", sans-serif;
    font-size: 15px;
    color: #333;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.latech-contact-form input[type="text"]:focus,
.latech-contact-form input[type="email"]:focus,
.latech-contact-form textarea:focus {
    border-color: #ef6600;
    outline: none;
    background: #fff;
}

.latech-contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.latech-contact-form input[type="submit"] {
    background: #ef6600 !important;
    color: #fff;
    font-family: "century-gothic", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 40px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.latech-contact-form input[type="submit"]:hover {
    background: #d45800 !important;
}

@media (max-width: 600px) {
    .latech-contact-wrap {
        flex-direction: column;
    }
    .latech-contact-info {
        flex: 1 1 auto;
    }
    .latech-form-row .latech-form-half {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 18px;
    }
}