/* =========================================================
   Nhà Nắng Interior – template nt-01 (thietkeweb.dev)
   Mobile-first · no framework
   ========================================================= */
:root {
  --bg: #f6f0e7;
  --surface: #efe6d8;
  --ink: #2a2620;
  --muted: #6d6558;
  --pri: #3d4a35;
  --acc: #b5603c;
  --acc-text: #a2532f;
  --line: #e3d8c6;
  --line-strong: #d3c5ae;
  --shadow: 0 22px 44px -22px rgba(61,74,53,.45);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head: "Fraunces", Georgia, serif;
  --head-w: 600;
  --header-h: 72px;
  --call: #b5603c;
  --footer-bg: #2b3426;
  --btn-r: 999px;
  --input-r: 12px;
  --header-bg: rgba(246,240,231,.94);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-variant-numeric: lining-nums; }
h1, h2 { font-family: var(--head); font-weight: var(--head-w, 700); letter-spacing: var(--head-ls, -.01em); text-wrap: balance; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { fill: currentColor; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--pri); color: #fff; padding: 10px 16px; }
.skip:focus { left: 10px; top: 10px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--btn-r, 10px); border: 1.5px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .2s, box-shadow .25s; white-space: nowrap; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn--pri { background: var(--pri); color: var(--pri-ink, #fff); }
.btn--pri:hover { filter: brightness(1.08); box-shadow: var(--shadow); }
.btn--acc { background: var(--acc); color: var(--acc-ink, #fff); }
.btn--acc:hover { filter: brightness(1.06); box-shadow: var(--shadow); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--line { border-color: currentColor; color: var(--pri); }
.btn--line:hover { background: var(--pri); color: var(--pri-ink, #fff); border-color: var(--pri); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acc-text, var(--acc)); margin-bottom: 10px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--header-bg, rgba(255,255,255,.96)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(0,0,0,.35); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--logo, var(--ink)); flex: none; }
.logo__mark { width: 38px; height: 38px; flex: none; color: var(--acc); }
.logo__text { font-family: var(--head); font-size: 21px; font-weight: 700; line-height: 1; display: flex; flex-direction: column; letter-spacing: -.01em; }
.logo__text small { font-family: var(--font); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-top: 5px; }
.header__actions { display: flex; align-items: center; gap: 8px; }
.burger { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-content: center; gap: 5px; cursor: pointer; border-radius: 8px; color: var(--logo, var(--ink)); }
.burger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: var(--nav-bg, var(--bg)); color: var(--nav-ink, var(--ink)); padding: 12px 20px 40px; opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .3s, transform .3s, visibility .3s; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; border-top: 1px solid var(--line); }
.menu-open .nav { opacity: 1; transform: none; visibility: visible; }
.menu-open { overflow: hidden; }
.nav ul { display: flex; flex-direction: column; }
.nav li a { display: block; padding: 13px 4px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav li a:hover { color: var(--acc-text, var(--acc)); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--surface); }
.sec-head { max-width: 680px; margin: 0 0 32px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 5vw, 42px); margin-bottom: 12px; }
.sec-head p { color: var(--muted); margin: 0; }
.sec-head--light h2 { color: #fff; }
.sec-head--light p { color: rgba(255,255,255,.78); }
.muted { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label span { color: var(--acc-text, var(--acc)); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--input-r, 8px); border: 1.5px solid var(--line-strong, var(--line)); background: var(--input-bg, #fff); color: var(--input-ink, var(--ink)); transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23777'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 22px; padding-right: 38px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent); }
.field [aria-invalid="true"] { border-color: #d33c3c; }
.err { display: block; color: #d33c3c; font-size: 13px; min-height: 0; margin-top: 4px; }
.err:empty { display: none; }
.form__privacy { font-size: 12.5px; color: var(--muted); margin: 0; }
.form__ok { padding: 14px 16px; border-radius: 10px; background: #e8f6ec; color: #1d5e33; border: 1px solid #b9e2c6; font-size: 14.5px; }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg, #111); color: var(--footer-ink, rgba(255,255,255,.72)); padding: 56px 0 0; font-size: 14.5px; }
.footer__grid { display: grid; gap: 32px; padding-bottom: 36px; }
.footer .logo { color: #fff; }
.footer .logo__text small { color: rgba(255,255,255,.55); }
.footer__brand p { margin: 16px 0 0; max-width: 360px; }
.footer__title { font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer__links li { margin-bottom: 9px; }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; padding-bottom: 72px; font-size: 13px; }
.footer__bottom p { margin: 0; }
.footer__bottom a { text-decoration: underline; }

/* ---------- Floating contact + demo badge ---------- */
.float { position: fixed; right: 16px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 12px; }
.float__btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(0,0,0,.35); position: relative; transition: transform .2s; }
.float__btn:hover { transform: scale(1.06); }
.float__btn--zalo { background: #0068ff; }
.float__btn--zalo svg { width: 38px; height: 38px; }
.float__btn--call { background: var(--call, var(--acc)); }
.float__btn--call svg { width: 24px; height: 24px; fill: var(--call-ink, #fff); }
.float__btn--call::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--call, var(--acc)); animation: ring 2s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.demo-badge { position: fixed; left: 10px; bottom: 10px; z-index: 65; max-width: calc(100% - 90px); font: 500 11px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #fff; background: rgba(17,17,17,.82); padding: 6px 11px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.2); opacity: .9; transition: opacity .2s; }
.demo-badge:hover { opacity: 1; text-decoration: underline; }
@media (min-width: 600px) { .demo-badge { font-size: 12px; } }

@media (min-width: 768px) {
  .section { padding: 88px 0; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .float { right: 24px; bottom: 28px; }
  .float__btn { width: 56px; height: 56px; }
}
@media (min-width: 1024px) {
  .burger { display: none; }
  .nav { position: static; height: auto; background: none; color: inherit; padding: 0; opacity: 1; transform: none; visibility: visible; flex-direction: row; align-items: center; gap: 24px; border: 0; overflow: visible; }
  .nav ul { flex-direction: row; gap: 26px; }
  .nav li a { padding: 6px 0; font-size: 15px; border: 0; color: var(--logo, var(--ink)); }
  .nav__cta { display: none; }
  .container { padding: 0 32px; }
}
@media (max-width: 1023.98px) { .header__actions .btn--hide-m { display: none; } }
.logo { min-width: 0; flex: 0 1 auto; }
.logo__text { min-width: 0; white-space: nowrap; }
.logo__text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) {
  .header__inner { gap: 8px; }
  .logo { gap: 8px; }
  .logo__mark { width: 32px; height: 32px; }
  .logo__text { font-size: 18px; }
  .logo__text small { font-size: 8.5px; letter-spacing: .1em; }
  .header__actions { gap: 2px; }
  .header__actions .btn--sm { padding: 8px 12px; font-size: 13px; min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); }
.social a:hover { background: rgba(255,255,255,.1); }
.social svg { width: 17px; height: 17px; fill: #fff; }

/* ===== template-specific ===== */
.header { --header-bg: rgba(246,240,231,.94); }
.hero { padding: 28px 0 56px; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(36px, 8vw, 66px); line-height: 1.06; margin-bottom: 18px; font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--acc); font-weight: 500; }
.hero__lead { font-size: 17.5px; color: var(--muted); max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero__stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats b { font-family: var(--head); font-size: 32px; font-weight: 600; color: var(--pri); line-height: 1.1; }
.hero__stats span { font-size: 13.5px; color: var(--muted); }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 220px 220px 18px 18px; }
.hero__badge { position: absolute; left: -6px; bottom: 26px; background: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; max-width: 240px; }
.hero__badge b { font-family: var(--head); font-size: 17px; color: var(--pri); }
.hero__badge span { font-size: 13px; color: var(--muted); }
.pf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 28px; }
.pf-head .sec-head { margin: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; max-width: 100%; scrollbar-width: none; }
.chip { flex: none; border: 1.5px solid var(--line-strong); background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); transition: .2s; }
.chip:hover { border-color: var(--pri); }
.chip.is-on { background: var(--pri); border-color: var(--pri); color: #fff; }
.pf-grid { display: grid; gap: 16px; grid-auto-flow: dense; }
.pf { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.pf img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pf:hover img { transform: scale(1.05); }
.pf__cap { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; color: #fff; background: linear-gradient(transparent, rgba(30,24,18,.82)); }
.pf__tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--acc); padding: 3px 9px; border-radius: 4px; margin-bottom: 8px; }
.pf h3 { font-family: var(--head); font-size: 21px; font-weight: 600; }
.pf__cap p { margin: 2px 0 0; font-size: 13.5px; opacity: .88; }
.svc { display: grid; gap: 18px; }
.svc__item { background: #fff; border-radius: 18px; padding: 28px 24px; border: 1px solid var(--line); }
.svc__item--hi { background: var(--pri); color: #f6efe4; border-color: var(--pri); }
.svc__item--hi p { color: rgba(246,239,228,.8); }
.svc__ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--acc) 15%, #fff); margin-bottom: 16px; }
.svc__ic svg { width: 24px; height: 24px; fill: var(--acc); }
.svc__item h3 { font-family: var(--head); font-size: 23px; font-weight: 600; margin-bottom: 8px; }
.svc__item p { color: var(--muted); font-size: 15px; }
.svc__price { margin: 18px 0 0 !important; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.svc__price b { font-family: var(--head); font-size: 24px; color: var(--acc); }
.svc__item--hi .svc__price b { color: #f2b48e; }
.proc { display: grid; gap: 36px; }
.proc__img { margin-top: 28px; border-radius: 18px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.steps { display: grid; gap: 4px; }
.steps li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps b { font-family: var(--head); font-size: 34px; font-weight: 500; color: var(--acc); line-height: 1; min-width: 52px; }
.steps h3 { font-family: var(--head); font-size: 21px; font-weight: 600; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.quotes { display: grid; gap: 18px; }
.quotes figure { margin: 0; background: #fff; border-radius: 18px; padding: 26px; border: 1px solid var(--line); }
.quotes blockquote { margin: 0 0 16px; font-family: var(--head); font-size: 19px; line-height: 1.45; font-style: italic; }
.quotes figcaption { font-size: 14px; color: var(--muted); }
.quotes figcaption b { color: var(--ink); }
.consult { background: var(--pri); color: #f6efe4; }
.consult__grid { display: grid; gap: 32px; }
.consult h2 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 14px; color: #fff; }
.consult .eyebrow { color: #f2b48e; }
.consult__text > p { color: rgba(246,239,228,.82); }
.ticks li { display: flex; gap: 10px; margin-bottom: 10px; }
.ticks svg { width: 22px; height: 22px; flex: none; fill: #f2b48e; }
.consult__hot { margin-top: 22px; }
.consult__hot a { display: block; font-family: var(--head); font-size: 32px; font-weight: 600; color: #fff; }
.card-form { background: #fffaf3; color: var(--ink); padding: 24px 20px; border-radius: 20px; }
@media (min-width: 600px) {
  .pf-grid { grid-template-columns: 1fr 1fr; }
  .pf--big { grid-column: span 2; aspect-ratio: 16 / 9; }
  .card-form { grid-template-columns: 1fr 1fr; padding: 32px; }
  .field--full { grid-column: 1 / -1; }
  .quotes { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .hero { padding: 48px 0 80px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .hero__media img { aspect-ratio: 5 / 6; }
  .pf-grid { grid-template-columns: repeat(3, 1fr); }
  .pf--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .pf--tall { grid-row: span 2; aspect-ratio: auto; }
  .pf--wide { grid-column: span 2; aspect-ratio: auto; }
  .is-filtered .pf { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .svc { grid-template-columns: repeat(3, 1fr); }
  .proc { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .consult__grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
}
