/* ============================================================
   Teal theme — base styles, tokens, layout.
   Header design lives in header.css (loaded after this file).
   ============================================================ */

:root {
	/* Palette — sampled from the client reference shots (color.PNG / co2.PNG):
	   warm near-black + burnt orange on off-white. */
	--accent: #C97222;        /* burnt orange — primary CTA, key accents */
	--accent-dark: #AD5D19;   /* hover / pressed, stat numerals */
	--accent-wash: #F5E0C8;   /* chips, badge fills */
	--accent-ink: #8A4D15;    /* text on accent-wash */

	/* Text + surfaces */
	--ink: #1A1512;           /* headings, wordmark, dark bands */
	--ink-soft: #4F463B;
	--nav: #1A1512;
	--nav-hover: #C97222;
	--link: #AD5D19;
	--link-dark: #8A4D15;
	--link-wash: #F8F3EC;
	--body: #665A4D;
	--muted: #8C7F70;
	--line: #E7DFD5;
	--line-strong: #D8D0C7;
	--bg: #FDFBF8;
	--header-bg: #FDFBF8;
	--surface: #F8F3EC;
	--surface-alt: #FFFFFF;

	/* Dark bands (footer + footer CTA) */
	--dark: #1A1512;
	--dark-2: #221C18;
	--dark-line: #3F3A37;
	--on-dark: #C9C2BA;
	--on-dark-muted: #8C827A;
	--on-dark-accent: #E0A65F;

	/* Shape */
	--radius: 10px;
	--shadow-md: 0 8px 28px rgba(26, 21, 18, .1);

	/* Type */
	--font-title: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--body);
	background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-title);
	color: var(--nav);
	line-height: 1.25;
	margin: 0 0 .5em;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: none; }

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

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

.container {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px;
}

.site-main { min-height: 50vh; padding: 20px 0 60px; }

.entry { padding: 24px 0; border-bottom: 1px solid var(--line); }
.entry-title { font-size: 26px; margin-bottom: 8px; }
.entry-title a { color: var(--nav); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed;
	top: 12px; left: 12px;
	z-index: 9999;
	width: auto; height: auto;
	clip: auto;
	background: #fff;
	color: var(--nav);
	padding: 10px 16px;
	border-radius: 8px;
	box-shadow: var(--shadow-md);
}

/* ---------- Footer ---------- */
/* Warm black block sampled from the client reference (co2.PNG). */
.site-footer {
	background: #1A1512;
	padding: 60px 0 0;
}
.footer-inner { padding: 0 24px; }
.footer-grid {
	display: grid;
	grid-template-columns: minmax(300px, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(240px, 1.35fr);
	gap: 40px 34px;
}
.site-footer .brand { gap: 0; }
.site-footer .brand-word { color: #E0A65F; }
.site-footer .brand-dot { color: #C97222; }
/* The header logo is dark ink — flatten it to a silhouette and dye it the site brown. */
.site-footer .custom-logo-link img {
	max-height: 38px;
	filter: brightness(0) invert(33.65%) sepia(85.93%) saturate(417.4%) hue-rotate(347.3deg) brightness(124.7%);
}
.footer-blurb {
	margin: 18px 0 22px;
	max-width: 300px;
	font-size: 14.5px;
	line-height: 1.75;
	color: #8C827A;
}

/* Footer social icons — URLs managed under 后台 → 社交媒体设置 */
.footer-social { display: flex; align-items: center; gap: 10px; }
.social-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: #fff;
	transition: transform .2s ease, opacity .2s ease;
}
.social-circle:hover { color: #fff; transform: translateY(-2px); opacity: .85; }
.social-facebook { background: #1877f2; }
.social-linkedin { background: #0a66c2; }
.social-youtube { background: #e62117; }
.social-x { background: #000; }
.social-whatsapp { background: #25d366; }
.social-instagram { background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 60%, #6228d7 100%); }
.social-tiktok { background: #010101; }

.footer-contact-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.footer-contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.fcl-icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: #E0A65F;
	transition: background .2s ease, color .2s ease;
}
.footer-contact-list li:hover .fcl-icon {
	background: #C97222;
	color: #fff;
}
.fcl-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 13.5px;
	line-height: 1.6;
	color: #8C827A;
}
.fcl-text strong { color: #C9C2BA; font-weight: 600; }
.fcl-text a { color: #8C827A; text-decoration: none; }
.fcl-text a:hover { color: #E0A65F; }
.footer-title {
	margin: 0 0 18px;
	font-family: var(--font-title);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent);
}
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 11px;
}
.footer-menu a {
	display: inline-block;
	color: #C9C2BA;
	font-size: 14.5px;
	line-height: 1.4;
	text-decoration: none;
	transition: color .18s ease, padding-left .18s ease;
}
.footer-menu a:hover {
	color: #E0A65F;
	padding-left: 3px;
}
.footer-bottom {
	margin-top: 52px;
	padding: 22px 0 26px;
	border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-copy { margin: 0; font-size: 13.5px; color: #8C827A; }

/* ---------- Footer CTA ---------- */
/* Same block as .site-footer (#1A1512) — the band merges into the footer,
   so the copy uses the footer's light palette. */
.footer-cta {
	padding: 64px 0 12px;
	background: #1A1512;
}
.footer-cta-inner {
	display: grid;
	/* The form column must stay > 536px: Forminator collapses a form narrower
	   than 480px into .forminator-size--small, which stacks its half-width rows. */
	grid-template-columns: minmax(0, 1fr) 560px;
	gap: 64px;
	align-items: center;
}
.footer-cta-title {
	margin: 0;
	font-family: var(--font-title);
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.5px;
	color: var(--accent);
}
.footer-cta-lede {
	max-width: 470px;
	margin: 18px 0 0;
	font-size: 15.5px;
	line-height: 1.8;
	color: #8C827A;
}
.footer-cta-list {
	list-style: none;
	margin: 30px 0 0;
	padding: 0;
	display: grid;
	gap: 13px;
}
.footer-cta-point {
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: 14.5px;
	color: #C9C2BA;
}
.footer-cta-tick {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border: 1px solid rgba(224, 166, 95, .4);
	border-radius: 50%;
	color: #E0A65F;
}
.footer-cta-tick svg { width: 11px; height: 11px; }
.footer-cta-form {
	padding: 28px 28px 30px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--shadow-md);
}
.footer-cta-form-title {
	margin: 0 0 18px;
	font-family: var(--font-title);
	font-size: 18px;
	font-weight: 800;
	color: #1A1512;
}
/* Quote-form submit (Forminator #26) — same brown as the site CTAs, in both
   places the form renders: the footer CTA card and the product sidebar.
   Forminator's own sheet loads after this one with 5-class selectors, so the
   properties it also sets need !important (same as the field overrides in product.css). */
.footer-cta-form .forminator-button-submit,
.product-quote-form .forminator-button-submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: 46px !important;
	padding: 0 26px !important;
	background: var(--accent) !important;
	color: #fff !important;
	font-family: var(--font-title) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	border: 0 !important;
	border-radius: 999px !important;
	box-shadow: 0 4px 12px rgba(201, 114, 34, .28) !important;
	transition: background .18s ease, transform .18s ease;
}
.footer-cta-form .forminator-button-submit:hover,
.product-quote-form .forminator-button-submit:hover {
	background: var(--accent-dark) !important;
	color: #fff !important;
	transform: translateY(-1px);
}

@media (max-width: 1024px) {
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
	.footer-brand { grid-column: 1 / -1; }
	.footer-blurb { max-width: 480px; }
	.footer-cta { padding: 46px 0 10px; }
	.footer-cta-inner { grid-template-columns: 1fr; gap: 34px; }
	.footer-cta-lede { max-width: none; }
	.footer-cta-form { width: 100%; max-width: 560px; }
}
@media (max-width: 520px) {
	.site-footer { padding-top: 44px; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.footer-bottom { margin-top: 36px; }
	.footer-cta-form { padding: 22px 18px 24px; }
}

/* ---------- Floating quick-contact bar (footer.php, every page) ---------- */
.footer-float {
	position: fixed;
	right: 0;
	bottom: 18vh;
	z-index: 900;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.float-item { position: relative; }
.float-btn {
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent);
	color: #fff;
	border: 0;
	border-radius: 6px 0 0 6px;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(26, 21, 18, .2);
	transition: background .2s ease, transform .2s ease;
}
.float-btn:hover, .float-btn:focus-visible { background: var(--accent-dark); color: #fff; transform: translateX(-3px); }
.float-btn svg { width: 21px; height: 21px; }
.float-btn-wa, .float-btn-wa:hover { background: #25d366; }
.float-btn-wa:hover { background: #1eb257; }
.float-btn-top { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, background .2s ease, transform .2s ease; }
.float-btn-top.is-show { opacity: 1; visibility: visible; pointer-events: auto; }

/* Speech-bubble tooltip on hover / keyboard focus */
.float-tip {
	position: absolute;
	right: 54px;
	top: 50%;
	transform: translateY(-50%) scale(.96);
	background: #fff;
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.float-tip::after {
	content: "";
	position: absolute;
	right: -6px;
	top: 50%;
	transform: translateY(-50%);
	border-width: 6px 0 6px 6px;
	border-style: solid;
	border-color: transparent transparent transparent #fff;
}
.float-item:hover .float-tip,
.float-item:focus-within .float-tip { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }

@media (max-width: 782px) {
	.footer-float { bottom: 12vh; }
	.float-btn { width: 40px; height: 40px; }
	.float-btn svg { width: 18px; height: 18px; }
	/* No room beside the bar on phones. */
	.float-tip { display: none; }
}
