/*
Theme Name: VentPro
Theme URI: https://ventpro.co.th/
Author: GeckoDoIt
Author URI: https://geckodoit.com/
Description: Full Site Editing block theme for Ventpro — indoor climate solutions for Thailand.
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.15
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ventpro
Tags: full-site-editing, block-patterns, block-styles, editor-style, custom-colors, custom-logo, threaded-comments
*/

/* Split stylesheets (see inc/styles.php):
   assets/css/cards.css, front.css, knowledge.css, pages.css, projects.css, casa.css */


/* -------------------------------------------------------------------------
   Base
-------------------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.screen-reader-text {
	position: absolute !important;
	overflow: hidden;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal !important;
}

img {
	max-width: 100%;
	height: auto;
}

.vp-icon img,
.vp-icon .wp-block-image img {
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 0 !important;
	object-fit: contain;
}

.vp-icon.is-style-accent {
	color: var(--wp--preset--color--accent);
}
/* -------------------------------------------------------------------------
   Header
-------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--wp--preset--color--base) 95%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.site-header .wp-block-group.vp-header-inner {
	min-height: 4rem;
}

.vp-logo img,
.site-header .wp-block-site-logo img,
.site-header .vp-logo img {
	width: auto;
	height: auto;
	max-width: 100%;
	border-radius: 0;
	object-fit: contain;
}

.site-header .wp-block-navigation {
	font-size: 0.875rem;
	font-weight: 500;
}

.site-header .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0.35rem 0;
}

.site-header .vp-header-cta .wp-block-button__link {
	padding: 0.65rem 1.1rem;
	font-size: var(--wp--preset--font-size--xs);
	background: var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--white) !important;
}

.site-header .vp-header-cta .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-dark) !important;
	color: var(--wp--preset--color--white) !important;
}

/* -------------------------------------------------------------------------
   Sections
-------------------------------------------------------------------------- */

.vp-section {
	padding-top: var(--wp--preset--spacing--80);
	padding-bottom: var(--wp--preset--spacing--80);
	position: relative;
	z-index: 0;
}

.vp-section.vp-section--surface {
	isolation: isolate;
}

.vp-section-header {
	max-width: 40rem;
	margin-bottom: var(--wp--preset--spacing--70);
}

.vp-section-header h2 {
	margin: 0.5rem 0 0;
}

.vp-section-header p {
	color: var(--wp--preset--color--muted);
	line-height: 1.625;
	margin: 1.25rem 0 0;
}

.vp-section-header.is-centered {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.vp-section-header.is-centered .vp-label {
	justify-content: center;
}

.vp-section--surface {
	background: var(--wp--preset--color--surface);
}

.vp-section--dark {
	background: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--white);
}

.vp-section--dark h2,
.vp-section--dark h3,
.vp-section--dark p {
	color: var(--wp--preset--color--white);
}

.vp-section--dark .vp-muted,
.vp-section--dark .vp-section-header p {
	color: rgba(255, 255, 255, 0.72);
}

/* -------------------------------------------------------------------------
   Footer
-------------------------------------------------------------------------- */

.site-footer {
	background: #f7f9f8;
	border-top: 1px solid var(--wp--preset--color--sage-line);
	color: #50606f;
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--60);
	margin-top: 0;
}

.site-footer h3 {
	color: var(--wp--preset--color--casa-navy);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	margin: 0 0 1rem;
	letter-spacing: 0;
}

.site-footer a {
	color: #5d6d79;
	font-size: var(--wp--preset--font-size--small);
}

.site-footer a:hover {
	color: var(--wp--preset--color--accent);
}

.site-footer .vp-logo img,
.site-footer .vp-logo--footer img {
	width: auto;
	height: auto;
	max-width: 100%;
	border-radius: 0;
	object-fit: contain;
}

.site-footer .wp-block-columns {
	gap: var(--wp--preset--spacing--60) !important;
}

.site-footer .wp-block-column {
	min-width: 0;
}

.site-footer p {
	color: #50606f;
}

.site-footer .has-muted-color {
	color: var(--wp--preset--color--muted) !important;
}

.site-footer .vp-footer-bottom {
	border-top: 1px solid #e2e9e4;
	padding-top: 1.25rem;
	margin-top: 2.5rem;
	font-size: var(--wp--preset--font-size--xs);
	color: #5a6872;
}

.site-footer .vp-footer-bottom a {
	font-size: var(--wp--preset--font-size--xs);
	color: #4a5864;
}

.site-footer .vp-footer-bottom a:hover {
	color: var(--wp--preset--color--accent);
}

.site-footer .vp-footer-links,
.site-footer ul.wp-block-list,
.site-footer .vp-footer-nav .wp-block-navigation__container {
	list-style: none !important;
	padding-left: 0 !important;
	margin: 0;
}

.site-footer .vp-footer-links li,
.site-footer ul.wp-block-list li,
.site-footer .vp-footer-nav .wp-block-navigation-item {
	list-style: none !important;
	margin: 0 0 0.65rem;
	padding-left: 0;
}

.site-footer .vp-footer-links li:last-child,
.site-footer ul.wp-block-list li:last-child,
.site-footer .vp-footer-nav .wp-block-navigation-item:last-child {
	margin-bottom: 0;
}

.site-footer .vp-footer-nav.wp-block-navigation {
	font-size: 0.875rem;
	font-weight: 400;
}

.site-footer .has-muted-color a {
	color: #4a5864;
}

.site-footer .has-muted-color a:hover {
	color: var(--wp--preset--color--accent);
}

.site-footer .vp-footer-nav .wp-block-navigation-item__content {
	color: #4a5864;
	padding: 0;
}

.site-footer .vp-footer-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent);
}

/* -------------------------------------------------------------------------
   Motion
-------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	.vp-card,
	.vp-product-feature,
	.vp-project-card,
	.vp-knowledge-card,
	.vp-solution-card {
		transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
	}

	.vp-hero h1 {
		animation: vp-fade-up 0.7s ease both;
	}

	.vp-hero .vp-hero-lead {
		animation: vp-fade-up 0.7s ease 0.1s both;
	}

	.vp-hero .wp-block-buttons {
		animation: vp-fade-up 0.7s ease 0.18s both;
	}
}

@keyframes vp-fade-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* -------------------------------------------------------------------------
   Responsive
-------------------------------------------------------------------------- */

@media (max-width: 781px) {
	.vp-product-single-header,
	.vp-project-single-header {
		padding-top: 4.5rem;
		padding-bottom: 2rem;
	}

	.vp-product-single,
	.vp-project-single {
		padding-top: 0.5rem;
		padding-bottom: 4rem;
	}

	.vp-product-comparison td:first-child,
	.vp-product-comparison th:first-child {
		white-space: normal;
	}

	.vp-knowledge-article-header,
	.vp-solution-hero {
		padding-top: 4.5rem;
		padding-bottom: 2.5rem;
	}

	.vp-knowledge-article {
		padding-top: 2.5rem;
		padding-bottom: 4rem;
	}

	.vp-knowledge-article-cta {
		padding: 1.75rem 1.25rem;
	}

	.vp-knowledge-related-articles .wp-block-post-template {
		grid-template-columns: 1fr;
	}

	.vp-knowledge-related-grid {
		grid-template-columns: 1fr;
	}

	.vp-knowledge-related-single-card {
		max-width: none;
	}

	.vp-project-hero-media .wp-block-post-featured-image img,
	.vp-project-figure img {
		aspect-ratio: 4 / 3;
	}

	.vp-projects-hero-split {
		align-items: stretch;
	}

	.vp-why-list {
		grid-template-columns: 1fr;
	}

	.vp-product-spotlight .wp-block-columns {
		flex-direction: column;
	}

	.vp-project-featured .wp-block-image img {
		border-radius: 0.75rem 0.75rem 0 0;
		aspect-ratio: 16 / 10;
	}

	.vp-project-featured .vp-card-body {
		border-left: 1px solid var(--wp--preset--color--border);
		border-top: 0;
		border-radius: 0 0 0.75rem 0.75rem;
		padding: 1.5rem;
	}

	.site-header .vp-header-cta {
		display: none;
	}

	.vp-solution-cta-wrap {
		padding-bottom: 4rem;
	}
}

@media (min-width: 782px) {
	body {
		--wp--style--root--padding-right: 2rem;
		--wp--style--root--padding-left: 2rem;
	}
}


/* Split bundles enqueued via inc/styles.php (cards, front, knowledge, pages, projects, casa). */
