/*
Theme Name: Estates
Theme URI: https://rubix-estates.com/
Author: Rubix International
Description: Giao diện riêng của Estates by Rubix International (EN, VN, DE). Dựng theo Quy chuẩn website Rubix Estates D3, 16/10/2026.
Version: 1.0.31
Requires at least: 7.0
Requires PHP: 8.1
Text Domain: estates
*/

:root {
  --navy: #002B41;          /* from the logo files */
  --navy-90: #0C3A52;
  --ink: #1F2428;           /* headings on light */
  --text: #3B4045;          /* body on light */
  --muted: #606468;         /* captions, labels */
  --ivory: #F7F4EE;         /* page */
  --stone: #EDE7DD;         /* quiet sections */
  --line: rgba(0, 43, 65, .16);
  --line-on-navy: rgba(255, 255, 255, .18);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", Arial, sans-serif;
  --g: 16px;                /* side gutter */
  --sec: 64px;              /* section spacing */
  --max: 1360px;
}
@media (min-width: 768px)  { :root { --g: 24px; --sec: 80px; } }
@media (min-width: 1024px) { :root { --g: 32px; --sec: 96px; } }
@media (min-width: 1440px) { :root { --g: 48px; --sec: 120px; } }
@media (min-width: 1920px) { :root { --g: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--text); font: 400 16px/1.7 var(--sans); }
@media (min-width: 1024px) { body { font-size: 17px; line-height: 1.75; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; color: var(--ink); margin: 0; letter-spacing: 0; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--g)); margin: 0 auto; padding: 0 var(--g); }
.eyebrow { font: 500 12px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.serif-lg { font-size: clamp(30px, 3vw, 44px); line-height: 1.15; }
.lead { font-size: 18px; line-height: 1.7; color: var(--text); }
@media (min-width: 1024px) { .lead { font-size: 19px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 30px;
  font: 500 11px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; text-align: center;
  color: var(--navy); border: 1px solid var(--navy); background: transparent; transition: background .25s, color .25s; }
.btn:hover { background: var(--navy); color: #fff; }
.btn--light { color: #fff; border-color: rgba(255,255,255,.7); }
.btn--light:hover { background: #fff; color: var(--navy); }
.more { display: inline-flex; align-items: center; gap: 14px; font: 500 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--navy); padding: 12px 0; }
.more::after { content: ""; width: 36px; height: 1px; background: currentColor; transition: width .25s; }
.more:hover::after { width: 56px; }

/* ---------- header ---------- */
.hdr { background: var(--ivory); position: relative; z-index: 20; }
.hdr__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
@media (min-width: 768px) { .hdr__bar { height: 76px; } }
.hdr__logo img { height: 30px; width: auto; }
@media (min-width: 768px) { .hdr__logo img { height: 36px; } }
.hdr__cities { display: none; font: 500 10.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.burger { justify-self: start; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; min-width: 44px; padding: 0;
  background: none; border: 0; color: var(--navy); cursor: pointer; font: 500 10.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.burger span.lines { display: grid; gap: 5px; }
.burger span.lines i { display: block; width: 22px; height: 1px; background: currentColor; }
.burger .lbl { display: none; }
@media (min-width: 768px) { .burger .lbl { display: inline; } }
.flags { justify-self: end; display: flex; gap: 10px; align-items: center; }
.flags a { position: relative; display: block; width: 26px; height: 18px; opacity: .45; transition: opacity .2s; outline-offset: 4px; }
.flags a:hover, .flags a[aria-current] { opacity: 1; }
.flags img { width: 26px; height: 18px; object-fit: cover; box-shadow: 0 0 0 .5px rgba(0,0,0,.15); }
.nav { display: none; }
@media (min-width: 1280px) {
  .hdr__bar { height: 104px; }
  .hdr__logo img { height: 44px; }
  .hdr__cities { display: block; }
  .burger { display: none; }
  .nav { display: block; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 52px; }
  .nav a { display: block; padding: 19px 0 17px; font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
    text-decoration: none; color: var(--text); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
  .nav a:hover { color: var(--navy); }
  .nav a[aria-current], .nav .current-page-ancestor > a, .nav .current_page_parent > a { color: var(--navy); border-bottom-color: var(--navy); }
}
/* overlay menu (below 1280px) */
.overlay { position: fixed; inset: 0; background: var(--navy); color: #fff; z-index: 50; display: none; flex-direction: column; }
.overlay.open { display: flex; }
.overlay[hidden] { display: none; }
.overlay .hdr__bar { width: 100%; }
.overlay .burger { color: #fff; }
.overlay ul { list-style: none; margin: auto 0; padding: 0 var(--g); text-align: center; }
.overlay li + li { margin-top: 6px; }
.overlay ul a { display: inline-block; padding: 8px 0; font: 300 32px/1.25 var(--serif); color: #fff; text-decoration: none; }
@media (min-width: 768px) { .overlay ul a { font-size: 40px; } }
.overlay ul a[aria-current], .overlay .current-page-ancestor > a { font-style: italic; }
.overlay__foot { padding: 24px var(--g) 32px; text-align: center; font: 500 10.5px/1.6 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.overlay .flags a { opacity: .5; } .overlay .flags a[aria-current] { opacity: 1; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; height: calc(100svh - 64px); min-height: 520px; max-height: 920px; overflow: hidden; background: var(--navy); }
@media (min-width: 768px) { .hero { height: calc(100svh - 76px); } }
@media (min-width: 1280px) { .hero { height: calc(100svh - 160px); min-height: 600px; } }
.hero > picture, .hero > picture img, .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 22, 33, .72) 0%, rgba(0, 22, 33, .34) 40%, rgba(0, 22, 33, 0) 72%), linear-gradient(to right, rgba(0, 22, 33, .28) 0%, rgba(0, 22, 33, 0) 60%); }
.hero__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-bottom: 48px; }
@media (min-width: 1024px) { .hero__text { padding-bottom: 72px; } }
.hero .eyebrow { color: #fff; font-weight: 600; text-shadow: 0 1px 12px rgba(0, 22, 33, .55); }
/* Hero: each line stays whole; --hw = width of the longest line in em, so the size never exceeds the column (DE line is longer) */
.hero h1 { --hw: 9; color: #fff; font-size: min(clamp(36px, 4.6vw, 76px), calc((100vw - 2 * var(--g)) / var(--hw))); line-height: 1.08; }
:lang(de) .hero h1 { --hw: 10.2; }
.hero__ln { white-space: nowrap; }
.hero--brand { height: 72svh; min-height: 460px; max-height: 820px; }
.hero--brand::after { background: rgba(0, 22, 33, .42); }
.hero__logo { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.hero__logo img { width: min(62vw, 340px); height: auto; }

/* ---------- page head ---------- */
.phead { text-align: center; padding-block: 64px 48px; }
@media (min-width: 1024px) { .phead { padding-block: 96px 64px; } }
.phead h1 { font-size: clamp(34px, 3.8vw, 58px); line-height: 1.12; margin: 0 auto; text-wrap: balance; }
.phead .lead { max-width: 880px; margin: 28px auto 0; text-wrap: balance; }
.figure { margin: 0; }
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 1024px) { .figure--wide img { aspect-ratio: 21 / 9; } }

/* ---------- sections ---------- */
.sec { padding: var(--sec) 0; }
.sec--stone { background: var(--stone); }
.sec--navy { background: var(--navy); color: rgba(255,255,255,.86); }
.sec--navy h2 { color: #fff; }
.split { display: grid; gap: 28px; }
@media (min-width: 1024px) { .split { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } .split > :last-child { max-width: 640px; } }
.prose { max-width: 1040px; margin: 0 auto; }
.prose--legal { max-width: 760px; }
.prose h2 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.2; margin: 56px 0 20px; }
.prose h2:first-child { margin-top: 0; }
.prose--legal h2 { font: 600 15px/1.4 var(--sans); letter-spacing: .02em; color: var(--ink); margin: 36px 0 10px; }
.note { font-size: 13px; color: var(--muted); }

/* brand cards (home) */
.cards { display: grid; gap: 56px; margin-top: 48px; }
@media (min-width: 768px) { .cards { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (min-width: 1440px) { .cards { gap: 48px; } }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card__img { overflow: hidden; }
.card__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s ease; }
.card:hover .card__img img { transform: scale(1.03); }
.card__tile { display: block; width: 136px; height: auto; align-self: flex-start; margin: 32px 0 24px; }
@media (min-width: 1024px) { .card__tile { width: 156px; } }
.card h3 { font-size: 26px; line-height: 1.25; font-style: italic; margin-bottom: 12px; }
.card p { max-width: 46ch; }
.card .more { margin-top: auto; padding-top: 20px; align-self: flex-start; }

/* statement */
.statement { text-align: center; }
.statement .statement__q { margin: 0 auto 28px; max-width: 30ch; text-wrap: balance; font: 300 clamp(28px, 3vw, 44px)/1.25 var(--serif); color: var(--ink); }

/* owners */
.owners { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1024px) { .owners { grid-template-columns: 1fr 1fr; gap: 72px; } }
.owners img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.owners h2 { margin-bottom: 24px; }
.steps-mini { list-style: none; margin: 28px 0 24px; padding: 0; border-top: 1px solid var(--line); }
.steps-mini { counter-reset: n; }
.steps-mini li { counter-increment: n; display: flex; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); font: 400 22px/1.3 var(--serif); color: var(--ink); }
.steps-mini li::before { content: "0" counter(n); font: 500 11px/2.4 var(--sans); letter-spacing: .2em; color: var(--muted); }

/* closing band */
.closing { text-align: center; }
.closing h2 { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.2; text-wrap: balance; margin: 0 auto 36px; }

/* principles */
.principles { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .principles { grid-template-columns: repeat(4, 1fr); } }
.principle { padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .principle { padding: 32px 32px 32px 0; } }
.principle h3 { font-size: 28px; line-height: 1.2; margin-bottom: 12px; }
.principle .num { font: 500 11px/1 var(--sans); letter-spacing: .2em; color: var(--muted); display: block; margin-bottom: 20px; }

/* services stages */
.stage { display: grid; gap: 20px; padding: 48px 0; border-top: 1px solid var(--line); }
.stage:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .stage { grid-template-columns: 5fr 7fr; gap: 64px; padding: 64px 0; } }
.stage__num { font: 300 56px/1 var(--serif); color: #56717E; display: block; margin-bottom: 16px; }
.stage h2 { font-size: clamp(28px, 2.4vw, 36px); line-height: 1.2; }
.stage ul { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.stage li { padding: 13px 0; border-bottom: 1px solid var(--line); }
/* Dưới 1024px: bỏ đường kẻ dưới mục cuối, để giữa hai giai đoạn chỉ còn một đường kẻ, không thành một dòng trống. */
/* last service group: no closing rule; the stone block follows 24px below the list (all widths) */
.stage li:last-child { border-bottom: 0; }
.stage:last-child { border-bottom: 0; padding-bottom: 0; }
.sec:has(> .wrap > .stage) { padding-bottom: 24px; }
@media (max-width: 1023px) { .stage { padding: 40px 0; } .stage:last-child { padding-bottom: 0; } }
.steps { display: grid; gap: 0; margin-top: 40px; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: 1fr 1fr; gap: 0 32px; } }
@media (min-width: 1280px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 24px 0 28px; border-top: 1px solid var(--navy); }
.step h3 { font: 600 15px/1.4 var(--sans); color: var(--ink); margin: 14px 0 8px; }
.step .num { font: 500 11px/1 var(--sans); letter-spacing: .2em; color: var(--muted); }
.cta-row { margin-top: 48px; }

/* brands page rows */
.brow { display: grid; gap: 32px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.brow:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .brow { grid-template-columns: 7fr 5fr; gap: 72px; padding: 72px 0; } .brow--rev .brow__img { order: 2; } }
.brow__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.brow__tile { display: block; width: 136px; height: auto; margin-bottom: 24px; }
@media (min-width: 1024px) { .brow__tile { width: 156px; } }
.brow .seg { font: 500 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.brow h2 { font-size: 30px; line-height: 1.2; font-style: italic; margin-bottom: 14px; }

/* brand detail */
.pillars { display: grid; gap: 0; margin: 56px auto 0; max-width: 1040px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .pillars { grid-template-columns: 1fr 1fr; gap: 0 48px; } }
.pillar { padding: 28px 0; border-bottom: 1px solid var(--line); }
.pillar h2, .pillar h3 { font-size: 26px; font-style: italic; margin-bottom: 10px; }
.facts { margin: 0 auto; max-width: 1040px; display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .facts { grid-template-columns: 1fr 1fr; gap: 64px; } }
.facts img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.facts-table { margin: 0; }
.facts-table table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.facts-table td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.facts-table td:first-child { width: 42%; padding-right: 16px; font: 500 11px/1.9 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.facts dl { margin: 0; border-top: 1px solid var(--line); }
.facts dl div { display: grid; grid-template-columns: 1fr 1.8fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 11px/1.9 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
.facts .btn { margin-top: 32px; }
.pager { display: flex; justify-content: space-between; gap: 16px; padding-block: 28px; border-top: 1px solid var(--line); }
.pager a { font: 500 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--navy); padding: 10px 0; }

/* publications */
.pub { display: grid; gap: 28px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.pub:first-child { border-top: 0; padding-top: 0; }
.pub:last-of-type { border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .pub { grid-template-columns: 5fr 7fr; gap: 64px; } }
.pub img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #fff; }
.pub h2 { font-size: 32px; margin-bottom: 16px; }
.pub p.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* contact */
.offices { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
@media (min-width: 768px) { .offices { grid-template-columns: repeat(2, 1fr); gap: 0 32px; } .offices > :last-child { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .offices { grid-template-columns: repeat(3, 1fr); } .offices > :last-child { grid-column: auto; } }
.office { padding: 28px 0; border-bottom: 1px solid var(--line); }
.office h2 { font-size: 26px; margin-bottom: 10px; }

/* portfolio */
.quiet { text-align: center; padding: var(--sec) 0; }
.quiet p { max-width: 880px; margin: 0 auto 36px; text-wrap: balance; }
.mono { display: block; width: 120px; height: auto; margin: 0 auto 40px; opacity: .9; }

/* ---------- footer ---------- */
.ftr { background: var(--navy); color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.7; }
.ftr__top { padding-block: 64px 40px; text-align: center; border-top: 1px solid var(--line-on-navy); }
.ftr__logo { width: 168px; height: auto; margin: 0 auto; }
@media (min-width: 1024px) { .ftr__logo { width: 192px; } }
.ftr__cols { display: grid; gap: 28px; padding-block: 40px; border-top: 1px solid var(--line-on-navy); }
@media (min-width: 768px) { .ftr__cols { grid-template-columns: repeat(2, 1fr); gap: 32px; } .ftr__mail { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .ftr__cols { grid-template-columns: repeat(3, 1fr); } .ftr__mail { grid-column: auto; } }
.ftr h2 { font: 500 10.5px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #fff; margin: 0 0 10px; }
.ftr a { color: rgba(255,255,255,.86); text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ftr__nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 2px 16px; }
@media (max-width: 1023px), (pointer: coarse) { .ftr__nav { row-gap: 25px; } }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 24px; border-top: 1px solid var(--line-on-navy);
  font-size: 13px; color: rgba(255,255,255,.72); }
.ftr__bottom > div:first-child { display: flex; flex-wrap: wrap; }
.ftr__bottom span { white-space: nowrap; }
.ftr__bottom span + span::before { content: "·"; margin: 0 .75em; }
.strip { height: 5px; display: grid; grid-template-columns: repeat(6, 1fr) 12fr; }
.strip i:nth-child(1) { background: #1A5860; } .strip i:nth-child(2) { background: #0A7559; } .strip i:nth-child(3) { background: #0E3236; }
.strip i:nth-child(4) { background: #6F3B20; } .strip i:nth-child(5) { background: #E8252C; } .strip i:nth-child(6) { background: #EF6926; }
.strip i:nth-child(7) { background: #F79B2A; }

/* ---------- WordPress ---------- */
.wp-block-image, figure { margin: 0; }
.wp-block-group { box-sizing: border-box; }
.sec--top0 { padding-top: 0; }
.statement .more { margin-top: 0; }
.screen-reader-text, .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; font: 500 12px/1 var(--sans); }
.skip:focus { top: 8px; }
.nav ul, .overlay ul, .ftr__nav { list-style: none; }
.overlay ul li { display: block; }
.sub-note { margin-top: 16px; }
.prose--legal ul { padding-left: 1.2em; }
body.admin-bar .overlay { top: 46px; }
@media (min-width: 783px) { body.admin-bar .overlay { top: 32px; } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.begin-note { margin-top: 20px; }

/* Tiêu đề có dấu phẩy: một dòng khi đủ chỗ; khi phải xuống dòng thì mỗi vế một dòng, ẩn dấu phẩy (xem es_hd và estates.js). */
.is-split .hl { display: block; }
.is-split .hc { display: none; }
.hk { white-space: nowrap; }
/* Trang thương hiệu trên điện thoại (dọc và ngang): tiêu đề luôn tách mỗi vế một dòng, nên The Living và The Premier giống nhau */
@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {
  .hero--brand + .phead h1 .hl { display: block; }
  .hero--brand + .phead h1 .hc { display: none; }
}

/* Địa chỉ (es_office): mỗi đoạn một dòng; điện thoại, email không gạch chân ở mọi trạng thái, mọi thiết bị. */
.adr .al { display: block; }
.adr a, .adr a:hover, .adr a:focus, .ftr .adr a:hover { text-decoration: none; border-bottom: 0; color: inherit; }
.adr a:hover { opacity: .75; }
p { text-wrap: pretty; }

/* ---------- tap targets ----------
 * Điện thoại, email, liên kết chân trang, cờ ngôn ngữ, nút "Xem thêm" và liên kết chuyển trang: vùng bấm cao tối thiểu 44px
 * (lớp vô hình ::before), chữ và bố cục không đổi. */
.tel, .mail, .ftr a, .pager a, .more, .hdr__logo { position: relative; }
.tel::before, .mail::before, .ftr__nav a::before, .ftr__bottom a::before, .pager a::before, .more::before, .flags a::before, .hdr__logo::before {
  content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
.flags a::before { left: -5px; right: -5px; }
/* Chữ nhỏ trên điện thoại: chân trang 15px */
@media (max-width: 767px) { .ftr { font-size: 15px; } }

/* ---------- content text = lead size ----------
 * Đoạn nội dung chính ở mọi trang dùng cùng cỡ với đoạn giới thiệu Trang chủ (.lead): 18px dưới 1024px, 19px từ 1024px.
 * Thẻ thương hiệu, khối chủ sở hữu (Trang chủ); Chúng tôi là ai, Cách chúng tôi làm việc (Giới thiệu); danh mục dịch vụ (Dịch vụ);
 * giới thiệu hai thương hiệu (Thương hiệu); trụ cột và bảng đặc tính (trang thương hiệu); ba đoạn của trang Ấn phẩm. */
.card p, .owners-text p:not(.eyebrow), .who-p p, .principle p, .stage li, .brow p:not(.seg), .pillar p,
.facts-table td:not(:first-child), .pub-text p:not(.btns), .pubs-close { font-size: 18px; line-height: 1.7; }
@media (min-width: 1024px) {
  .card p, .owners-text p:not(.eyebrow), .who-p p, .principle p, .stage li, .brow p:not(.seg), .pillar p,
  .facts-table td:not(:first-child), .pub-text p:not(.btns), .pubs-close { font-size: 19px; }
}
/* Bảng đặc tính trên điện thoại nhỏ (dưới 480px): nhãn nằm trên, nội dung nằm dưới, dùng hết bề ngang,
 * nên từ dài tiếng Đức (Feriendestinationen, Positionierung) không bị cắt và không tràn ngang. */
@media (max-width: 479px) {
  .facts-table tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .facts-table td { display: block; width: auto !important; padding: 0 !important; border-bottom: 0; }
  .facts-table td:first-child { margin-bottom: 4px; }
}
.facts-table td { overflow-wrap: break-word; }
/* Khối Cách bắt đầu (Dịch vụ): câu dẫn, tên bước và nội dung bước cùng cỡ đoạn nội dung chính (19px; 18px dưới 1024px).
 * Bảng đặc tính (trang thương hiệu): nhãn cùng cỡ với nội dung, chữ thường, đậm 600, màu chữ phụ, thẳng hàng với dòng đầu của nội dung. */
.begin-note, .step h3, .step p:not(.num), .facts-table td:first-child { font-size: 18px; line-height: 1.7; }
@media (min-width: 1024px) { .begin-note, .step h3, .step p:not(.num), .facts-table td:first-child { font-size: 19px; } }
.step h3 { font-weight: 600; margin: 14px 0 6px; }
.facts-table td:first-child { font-family: var(--sans); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
/* Trang Bảo vệ dữ liệu: đoạn nội dung và tiêu đề mục cùng cỡ đoạn nội dung chính (19px; 18px dưới 1024px); tiêu đề mục đậm 600 */
.prose--legal p:not(.note), .prose--legal li { font-size: 18px; line-height: 1.7; }
.prose--legal h2 { font-size: 18px; line-height: 1.5; letter-spacing: 0; }
@media (min-width: 1024px) { .prose--legal p:not(.note), .prose--legal li, .prose--legal h2 { font-size: 19px; } }
.prose--legal { max-width: 800px; }
/* Điện thoại hẹp (dưới 360px): cờ 22 × 15px, cách 8px để không chạm logo; vùng bấm vẫn 44px */
@media (max-width: 359px) { .flags { gap: 8px; } .flags a, .flags img { width: 22px; height: 15px; } }
/* ---------- header cố định trên iPhone, iPad (dưới 1280px) ----------
 * Thanh đầu trang (nút menu, logo, cờ) luôn nằm ở mép trên khi cuộn; đường kẻ mảnh phía dưới tách khỏi nội dung.
 * Khi đăng nhập, thanh quản trị WordPress cố định từ 600px nên header nằm ngay dưới thanh đó. */
@media (max-width: 1279px) {
  .hdr { position: sticky; top: 0; border-bottom: 1px solid var(--line); }
  html { scroll-padding-top: 64px; }
}
@media (min-width: 768px) and (max-width: 1279px) { html { scroll-padding-top: 76px; } }
@media (min-width: 600px) and (max-width: 782px) { .admin-bar .hdr { top: 46px; } }
@media (min-width: 783px) and (max-width: 1279px) { .admin-bar .hdr { top: 32px; } }

/* ---------- 1.0.20: căn chỉnh theo ý kiến 23/10/2026 ----------
 */
/* Trang Thương hiệu (từ 1024px): ảnh hai hàng cùng cỡ (cột 7 phần); ảnh cao bằng khối chữ, mép trên ngang ô logo, mép dưới ngang
 * dòng "Khám phá"; khi ảnh cao hơn khối chữ thì khối chữ nằm giữa theo chiều dọc. */
@media (min-width: 1024px) {
  .brow { align-items: stretch; }
  .brow--rev { grid-template-columns: 5fr 7fr; }
  .brow__img { position: relative; align-self: stretch; min-width: 0; }
  .brow__img::before { content: ""; display: block; padding-top: 66.667%; }
  .brow__img img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .brow > div:last-child { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .brow .more { padding-bottom: 0; }
}
/* Khối chữ có nút ở giữa (Dự án): khoảng trên và dưới bằng nhau. */
.quiet p:last-child, .closing p:last-child { margin-bottom: 0; }
/* Chân trang: logo nằm giữa khối theo chiều dọc. */
.ftr__top { padding-block: 56px; }
/* Văn phòng ở chân trang và trang Liên hệ: từ 600px hai văn phòng nằm cạnh nhau, tên văn phòng và từng dòng địa chỉ thẳng hàng. */
@media (min-width: 600px) and (max-width: 767px) {
  .ftr__cols, .offices { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .ftr__mail, .offices > :last-child { grid-column: 1 / -1; }
}
.ftr__cols { align-items: start; }
/* Menu chân trang (600–1023px): hai cột thẳng với hai cột văn phòng phía trên. */
@media (min-width: 600px) and (max-width: 1023px) { .ftr__nav { column-gap: 32px; } }

/* ---------- 1.0.21: căn chỉnh theo ý kiến 23/10/2026 (bản 2) ----------
 * Khối hai cột (Trang chủ: giới thiệu; Giới thiệu: Chúng tôi là ai; Dịch vụ: ba nhóm dịch vụ): mép trên chữ của dòng đầu cột phải
 * thẳng hàng với mép trên chữ của cột trái; estates.js tính theo số đo phông chữ nên đúng ở mọi khổ và mọi ngôn ngữ. */
/* Đường kẻ sát chân trang: bỏ đường kẻ ở mép trên chân trang; chỉ giữ ở Trang chủ, nơi khối kết nền xanh nằm ngay trên chân trang. */
.ftr__top { border-top: 0; }
body:has(.closing) .ftr__top { border-top: 1px solid var(--line-on-navy); }
main { display: flow-root; }
/* Trang Liên hệ: ba ô văn phòng, email cao bằng nhau, đường kẻ dưới cùng một hàng. */
.offices { align-items: stretch; }
/* Chân trang từ 1024px: dòng cuối của menu thẳng hàng với dòng cuối địa chỉ (số điện thoại). */
@media (min-width: 1024px) {
  .ftr__cols { align-items: stretch; }
  .ftr__mail { display: flex; flex-direction: column; }
  .ftr__mail .adr { margin-bottom: 6px; }
  /* Ba khối chữ cao bằng nhau: menu lấp phần còn lại của cột Email, dòng đầu ngay dưới email, dòng cuối ngang số điện thoại;
   * các dòng menu cách đều nhau, tối thiểu 20px (vùng bấm 44px trên iPad). */
  .ftr__mail .ftr__nav { flex: 1 1 auto; margin-top: 0; align-content: space-between; row-gap: 20px; }
}
/* Trang thương hiệu trên điện thoại (dọc và ngang): hai liên kết chuyển trang trên một dòng, chữ nhỏ lại cho vừa. */
@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {
  .pager { flex-direction: row; align-items: center; gap: 12px; }
  .pager a { font-size: clamp(9px, 2.7vw, 11px); letter-spacing: .12em; white-space: nowrap; }
}
/* Khối cuối trang kết thúc bằng danh sách có đường kẻ (Giới thiệu: bốn nguyên tắc; Thương hiệu: hai hàng thương hiệu; Liên hệ: văn phòng, email):
 * chân trang nền xanh nối ngay sau khoảng đệm của mục cuối, không còn đường kẻ thừa sau khối nội dung. */
main > .sec:last-child:has(.principles, .brow, .offices) { padding-bottom: 0; }
main > .sec:last-child .brow:last-child,
main > .sec:last-child .principle:last-child,
main > .sec:last-child .office:last-child { border-bottom: 0; }
@media (min-width: 768px) { main > .sec:last-child .principle:nth-last-child(-n+2) { border-bottom: 0; } }
@media (min-width: 1280px) { main > .sec:last-child .principle { border-bottom: 0; } }
@media (min-width: 1024px) { main > .sec:last-child .office { border-bottom: 0; } }
/* Dòng cuối chân trang:
 * - điện thoại dọc (dưới 640px): bốn mục mỗi mục một dòng, cách đều nhau 24px (vùng bấm 44px), không dấu chấm;
 * - điện thoại ngang, iPad dọc (640–1023px): bốn mục trên một hàng như máy tính, có dấu chấm; cỡ chữ tự thu nhỏ (10–13px) theo bề ngang
 *   thực của chân trang (không tính thanh cuộn), nên luôn vừa một hàng;
 * - từ 1024px: một hàng, cỡ 13px. */
@media (max-width: 639px) {
  .ftr__bottom { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 24px; justify-content: start; }
  .ftr__bottom > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .ftr__bottom > div > span { display: block; margin: 0; }
  .ftr__bottom span + span::before { content: none; display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .ftr { container-type: inline-size; }
  .ftr__bottom { column-gap: 16px; font-size: clamp(10px, calc((100cqi - 48px) / 62), 13px); }
}
/* Ảnh mở đầu Trang chủ: ảnh đã bỏ phần trần, quạt và dầm cửa (23/10/2026); khi khung thấp hơn ảnh thì giữ mép trên (cây, mặt nước), cắt bớt phần sàn. */
.hero:not(.hero--brand) > picture img, .hero:not(.hero--brand) > img { object-position: 50% 0; }
/* 1.0.31: tiêu đề không để một chữ rơi xuống dòng riêng: hai chữ cuối luôn đi cùng nhau (functions.php, es_hk); bỏ text-wrap: balance
 * vì Safari, Edge để lại vệt chữ cũ khi vẽ lại tiêu đề. */
/* Trang Thương hiệu: cỡ câu định vị tính theo bề ngang cột chữ (22–30px), để câu dài nhất (The Premier bản VN) vừa một dòng từ khổ laptop
 * (1280px, kể cả 1366, 1440 có thanh cuộn); cột hẹp hơn thì cả hai thương hiệu cùng tách mỗi vế một dòng. */
.brow > div:last-child { container-type: inline-size; }
.brow h2 { font-size: clamp(22px, calc(100cqi / 18.8), 30px); }
/* Chân trang từ 1024px: menu 2 hàng × 3 cột (theo thứ tự menu đầu trang), nằm gọn trong chiều cao 5 dòng địa chỉ; dòng cuối menu ngang dòng số điện thoại. */
@media (min-width: 1024px) {
  .ftr__mail .ftr__nav { grid-template-columns: repeat(3, max-content); grid-template-rows: repeat(2, auto); grid-auto-flow: row; column-gap: 28px; row-gap: 20px; justify-content: space-between; }
}
/* Điện thoại hẹp (dưới 360px): tiêu đề trang 32px để tiêu đề hai chữ dài (DE Ausgewählte Einblicke) vẫn nằm trên một dòng. */
@media (max-width: 359px) { .phead h1 { font-size: 32px; } }
