/*!
 * Dehaiqz main stylesheet
 * Copyright (C) 2026 Dehaiqz Building Materials
 * Licensed under the GNU GPL v2 or later.
 */

/* ---------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------- */
:root {
	--brand: #0f3f6e;
	--brand-dark: #0a2c4e;
	--brand-light: #e8eff6;
	--accent: #c0261b;
	--accent-dark: #9c1c13;
	--ink: #1b2128;
	--muted: #5d6976;
	--line: #e2e7ed;
	--surface: #ffffff;
	--canvas: #f5f6f8;
	--radius: 4px;
	--shadow: 0 6px 24px rgba(15, 63, 110, 0.08);
	--font-body: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
	--font-head: var(--font-body);
	--container: 1200px;
}

/* ---------------------------------------------------------------
   2. Base
   --------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--canvas);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--brand);
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.menu-toggle:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-head);
	margin: 0 0 0.6em;
	line-height: 1.35;
	color: var(--ink);
	font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.2em; }

ul,
ol { padding-left: 1.4em; }

table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.6em;
}

th,
td {
	border: 1px solid var(--line);
	padding: 10px 14px;
	text-align: left;
}

th { background: var(--brand-light); }

blockquote {
	margin: 0 0 1.6em;
	padding: 16px 22px;
	border-left: 4px solid var(--brand);
	background: var(--brand-light);
	color: var(--brand-dark);
}

pre,
code {
	font-family: Consolas, Monaco, "Courier New", monospace;
	font-size: 0.9em;
	background: #eef1f5;
	border-radius: var(--radius);
}

code { padding: 2px 6px; }

pre {
	padding: 16px;
	overflow: auto;
}

/* Accessibility helpers */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #fff;
	border-radius: var(--radius);
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.3);
	clip: auto !important;
	clip-path: none;
	color: var(--brand-dark);
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	height: auto;
	left: 16px;
	line-height: normal;
	padding: 14px 22px;
	text-decoration: none;
	top: 16px;
	width: auto;
	z-index: 100000;
}

.skip-link:focus { position: fixed !important; }

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

.alignleft {
	float: left;
	margin: 0 1.6em 1em 0;
}

.alignright {
	float: right;
	margin: 0 0 1em 1.6em;
}

.aligncenter {
	display: block;
	margin: 0 auto 1.6em;
}

.wp-caption { max-width: 100%; }
.wp-caption-text {
	font-size: 0.875rem;
	color: var(--muted);
	text-align: center;
}

/* ---------------------------------------------------------------
   3. Buttons
   --------------------------------------------------------------- */
.button,
.btn,
button,
input[type="submit"],
.wp-block-button__link {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 13px 28px;
	border: 0;
	border-radius: var(--radius);
	background: var(--accent);
	color: #fff;
	cursor: pointer;
	text-align: center;
}

.button:hover,
.btn:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	background: var(--accent-dark);
	color: #fff;
}

.button-ghost {
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.75);
	color: #fff;
}

.button-ghost:hover {
	background: #fff;
	color: var(--brand-dark);
}

.button-outline {
	background: transparent;
	border: 2px solid var(--brand);
	color: var(--brand);
}

.button-outline:hover {
	background: var(--brand);
	color: #fff;
}

/* ---------------------------------------------------------------
   4. Top bar
   --------------------------------------------------------------- */
.topbar {
	background: var(--brand-dark);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.83rem;
}

.topbar-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	align-items: center;
	justify-content: space-between;
	min-height: 38px;
}

.topbar p { margin: 0; }

.topbar a { color: rgba(255, 255, 255, 0.9); }

.topbar a:hover { color: #fff; }

.topbar-contact {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.topbar-contact li { margin: 0; }

/* ---------------------------------------------------------------
   5. Header
   --------------------------------------------------------------- */
.site-header {
	background: var(--surface);
	box-shadow: 0 1px 0 var(--line);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 18px;
	padding-bottom: 18px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.custom-logo { max-height: 60px; width: auto; }

.site-logo-mark {
	flex: none;
	width: 54px;
	height: 54px;
	border-radius: 3px;
	background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: 1px;
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.25;
	letter-spacing: 0.5px;
}

.site-title a { color: var(--ink); }
.site-title a:hover { color: var(--brand); }

.site-description {
	margin: 4px 0 0;
	font-size: 0.82rem;
	color: var(--muted);
	letter-spacing: 0.4px;
}

.header-hotline {
	flex: none;
	text-align: right;
	border-left: 1px solid var(--line);
	padding-left: 24px;
}

.header-hotline span {
	display: block;
	font-size: 0.78rem;
	color: var(--muted);
	letter-spacing: 0.5px;
}

.header-hotline strong {
	display: block;
	font-size: 1.5rem;
	color: var(--accent);
	line-height: 1.3;
	letter-spacing: 0.5px;
}

/* ---------------------------------------------------------------
   6. Navigation
   --------------------------------------------------------------- */
.main-navigation {
	background: var(--brand);
	position: relative;
}

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu > li { position: relative; }

.primary-menu > li > a {
	display: block;
	padding: 15px 22px;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.primary-menu > li > a:hover,
.primary-menu > li > a:focus,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a,
.primary-menu > li.current_page_item > a,
.primary-menu > li.current_page_ancestor > a {
	background: var(--accent);
	color: #fff;
}

.primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 40;
	min-width: 210px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	border-top: 3px solid var(--accent);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.primary-menu .sub-menu li { position: relative; }

.primary-menu .sub-menu a {
	display: block;
	padding: 10px 20px;
	color: var(--ink);
	font-size: 0.92rem;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus {
	background: var(--brand-light);
	color: var(--brand);
}

.primary-menu .sub-menu .sub-menu {
	top: -6px;
	left: 100%;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu,
.primary-menu li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.menu-toggle {
	display: none;
	background: var(--brand);
	color: #fff;
	padding: 11px 18px;
	font-size: 0.95rem;
	border-radius: var(--radius);
}

.menu-toggle::after {
	content: "\25BE";
	margin-left: 8px;
	font-size: 0.8em;
}

.menu-toggle[aria-expanded="true"]::after { content: "\25B4"; }

/* ---------------------------------------------------------------
   7. Hero
   --------------------------------------------------------------- */
.hero {
	position: relative;
	min-height: 520px;
	display: flex;
	align-items: center;
	background: var(--brand-dark) center / cover no-repeat;
	color: #fff;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(10, 44, 78, 0.88) 0%, rgba(10, 44, 78, 0.62) 52%, rgba(10, 44, 78, 0.28) 100%);
}

.hero-inner {
	position: relative;
	z-index: 2;
	padding: 90px 0;
	max-width: 660px;
}

.hero-eyebrow {
	display: inline-block;
	margin-bottom: 18px;
	padding: 5px 14px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 2px;
	font-size: 0.8rem;
	letter-spacing: 2px;
}

.hero h1,
.hero .hero-title {
	color: #fff;
	font-size: 2.6rem;
	line-height: 1.35;
	margin-bottom: 20px;
	letter-spacing: 1px;
}

.hero p {
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 30px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.hero-facts {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: rgba(255, 255, 255, 0.18);
}

.hero-facts div {
	background: rgba(10, 44, 78, 0.72);
	padding: 22px 18px;
	text-align: center;
	color: #fff;
}

.hero-facts strong {
	display: block;
	font-size: 1.7rem;
	color: #ffd9d3;
	line-height: 1.3;
}

.hero-facts span {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.82);
}

/* ---------------------------------------------------------------
   8. Generic section shell
   --------------------------------------------------------------- */
.section { padding: 72px 0; }

.section-alt { background: var(--surface); }

.section-brand {
	background: var(--brand);
	color: #fff;
}

.section-brand .section-title,
.section-brand .section-title a { color: #fff; }

.section-head {
	max-width: 760px;
	margin: 0 auto 46px;
	text-align: center;
}

.section-eyebrow {
	display: block;
	margin-bottom: 10px;
	font-size: 0.8rem;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--accent);
	font-weight: 700;
}

.section-title {
	position: relative;
	margin: 0 0 14px;
	font-size: 1.9rem;
	letter-spacing: 1px;
}

.section-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin: 16px auto 0;
	background: var(--accent);
}

.section-head--left .section-title::after { margin-left: 0; }

.section-desc {
	margin: 0;
	color: var(--muted);
	font-size: 0.98rem;
}

.section-brand .section-desc { color: rgba(255, 255, 255, 0.82); }

.section-foot {
	margin-top: 44px;
	text-align: center;
}

/* ---------------------------------------------------------------
   9. Product grid
   --------------------------------------------------------------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.card-thumb {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #dfe4ea;
}

.card-thumb img,
.card-thumb .dehaiqz-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.card:hover .card-thumb img { transform: scale(1.05); }

.card-body {
	padding: 22px 24px 26px;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.card-title {
	margin: 0 0 10px;
	font-size: 1.15rem;
	line-height: 1.5;
}

.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brand); }

.card-excerpt {
	margin: 0 0 18px;
	font-size: 0.92rem;
	color: var(--muted);
	flex: 1 1 auto;
}

.card-more {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--brand);
}

.card-more::after {
	content: " \2192";
}

.card-meta {
	margin: 0 0 10px;
	font-size: 0.8rem;
	color: var(--muted);
	letter-spacing: 0.3px;
}

.card-meta span + span::before {
	content: "·";
	margin: 0 8px;
}

/* ---------------------------------------------------------------
   10. Split section (plant / about)
   --------------------------------------------------------------- */
.split {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 54px;
	align-items: center;
}

.split-media img {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.split-body .section-title::after { margin-left: 0; }

.about-list {
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.about-list li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 12px;
	color: var(--muted);
}

.about-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--brand-light);
	border: 3px solid var(--accent);
}

.spec-table th { width: 34%; }

/* ---------------------------------------------------------------
   11. Stats strip
   --------------------------------------------------------------- */
.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.stats div {
	background: var(--surface);
	padding: 34px 20px;
	text-align: center;
}

.stats strong {
	display: block;
	font-size: 2.1rem;
	line-height: 1.25;
	color: var(--brand);
}

.stats span {
	font-size: 0.88rem;
	color: var(--muted);
	letter-spacing: 0.5px;
}

/* ---------------------------------------------------------------
   12. Process steps
   --------------------------------------------------------------- */
.process-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

.process-step {
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 3px solid var(--brand);
	border-radius: var(--radius);
	padding: 28px 26px;
}

.process-step .step-no {
	display: block;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 2px;
	color: var(--accent);
	margin-bottom: 8px;
}

.process-step h3 {
	margin-bottom: 8px;
	font-size: 1.08rem;
}

.process-step p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--muted);
}

/* ---------------------------------------------------------------
   13. Case / news lists
   --------------------------------------------------------------- */
.case-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

.case-item {
	position: relative;
	display: block;
	border-radius: var(--radius);
	overflow: hidden;
	color: #fff;
	background: var(--brand-dark);
}

.case-item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.case-item:hover img { transform: scale(1.06); }

.case-item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 44, 78, 0) 34%, rgba(10, 44, 78, 0.88) 100%);
}

.case-caption {
	position: absolute;
	z-index: 3;
	left: 22px;
	right: 22px;
	bottom: 20px;
}

.case-caption strong {
	display: block;
	font-size: 1.05rem;
	color: #fff;
}

.case-caption span {
	font-size: 0.83rem;
	color: rgba(255, 255, 255, 0.82);
}

.news-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

/* ---------------------------------------------------------------
   14. CTA band
   --------------------------------------------------------------- */
.cta-band {
	position: relative;
	padding: 68px 0;
	color: #fff;
	background: var(--brand-dark) center / cover no-repeat;
}

.cta-band::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(10, 44, 78, 0.82);
}

.cta-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

.cta-inner h2 {
	color: #fff;
	margin: 0 0 6px;
	font-size: 1.8rem;
}

.cta-inner p {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
}

.cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* ---------------------------------------------------------------
   15. Page header / breadcrumb
   --------------------------------------------------------------- */
.page-header {
	background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 100%);
	color: #fff;
	padding: 46px 0 42px;
}

.page-header h1,
.page-header .page-title {
	color: #fff;
	margin: 0 0 10px;
	font-size: 1.9rem;
	letter-spacing: 1px;
}

.page-header .archive-description {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
	max-width: 820px;
}

.breadcrumbs {
	font-size: 0.84rem;
	color: rgba(255, 255, 255, 0.8);
	margin-top: 10px;
}

.breadcrumbs a { color: rgba(255, 255, 255, 0.95); }
.breadcrumbs a:hover { color: #ffd9d3; }

.breadcrumbs span + span::before {
	content: "/";
	margin: 0 8px;
	opacity: 0.6;
}

/* ---------------------------------------------------------------
   16. Content area
   --------------------------------------------------------------- */
.site-main { padding: 56px 0 68px; }

.content-area {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 44px;
	align-items: start;
}

.no-sidebar .content-area { grid-template-columns: minmax(0, 1fr); }

.dehaiqz-full-width .content-area { grid-template-columns: minmax(0, 1fr); }

.entry {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 36px 40px;
}

.entry + .entry { margin-top: 26px; }

.entry-header { margin-bottom: 18px; }

.entry-title {
	margin: 0 0 12px;
	font-size: 1.7rem;
	line-height: 1.4;
}

.entry-title a { color: var(--ink); }
.entry-title a:hover { color: var(--brand); }

.entry-meta {
	font-size: 0.85rem;
	color: var(--muted);
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line);
}

.entry-meta > span + span::before {
	content: "|";
	margin: 0 10px;
	color: var(--line);
}

.entry-thumb { margin-bottom: 24px; }

.entry-thumb img { width: 100%; border-radius: var(--radius); }

.entry-content { font-size: 1rem; }

.entry-content h2 { margin-top: 1.6em; }

.entry-content img { border-radius: var(--radius); }

.entry-footer {
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 0.85rem;
	color: var(--muted);
}

.entry-footer > span + span::before {
	content: "|";
	margin: 0 10px;
	color: var(--line);
}

.sticky .entry-title::before {
	content: "置顶";
	display: inline-block;
	margin-right: 10px;
	padding: 2px 8px;
	vertical-align: middle;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 1px;
	background: var(--accent);
	color: #fff;
	border-radius: 2px;
}

.page-links { margin-top: 20px; }

/* Pagination */
.pagination,
.navigation.pagination {
	margin-top: 40px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.nav-links .page-numbers {
	display: inline-block;
	min-width: 42px;
	padding: 9px 12px;
	text-align: center;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	font-size: 0.92rem;
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.post-navigation {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-top: 30px;
}

.post-navigation a {
	display: block;
	padding: 18px 20px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 0.92rem;
}

.post-navigation .nav-subtitle {
	display: block;
	font-size: 0.78rem;
	color: var(--muted);
	letter-spacing: 1px;
	margin-bottom: 4px;
}

/* ---------------------------------------------------------------
   17. Sidebar & widgets
   --------------------------------------------------------------- */
.widget-area .widget {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px 26px;
	margin-bottom: 24px;
}

.widget-title,
.widget .widget-title {
	position: relative;
	margin: 0 0 18px;
	padding-bottom: 12px;
	font-size: 1.08rem;
	border-bottom: 1px solid var(--line);
}

.widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 46px;
	height: 3px;
	background: var(--accent);
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget ul li {
	padding: 9px 0;
	border-bottom: 1px dashed var(--line);
	font-size: 0.93rem;
}

.widget ul li:last-child { border-bottom: 0; }

.widget ul ul { padding-left: 14px; }

.widget_tag_cloud a {
	display: inline-block;
	margin: 0 8px 8px 0;
	padding: 5px 12px;
	background: var(--brand-light);
	border-radius: 2px;
	font-size: 0.85rem !important;
}

.tagcloud a {
	display: inline-block;
	margin: 0 8px 8px 0;
	padding: 5px 12px;
	background: var(--brand-light);
	border-radius: 2px;
	font-size: 0.85rem !important;
}

.widget .search-form { display: flex; gap: 8px; }

.widget select { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------------------------------------------------------------
   18. Forms
   --------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
	width: 100%;
	padding: 12px 14px;
	font-family: var(--font-body);
	font-size: 0.95rem;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

textarea { min-height: 150px; resize: vertical; }

.search-form {
	display: flex;
	gap: 10px;
}

.search-form label { flex: 1 1 auto; margin: 0; }

/* ---------------------------------------------------------------
   19. Comments
   --------------------------------------------------------------- */
.comments-area {
	margin-top: 40px;
	padding: 34px 40px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.comments-title,
.comment-reply-title {
	font-size: 1.25rem;
	margin-bottom: 22px;
}

.comment-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin: 0;
	padding-left: 34px;
	list-style: none;
}

.comment-body {
	padding: 20px 0;
	border-top: 1px solid var(--line);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
}

.comment-author img { border-radius: 50%; }

.comment-metadata {
	font-size: 0.8rem;
	color: var(--muted);
	margin: 6px 0 12px;
}

.comment-content { font-size: 0.95rem; }

.reply { font-size: 0.85rem; }

.comment-form p { margin-bottom: 16px; }

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9rem;
	font-weight: 700;
}

.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-form-cookies-consent input { width: auto; margin-top: 6px; }

/* ---------------------------------------------------------------
   20. Footer
   --------------------------------------------------------------- */
.site-footer {
	background: var(--brand-dark);
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.92rem;
}

.footer-widgets {
	padding: 58px 0 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-widget-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

.site-footer .widget-title {
	color: #fff;
	font-size: 1.05rem;
	border-bottom-color: rgba(255, 255, 255, 0.18);
}

.site-footer .widget ul li { border-bottom-color: rgba(255, 255, 255, 0.12); }

.site-footer a { color: rgba(255, 255, 255, 0.86); }
.site-footer a:hover { color: #ffd9d3; }

.footer-contact {
	padding: 46px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-contact-grid {
	display: grid;
	grid-template-columns: 1.2fr repeat(3, 1fr);
	gap: 30px;
	align-items: start;
}

.footer-contact h2 {
	color: #fff;
	font-size: 1.35rem;
	margin: 0 0 10px;
}

.footer-contact .footer-brand-desc {
	margin: 0;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item span {
	display: block;
	font-size: 0.78rem;
	letter-spacing: 1px;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 4px;
}

.footer-contact-item strong {
	display: block;
	color: #fff;
	font-size: 1.02rem;
	line-height: 1.6;
	word-break: break-word;
}

.footer-contact-item strong.hot { color: #ffd9d3; font-size: 1.3rem; }

.site-info {
	padding: 24px 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.65);
}

.site-info-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	align-items: center;
	justify-content: space-between;
}

.site-info a { color: rgba(255, 255, 255, 0.75); }

.site-info .sep { opacity: 0.5; margin: 0 6px; }

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------------------------------------------------------------
   21. Download template
   --------------------------------------------------------------- */
.download-box {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 34px;
	align-items: start;
}

.download-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 4px solid var(--accent);
	border-radius: var(--radius);
	padding: 32px 36px;
}

.download-card h2 { margin-top: 0; }

.download-facts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	margin: 24px 0 28px;
}

.download-facts div {
	background: var(--surface);
	padding: 16px 18px;
}

.download-facts span {
	display: block;
	font-size: 0.78rem;
	color: var(--muted);
	letter-spacing: 1px;
}

.download-facts strong { font-size: 1rem; color: var(--ink); }

.download-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

.file-tree {
	margin: 0;
	padding: 18px 20px;
	background: #eef1f5;
	border-radius: var(--radius);
	font-size: 0.85rem;
	line-height: 1.85;
	overflow-x: auto;
}

/* ---------------------------------------------------------------
   22. Responsive
   --------------------------------------------------------------- */
@media (max-width: 1080px) {
	.header-hotline { display: none; }
	.split { grid-template-columns: 1fr; gap: 34px; }
	.content-area { grid-template-columns: minmax(0, 1fr); }
	.footer-contact-grid { grid-template-columns: repeat(2, 1fr); }
	.hero h1,
	.hero .hero-title { font-size: 2.2rem; }
}

@media (max-width: 900px) {
	.card-grid,
	.process-grid,
	.case-grid,
	.news-list,
	.footer-widget-grid { grid-template-columns: repeat(2, 1fr); }
	.hero-facts { grid-template-columns: repeat(2, 1fr); }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.download-box { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
	.menu-toggle { display: inline-block; }
	.header-inner { flex-wrap: wrap; }
	.main-navigation .container { padding: 0; }
	.primary-menu {
		display: none;
		flex-direction: column;
	}
	.primary-menu.is-open { display: flex; }
	.primary-menu > li { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
	.primary-menu > li > a { padding: 14px 20px; }
	.primary-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border-top: 0;
		background: rgba(0, 0, 0, 0.16);
		display: none;
	}
	.primary-menu li.is-open > .sub-menu { display: block; }
	.primary-menu .sub-menu a { color: rgba(255, 255, 255, 0.92); padding-left: 34px; }
	.primary-menu .sub-menu a:hover,
	.primary-menu .sub-menu a:focus { background: rgba(0, 0, 0, 0.2); color: #fff; }
	.primary-menu .sub-menu .sub-menu a { padding-left: 48px; }
	.card-grid,
	.process-grid,
	.case-grid,
	.news-list,
	.footer-widget-grid,
	.footer-contact-grid,
	.post-navigation,
	.download-facts { grid-template-columns: 1fr; }
	.section { padding: 52px 0; }
	.hero { min-height: 0; }
	.hero-inner { padding: 62px 0; }
	.hero h1,
	.hero .hero-title { font-size: 1.8rem; }
	.entry,
	.comments-area,
	.download-card { padding: 24px 22px; }
	.section-title { font-size: 1.5rem; }
	.cta-inner h2 { font-size: 1.45rem; }
	.topbar-inner { justify-content: center; text-align: center; }
	.topbar-note { display: none; }
	.site-info-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
	.hero-facts,
	.stats { grid-template-columns: 1fr; }
	.primary-menu > li > a { font-size: 0.95rem; }
}

/* WordPress core alignment classes */
.alignwide { margin-left: -40px; margin-right: -40px; max-width: calc(100% + 80px); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }

@media (max-width: 760px) {
	.alignwide { margin-left: 0; margin-right: 0; max-width: 100%; }
}
