/*
Theme Name: Lọc Chuẩn
Theme URI: https://locchuan.vn
Description: Theme nhẹ cho dịch vụ thay lõi và sửa máy lọc nước tại nhà ở Hà Nội. Ưu tiên mobile, CTA gọi/Zalo cố định, không phụ thuộc thư viện ngoài.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: locchuan
*/

:root {
	--lc-blue: #0a6ebd;
	--lc-blue-dark: #07548f;
	--lc-blue-tint: #e8f3fb;
	--lc-green: #16a34a;
	--lc-ink: #1b2430;
	--lc-muted: #5b6675;
	--lc-line: #dfe5ec;
	--lc-bg: #ffffff;
	--lc-bg-soft: #f6f9fc;
	--lc-warn-bg: #fff7e0;
	--lc-warn-line: #f0c75e;
	--lc-radius: 10px;
	--lc-max: 1080px;
	--lc-gutter: 16px;
	--lc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font: 17px/1.65 var(--lc-font);
	color: var(--lc-ink);
	background: var(--lc-bg);
	padding-bottom: 72px; /* chỗ cho thanh CTA mobile */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lc-blue); }
a:hover { color: var(--lc-blue-dark); }
h1, h2, h3 { line-height: 1.3; margin: 1.6em 0 .6em; }
h1 { font-size: 1.75rem; margin-top: .4em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p, ul, ol, table { margin: 0 0 1em; }

.lc-wrap { max-width: var(--lc-max); margin: 0 auto; padding: 0 var(--lc-gutter); }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Header */
.lc-header { border-bottom: 1px solid var(--lc-line); background: #fff; position: sticky; top: 0; z-index: 20; }
.lc-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.lc-brand { font-weight: 700; font-size: 1.2rem; color: var(--lc-ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.lc-brand__mark { width: 28px; height: 28px; border-radius: 50%; background: var(--lc-blue); display: inline-block; position: relative; }
.lc-brand__mark::after { content: ""; position: absolute; left: 9px; top: 6px; width: 10px; height: 14px; background: #fff; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.lc-brand small { display: block; font-weight: 400; font-size: .72rem; color: var(--lc-muted); }
.lc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.lc-nav a { color: var(--lc-ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.lc-nav a:hover, .lc-nav .current-menu-item > a { color: var(--lc-blue); }
.lc-btn.lc-header__call { display: none; }
.lc-menu-toggle { display: none; background: none; border: 1px solid var(--lc-line); border-radius: 8px; padding: 6px 10px; font: inherit; }

@media (max-width: 860px) {
	.lc-menu-toggle { display: block; }
	.lc-nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: #fff; border-bottom: 1px solid var(--lc-line); }
	.lc-nav.is-open { display: block; }
	.lc-nav ul { flex-direction: column; gap: 0; padding: 8px var(--lc-gutter); }
	.lc-nav li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--lc-line); }
}
@media (min-width: 861px) {
	.lc-btn.lc-header__call { display: inline-flex; }
	body { padding-bottom: 0; }
}

/* Buttons */
.lc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--lc-radius); font-weight: 600; text-decoration: none; border: 2px solid transparent; line-height: 1.2; }
.lc-btn--primary { background: var(--lc-blue); color: #fff; }
.lc-btn--primary:hover { background: var(--lc-blue-dark); color: #fff; }
.lc-btn--zalo { background: #fff; color: var(--lc-blue); border-color: var(--lc-blue); }
.lc-btn--ghost { background: #fff; color: var(--lc-ink); border-color: var(--lc-line); }

/* Breadcrumb */
.lc-breadcrumb { font-size: .85rem; color: var(--lc-muted); margin: 14px 0 0; }
.lc-breadcrumb a { color: var(--lc-muted); }

/* Content */
.lc-main { padding: 8px 0 48px; }
.lc-content { max-width: 760px; }
.lc-content--wide { max-width: none; }
.lc-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.lc-content th, .lc-content td { border: 1px solid var(--lc-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.lc-content th { background: var(--lc-bg-soft); }
.lc-table-scroll { overflow-x: auto; }

/* Sections used inside page content */
.lc-hero { background: var(--lc-blue-tint); border-radius: 16px; padding: 28px 20px; margin: 16px 0 28px; }
.lc-hero h1 { margin-top: 0; }
.lc-hero__lead { font-size: 1.05rem; color: var(--lc-muted); }
.lc-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.lc-badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.lc-badges li { background: #fff; border: 1px solid var(--lc-line); border-radius: 999px; padding: 4px 12px; font-size: .85rem; }

.lc-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0 0 24px; }
@media (min-width: 640px) { .lc-grid--2 { grid-template-columns: 1fr 1fr; } .lc-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.lc-card { border: 1px solid var(--lc-line); border-radius: var(--lc-radius); padding: 16px; background: #fff; }
.lc-card h3 { margin-top: 0; }
.lc-card p:last-child { margin-bottom: 0; }

.lc-steps { counter-reset: step; list-style: none; padding: 0; }
.lc-steps li { counter-increment: step; position: relative; padding: 0 0 14px 44px; }
.lc-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--lc-blue); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.lc-brands { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.lc-brands a { display: inline-block; border: 1px solid var(--lc-line); border-radius: 8px; padding: 8px 14px; text-decoration: none; color: var(--lc-ink); font-weight: 500; }
.lc-brands a:hover { border-color: var(--lc-blue); color: var(--lc-blue); }

.lc-faq details { border: 1px solid var(--lc-line); border-radius: var(--lc-radius); padding: 12px 16px; margin-bottom: 10px; }
.lc-faq summary { font-weight: 600; cursor: pointer; }
.lc-faq details[open] summary { margin-bottom: 8px; }

.lc-cta-box { background: var(--lc-ink); color: #fff; border-radius: 16px; padding: 24px 20px; margin: 32px 0; }
.lc-cta-box h2 { margin-top: 0; color: #fff; }
.lc-cta-box p { color: #d6dde6; }
.lc-cta-box .lc-btn--zalo { background: transparent; color: #fff; border-color: #fff; }

/* Ghi chú nội bộ: chỉ hiện khi đăng nhập */
.lc-note { background: var(--lc-warn-bg); border: 1px dashed var(--lc-warn-line); border-radius: 8px; padding: 10px 14px; font-size: .9rem; margin: 0 0 16px; }
.lc-note::before { content: "Ghi chú nội bộ (khách không thấy): "; font-weight: 700; }

/* Booking form */
.lc-form { display: grid; gap: 12px; max-width: 520px; }
.lc-form label { font-weight: 600; font-size: .95rem; }
.lc-form input, .lc-form select, .lc-form textarea { width: 100%; padding: 12px; border: 1px solid var(--lc-line); border-radius: 8px; font: inherit; }
.lc-form button { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.lc-form-msg { padding: 12px 14px; border-radius: 8px; background: #e9f8ef; border: 1px solid #a7e3bf; }

/* Posts list */
.lc-posts { list-style: none; padding: 0; }
.lc-posts li { border-bottom: 1px solid var(--lc-line); padding: 14px 0; }
.lc-posts h2 { font-size: 1.15rem; margin: 0 0 4px; }
.lc-meta { color: var(--lc-muted); font-size: .85rem; }

/* Footer */
.lc-footer { background: var(--lc-bg-soft); border-top: 1px solid var(--lc-line); padding: 32px 0 24px; font-size: .92rem; color: var(--lc-muted); }
.lc-footer h3 { font-size: 1rem; margin: 0 0 8px; color: var(--lc-ink); }
.lc-footer ul { list-style: none; padding: 0; margin: 0; }
.lc-footer li { margin-bottom: 6px; }
.lc-footer a { color: var(--lc-muted); }
.lc-footer__cols { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .lc-footer__cols { grid-template-columns: 2fr 1fr 1fr; } }
.lc-footer__copy { margin-top: 20px; font-size: .82rem; }

/* Sticky CTA bar (mobile) */
.lc-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 1fr; background: #fff; border-top: 1px solid var(--lc-line); box-shadow: 0 -2px 10px rgba(0, 0, 0, .06); }
.lc-sticky a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; min-height: 60px; text-decoration: none; font-size: .8rem; font-weight: 600; color: var(--lc-ink); }
.lc-sticky a.is-call { background: var(--lc-blue); color: #fff; }
.lc-sticky svg { width: 22px; height: 22px; }
@media (min-width: 861px) { .lc-sticky { display: none; } }

/* In ấn: chỉ giữ nội dung bài (ví dụ bảng ghi ngày thay lõi) */
@media print {
	.lc-header, .lc-footer, .lc-sticky, .lc-cta-box, .lc-form, .lc-hero__cta, .lc-breadcrumb, .lc-note { display: none !important; }
	body { padding-bottom: 0; font-size: 12pt; }
	.lc-content { max-width: none; }
	.lc-content td { height: 2.2em; }
	a { color: inherit; text-decoration: none; }
}
