/*
Theme Name: Eric Nhà Phố
Description: Theme môi giới nhà phố cá nhân cho ericnhapho.com. Tông đỏ – trắng – vàng ánh kim.
Version: 1.3.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: eric-nhapho
*/

:root {
	--red: #b3121b;
	--red-dark: #7f0b12;
	--red-deep: #5c070c;
	--gold: #c99a2e;
	--gold-light: #f6dd8f;
	--gold-pale: #fbf3dc;
	/* Vàng ánh kim kiểu trang sức: tối – sáng – bóng – sáng – tối */
	--gold-metal: linear-gradient(135deg, #7a5410 0%, #b8862b 18%, #e9c66a 36%, #fff4c7 50%, #e2b955 62%, #a8771f 82%, #74500f 100%);
	--gold-metal-soft: linear-gradient(180deg, #fff1bd 0%, #f0cf72 35%, #c8952d 70%, #f3d27a 100%);
	--ink: #1d1a19;
	--muted: #6b6461;
	--line: #eadfd3;
	--bg: #ffffff;
	--bg-tint: #fdf8f1;
	--radius: 14px;
	--shadow: 0 12px 32px rgba(92, 7, 12, .10);
	--font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--serif: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.enp-icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.6em; border-radius: 999px; font-weight: 700; font-size: .98rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; font-family: inherit; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold-metal); background-size: 200% 100%; background-position: 0% 0; color: #4a0509; box-shadow: 0 8px 20px rgba(150, 105, 25, .38), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(90,60,10,.35); text-shadow: 0 1px 0 rgba(255,240,200,.5); transition: background-position .5s ease, transform .15s ease, box-shadow .15s ease; }
.btn--gold:hover { color: #4a0509; background-position: 100% 0; box-shadow: 0 10px 26px rgba(150, 105, 25, .5), inset 0 1px 0 rgba(255,255,255,.6); }

/* Chữ & viền vàng ánh kim */
.gold-text, .steps span, .area--cta h3, .site-footer__brand { background: var(--gold-metal-soft); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { border-color: var(--red); color: var(--red); background: #fff; }
.btn--sm { padding: .6em 1.2em; font-size: .9rem; }
.btn--block { width: 100%; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--red); margin-bottom: .8em; display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold-metal); }
.eyebrow--light { color: var(--gold-light); }
.eyebrow--gold { color: var(--gold); }

/* Topbar & header */
.topbar { background: var(--red-deep); color: #f7e6c3; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; }
.topbar__tag, .topbar__links a { display: inline-flex; align-items: center; gap: .4em; }
.topbar__links { display: flex; gap: 18px; }
.topbar a { color: #f7e6c3; font-weight: 600; }
.topbar a:hover { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__logo { max-height: 52px; width: auto; }
.brand__mark { width: 48px; height: 48px; border-radius: 12px; border: 2px solid transparent; background: linear-gradient(145deg, var(--red), var(--red-deep)) padding-box, var(--gold-metal) border-box; color: var(--gold-light); display: grid; place-items: center; font-family: var(--serif); font-size: 1.7rem; font-weight: 700; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: 1.15rem; font-weight: 800; color: var(--red); letter-spacing: .01em; text-transform: uppercase; }
.brand__text small { font-size: .74rem; color: var(--muted); }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.primary-nav ul a { color: var(--ink); font-weight: 600; font-size: .95rem; position: relative; padding: 6px 0; }
.primary-nav ul a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width .2s; }
.primary-nav ul a:hover { color: var(--red); }
.primary-nav ul a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--red); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--red-deep); }
.hero__bg { position: absolute; inset: 0; background:
	radial-gradient(900px 500px at 85% 20%, rgba(214,165,54,.28), transparent 60%),
	radial-gradient(700px 600px at 0% 100%, rgba(179,18,27,.9), transparent 70%),
	linear-gradient(135deg, var(--red) 0%, var(--red-dark) 55%, var(--red-deep) 100%); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000 30%, transparent); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero__title { font-family: var(--serif); font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; line-height: 1.12; margin-bottom: .45em; }
.hero__text { font-size: 1.08rem; color: #f8e9e6; max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 32px; }
.hero__trust { list-style: none; margin: 0; padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 12px 26px; border-top: 1px solid rgba(243,217,139,.25); font-size: .9rem; color: #f7e6c3; }
.hero__trust li { display: inline-flex; align-items: center; gap: .5em; }
.hero__trust .enp-icon { color: #e9c66a; }

.hero__visual { position: relative; justify-self: center; width: min(100%, 400px); }
.portrait { aspect-ratio: 4 / 5; border-radius: 200px 200px 24px 24px; overflow: hidden; border: 7px solid transparent; background: linear-gradient(180deg, var(--gold-pale), #f0d9a6) padding-box, var(--gold-metal) border-box; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--red-dark); gap: 10px; padding: 20px; }
.portrait__placeholder span { font-family: var(--serif); font-size: 7rem; line-height: 1; color: var(--red); }
.portrait__placeholder small { font-size: .78rem; color: var(--muted); }
.portrait__badge { position: absolute; left: -18px; bottom: 34px; background: linear-gradient(#fff, #fff) padding-box, var(--gold-metal) border-box; color: var(--ink); border-radius: 12px; padding: 12px 18px; box-shadow: var(--shadow); border: 0 solid transparent; border-left-width: 5px; display: flex; flex-direction: column; line-height: 1.3; }
.portrait__badge strong { color: var(--red); font-size: 1rem; }
.portrait__badge span { font-size: .8rem; color: var(--muted); }

/* Pledge */
.pledge { position: relative; z-index: 2; margin-top: -48px; }
.pledge__grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.pledge__grid::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gold-metal); }
.pledge__item { padding: 30px 28px; border-right: 1px solid var(--line); }
.pledge__item:last-child { border-right: 0; }
.pledge__item .enp-icon { width: 34px; height: 34px; color: var(--red); background: var(--gold-pale); border-radius: 10px; padding: 7px; margin-bottom: 14px; }
.pledge__item h3 { font-size: 1.12rem; color: var(--red-dark); margin-bottom: .35em; }
.pledge__item p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Sections */
.section { padding: 96px 0; }
.section--tint { background: var(--bg-tint); }
.section--red { background: linear-gradient(135deg, var(--red-dark), var(--red-deep)); color: #fff; }
.section__head { max-width: 680px; margin-bottom: 44px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section__title { font-family: var(--serif); font-size: clamp(1.8rem, 3.2vw, 2.55rem); color: var(--red-dark); margin: 0; }
.section--red .section__title { color: #fff; }
.link-more { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about__media { position: relative; }
.about__media img, .about__placeholder { border-radius: var(--radius); aspect-ratio: 5 / 6; object-fit: cover; width: 100%; }
.about__placeholder { background: linear-gradient(160deg, var(--red), var(--red-deep)); display: grid; place-items: center; text-align: center; font-family: var(--serif); font-size: 2.4rem; color: var(--gold-light); letter-spacing: .08em; line-height: 1.2; box-shadow: inset 0 0 0 10px rgba(243,217,139,.18); }
.about__media::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid transparent; background: var(--gold-metal) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; border-radius: var(--radius); z-index: -1; }
.about__stamp { position: absolute; right: -24px; bottom: 40px; background: var(--gold-metal); color: #4a0509; font-weight: 800; padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow); line-height: 1.3; }
.about__stamp small { font-weight: 600; font-size: .75rem; }
.about__copy .section__title { margin-bottom: .6em; }
.about__copy p { color: #3d3735; }
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.about__license { display: flex; gap: 8px; align-items: center; background: var(--gold-pale); border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
.about__license .enp-icon { color: var(--red); }
.ticks { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.ticks .enp-icon { color: #fff; background: var(--red); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service { background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden; }
.service::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--gold-metal); transition: width .3s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::after { width: 100%; }
.service__icon { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(145deg, var(--red), var(--red-dark)); color: var(--gold-light); display: grid; place-items: center; margin-bottom: 18px; }
.service__icon .enp-icon { width: 26px; height: 26px; }
.service h3 { font-size: 1.12rem; color: var(--ink); }
.service p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16 / 11; background: var(--gold-pale); display: block; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); }
.card__noimg .enp-icon { width: 56px; height: 56px; }
.card__tag { position: absolute; left: 14px; top: 14px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__price { font-size: 1.35rem; font-weight: 800; color: var(--red); margin: 0 0 .2em; }
.card__title { font-size: 1.05rem; margin-bottom: .5em; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--red); }
.card__loc { font-size: .88rem; color: var(--muted); display: flex; gap: .4em; align-items: flex-start; }
.card__loc .enp-icon { color: var(--gold); margin-top: 3px; }
.card__specs { list-style: none; padding: 14px 0 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px dashed var(--line); }
.card__specs li { background: var(--bg-tint); border: 1px solid var(--line); font-size: .8rem; padding: 4px 10px; border-radius: 999px; color: #4a4340; }
.card__meta { font-size: .8rem; color: var(--muted); margin-bottom: .3em; }
.card__excerpt { color: var(--muted); font-size: .92rem; }
.card--post .link-more { margin-top: auto; font-size: .92rem; }

.empty { background: var(--gold-pale); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.empty p { margin: 0; max-width: 640px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 26px 22px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(243,217,139,.22); }
.steps span { font-family: var(--serif); font-size: 2.3rem; color: var(--gold); line-height: 1; display: block; margin-bottom: 12px; }
.steps h3 { font-size: 1.05rem; color: #fff; margin-bottom: .35em; }
.steps p { color: #f3d9d6; font-size: .9rem; margin: 0; }

/* Areas */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.areas--two { grid-template-columns: 1.4fr 1fr; }
.area { border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line); background: #fff; position: relative; overflow: hidden; }
.area::before { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--gold-pale); }
.area h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--red); position: relative; }
.area p { color: var(--muted); position: relative; }
.area ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.area ul li { font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--bg-tint); border: 1px solid var(--line); color: var(--red-dark); }
.area--cta { background: linear-gradient(145deg, var(--red), var(--red-deep)); border: 0; color: #fff; }
.area--cta::before { background: rgba(214,165,54,.25); }
.area--cta h3 { color: var(--gold-light); }
.area--cta p { color: #f6dcd9; }

/* Group band */
@keyframes enp-marquee { to { transform: translateX(calc(-50% - 8px)); } }

/* Consult form */
.consult { background: var(--bg-tint); }
.consult__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.consult__copy .section__title { margin-bottom: .5em; }
.consult__copy p { color: #4a4340; }
.consult__direct { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.form { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border-top: 4px solid var(--red); display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: #3d3735; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #ddd0c3; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,165,54,.25); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__hp { position: absolute; left: -9999px; }
.form__msg { padding: 12px 14px; border-radius: 10px; margin: 0; font-weight: 600; }
.form__msg--ok { background: #e8f6ec; color: #17663a; }
.form__msg--err { background: #fdecec; color: var(--red-dark); }
.form__note { margin: 0; font-size: .85rem; color: var(--muted, #6b6b6b); text-align: center; }

/* Inner pages */
.page-hero { background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0; }
.article { max-width: 820px; }
.article__cover img { border-radius: var(--radius); margin-bottom: 28px; }
.article__content { font-size: 1.05rem; }
.article__content h2, .article__content h3 { color: var(--red-dark); margin-top: 1.4em; }
.article__cta { margin-top: 40px; padding: 24px; border-radius: var(--radius); background: var(--gold-pale); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.article__cta p { margin: 0 auto 0 0; }
.specs { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.specs th, .specs td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.specs th { width: 34%; color: var(--muted); font-weight: 600; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

/* Footer */
.site-footer { background: #1a0b0c; color: #d9c9c4; padding-top: 64px; font-size: .94rem; }
.site-footer a { color: #f3d98b; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer__brand { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-light); margin-bottom: .2em; }
.site-footer__title { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; }
.site-footer__muted { color: #a8958f; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__list li { display: flex; gap: 8px; align-items: flex-start; }
.site-footer__list .enp-icon { color: var(--gold); margin-top: 4px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; padding-bottom: 90px; font-size: .8rem; color: #a8958f; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer__bottom p { margin: 0; max-width: 760px; }

/* Floating CTA */
.float-cta { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.float-cta__btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .78rem; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.float-cta__btn--zalo, .float-cta__btn--mess { background: #fff; }
.float-cta__btn .enp-logo { width: 34px; height: 34px; display: block; }
.float-cta__btn--zalo .enp-logo { width: 38px; height: 38px; }
.float-cta { align-items: center; }
.to-top { border: 2px solid #fff; width: 46px; height: 46px; display: none; border-radius: 50%; place-items: center; color: #4a0509; background: var(--gold-metal); box-shadow: 0 8px 20px rgba(0,0,0,.2); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top .enp-icon { width: 22px; height: 22px; }
.to-top:hover { color: #4a0509; }
.show-top .to-top { display: grid; opacity: 1; transform: none; pointer-events: auto; }
.float-cta__btn--call { background: var(--red); animation: enp-pulse 2s infinite; }
.float-cta__btn--call .enp-icon { width: 24px; height: 24px; }
.float-cta__btn:hover { color: #fff; }
@keyframes enp-pulse { 0% { box-shadow: 0 0 0 0 rgba(179,18,27,.5); } 70% { box-shadow: 0 0 0 14px rgba(179,18,27,0); } 100% { box-shadow: 0 0 0 0 rgba(179,18,27,0); } }

/* Bài viết Kiến thức */
.page-hero .article { margin-left: auto; margin-right: auto; }
.section--article .article { margin-left: auto; margin-right: auto; }
.section--article { padding-top: 48px; }
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .7; }
.crumbs a { color: var(--gold-light); }
.crumbs span { color: rgba(255,255,255,.85); }
.page-hero__intro { margin-top: 14px; max-width: 720px; color: rgba(255,255,255,.9); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; font-size: .9rem; color: rgba(255,255,255,.85); }
.article__content > * + h2 { margin-top: 1.8em; }
.article__content h2 { font-size: 1.55rem; }
.article__content h3 { font-size: 1.2rem; }
.article__content ul, .article__content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article__content li { margin-bottom: .45em; }
.article__content figure { margin: 28px 0; }
.article__content figure img { border-radius: var(--radius); width: 100%; }
.article__content figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: 8px; }
.article__content .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article__content table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.article__content th, .article__content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.article__content th { background: var(--gold-pale); color: var(--red-dark); font-weight: 700; }
.article__content tbody tr:nth-child(even) td { background: var(--bg-tint); }
.post-summary { background: var(--gold-pale); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.post-summary ul { margin-bottom: 0; }
/* Mục lục trượt bên trái bài viết; màn hình nhỏ thành hộp thu gọn ở đầu bài */
.article-grid { display: grid; grid-template-columns: 250px minmax(0, 820px); gap: 48px; justify-content: center; }
.article-grid > .article { padding: 0; margin: 0; max-width: none; min-width: 0; }
.toc { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 124px); overflow: auto; }
.admin-bar .toc { top: 132px; }
.toc summary { cursor: pointer; list-style: none; margin-bottom: 12px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-dark); }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc__list { border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.toc li li a { padding-left: 26px; font-size: .86rem; }
.toc li a:hover { color: var(--red); }
.toc li a.is-active { color: var(--red-dark); font-weight: 700; border-left-color: var(--gold); }
@media (max-width: 1080px) {
	.article-grid { grid-template-columns: minmax(0, 820px); gap: 0; }
	.toc { position: static; max-height: none; margin-bottom: 28px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
	.toc summary { margin-bottom: 0; }
	.toc details[open] summary { margin-bottom: 10px; }
	.toc summary::after { content: " ▾"; }
}
.post-meta__author { display: inline-flex; align-items: center; gap: 8px; }
.post-meta__author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.6); }
.article__content details { border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin: 10px 0; background: #fff; }
.article__content details summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--ink); }
.article__content details[open] summary { color: var(--red-dark); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.share__btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; color: var(--red); cursor: pointer; }
.share__btn:hover { border-color: var(--red); }
.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-tint); }
.author-box__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box__photo--mark { display: grid; place-items: center; background: var(--red); color: #fff; font-family: var(--serif); font-size: 2.2rem; }
.author-box p { margin: 0 0 .5em; }
.author-box__name { font-weight: 800; font-size: 1.1rem; color: var(--red-dark); }
.author-box__role { color: var(--muted); font-size: .92rem; }
.author-box__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: .9em !important; }
.related { margin-top: 56px; }
.related__title { font-family: var(--serif); color: var(--red-dark); }
.related .cards { grid-template-columns: repeat(3, 1fr); }
.chips { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; }
.chips small { color: var(--muted); }
@media (max-width: 900px) { .related .cards { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .author-box { flex-direction: column; } .article__content h2 { font-size: 1.35rem; } }

/* Responsive */
@media (max-width: 1024px) {
	.services { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(3, 1fr); }
	.cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); display: none; }
	.primary-nav.is-open { display: flex; }
	.primary-nav ul { flex-direction: column; gap: 0; }
	.primary-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.primary-nav .btn { margin-top: 14px; }
	.hero__inner, .about, .consult__inner { grid-template-columns: 1fr; }
	.hero__inner { padding-top: 44px; padding-bottom: 104px; gap: 40px; }
	.pledge { margin-top: -40px; }
	.hero__visual { width: min(100%, 320px); }
	.pledge__grid, .areas, .areas--two { grid-template-columns: 1fr; }
	.pledge__item { border-right: 0; border-bottom: 1px solid var(--line); }
	.about__media { max-width: 420px; }
	.about__stamp { right: 0; }
	.site-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.container { padding-left: 16px; padding-right: 16px; }
	.section { padding: 64px 0; }
	.topbar__tag { display: none; }
	.topbar__inner { justify-content: center; }
	.brand__text small { display: none; }
	.services, .cards, .steps, .form__row { grid-template-columns: 1fr; }
	.hero__actions .btn { flex: 1 1 100%; }
	.portrait__badge { left: 8px; }
	.about__media::before { inset: 14px -10px -14px 14px; }
	.form { padding: 24px 18px; }
}

/* Trang Giới thiệu, khu vực */
.about--rev { grid-template-columns: 1.1fr .9fr; }
.about__img--tall { aspect-ratio: 2 / 3 !important; }
.vows { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 8px; }
.vows__col h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--red-dark); margin: 0 0 .4em; }
.vows__col .ticks { margin: 12px 0 0; }
.vows__col--no .ticks .x { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: #8a8280; color: #fff; display: grid; place-items: center; font-size: 1rem; line-height: 1; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 0 0 32px; }
.facts > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 700; color: var(--red-dark); word-break: break-word; }
.facts a { color: inherit; }
.areas__note { margin: 28px 0 0; color: var(--muted); }
.areas__note a { color: var(--red); font-weight: 700; }
.section__head > p:not(.eyebrow) { color: var(--muted); margin: .8em 0 0; }
@media (max-width: 900px) { .about--rev { grid-template-columns: 1fr; } .vows { grid-template-columns: 1fr; } .areas { grid-template-columns: 1fr; } }

/* Hỏi đáp */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0 20px; }
.faq__item summary { cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--gold); }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { color: var(--muted); margin: 0 0 16px; }

/* =========================================================================
 * Đầu trang & hero kiểu mới (ericnhapho.com)
 * ====================================================================== */
.site-header__inner { min-height: 74px; }
.brand__mark { border-radius: 10px; width: 44px; height: 44px; font-size: 1.5rem; }
.brand__text strong { text-transform: none; font-size: 1.3rem; letter-spacing: 0; }
.primary-nav ul { gap: 30px; }
.primary-nav ul a { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; font-weight: 700; }

.xbtn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: 4px; font-weight: 700; font-size: 1rem; line-height: 1.2; border: 2px solid transparent; transition: background .15s, color .15s, transform .15s; }
.xbtn:hover { transform: translateY(-1px); }
.xbtn--red { background: var(--red); color: #fff; padding: .7em 1.2em; }
.xbtn--red:hover { background: var(--red-dark); color: #fff; }
.xbtn--white { background: #fff; color: var(--red); }
.xbtn--white:hover { background: var(--gold-pale); color: var(--red-dark); }
.xbtn--line { border-color: #fff; color: #fff; }
.xbtn--line:hover { background: rgba(255,255,255,.12); color: #fff; }

.xhero { position: relative; overflow: hidden; color: #fff; background: #fff; }
.xhero__bg { position: absolute; inset: 0; background: radial-gradient(900px 520px at 85% 15%, rgba(255,90,80,.35), transparent 60%), linear-gradient(120deg, var(--red-deep) 0%, var(--red-dark) 35%, var(--red) 100%); }
.xhero__inner { position: relative; z-index: 3; display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 32px; min-height: 620px; padding-top: 40px; }
.xhero__copy { align-self: center; padding-bottom: 150px; }
.xhero__eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; margin: 0 0 1em; }
.xhero__title { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; line-height: 1.12; margin-bottom: .5em; letter-spacing: -.01em; }
.xhero__text { font-size: 1.1rem; max-width: 34em; color: #fbe9e7; }
.xhero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.xhero__visual { position: relative; align-self: end; justify-self: center; width: min(100%, 440px); }
.xhero__visual::before { content: ""; position: absolute; left: 8%; right: 8%; top: 8%; bottom: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,232,170,.45), transparent); }
.xhero__visual img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(60,0,5,.35)); }
.xhero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 200px; z-index: 2; pointer-events: none; }

.features { position: relative; z-index: 4; padding: 8px 0 64px; background: #fff; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.feature__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--gold-pale); box-shadow: inset 0 0 0 2px rgba(201,154,46,.35); color: var(--red); margin-bottom: 16px; }
.feature__icon .enp-icon { width: 34px; height: 34px; }
.feature__title { font-size: 1.25rem; font-weight: 800; color: var(--ink); margin-bottom: .5em; }
.feature p { color: var(--muted); margin: 0; }
.pledge--flat { margin-top: 0; padding-bottom: 24px; }

@media (max-width: 900px) {
	.xhero__inner { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; }
	.xhero__copy { padding-bottom: 0; text-align: left; }
	.xhero__visual { width: min(78%, 340px); margin-bottom: 0; }
	.xhero__wave { height: 110px; }
	.features__grid { grid-template-columns: repeat(2, 1fr); }
	.xbtn--red { margin-top: 14px; }
}
@media (max-width: 560px) {
	.features__grid { grid-template-columns: 1fr; }
	.xhero__actions .xbtn { flex: 1 1 100%; }
}

/* Thân trang cùng kiểu đầu trang: chữ không chân đậm, nút vuông */
.section__title { font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.section--red .section__title { color: #fff; }
.btn { border-radius: 4px; }
.eyebrow::before { height: 3px; }
.kygui__cta { margin: 28px 0 0; }
.site-footer__brand { font-weight: 800; }

/* Trang Giới thiệu: lo ngại, phù hợp, so sánh, chuẩn bị */
.services--3 { grid-template-columns: repeat(3, 1fr); }
.page-hero .xhero__actions { margin-top: 24px; }
.fit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fit__item { border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 8px; padding: 22px 24px; background: #fff; }
.fit__num { display: inline-block; font-weight: 800; font-size: 1.4rem; background: var(--gold-metal-soft); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold); margin-bottom: 6px; }
.fit__item h3 { font-size: 1.1rem; margin-bottom: .4em; }
.fit__item p { color: var(--muted); margin: 0; font-size: .95rem; }
.compare-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 600px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.compare thead th { background: var(--red); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.compare thead th:last-child { background: var(--red-dark); }
.compare tbody th { font-weight: 700; color: var(--ink); width: 26%; }
.compare td { color: var(--muted); }
.compare td:last-child { color: var(--ink); font-weight: 600; background: var(--gold-pale); }
.compare td .enp-icon { color: var(--red); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.prep { margin-top: 32px; border: 1px solid rgba(243,217,139,.4); border-radius: 8px; padding: 22px 26px; background: rgba(0,0,0,.12); }
.prep__title { font-weight: 700; color: #fff; margin-bottom: .6em; }
.prep ul { margin: 0; padding-left: 1.2em; color: #f7e6c3; columns: 2; column-gap: 32px; }
.prep li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 900px) {
	.services--3, .fit, .steps--3 { grid-template-columns: 1fr; }
	.prep ul { columns: 1; }
}

/* Hệ nút thống nhất: cùng cỡ, góc vuông nhẹ; đỏ = hành động chính, viền = phụ, vàng = gửi form */
.btn, .xbtn { padding: .85em 1.5em; border-radius: 4px; font-size: 1rem; gap: .55em; }
.btn .enp-icon, .xbtn .enp-icon { width: 1.15em; height: 1.15em; }
.btn--gold { box-shadow: 0 6px 16px rgba(150,105,25,.3), inset 0 1px 0 rgba(255,255,255,.6); }
.btn--outline:hover { background: var(--red); color: #fff; }
.xbtn--red { padding: .7em 1.2em; font-size: .95rem; white-space: nowrap; }
.xhero__more { margin: 18px 0 0; }
.xhero__more a { color: #f6dd8f; font-weight: 600; display: inline-flex; align-items: center; gap: .4em; }
.xhero__more a:hover { color: #fff; }
.kygui__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.about__actions, .consult__direct { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) {
	.kygui__cta .btn, .consult__direct .btn, .about__actions .btn { flex: 1 1 100%; }
}
