/*
Theme Name: Luật Chính Danh
Theme URI: https://luatsulyhondongnai.com/
Author: Công ty Luật Chính Danh
Description: Theme WordPress riêng cho website Luật Sư Ly Hôn Đồng Nai — Công ty Luật Chính Danh. Chuẩn hoá Google SEO và AI/GEO (Answer Engine Optimization).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: luat-chinh-danh
*/

/* ============================================================
   luatsulyhondongnai.com — stylesheet
   Palette: bright blue (trust/authority) + warm off-white + muted teal
   Type: Lora (display/serif) + Be Vietnam Pro (body/UI, full VN diacritics)
   ============================================================ */

:root{
  --navy-900:#3366ff;
  --navy-800:#2f5ce6;
  --navy-700:#2a52d6;
  --blue-600:#2c5f8a;
  --blue-500:#3d76a8;
  --teal-600:#1c7268;
  --teal-100:#e3f1ee;
  --sand-50:#f7f5f0;
  --sand-100:#efece3;
  --white:#ffffff;
  --ink-900:#171d2b;
  --ink-700:#3a4152;
  --ink-500:#616a7d;
  --line:#e0ddd3;
  --line-strong:#c9c4b4;
  --gold-600:#a9832f;

  --bg:var(--sand-50);
  --surface:var(--white);
  --surface-2:var(--sand-100);
  --text:var(--ink-900);
  --text-muted:var(--ink-500);
  --border:var(--line);
  --border-strong:var(--line-strong);
  --brand:var(--navy-800);
  --brand-strong:var(--navy-900);
  --accent:var(--teal-600);
  --accent-soft:var(--teal-100);
  --link:var(--blue-600);
  --on-brand:#ffffff;
  --on-brand-muted:#ffffff;
  --shadow-soft:0 1px 2px rgba(51,102,255,.08),0 8px 24px rgba(51,102,255,.08);

  --font-display:"Lora",Georgia,"Times New Roman",serif;
  --font-body:"Be Vietnam Pro",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;

  --radius-sm:6px;
  --radius-md:10px;
  --container:1180px;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0d1117;
    --surface:#141b26;
    --surface-2:#101620;
    --text:#e7ebf2;
    --text-muted:#9aa5b8;
    --border:#26304040;
    --border:#2a3444;
    --border-strong:#3a4658;
    --brand:#2a52d6;
    --brand-strong:#2348c8;
    --accent:#3fa596;
    --accent-soft:#0f2b28;
    --link:#7fb4dd;
    --on-brand:#ffffff;
    --on-brand-muted:#ffffff;
    --shadow-soft:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.35);
    --gold-600:#c9a24b;
  }
}
:root[data-theme="dark"]{
  --bg:#0d1117;
  --surface:#141b26;
  --surface-2:#101620;
  --text:#e7ebf2;
  --text-muted:#9aa5b8;
  --border:#2a3444;
  --border-strong:#3a4658;
  --brand:#2a52d6;
  --brand-strong:#2348c8;
  --accent:#3fa596;
  --accent-soft:#0f2b28;
  --link:#7fb4dd;
  --on-brand:#ffffff;
  --on-brand-muted:#ffffff;
  --shadow-soft:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.35);
  --gold-600:#c9a24b;
}

*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  padding-inline:0;
  margin:0;
}
img{max-width:100%;height:auto;display:block;}
a{color:var(--link);}
h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--text);
  line-height:1.22;
  text-wrap:balance;
  margin:0;
  font-weight:600;
}
p{margin:0;color:var(--text);}
ul,ol{margin:0;padding:0;}
li{list-style:none;}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;}
.container{max-width:var(--container);margin-inline:auto;padding-inline:20px;}
@media (min-width:640px){.container{padding-inline:32px;}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

.eyebrow{
  font-family:var(--font-body);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:var(--accent);
}
.section-head{max-width:640px;margin-bottom:36px;}
.section-head .eyebrow{margin-bottom:10px;display:block;}
.section-head h2{font-size:clamp(1.5rem,3.4vw,2.1rem);margin-bottom:12px;}
.section-head p{color:var(--text-muted);font-size:1.02rem;}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:env(safe-area-inset-top,0px);z-index:40;
  background:var(--surface);
  border-bottom:1px solid var(--border);
}
.header-row{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;padding-block:14px;
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);}
.brand-mark{
  width:40px;height:40px;border-radius:8px;background:var(--brand);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.brand-mark svg{width:22px;height:22px;}
.brand-text{display:flex;flex-direction:column;line-height:1.15;}
.brand-text .name{font-family:var(--font-display);font-weight:700;font-size:1.02rem;}
.brand-text .tag{font-size:.68rem;color:var(--text-muted);letter-spacing:.04em;}

.main-nav{display:none;gap:16px;}
.main-nav a{
  color:var(--text);text-decoration:none;font-size:.93rem;font-weight:500;
  padding-block:4px;border-bottom:2px solid transparent;
}
.main-nav a:hover{border-bottom-color:var(--accent);}
@media (min-width:900px){.main-nav{display:flex;}}

.header-actions{display:flex;align-items:center;gap:10px;flex-shrink:0;}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:var(--font-body);font-weight:600;font-size:.9rem;
  padding:10px 18px;border-radius:var(--radius-sm);text-decoration:none;
  border:1px solid transparent;cursor:pointer;line-height:1.2;
}
.btn-primary{background:var(--accent);color:#fff;}
.btn-primary:hover{background:var(--teal-600);filter:brightness(.94);}
.btn-outline{background:transparent;color:var(--brand);border-color:var(--border-strong);}
.btn-outline:hover{background:var(--surface-2);}
.btn-ghost{background:transparent;color:var(--text);border-color:transparent;}
.btn-lg{padding:13px 24px;font-size:.98rem;}
.btn-block{width:100%;}
.hotline{display:none;flex-direction:column;text-align:right;line-height:1.15;}
.hotline .lbl{font-size:.66rem;color:var(--text-muted);letter-spacing:.05em;text-transform:uppercase;}
.hotline .num{font-family:var(--font-display);font-weight:700;font-size:1.05rem;color:var(--brand);white-space:nowrap;}
@media (min-width:640px){.hotline{display:flex;}}

/* ---------- commitments (3-card variant) ---------- */
.commit-grid{display:grid;gap:18px;grid-template-columns:1fr;}
@media (min-width:720px){.commit-grid{grid-template-columns:repeat(3,1fr);}}
.commit-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);
  padding:24px;display:flex;flex-direction:column;gap:12px;
}
.commit-icon{
  width:44px;height:44px;border-radius:8px;background:var(--accent-soft);
  display:flex;align-items:center;justify-content:center;color:var(--accent);
}
.commit-icon svg{width:22px;height:22px;}
.commit-card h3{font-size:1.05rem;}
.commit-card p{color:var(--text-muted);font-size:.92rem;}

/* ---------- services ---------- */
.services-grid{display:grid;gap:18px;grid-template-columns:1fr;}
@media (min-width:640px){.services-grid{grid-template-columns:repeat(2,1fr);}}
@media (min-width:1080px){.services-grid{grid-template-columns:repeat(4,1fr);}}
.service-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);
  padding:22px;display:flex;flex-direction:column;gap:14px;text-decoration:none;color:var(--text);
  transition:border-color .15s ease;
}
.service-card:hover{border-color:var(--accent);}
.service-icon{
  width:42px;height:42px;border-radius:8px;background:var(--brand);
  display:flex;align-items:center;justify-content:center;color:#fff;
}
.service-icon svg{width:20px;height:20px;}
.service-card h3{font-size:1.02rem;}
.service-card p{color:var(--text-muted);font-size:.88rem;flex:1;}
.service-link{font-size:.85rem;font-weight:600;color:var(--accent);display:inline-flex;align-items:center;gap:6px;}

.service-card.with-photo{padding:0;overflow:hidden;}
.service-card.with-photo .card-photo{width:100%;aspect-ratio:16/11;object-fit:cover;display:block;background:var(--surface-2);}
.service-card.with-photo .card-body{padding:18px 20px 20px;display:flex;flex-direction:column;gap:10px;flex:1;}
.photo-caption{font-size:.7rem;color:var(--text-muted);margin-top:-4px;}

/* ---------- service list (11-item compact layout) ---------- */
.service-list-grid{display:grid;gap:12px;grid-template-columns:1fr;}
@media (min-width:760px){.service-list-grid{grid-template-columns:repeat(2,1fr);}}
.service-list-item{
  display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);
  padding:18px 20px;text-decoration:none;color:var(--text);transition:border-color .15s ease,box-shadow .15s ease;
}
.service-list-item:hover{border-color:var(--accent);box-shadow:0 2px 8px rgba(0,0,0,.06);}
.sl-num{
  font-family:var(--font-display);font-weight:700;font-size:1.3rem;color:var(--accent-soft);
  min-width:32px;text-align:center;line-height:1;
}
.service-list-item h3{font-size:.96rem;margin-bottom:3px;}
.service-list-item p{color:var(--text-muted);font-size:.84rem;margin:0;}
.sl-arrow{color:var(--accent);flex-shrink:0;opacity:.6;transition:opacity .15s;}
.service-list-item:hover .sl-arrow{opacity:1;}

/* ---------- process / steps ---------- */
.steps{display:flex;flex-direction:column;gap:0;counter-reset:step;border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;background:var(--surface);}
.step{display:grid;grid-template-columns:auto 1fr;gap:16px;padding:20px 22px;border-bottom:1px solid var(--border);}
.step:last-child{border-bottom:none;}
.step-num{
  counter-increment:step;
  width:34px;height:34px;border-radius:50%;background:var(--brand);color:#fff;
  display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-weight:700;font-size:.95rem;
}
.step-num::before{content:counter(step);}
.step h3{font-size:.98rem;margin-bottom:4px;}
.step p{color:var(--text-muted);font-size:.88rem;}

/* ---------- table ---------- */
.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius-md);}
table{width:100%;border-collapse:collapse;font-size:.9rem;background:var(--surface);}
caption{text-align:left;font-size:.78rem;color:var(--text-muted);padding:10px 16px 0;caption-side:top;}
th,td{padding:12px 16px;text-align:left;border-bottom:1px solid var(--border);}
thead th{background:var(--surface-2);font-family:var(--font-body);font-weight:700;font-size:.82rem;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted);}
tbody tr:last-child td{border-bottom:none;}

/* ---------- lawyer profile preview ---------- */
.profile-block{display:grid;gap:30px;align-items:center;}
@media (min-width:860px){.profile-block{grid-template-columns:220px 1fr;}}
.profile-photo{
  width:100%;aspect-ratio:1;border-radius:var(--radius-md);
  background:linear-gradient(160deg,var(--brand),var(--navy-700));
  display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.7);
}
.profile-photo svg{width:56%;height:56%;}
.profile-cred{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;}
.cred-chip{
  font-size:.78rem;font-weight:600;color:var(--brand);background:var(--surface-2);
  border:1px solid var(--border);border-radius:999px;padding:6px 12px;
}
.profile-name{font-size:1.3rem;margin-bottom:4px;}
.profile-role{color:var(--accent);font-weight:600;font-size:.92rem;margin-bottom:14px;display:block;}
.profile-bio{color:var(--text-muted);font-size:.94rem;max-width:60ch;}

/* ---------- FAQ ---------- */
.faq-list{display:flex;flex-direction:column;gap:10px;}
.faq-item{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;}
.faq-item summary{
  cursor:pointer;list-style:none;padding:18px 20px;font-weight:600;font-size:.98rem;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{
  content:"+";font-size:1.3rem;color:var(--accent);flex-shrink:0;line-height:1;font-weight:400;
}
.faq-item[open] summary::after{content:"–";}
.faq-item .faq-a{padding:0 20px 20px;color:var(--text-muted);font-size:.92rem;}
.faq-item .faq-a p+p{margin-top:10px;}

/* Gutenberg core Details block styled to match .faq-item */
.wp-block-details{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;padding:0;margin-bottom:10px;}
.wp-block-details summary{cursor:pointer;list-style:none;padding:18px 20px;font-weight:600;font-size:.98rem;}
.wp-block-details summary::-webkit-details-marker{display:none;}
.wp-block-details p{padding:0 20px 20px;margin:0;color:var(--text-muted);font-size:.92rem;}

/* ---------- contact / map ---------- */
.contact-grid{display:grid;gap:24px;}
@media (min-width:900px){.contact-grid{grid-template-columns:1fr 1fr;}}
.map-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);
  padding:24px;display:flex;flex-direction:column;gap:16px;
}
.office-photo{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:var(--radius-sm);display:block;}
.nap-row{display:flex;gap:14px;align-items:flex-start;}
.nap-row svg{width:19px;height:19px;color:var(--accent);flex-shrink:0;margin-top:2px;}
.nap-row .lbl{font-size:.72rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:2px;}
.nap-row .val{font-size:.95rem;font-weight:600;}

/* ---------- CTA band ---------- */
.cta-band{background:var(--brand);color:var(--on-brand);border-radius:var(--radius-md);padding:40px 32px;text-align:center;}
.cta-band h2{color:#fff;font-size:clamp(1.4rem,3vw,1.85rem);margin-bottom:10px;}
.cta-band p{color:var(--on-brand-muted);margin-bottom:22px;max-width:56ch;margin-inline:auto;}
.cta-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;}

/* ---------- footer ---------- */
.site-footer{background:var(--brand-strong);color:var(--on-brand-muted);margin-top:60px;padding-bottom:calc(90px + env(safe-area-inset-bottom,0px));}
@media (min-width:900px){.site-footer{padding-bottom:36px;}}
.footer-grid{display:grid;gap:32px;padding-block:48px 28px;grid-template-columns:1fr;}
@media (min-width:760px){.footer-grid{grid-template-columns:1.3fr 1fr 1fr 1fr;}}
.footer-brand .name{font-family:var(--font-display);color:#fff;font-size:1.1rem;font-weight:700;margin-bottom:8px;}
.footer-brand p{font-size:.86rem;color:var(--on-brand-muted);max-width:34ch;}
.footer-col h3{color:#fff;font-size:.82rem;text-transform:uppercase;letter-spacing:.06em;margin-bottom:14px;}
.footer-col ul{display:flex;flex-direction:column;gap:9px;}
.footer-col a{color:var(--on-brand-muted);text-decoration:none;font-size:.88rem;}
.footer-col a:hover{color:#fff;}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);padding-block:18px;
  display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;font-size:.78rem;color:var(--on-brand-muted);
}

/* ---------- mobile action bar ---------- */
.mobile-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:60;
  display:flex;align-items:stretch;
  box-shadow:0 -6px 18px rgba(0,0,0,.18);
}
@media (min-width:900px){
  .mobile-bar{
    left:50%;right:auto;transform:translateX(-50%);
    width:100%;max-width:720px;
    border-radius:14px 14px 0 0;
    overflow:hidden;
  }
  .mobile-bar .m-note{font-size:.9rem;padding:14px 20px;}
  .mobile-bar .m-actions{padding:10px 20px;}
  .mobile-bar .m-actions a{font-size:.88rem;padding:10px 18px;}
}
.mobile-bar .m-note{
  flex:0 0 auto;display:flex;align-items:center;gap:8px;
  background:#1565c0;color:#fff;font-weight:600;font-size:.82rem;
  padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px));
  text-decoration:none;white-space:nowrap;
}
.mobile-bar .m-note .dot{width:8px;height:8px;border-radius:50%;background:#22c55e;flex:0 0 auto;animation:lcd-mbar-pulse 1.6s infinite;}
@keyframes lcd-mbar-pulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,.7);}70%{box-shadow:0 0 0 8px rgba(34,197,94,0);}100%{box-shadow:0 0 0 0 rgba(34,197,94,0);}}
.mobile-bar .m-actions{
  flex:1;display:flex;align-items:center;justify-content:flex-end;gap:10px;
  background:linear-gradient(90deg,#d6007a,#ff2d95);
  padding:8px 14px calc(8px + env(safe-area-inset-bottom,0px));
  min-width:0;
}
.mobile-bar .m-actions a{
  display:flex;align-items:center;gap:6px;flex:0 1 auto;min-width:0;overflow:hidden;
  font-size:.82rem;font-weight:700;color:#fff;text-decoration:none;
  padding:9px 14px;border-radius:999px;white-space:nowrap;
}
.mobile-bar .m-actions a span{overflow:hidden;text-overflow:ellipsis;}
.mobile-bar .m-actions a.m-call{background:rgba(255,255,255,.22);border:1px solid rgba(255,255,255,.55);color:#fff;}
.mobile-bar .m-actions a.m-zalo{background:#fff;color:#0068ff;}
.mobile-bar .m-actions a.m-zalo svg{color:#0068ff;}
.mobile-bar a svg{width:16px;height:16px;flex:0 0 auto;}
@media (max-width:460px){
  .mobile-bar .m-note .label{display:none;}
  .mobile-bar .m-note{padding-right:10px;}
  .mobile-bar .m-actions{gap:8px;}
  .mobile-bar .m-actions a{padding:9px 10px;font-size:.78rem;}
}

/* ---------- breadcrumb ---------- */
.breadcrumb{display:flex;flex-wrap:wrap;gap:6px;font-size:.82rem;color:var(--text-muted);padding-block:16px;}
.breadcrumb a{color:var(--text-muted);text-decoration:none;}
.breadcrumb a:hover{color:var(--accent);}
.breadcrumb .sep{opacity:.5;}
.breadcrumb .current{color:var(--text);font-weight:600;}

section{padding-block:56px;}
section.tight{padding-block:40px;}
.bg-surface2{background:var(--surface-2);}
.rule{height:1px;background:var(--border);border:none;margin:0;}

.badge-outcome{
  display:inline-flex;align-items:center;gap:8px;font-size:.78rem;color:var(--text-muted);
  background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);
  padding:10px 14px;margin-top:18px;
}
.badge-outcome svg{width:15px;height:15px;color:var(--accent);flex-shrink:0;}

.article-body h2{font-size:1.3rem;margin-top:34px;margin-bottom:10px;}
.article-body h3{font-size:1.08rem;margin-top:22px;margin-bottom:8px;}
.article-body p{color:var(--ink-700);margin-bottom:12px;max-width:72ch;}
.article-body ol,.article-body ul{max-width:72ch;margin-bottom:14px;}
.article-body ol{counter-reset:al;padding-left:0;}
.article-body ol li{counter-increment:al;position:relative;padding-left:30px;margin-bottom:8px;color:var(--ink-700);list-style:none;}
.article-body ol li::before{content:counter(al);position:absolute;left:0;top:0;width:20px;height:20px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-size:.72rem;font-weight:700;display:flex;align-items:center;justify-content:center;}
.article-body ul li{position:relative;padding-left:18px;margin-bottom:8px;color:var(--ink-700);list-style:none;}
.article-body ul li::before{content:"";position:absolute;left:0;top:.6em;width:6px;height:6px;border-radius:50%;background:var(--accent);}
.article-body cite{font-style:normal;color:var(--brand);font-weight:600;}
.article-body table{margin-bottom:14px;}
.article-body figure{margin:0 0 14px;}

/* ---------- hero with photo background ---------- */
.hero-photo{
  position:relative;background:var(--brand-strong);color:var(--on-brand);
  min-height:340px;display:flex;align-items:flex-end;
}
.hero-photo::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(20,42,120,.55) 0%,rgba(30,58,168,.72) 55%,rgba(51,102,255,.92) 100%);
}
.hero-photo-inner{position:relative;z-index:1;padding-block:80px 30px;width:100%;}
@media (min-width:760px){.hero-photo{min-height:400px;}.hero-photo-inner{padding-block:100px 38px;}}
.hero-badge-row{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px;}
.hero-badge{
  font-size:.78rem;font-weight:600;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);
  border-radius:999px;padding:7px 14px;display:inline-flex;align-items:center;gap:7px;color:#fff;
}
.hero-contact-strip{
  display:flex;flex-wrap:wrap;gap:22px;margin-top:26px;padding-top:22px;border-top:1px solid rgba(255,255,255,.18);
}
.hero-contact-item{display:flex;align-items:center;gap:10px;font-size:.9rem;color:var(--on-brand-muted);}
.hero-contact-item svg{width:18px;height:18px;color:var(--accent-soft);flex-shrink:0;}
.hero-contact-item strong{color:#fff;font-family:var(--font-display);font-size:1rem;}

/* ---------- stat dashboard ---------- */
.stat-row{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;}
@media (min-width:760px){.stat-row{grid-template-columns:repeat(4,1fr);}}
.stat-tile{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);
  padding:22px 18px;text-align:center;
}
.stat-tile .num{font-family:var(--font-display);font-weight:700;font-size:clamp(1.6rem,3.4vw,2.1rem);color:var(--brand);display:block;line-height:1;margin-bottom:8px;font-variant-numeric:tabular-nums;}
.stat-tile .lbl{font-size:.82rem;color:var(--text-muted);}

/* ---------- numbered commitment cards ---------- */
.numbered-grid{display:grid;gap:18px;grid-template-columns:1fr;}
@media (min-width:600px){.numbered-grid{grid-template-columns:repeat(2,1fr);}}
@media (min-width:900px){.numbered-grid{grid-template-columns:repeat(4,1fr);}}
.numbered-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);
  padding:26px 24px;position:relative;overflow:hidden;
}
.numbered-card .big-num{
  font-family:var(--font-display);font-weight:700;font-size:2.6rem;color:var(--accent-soft);
  position:absolute;top:10px;right:18px;line-height:1;opacity:.9;
}
:root[data-theme="dark"] .numbered-card .big-num,
:root:not([data-theme="light"]) .numbered-card .big-num{color:var(--accent-soft);opacity:.5;}
.numbered-card h3{font-size:1.05rem;margin-bottom:10px;max-width:80%;}
.numbered-card p{color:var(--text-muted);font-size:.9rem;}

/* ---------- lawyer intro card ---------- */
.intro-block{display:grid;gap:32px;align-items:center;}
@media (min-width:900px){.intro-block{grid-template-columns:1fr .9fr;}}
.lawyer-card{
  background:var(--brand-strong);color:var(--on-brand);border-radius:var(--radius-md);
  padding:28px;display:flex;flex-direction:column;gap:16px;
}
.lawyer-card-top{display:flex;gap:16px;align-items:center;}
.lawyer-avatar{
  width:66px;height:66px;border-radius:50%;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#fff;
}
.lawyer-avatar svg{width:32px;height:32px;}
.lawyer-card-top .name{font-family:var(--font-display);font-weight:700;font-size:1.08rem;color:#fff;}
.lawyer-card-top .role{font-size:.82rem;color:var(--on-brand-muted);}
.lawyer-card p{color:var(--on-brand-muted);font-size:.9rem;}
.lawyer-cred-list{display:flex;flex-direction:column;gap:8px;}
.lawyer-cred-list li{display:flex;gap:9px;align-items:flex-start;font-size:.86rem;color:var(--on-brand-muted);}
.lawyer-cred-list svg{width:15px;height:15px;color:var(--accent-soft);flex-shrink:0;margin-top:2px;}

/* ---------- google-style review card ---------- */
.review-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);
  padding:20px;display:flex;flex-direction:column;gap:12px;
}
.review-top{display:flex;align-items:center;gap:10px;}
.review-avatar{width:38px;height:38px;border-radius:50%;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--brand);font-family:var(--font-display);flex-shrink:0;}
.review-name{font-size:.9rem;font-weight:600;}
.review-source{font-size:.72rem;color:var(--text-muted);}

/* ---------- logo mark ---------- */
.brand-seal{
  width:46px;height:46px;border-radius:50%;flex-shrink:0;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.brand-seal svg{width:22px;height:22px;color:var(--gold-600);}
.brand-seal img{width:100%;height:100%;object-fit:cover;display:block;}
.footer-brand .brand-seal{width:52px;height:52px;}

/* ---------- WP admin bar spacing fix for sticky header ---------- */
.admin-bar .site-header{top:calc(env(safe-area-inset-top,0px) + 32px);}
@media (max-width:782px){.admin-bar .site-header{top:calc(env(safe-area-inset-top,0px) + 46px);}}

/* ---------- WP core alignment helpers used in block editor content ---------- */
.article-body .alignwide{max-width:none;}
.article-body img{border-radius:var(--radius-sm);}


/* ---------- hero top grid (lawyer card + stats inside hero banner) ---------- */
.hero-top-grid{display:grid;gap:32px;align-items:start;}
@media (min-width:900px){.hero-top-grid{grid-template-columns:1.5fr 1fr;}}

.hero-lawyer-card{
  background:var(--surface);color:var(--text);border-radius:var(--radius-md);
  padding:24px;display:flex;flex-direction:column;gap:14px;
  box-shadow:var(--shadow-soft);
}
.hero-lawyer-card .lawyer-card-top{display:flex;gap:14px;align-items:center;}
.hero-lawyer-card .lawyer-avatar{
  width:56px;height:56px;border-radius:50%;background:var(--surface-2);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--brand);
}
.hero-lawyer-card .lawyer-avatar svg{width:28px;height:28px;}
.hero-lawyer-card .name{font-family:var(--font-display);font-weight:700;font-size:1.02rem;color:var(--text);}
.hero-lawyer-card .role{font-size:.8rem;color:var(--text-muted);}
.hero-lawyer-card p{color:var(--text-muted);font-size:.88rem;margin:0;}
.hero-lawyer-card .lawyer-cred-list{display:flex;flex-direction:column;gap:7px;margin:0;padding:0;list-style:none;}
.hero-lawyer-card .lawyer-cred-list li{display:flex;gap:8px;align-items:flex-start;font-size:.83rem;color:var(--text-muted);}
.hero-lawyer-card .lawyer-cred-list li svg{width:15px;height:15px;flex-shrink:0;margin-top:2px;color:var(--accent);}

.hero-stats-row{
  display:grid;grid-template-columns:repeat(2,1fr);gap:14px;
  margin-top:36px;
}
@media (min-width:640px){.hero-stats-row{grid-template-columns:repeat(4,1fr);}}
.hero-stats-row--live{
  grid-template-columns:repeat(3,1fr);
  gap:6px;
  background:#073b5c;
  border-radius:var(--radius-md);
  padding:18px 14px;
}
@media (min-width:640px){.hero-stats-row--live{grid-template-columns:repeat(3,1fr);padding:22px 26px;gap:12px;}}
.hero-stat{text-align:left;}
.hero-stats-row--live .hero-stat{display:flex;align-items:center;gap:10px;text-align:left;}
.hero-stats-row--live .hero-stat .stat-icon{flex-shrink:0;width:36px;height:36px;border-radius:50%;background:rgba(240,216,117,.15);display:flex;align-items:center;justify-content:center;color:#f0d875;}
.hero-stats-row--live .hero-stat .stat-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;}
.hero-stat .num{display:block;font-family:var(--font-display);font-weight:700;font-size:clamp(1.5rem,3vw,2rem);color:#fff;line-height:1;margin-bottom:4px;font-variant-numeric:tabular-nums;}
.hero-stats-row--live .hero-stat .num{font-size:clamp(1.05rem,2.2vw,1.4rem);margin-bottom:1px;}
.hero-stat .lbl{font-size:.8rem;color:var(--on-brand-muted);}
.hero-stats-row--live .hero-stat .lbl{color:#dbe4ff;font-size:.72rem;line-height:1.25;}

/* ===== Bài viết mới nhất (latest posts) ===== */
.post-carousel{overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none;margin:0 -2px;}
.post-carousel::-webkit-scrollbar{display:none;}
.post-carousel-track{display:flex;gap:20px;scroll-snap-type:x proximity;}
.post-card{flex:0 0 100%;scroll-snap-align:start;}
@media (min-width:640px){.post-card{flex:0 0 calc((100% - 20px)/2);}}
@media (min-width:1024px){.post-card{flex:0 0 calc((100% - 3*20px)/4);}}
.post-card{
  display:flex;flex-direction:column;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);
  overflow:hidden;text-decoration:none;color:var(--text);
  box-shadow:var(--shadow-soft);transition:transform .15s ease,box-shadow .15s ease;
}
.post-card:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.1);}
.post-card-thumb{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--surface-2);}
.post-card-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.post-card-thumb--empty{display:flex;align-items:center;justify-content:center;min-height:64px;aspect-ratio:auto;padding:16px;}
.post-card-badge{
  position:absolute;top:12px;left:12px;
  background:var(--accent);color:#fff;font-size:.7rem;font-weight:700;
  letter-spacing:.04em;text-transform:uppercase;padding:4px 10px;border-radius:999px;
}
.post-card-thumb--empty .post-card-badge{position:static;}
.post-card-body{padding:18px 20px;display:flex;flex-direction:column;gap:8px;flex:1;}
.post-card-body h3{font-size:1.05rem;line-height:1.35;margin:0;color:var(--text);}
.post-card-body p{font-size:.9rem;color:var(--text-muted);margin:0;line-height:1.5;}
.post-grid-more{text-align:center;margin-top:28px;}
.link-more{
  display:inline-flex;align-items:center;gap:6px;
  color:var(--accent);font-weight:600;text-decoration:none;font-size:.95rem;
}
.link-more:hover{text-decoration:underline;}

#bai-viet-moi-nhat .section-head{text-align:center;margin-left:auto;margin-right:auto;}


/* ---------- office map (Van phong lam viec) ---------- */
.office-map{padding:48px 0;}
.office-map-card{
  background:#fff;border:1px solid var(--border-strong);border-radius:var(--radius-md);
  padding:18px;box-shadow:var(--shadow-soft);
}
.office-map-title{
  font-size:1.05rem;font-weight:700;color:var(--brand-strong);margin:0 0 14px;
  text-transform:uppercase;letter-spacing:.02em;
}
.office-map-embed{
  position:relative;width:100%;aspect-ratio:16/8;border-radius:10px;overflow:hidden;
  background:var(--sand-50);
}
.office-map-embed iframe{display:block;width:100%;height:100%;}
.office-map-overlay{
  position:absolute;top:12px;left:12px;max-width:260px;
  background:#fff;border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,.22);
  padding:10px 12px;text-decoration:none;display:block;
}
.office-map-overlay-name{display:block;font-weight:700;font-size:.86rem;color:var(--brand-strong);line-height:1.3;}
.office-map-overlay-addr{display:block;font-size:.74rem;color:var(--text-muted,#5b6472);margin-top:2px;line-height:1.35;}
.office-map-overlay-rating{display:block;font-size:.78rem;color:#444;margin-top:5px;}
.office-map-overlay-rating .star{color:#fbbc04;}
.office-map-overlay-count{color:var(--text-muted,#5b6472);}
.office-map-directions{
  position:absolute;bottom:12px;right:12px;width:36px;height:36px;border-radius:50%;
  background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center;
  color:var(--link);text-decoration:none;
}
.office-map-info{margin:14px 0 6px;font-size:.92rem;color:#444;line-height:1.55;}
.office-map-link{
  display:inline-block;margin-top:2px;font-weight:600;font-size:.92rem;
  color:var(--link);text-decoration:none;
}
.office-map-link:hover{text-decoration:underline;}
@media (max-width:600px){
  .office-map-embed{aspect-ratio:4/5;}
  .office-map-overlay{max-width:76%;}
}
