/*
Theme Name:        Sodienthoai
Theme URI:         https://sodienthoai.com
Author:             sodienthoai.com
Description:        Theme riêng cho sodienthoai.com. CSS được copy chính xác từ bản thiết kế gốc (sodienthoai-full.html) — cùng token màu, cùng component (header, hero, steps, cta-band, badge, result-card...). Không phải child theme, chỉnh sửa trực tiếp.
Version:            1.1.0
Requires at least:  6.0
Requires PHP:       7.4
Text Domain:        sdt-theme
License:            GPL v2 or later
*/

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ===================== DESIGN TOKENS — copy chính xác bản thiết kế gốc ===================== */
:root {
	--ink: #152238;
	--ink-soft: #5c667a;
	--ink-faint: #8b93a3;
	--bg: #f5f4f0;
	--panel: #ffffff;
	--line: #e6e4de;
	--forest: #1f6f60;
	--forest-deep: #144f44;
	--forest-tint: #e8f2ef;
	--gold: #b9832a;
	--amber: #b7791f;
	--amber-tint: #fdf3e0;
	--red: #a13d3d;
	--red-tint: #f7ebea;
}

*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
	font-size: 15px; line-height: 1.6;
}
h1, h2, h3, .serif { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

.sdt-wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ===================== HEADER — copy đúng header.top / .top-inner / .brand / .nav-links / .top-search ===================== */
header.top { background: var(--ink); padding: 16px 24px; }
.top-inner { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; gap: 22px; }
.brand { color: #fff; font-size: 17px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.brand em { color: #7fc4b4; font-style: normal; }
.brand img { max-height: 28px; }
.nav-links { display: flex; gap: 4px; margin-left: 6px; flex-wrap: wrap; align-items: center; }
.nav-links ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; align-items: center; }
.nav-links li { margin: 0; }
.nav-links a {
	background: none; border: none; color: #c9cedb; font-size: 13.5px; padding: 8px 12px;
	border-radius: 7px; cursor: pointer; display: inline-block;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }
.nav-links a.active { color: #fff; background: rgba(255,255,255,0.14); }
.top-search { flex: 1; display: flex; background: #fff; border-radius: 9px; overflow: hidden; max-width: 380px; margin-left: auto; }
.top-search input { flex: 1; border: none; padding: 10px 13px; font-size: 13.5px; outline: none; min-width: 0; }
.top-search button { border: none; background: var(--forest); color: #fff; padding: 0 16px; font-weight: 600; font-size: 13px; cursor: pointer; }
.top-search button:hover { background: var(--forest-deep); }

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }

main { max-width: 1040px; margin: 0 auto; padding: 0 24px 80px; }

footer.disclaimer {
	max-width: 1040px; margin: 0 auto; padding: 20px 24px 10px;
	font-size: 12px; color: var(--ink-faint); text-align: center; border-top: 1px solid var(--line); margin-top: 40px;
}

/* ===================== HERO — copy đúng .hero / .hero-search / .stat-row ===================== */
.hero { padding: 64px 0 46px; text-align: center; }
.hero h1 { font-size: 38px; line-height: 1.25; margin: 0 0 14px; max-width: 16ch; margin-left: auto; margin-right: auto; }
.hero p { font-size: 15.5px; color: var(--ink-soft); max-width: 46ch; margin: 0 auto 30px; }

.hero-search {
	display: flex; max-width: 480px; margin: 0 auto; background: #fff; border-radius: 11px;
	box-shadow: 0 10px 30px rgba(21,34,56,0.08); overflow: hidden;
}
.hero-search input { flex: 1; border: none; padding: 15px 16px; font-size: 16px; outline: none; }
.hero-search button { border: none; background: var(--forest); color: #fff; padding: 0 24px; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.hero-search button:hover { background: var(--forest-deep); }

.stat-row { display: flex; justify-content: center; gap: 44px; margin-top: 38px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat .n { font-size: 26px; font-weight: 700; font-family: 'Source Serif 4', serif; }
.stat .l { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

/* ===================== 3 BƯỚC — copy đúng .steps / .step ===================== */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; padding: 50px 0; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.step .idx {
	width: 30px; height: 30px; border-radius: 50%; background: var(--forest-tint); color: var(--forest-deep);
	display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13.5px; margin-bottom: 14px;
}
.step h3 { font-size: 15.5px; margin: 0 0 6px; }
.step p { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* ===================== CTA BAND — copy đúng .cta-band / .cta-btn ===================== */
.cta-band {
	background: var(--ink); border-radius: 18px; padding: 40px 36px; display: flex; align-items: center;
	justify-content: space-between; gap: 24px; margin-bottom: 20px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 22px; margin: 0 0 8px; }
.cta-band p { color: #b7bdca; font-size: 13.5px; margin: 0; max-width: 42ch; }
.cta-btn {
	background: #fff; color: var(--ink); border: none; padding: 13px 22px; border-radius: 9px; font-weight: 700;
	font-size: 14px; cursor: pointer; white-space: nowrap; display: inline-block;
}
.cta-btn:hover { background: var(--forest-tint); text-decoration: none; }

/* ===================== BADGE — hình chữ nhật bo góc 8px, KHÔNG phải viên thuốc ===================== */
.badge { padding: 6px 13px; border-radius: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; display: inline-block; }
.badge.spam { background: var(--red-tint); color: var(--red); }
.badge.biz { background: var(--forest-tint); color: var(--forest-deep); }
.badge.unknown { background: var(--amber-tint); color: var(--amber); }

/* ===================== RESULT CARD — dùng cho template ghi đè trang tra cứu / hồ sơ doanh nghiệp ===================== */
.result-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px; max-width: 600px; margin: 0 auto; }
.num-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.num { font-size: 23px; font-weight: 700; font-family: 'Source Serif 4', serif; }
.carrier { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.section-title { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin: 20px 0 10px; }
.report-count { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.report-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--red-tint); color: var(--red); font-size: 12.5px; padding: 5px 11px; border-radius: 7px; font-weight: 600; }
.biz-name { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.biz-cat { font-size: 13px; color: var(--forest-deep); font-weight: 600; margin-bottom: 14px; }
.biz-grid { display: grid; grid-template-columns: 100px 1fr; gap: 10px 14px; font-size: 13.5px; margin-bottom: 4px; }
.biz-grid .k { color: var(--ink-soft); }
.unknown-body { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.6; }
.verified { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--forest-deep); font-weight: 600; margin-top: 12px; }
.actions { display: flex; gap: 10px; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 20px; }
.btn { flex: 1; padding: 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--ink); text-align: center; display: inline-block; }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn:hover { border-color: var(--forest); text-decoration: none; }
.btn.primary:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: #fff; }

/* ===================== NỘI DUNG TRANG TĨNH / BLOG ===================== */
.page-content, .post-content { max-width: 760px; margin: 40px auto; padding: 0 24px; }
.page-content .page-title, .post-content h1 { font-size: 26px; margin-bottom: 20px; }
.post-meta { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 20px; }

.entry { font-size: 15px; line-height: 1.75; }
.entry h2 { font-size: 20px; margin: 32px 0 12px; }
.entry h3 { font-size: 16px; margin: 24px 0 10px; }
.entry p { margin: 0 0 16px; }
.entry ul, .entry ol { margin: 0 0 16px; padding-left: 22px; }
.entry li { margin-bottom: 6px; }
.entry blockquote { border-left: 3px solid var(--forest); margin: 20px 0; padding: 4px 0 4px 16px; color: var(--ink-soft); font-style: italic; }
.entry a { text-decoration: underline; }
.entry img { border-radius: 10px; }

.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; max-width: 1040px; margin: 0 auto 50px; padding: 0 24px; }
.blog-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: block; }
.blog-card:hover { text-decoration: none; border-color: var(--forest); }
.blog-card img { aspect-ratio: 16/9; object-fit: cover; }
.blog-card .b { padding: 14px 16px; }
.blog-card h3 { font-size: 14.5px; margin: 0 0 6px; }
.blog-card p { font-size: 12.5px; color: var(--ink-soft); margin: 0; }

/* ===================== FOOTER (mở rộng — bản gốc chỉ có footer.disclaimer 1 dòng,
   theme thêm 3 cột liên kết vì site thật cần điều hướng, nhưng vẫn dùng đúng --ink) ===================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); margin-top: 0; padding: 40px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; max-width: 1040px; margin: 0 auto; padding: 0 24px 30px; }
.footer-grid h4 { color: #fff; font-size: 13px; margin: 0 0 12px; font-family: 'Inter', sans-serif; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,0.7); font-size: 13px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 24px; font-size: 12px; text-align: center; max-width: 1040px; margin: 0 auto; }

.widget { margin-bottom: 16px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 6px; }

/* ===================== 404 ===================== */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 h1 { font-size: 60px; margin: 0; color: var(--forest); font-family: 'Source Serif 4', serif; }

/* ===================== RESPONSIVE — copy đúng breakpoint bản gốc ===================== */
@media (max-width: 860px) {
	.footer-grid { grid-template-columns: 1fr; }
	.blog-grid { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.top-search { display: none; }
	.cta-band { flex-direction: column; text-align: center; }
	.nav-links { display: none; width: 100%; order: 3; flex-direction: column; }
	.nav-links.is-open { display: flex; }
	.nav-links.is-open ul { flex-direction: column; }
	.nav-toggle { display: block; }
}
