/*
Theme Name: Hải Triều
Theme URI: https://haitrieu.net/
Author: Hải Triều
Description: Theme viết tay cho Công ty Cổ Phần Trừ Mối – Côn Trùng Hải Triều. Phong cách: bo góc lớn, nút viên thuốc, nhịp nền sáng/tối xen kẽ, tiêu đề mảnh, khung kính mờ. Dữ liệu gom trong inc/data.php, schema JSON-LD, form lưu đơn, không page builder, không jQuery.
Version: 1.0.1
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: haitrieu
*/

/* ==========================================================================
   1. Tokens — đổi giao diện chủ yếu ở đây
   Vai trò màu học theo mẫu (nền rất đậm + một màu nhấn rực), màu là của thương hiệu Hải Triều.
   ========================================================================== */
:root {
	--c-primary: #0067b8;        /* xanh logo */
	--c-primary-dark: #0b3d6b;   /* header phụ, footer, chữ tiêu đề */
	--c-accent: #ffb900;         /* vàng logo: nút chính, sao, chữ nhấn */
	--c-accent-dark: #e5a500;
	--c-red: #e81123;            /* chỉ điểm xuyết */
	--c-bg: #ffffff;
	--c-bg-alt: #f1f5fa;         /* nền sáng xen kẽ */
	--c-bg-dark: #0a2238;        /* khối tối, thẻ đánh giá */
	--c-bg-dark-2: #123352;      /* thẻ trên nền tối */
	--c-soft: #c8d8ea;           /* nút phụ */
	--c-text: #14263a;
	--c-heading: #0b3d6b;
	--c-text-muted: #4f6275;
	--c-text-invert: #f1f5fa;
	--c-border: #d6e1ee;

	--f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-heading: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-lg: 1.125rem;
	--fs-h3: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
	--fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
	--fs-h1: clamp(2rem, 1.5rem + 2vw, 3rem);

	--radius: 20px;
	--radius-sm: 12px;
	--radius-pill: 999px;
	--shadow: 0 12px 32px rgba(10, 34, 56, 0.12);

	--space-section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
	--container: 1440px; /* nội dung 1312px + lề 64px hai bên, như mẫu */
	--gutter: 16px;
	--header-h: 76px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: var(--fs-base); line-height: 1.65; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { font-family: var(--f-heading); line-height: 1.2; margin: 0 0 0.6em; color: var(--c-heading); font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 8px 16px; background: #fff; }
.center { text-align: center; margin-top: 2.5rem; margin-bottom: 0; }
.hl { color: var(--c-primary); font-weight: 600; }
.icon { width: 20px; height: 20px; flex: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: calc(var(--space-section) * 0.75); }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-bg-dark); color: var(--c-text-invert); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .hl { color: var(--c-accent); }
.section__head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section__head h2 { margin-bottom: 0.35em; }
.section__head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; max-width: none; text-align: left; }
.section__head--split .section__lead { margin: 0; }
.section__eyebrow { display: inline-block; margin-bottom: 0.5rem; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-primary); }
.section__lead { color: var(--c-text-muted); font-size: var(--fs-lg); font-weight: 300; }
.section--dark .section__lead { color: rgba(241, 245, 250, 0.82); }
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.label { display: inline-block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-primary); }

/* ==========================================================================
   3. Nút — viên thuốc; chính = vàng, phụ = xanh nhạt
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border: 0; border-radius: var(--radius-pill); font-weight: 500; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { min-height: 56px; padding-inline: 28px; font-size: var(--fs-base); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn--accent { background: var(--c-accent); color: var(--c-bg-dark); }
.btn--accent:hover { background: var(--c-accent-dark); color: var(--c-bg-dark); }
.btn--soft { background: var(--c-soft); color: var(--c-primary-dark); }
.btn--soft:hover { background: #b3cae3; color: var(--c-primary-dark); }
.btn--light { background: #fff; color: var(--c-primary-dark); }
.btn--light:hover { color: var(--c-primary-dark); }
.btn--ghost { box-shadow: inset 0 0 0 2px currentColor; color: inherit; background: transparent; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.link-call { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 6px; }
.link-call:hover { color: inherit; }

/* ==========================================================================
   4. Header — thanh khuyến mãi, dải liên hệ, hàng chính dính khi cuộn
   ========================================================================== */
.promo-bar { padding: 9px 0; background: var(--c-accent); color: var(--c-bg-dark); font-size: var(--fs-sm); text-align: center; }
.promo-bar a { margin-left: 6px; color: inherit; font-weight: 700; }
.topbar { background: var(--c-primary-dark); color: #fff; font-size: var(--fs-sm); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.topbar__item:hover { color: var(--c-accent); }
.topbar__item .icon { width: 18px; height: 18px; }
.topbar__addr { display: none; }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--c-bg); transition: box-shadow 0.2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(10, 34, 56, 0.1); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.site-logo { display: flex; align-items: center; flex: none; color: var(--c-primary); font-weight: 700; text-decoration: none; }
.site-logo img { width: auto; height: 44px; }
@media (min-width: 1024px) { .site-logo img { height: 54px; } }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 24px; height: 2px; background: var(--c-heading); position: relative; transition: transform 0.2s; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }
.primary-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--c-bg); padding: 8px var(--gutter) 32px; overflow-y: auto; transform: translateX(100%); transition: transform 0.25s; }
.admin-bar .primary-nav { top: calc(var(--header-h) + 46px); }
.nav-open .primary-nav { transform: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 12px 0; color: var(--c-heading); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--c-border); }
.primary-nav .sub-menu a, .primary-nav .children a { padding-left: 16px; font-weight: 400; }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav a:hover { color: var(--c-primary); }
.primary-nav .primary-nav__cta { display: flex; margin-top: 20px; border: 0; color: var(--c-bg-dark); }
.header-cta { display: none; }

/* ==========================================================================
   5. Hero — ảnh bo góc đặt lùi trong khung, chữ đè bên trái
   ========================================================================== */
.hero-wrap { padding-top: 12px; }
.hero { position: relative; display: flex; align-items: flex-end; min-height: 560px; border-radius: var(--radius); overflow: hidden; background: var(--c-bg-dark); color: #fff; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 34, 56, 0.88) 0%, rgba(10, 34, 56, 0.45) 55%, rgba(10, 34, 56, 0.1) 100%); }
.hero--plain { background: radial-gradient(120% 140% at 100% 0%, var(--c-primary) 0%, var(--c-primary-dark) 45%, var(--c-bg-dark) 100%); }
.hero--plain::after { display: none; }
.hero__content { position: relative; z-index: 1; max-width: 640px; padding: 32px 24px; }
.hero h1 { color: #fff; margin-bottom: 0.5em; text-wrap: balance; }
.hero__light { display: block; font-weight: 300; }
.hero__bold { display: block; font-weight: 700; }
.hero__lead { font-size: var(--fs-lg); font-weight: 300; }
.hero__lead .hl { color: var(--c-accent); font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 1.75rem; }

/* ==========================================================================
   6. Thẻ (dịch vụ, bài viết)
   ========================================================================== */
.card { position: relative; display: flex; flex-direction: column; background: var(--c-bg); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4 / 3; background: var(--c-bg-alt); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.card__title { margin: 0.35em 0 0.4em; font-size: 1.35rem; }
.card__title a { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; } /* cả thẻ bấm được */
.card__text { color: var(--c-text-muted); font-size: 0.95rem; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 600; color: var(--c-primary); }
.card__more .icon { width: 18px; height: 18px; transition: transform 0.2s; }
.card:hover .card__more .icon { transform: translateX(4px); }
.card--service { background: var(--c-bg-alt); }
.card--ask { justify-content: flex-end; min-height: 280px; padding: 28px 24px; background: var(--c-bg-dark); color: rgba(241, 245, 250, 0.85); }
.card--ask:hover { transform: none; box-shadow: none; }
.card--ask .card__title { color: #fff; }
.card--ask .btn { margin-top: 8px; }
.card--post { border: 1px solid var(--c-border); }
.card--post .card__media { aspect-ratio: 1200 / 628; } /* ảnh bìa bài web cũ có chữ, không cắt */

/* ==========================================================================
   7. Vì sao chọn (thẻ tối), kính mờ, quy trình
   ========================================================================== */
.feature { padding: 32px 24px; border-radius: var(--radius); background: var(--c-bg-alt); text-align: center; }
.feature--dark { background: var(--c-bg-dark-2); color: rgba(241, 245, 250, 0.88); }
.feature__icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--c-accent); color: var(--c-bg-dark); }
.feature__icon .icon { width: 30px; height: 30px; }
.feature h3 { font-size: 1.6rem; font-weight: 300; }
.feature p { margin: 0; }

.glass-band { position: relative; padding-block: clamp(3rem, 2rem + 5vw, 5.5rem); background: var(--c-bg-dark); overflow: hidden; }
.glass-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px); transform: scale(1.03); }
.glass { position: relative; max-width: 1312px; margin-inline: auto; padding: clamp(2rem, 1rem + 5vw, 5rem) clamp(1.25rem, 0.5rem + 5vw, 6rem); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius); background: rgba(10, 34, 56, 0.45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; text-align: center; }
.glass__text { max-width: 860px; margin: 0 auto 1.5rem; font-size: clamp(1.35rem, 1rem + 1.4vw, 2.1rem); font-weight: 400; line-height: 1.3; text-wrap: balance; }

.steps { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.step { padding: 28px 24px; border-radius: var(--radius); background: var(--c-bg); }
.step__num { display: block; margin-bottom: 12px; font-size: 2.6rem; font-weight: 200; line-height: 1; color: var(--c-primary); }
.step h3 { margin-bottom: 0.3em; font-size: 1.25rem; font-weight: 500; }
.step p { margin: 0; color: var(--c-text-muted); font-size: 0.95rem; }

/* ==========================================================================
   8. Khách hàng (băng logo), đánh giá, bảo hành, chứng nhận
   ========================================================================== */
.marquee { overflow: hidden; padding-block: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: ht-marquee 60s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: grid; place-items: center; width: 168px; height: 96px; padding: 12px 18px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #fff; }
.marquee__item img { max-height: 70px; width: auto; object-fit: contain; }
@keyframes ht-marquee { to { transform: translateX(-50%); } }

.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.review { margin: 0; padding: 28px 24px; border-radius: var(--radius); background: var(--c-bg-dark); color: #fff; scroll-snap-align: start; }
.review__who { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.review__who strong { display: block; font-weight: 500; font-size: 1.1rem; }
.review__who small { color: rgba(241, 245, 250, 0.7); }
.review__avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--c-primary); font-weight: 700; }
.review__stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 16px; color: var(--c-accent); }
.review__stars .icon { width: 28px; height: 28px; }
.review blockquote { margin: 0; text-align: center; font-size: 1.05rem; line-height: 1.6; }

.split--top { align-items: start; }
.commits { list-style: none; margin: 1.5rem 0 2rem; padding: 0; }
.commits li { display: flex; gap: 14px; margin-bottom: 16px; }
.commits__icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--c-accent); color: var(--c-bg-dark); }
.commits__icon .icon { width: 18px; height: 18px; }
.commits strong { color: var(--c-heading); }
.warranty { border-radius: var(--radius); background: var(--c-bg-dark); color: #fff; overflow: hidden; }
.warranty table { width: 100%; border-collapse: collapse; }
.warranty th, .warranty td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.warranty thead th { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(241, 245, 250, 0.65); }
.warranty tbody th { font-weight: 500; }
.warranty tbody tr:last-child > * { border-bottom: 0; }
.warranty td { color: rgba(241, 245, 250, 0.82); font-size: 0.95rem; }
.warranty .warranty__time { color: var(--c-accent); font-weight: 600; white-space: nowrap; }

.certs { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.certs__item { display: block; aspect-ratio: 4 / 5; padding: 16px; border-radius: var(--radius-sm); background: #fff; scroll-snap-align: start; }
.certs__item img { width: 100%; height: 100%; object-fit: contain; }

/* ==========================================================================
   9. FAQ, form, lightbox, album
   ========================================================================== */
.faq { display: grid; gap: 12px; max-width: 900px; margin-inline: auto; }
.faq__item { border-radius: var(--radius-sm); background: #fff; }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 22px 24px; border: 0; background: none; text-align: left; font-weight: 500; font-size: var(--fs-lg); color: var(--c-heading); cursor: pointer; }
.faq__q::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform 0.2s; }
.faq__q[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-3px); }
.faq__a { padding: 0 24px 22px; color: var(--c-text-muted); text-align: justify; text-align-last: left; }
.faq__a p:last-child { margin: 0; }
.faq__a[hidden] { display: none; }

.form-panel { padding: clamp(1.75rem, 1rem + 4vw, 4rem) clamp(1.25rem, 0.5rem + 5vw, 6rem); border-radius: var(--radius); background: var(--c-bg-alt); }
.form-panel__head { max-width: 680px; margin: 0 auto 2rem; text-align: center; }
.form-panel .form { max-width: 760px; margin-inline: auto; padding: 0; background: none; box-shadow: none; }
.form { display: grid; gap: 16px; padding: 24px; background: var(--c-bg); color: var(--c-text); border-radius: var(--radius); box-shadow: var(--shadow); }
.form__row { display: grid; gap: 16px; }
.form label { display: block; margin-bottom: 6px; font-weight: 400; color: var(--c-heading); }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; padding: 10px 20px; border: 1px solid #9fb4c9; border-radius: var(--radius-pill); background: #fff; color: var(--c-text); }
.form textarea { min-height: 120px; border-radius: var(--radius-sm); resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 3px rgba(0, 103, 184, 0.15); }
.form button[type="submit"] { justify-self: center; min-width: 220px; background: var(--c-accent); color: var(--c-bg-dark); }
.form button[type="submit"]:hover { background: var(--c-accent-dark); }
.form__hp { position: absolute; left: -9999px; }
.form__note { font-size: var(--fs-sm); color: var(--c-text-muted); text-align: center; margin: 0; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.notice--ok { background: #e3f4e8; color: #1d6b35; }
.notice--err { background: #fdecec; color: #9b1c1c; }

.gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery a:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.9); }
.lightbox img { max-height: 90vh; width: auto; }
.lightbox__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-size: 1.5rem; cursor: pointer; }

/* ==========================================================================
   10. Trang con, bài viết
   ========================================================================== */
.page-hero { padding-block: 24px 48px; }
.page-hero + .section { padding-top: 0; }
.page-hero__box { padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); border-radius: var(--radius); background: var(--c-bg-alt); }
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero .section__lead { max-width: 760px; margin: 0; }
.breadcrumb { font-size: var(--fs-sm); color: var(--c-text-muted); margin-bottom: 12px; }
.breadcrumb a { color: inherit; }
.entry { max-width: 800px; margin-inline: auto; }
.entry p, .entry li { text-align: justify; text-align-last: left; }
.entry td p, .entry th p, .entry figcaption { text-align: left; }
.entry img { border-radius: var(--radius-sm); }
.entry h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.entry h3 { margin-top: 1.4em; font-weight: 500; }
.entry blockquote { margin: 1.5em 0; padding: 14px 22px; border-left: 4px solid var(--c-accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--c-bg-alt); }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { padding: 10px; border: 1px solid var(--c-border); }
.post-meta { margin: 0; color: var(--c-text-muted); font-size: var(--fs-sm); }
.post-layout { display: grid; gap: 40px; }
.post-layout .entry { max-width: none; margin: 0; min-width: 0; }
.entry figure { margin: 1.5em 0; }
.entry figcaption { margin-top: 8px; font-size: var(--fs-sm); color: var(--c-text-muted); text-align: center; }
.entry img { height: auto; }
.sidebar { align-self: stretch; }
.side-cta { padding: 28px 24px; border-radius: var(--radius); background: var(--c-bg-dark); color: rgba(241, 245, 250, 0.88); }
.side-cta strong { color: var(--c-accent); }
.side-cta__title { margin-bottom: 0.4em; font-size: 1.4rem; font-weight: 500; color: #fff; }
.side-cta .btn { display: flex; width: 100%; margin-top: 10px; }
.side-links { margin-top: 16px; padding: 22px 24px; border-radius: var(--radius); background: var(--c-bg-alt); }
.side-links__title { margin-bottom: 8px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-primary); }
.side-links ul { list-style: none; margin: 0; padding: 0; }
.side-links a { display: block; padding: 7px 0; color: var(--c-heading); text-decoration: none; border-bottom: 1px solid var(--c-border); }
.side-links li:last-child a { border-bottom: 0; }
.side-links a:hover { color: var(--c-primary); }
@media (min-width: 1024px) {
	.post-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
}
@media (min-width: 1024px) and (min-height: 700px) {
	.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 20px); }
	.admin-bar .sidebar__sticky { top: calc(var(--header-h) + 52px); }
}
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 2.5rem; }
.pagination .page-numbers { padding: 8px 16px; border-radius: var(--radius-pill); background: var(--c-bg-alt); text-decoration: none; }
.pagination .current { background: var(--c-primary); color: #fff; }

/* Giới thiệu, sản phẩm */
.about-media img { width: 100%; border-radius: var(--radius); }
.stats { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); text-align: center; }
.stats__item strong { display: block; font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem); font-weight: 200; line-height: 1.1; color: var(--c-accent); }
.stats__item span { color: rgba(241, 245, 250, 0.82); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2rem; }
.chip { padding: 8px 18px; border-radius: var(--radius-pill); background: var(--c-bg-alt); color: var(--c-heading); text-decoration: none; font-size: 0.95rem; }
.chip:hover, .chip.is-active { background: var(--c-primary); color: #fff; }
.grid--products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card--product { border: 1px solid var(--c-border); }
.card--product .card__body { padding: 16px 18px 18px; }
.card--product .card__title { font-size: 1.05rem; font-weight: 500; }
.card__media--contain { aspect-ratio: 1; background: #fff; }
.card__media--contain img { object-fit: contain; padding: 12px; }
.product { display: grid; gap: 32px; margin-top: 16px; }
.product__media { border-radius: var(--radius); background: #fff; border: 1px solid var(--c-border); overflow: hidden; }
.product__media img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 24px; }
.product__info h1 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); margin-top: 0.3em; }
.product__excerpt { color: var(--c-text-muted); }
.product__price { margin: 1.25rem 0 1.5rem; font-size: var(--fs-lg); }
.product__price strong { color: var(--c-primary); }
@media (min-width: 768px) {
	.grid--products { grid-template-columns: repeat(3, 1fr); }
	.product { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
}
@media (min-width: 1024px) {
	.grid--products { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* ==========================================================================
   11. CTA + Footer
   ========================================================================== */
.cta-band { padding-block: 0 var(--space-section); }
.cta-band__box { padding: clamp(2rem, 1rem + 4vw, 4rem) 24px; border-radius: var(--radius); background: var(--c-bg-dark); color: #fff; text-align: center; }
.cta-band h2 { margin-bottom: 0.4em; color: #fff; }
.cta-band .btn-group { justify-content: center; }
.site-footer { padding-top: 64px; background: var(--c-primary-dark); color: rgba(241, 245, 250, 0.82); font-size: 0.95rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); }
.site-footer h3 { margin-bottom: 1em; color: #fff; font-size: var(--fs-lg); font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer__grid { display: grid; gap: 40px; }
.site-footer__logo { display: inline-flex; padding: 14px 20px; margin-bottom: 20px; border-radius: var(--radius-sm); background: #fff; }
.site-footer__logo img { height: 52px; width: auto; }
.site-footer__license { font-size: var(--fs-sm); color: rgba(241, 245, 250, 0.65); }
.site-footer__contact li { display: flex; gap: 10px; }
.site-footer__contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--c-accent); }
.site-footer__social { display: flex; gap: 16px; margin-top: 16px; }
.site-footer__bottom { margin-top: 48px; padding-block: 20px 88px; border-top: 1px solid rgba(255, 255, 255, 0.14); text-align: center; font-size: var(--fs-sm); }

/* ==========================================================================
   12. Nút liên hệ nổi — mobile: thanh dưới đáy; desktop: cột nút tròn góc phải
   ========================================================================== */
.float-contact { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--c-bg); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12); }
.float-contact__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: 0.75rem; font-weight: 600; color: #fff; text-decoration: none; }
.float-contact__btn:hover { color: #fff; }
.float-contact__btn svg { width: 22px; height: 22px; fill: currentColor; }
.float-contact__phone { background: var(--c-primary); }
.float-contact__zalo { background: #0068ff; }
.float-contact__mess { background: #a033ff; }

/* ==========================================================================
   13. Responsive
   ========================================================================== */
@media (min-width: 600px) {
	.gallery { grid-template-columns: repeat(3, 1fr); }
	.form__row { grid-template-columns: 1fr 1fr; }
	.reviews { grid-auto-columns: calc(50% - 8px); }
	.certs { grid-auto-columns: calc(33.333% - 11px); }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
	:root { --gutter: 24px; }
	.topbar__addr { display: inline-flex; }
	.grid--2, .grid--3, .grid--4, .grid--services { grid-template-columns: repeat(2, 1fr); }
	.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
	.hero { align-items: center; min-height: 600px; }
	.hero::after { background: linear-gradient(90deg, rgba(10, 34, 56, 0.85) 0%, rgba(10, 34, 56, 0.55) 45%, rgba(10, 34, 56, 0) 80%); }
	.hero__content { padding: 48px 64px; }
}
@media (min-width: 1024px) {
	:root { --gutter: 64px; }
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
	.grid--services { grid-template-columns: repeat(4, 1fr); }
	.gallery { grid-template-columns: repeat(4, 1fr); }
	.steps { grid-template-columns: repeat(3, 1fr); }
	.reviews { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
	.certs { grid-auto-columns: calc(25% - 12px); }
	.site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; }
	.nav-toggle { display: none; }
	.primary-nav { position: static; display: flex; transform: none; padding: 0; overflow: visible; background: none; }
	.primary-nav > ul { display: flex; gap: 2px; }
	.primary-nav a { padding: 10px 12px; border: 0; white-space: nowrap; }
	.primary-nav li { position: relative; }
	.primary-nav .sub-menu, .primary-nav .children { position: absolute; z-index: 20; top: 100%; left: 0; min-width: 240px; padding: 10px 0; background: var(--c-bg); border-radius: var(--radius-sm); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: 0.2s; }
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu,
	.primary-nav li:hover > .children, .primary-nav li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
	.primary-nav .sub-menu a, .primary-nav .children a { padding: 8px 20px; }
	.primary-nav .primary-nav__cta { display: none; }
	.header-cta { display: inline-flex; }
	.hero { min-height: 640px; }
	.float-contact { left: auto; right: 20px; bottom: 20px; grid-auto-flow: row; gap: 12px; background: none; box-shadow: none; }
	.float-contact__btn { width: 56px; height: 56px; min-height: 0; border-radius: 50%; box-shadow: var(--shadow); }
	.float-contact__btn span { display: none; }
	.site-footer__bottom { padding-bottom: 24px; }
}
@media (min-width: 1280px) {
	.primary-nav a { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
