/*
Theme Name: Vendora
Theme URI: https://vendora.example.com/
Author: Vendora
Author URI: https://vendora.example.com/
Description: A bright, modern platform-style theme for the ice maker industry circle (IceMakerCircle). White layout with a hero, case studies, news feed and sidebar widgets — inspired by the guaqi.com homepage structure.
Version: 1.1.8
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vendora
Tags: light, white, business, one-column, custom-menu, featured-images
*/

/* =========================================================
   Vendora — common styles (header / layout / footer / rail)
   Home-page specific styles live in assets/css/home.css
   ========================================================= */

:root {
	/* light palette: soft off-white bg + white cards + brand ice blue */
	color-scheme: light;
	--vd-bg: #f6f7f8;
	--vd-card: #ffffff;
	--vd-border: #e7e9ec;
	--vd-inset: #f3f4f6;
	--vd-field: #f1f2f4;
	--vd-text: #17181c;
	--vd-text-2: #5b6068;
	--vd-text-3: #9aa0a8;
	--vd-primary: #0284c7;
	--vd-primary-2: #38bdf8;
	--vd-primary-soft: rgba(2, 132, 199, .1);
	--vd-primary-border: rgba(2, 132, 199, .35);
	--vd-green: #16a34a;
	--vd-green-soft: rgba(22, 163, 74, .1);
	--vd-red: #dc2626;
	--vd-red-soft: rgba(220, 38, 38, .08);
	--vd-amber: #d97706;
	--vd-amber-soft: rgba(217, 119, 6, .1);
	--vd-blue: #2563eb;
	--vd-blue-soft: rgba(37, 99, 235, .08);
	--vd-radius: 18px;
	--vd-radius-sm: 12px;
	--vd-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);
	--vd-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--vd-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--vd-text);
	background-color: var(--vd-bg);
	/* soft real-ice photo background, fixed + cover, light overlay keeps cards crisp */
	background-image:
		linear-gradient(rgba(246, 247, 248, .35), rgba(246, 247, 248, .35)),
		url('assets/images/bg-ice.jpg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	list-style: none;
}

button {
	font-family: inherit;
	font-size: inherit;
	cursor: pointer;
	border: none;
	background: none;
	color: inherit;
}

input {
	font-family: inherit;
}

/* ---------- Top bar (inside right column) ---------- */

.vd-topbar {
	display: flex;
	align-items: center;
	gap: 12px;
	/* 14px pushes the topbar down to the card's padding line, aligning it with the logo row */
	margin-top: 14px;
	/* 50px + 20px gap = 70px, aligns the hero top edge with the left nav top edge */
	height: 50px;
}

.vd-logo {
	display: flex;
	align-items: center;
	/* same height as .vd-topbar so both sit on the same horizontal line */
	height: 50px;
	gap: 10px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 0;
	white-space: nowrap;
}

/* wordmark: geometric display face for a designed-logo look */
.vd-logo-text {
	font-family: 'Montserrat', var(--vd-font);
}

.vd-logo-mark {
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: linear-gradient(135deg, var(--vd-primary-2), var(--vd-primary));
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: 0 4px 10px rgba(2, 132, 199, .35);
}

.vd-logo-mark svg {
	width: 20px;
	height: 20px;
}

.vd-logo-circle {
	color: var(--vd-primary);
}

.vd-search {
	flex: 0 1 260px;
	min-width: 120px;
	display: flex;
	align-items: center;
	gap: 9px;
	background: var(--vd-field);
	border: 1px solid var(--vd-text-3);
	border-radius: 999px;
	padding: 9px 16px;
	color: var(--vd-text-3);
	font-size: 15px;
	cursor: text;
	transition: all .2s;
}

.vd-search svg {
	width: 17px;
	height: 17px;
	flex: none;
}

.vd-search:focus-within {
	background: var(--vd-card);
	border-color: var(--vd-primary-border);
	box-shadow: 0 0 0 3px var(--vd-primary-soft);
}

.vd-search input {
	border: none;
	outline: none;
	background: none;
	font-size: 15px;
	color: var(--vd-text);
	width: 100%;
}

.vd-search input::placeholder {
	color: var(--vd-text-3);
}

.vd-header-actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
}

.vd-ask-btn {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border-radius: 999px;
	border: 1px solid var(--vd-primary-border);
	background: var(--vd-primary-soft);
	color: var(--vd-primary);
	font-size: 14.5px;
	font-weight: 700;
	white-space: nowrap;
	transition: all .2s;
}

.vd-ask-btn svg {
	width: 16px;
	height: 16px;
}

.vd-ask-btn:hover {
	background: var(--vd-primary);
	border-color: var(--vd-primary);
	color: #fff;
}

.vd-pill {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border-radius: 999px;
	background: var(--vd-field);
	border: 1px solid var(--vd-text-3);
	font-size: 14px;
	font-weight: 700;
	color: var(--vd-text-2);
	white-space: nowrap;
}

.vd-pill .cur {
	color: var(--vd-red);
	font-weight: 800;
}

.vd-icon-btn {
	width: 38px;
	height: 38px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--vd-text-2);
	transition: all .2s;
	flex: none;
}

.vd-icon-btn svg {
	width: 19px;
	height: 19px;
}

.vd-icon-btn:hover {
	background: var(--vd-field);
	color: var(--vd-text);
}

.vd-avatar {
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: linear-gradient(135deg, #38bdf8, #0284c7);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	flex: none;
}

/* ---------- Shell / 2-column layout ---------- */

.vd-shell {
	max-width: 1330px;
	margin: 0 auto;
	/* 10px top: topbar breathes from the page top, both columns shift together so hero/nav stay aligned */
	padding: 10px 24px 44px;
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

.vd-side-left {
	position: sticky;
	/* card top edge sits at the shell's 10px top padding, aligned with the topbar top edge */
	top: 10px;
	/* fill the viewport so the bottom gap (10px) matches the top gap (10px) */
	height: calc(100vh - 20px);
	padding: 14px;
	display: flex;
	flex-direction: column;
	/* 20px = same as .vd-main gap, keeps the nav top edge aligned with the hero top edge */
	gap: 20px;
	background: var(--vd-card);
	border: 1px solid var(--vd-border);
	border-radius: var(--vd-radius);
	box-shadow: var(--vd-shadow);
}

/* marketing card right below the nav in the left sidebar */
.vd-side-promo {
	padding: 18px;
	border-radius: var(--vd-radius);
	background: linear-gradient(135deg, rgba(2, 132, 199, .12), rgba(56, 189, 248, .06));
	border: 1px solid var(--vd-primary-border);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vd-side-promo-title {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	color: var(--vd-text);
}

.vd-side-promo-text {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--vd-text-2);
}

.vd-side-promo-cta {
	margin-top: 4px;
	align-self: flex-start;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, var(--vd-primary-2), var(--vd-primary));
	border-radius: 999px;
	box-shadow: 0 4px 10px rgba(2, 132, 199, .35);
	transition: transform .15s ease, box-shadow .15s ease;
}

.vd-side-promo-cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(2, 132, 199, .45);
}

.vd-right {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.vd-main {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.vd-home-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 20px;
	align-items: start;
}

.vd-side-right {
	position: sticky;
	/* same 10px stuck offset as the left sidebar */
	top: 10px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ---------- Shared sidebar widgets (home + article) ---------- */

.vd-widget {
	padding: 20px;
}

.vd-widget-title {
	font-size: 17px;
	font-weight: 800;
	display: flex;
	align-items: center;
	gap: 8px;
}

.vd-widget-title svg {
	width: 17px;
	height: 17px;
	color: var(--vd-primary);
}

.vd-welcome-sub {
	font-size: 14px;
	color: var(--vd-text-3);
	margin-top: 2px;
}

.vd-welcome-media {
	position: relative;
	margin-top: 14px;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--vd-inset);
}

.vd-welcome-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vd-play {
	position: absolute;
	left: 12px;
	bottom: 12px;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: rgba(24, 24, 27, .92);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--vd-text);
	box-shadow: var(--vd-shadow);
}

.vd-play svg {
	width: 14px;
	height: 14px;
	margin-left: 2px;
}

.vd-quick {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-top: 14px;
}

.vd-quick-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--vd-text-2);
}

.vd-quick-item .ico {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--vd-inset);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--vd-text-2);
	transition: all .2s;
}

.vd-quick-item .ico svg {
	width: 19px;
	height: 19px;
}

.vd-quick-item:hover .ico {
	background: var(--vd-primary-soft);
	color: var(--vd-primary);
}

.vd-welcome-stats {
	display: flex;
	justify-content: space-around;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--vd-border);
}

.vd-welcome-stats b {
	font-size: 16px;
	font-weight: 800;
	display: flex;
	align-items: center;
	gap: 5px;
}

.vd-welcome-stats svg {
	width: 15px;
	height: 15px;
	color: var(--vd-primary);
}

.vd-join-btn {
	display: block;
	width: 100%;
	margin-top: 14px;
	padding: 11px;
	border-radius: 999px;
	border: 1.5px solid var(--vd-primary);
	color: var(--vd-primary);
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	background: transparent;
	transition: all .2s;
}

.vd-join-btn:hover {
	background: var(--vd-primary-soft);
}

/* ---------- Left nav ---------- */

.vd-nav {
	/* hug the menu items so the promo card sits right below the nav */
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.vd-nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: 12px;
	font-size: 15.5px;
	font-weight: 600;
	color: var(--vd-text);
	transition: all .18s;
	white-space: nowrap;
}

.vd-nav-item svg {
	width: 20px;
	height: 20px;
	flex: none;
}

.vd-nav-item:hover {
	background: var(--vd-field);
	color: var(--vd-text);
}

.vd-nav-item.active {
	background: rgba(2, 132, 199, .35);
	color: var(--vd-primary);
	font-weight: 700;
}

.vd-nav-badge {
	margin-left: auto;
	font-size: 11.5px;
	font-weight: 700;
	padding: 2px 9px;
	border-radius: 999px;
	line-height: 1.5;
}

.vd-nav-badge.green {
	background: var(--vd-green-soft);
	color: var(--vd-green);
}

.vd-nav-badge.red {
	background: var(--vd-red-soft);
	color: var(--vd-red);
}

.vd-nav-badge.amber {
	background: var(--vd-amber-soft);
	color: var(--vd-amber);
}

/* ---------- Cards (shared) ---------- */

.vd-card {
	background: var(--vd-card);
	border: 1px solid var(--vd-border);
	border-radius: var(--vd-radius);
	box-shadow: var(--vd-shadow);
}

.vd-card-head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 22px 24px 0;
}

.vd-card-head .vd-head-ico {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: var(--vd-primary-soft);
	color: var(--vd-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.vd-card-head .vd-head-ico svg {
	width: 19px;
	height: 19px;
}

.vd-card-title {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.3;
}

.vd-card-sub {
	font-size: 14.5px;
	color: var(--vd-text-3);
	margin-top: 1px;
}

.vd-card-more {
	margin-left: auto;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--vd-primary);
	display: flex;
	align-items: center;
	gap: 3px;
	flex: none;
	padding-top: 6px;
}

.vd-card-more svg {
	width: 15px;
	height: 15px;
}

.vd-card-more:hover {
	text-decoration: underline;
}

/* ---------- Buttons ---------- */

.vd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 700;
	padding: 13px 30px;
	cursor: pointer;
	transition: all .2s;
	line-height: 1.3;
}

.vd-btn-primary {
	background: linear-gradient(135deg, var(--vd-primary-2), var(--vd-primary));
	color: #fff;
	box-shadow: 0 6px 16px rgba(2, 132, 199, .35);
}

.vd-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(2, 132, 199, .5);
}

.vd-btn-outline {
	border: 1.5px solid var(--vd-primary-border);
	color: var(--vd-primary);
	background: transparent;
}

.vd-btn-outline:hover {
	background: var(--vd-primary-soft);
}

/* ---------- Footer ---------- */

.vd-footer {
	background: var(--vd-card);
	border-top: 1px solid var(--vd-border);
}

.vd-footer-inner {
	max-width: 1330px;
	margin: 0 auto;
	padding: 30px 24px;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.vd-footer-slogan {
	font-size: 16.5px;
	font-weight: 800;
}

.vd-footer-slogan-sub {
	font-size: 14px;
	color: var(--vd-text-3);
	margin-top: 3px;
}

.vd-footer-links {
	margin-left: auto;
	display: flex;
	gap: 12px 26px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--vd-text-2);
	flex-wrap: wrap;
	justify-content: flex-end;
	max-width: 560px;
}

.vd-footer-links a:hover {
	color: var(--vd-primary);
}

.vd-footer-bottom {
	border-top: 1px solid var(--vd-border);
}

.vd-footer-bottom-inner {
	max-width: 1330px;
	margin: 0 auto;
	padding: 16px 24px;
	font-size: 13.5px;
	color: var(--vd-text-3);
}

/* ---------- Floating right rail ---------- */

.vd-rail {
	position: fixed;
	right: 18px;
	bottom: 28px;
	z-index: 90;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vd-rail-btn {
	width: 42px;
	height: 42px;
	border-radius: 999px;
	background: var(--vd-card);
	border: 1px solid var(--vd-border);
	box-shadow: var(--vd-shadow);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--vd-text-2);
	transition: all .2s;
}

.vd-rail-btn svg {
	width: 19px;
	height: 19px;
}

.vd-rail-btn:hover {
	color: var(--vd-primary);
	border-color: var(--vd-primary-border);
	transform: translateX(-3px);
}

.vd-rail-btn.top {
	opacity: 0;
	pointer-events: none;
	transition: all .25s;
}

.vd-rail-btn.top.show {
	opacity: 1;
	pointer-events: auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
	.vd-shell {
		grid-template-columns: 232px minmax(0, 1fr);
	}

	/* minmax(0, 1fr): let the single column shrink below its content's
	   min-content (nowrap pills / long words), otherwise the track — and
	   the page — overflows horizontally on narrow phones. */
	.vd-home-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.vd-main,
	.vd-side-right {
		min-width: 0;
	}

	.vd-side-right {
		position: static;
	}
}

@media (max-width: 920px) {
	.vd-shell {
		grid-template-columns: 1fr;
		padding: 0 16px 32px;
		gap: 0;
	}

	.vd-side-left {
		position: sticky;
		top: 0;
		z-index: 95;
		height: auto;
		margin: 0 -16px;
		padding: 10px 16px 8px;
		gap: 8px;
		background: rgba(9, 9, 11, .95);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
		/* reset the desktop card look: full-width bar, bottom divider only */
		border: none;
		border-bottom: 1px solid var(--vd-border);
		border-radius: 0;
		box-shadow: none;
		min-width: 0;
	}

	.vd-logo {
		font-size: 18px;
	}

	.vd-nav {
		flex: none;
		flex-direction: row;
		overflow-x: auto;
		padding: 6px;
		gap: 4px;
		scrollbar-width: none;
	}

	.vd-nav::-webkit-scrollbar {
		display: none;
	}

	.vd-nav-item {
		flex: none;
		padding: 9px 14px;
		font-size: 14.5px;
	}

	.vd-nav-item svg {
		width: 18px;
		height: 18px;
	}

	.vd-topbar {
		position: static;
		height: auto;
		margin: 0;
		padding: 10px 0;
		background: none;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		border-bottom: none;
	}

	.vd-search {
		display: none;
	}
}

@media (max-width: 640px) {
	.vd-topbar {
		gap: 8px;
		padding: 8px 0;
	}

	.vd-ask-btn span {
		display: none;
	}

	.vd-ask-btn {
		padding: 9px 12px;
	}

	.vd-pill {
		display: none;
	}

	.vd-rail {
		right: 10px;
	}

	.vd-rail-btn {
		width: 38px;
		height: 38px;
	}
}
