/* Socius — main.css
 * Đỏ #a91e28 làm MÀU NHẤN; nền trắng, chữ tối, hero/footer tối. Montserrat, góc vuông, phẳng.
 */

:root {
	--socius-primary: #a91e28;   /* đỏ — nhấn (nút, link, eyebrow, viền hover) */
	--socius-primary-d: #8c1820;
	--socius-navy: #17154c;      /* navy thương hiệu (theo logo) */
	--socius-ink: #191918;       /* chữ chính + surface tối (hero/footer) */
	--socius-muted: #5b5b59;
	--socius-canvas: #ffffff;
	--socius-soft: #f6f6f5;      /* nền section xen kẽ */
	--socius-line: #e6e6e3;
	--socius-maxw: 1200px;
	--socius-gap: clamp(16px, 3vw, 40px);
	--socius-radius: 0px;
	--socius-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	font-family: var(--socius-font);
	font-size: 15px;
	line-height: 1.65;
	color: var(--socius-ink);
	background: var(--socius-canvas);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--socius-primary); text-decoration: none; }
a:hover { color: var(--socius-primary-d); }

h1, h2, h3 { font-family: var(--socius-font); margin: 0 0 .5em; color: var(--socius-ink); line-height: 1.25; }
h1 { font-size: clamp(30px, 4.6vw, 45px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 600; }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 600; }
p { margin: 0 0 1em; }

.container { max-width: var(--socius-maxw); margin-inline: auto; padding-inline: var(--socius-gap); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--center { text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--socius-ink); color: #fff; padding: 8px 12px; z-index: 1000; }

/* Buttons */
.socius-btn {
	display: inline-block; padding: 13px 28px; border: 2px solid var(--socius-primary);
	border-radius: var(--socius-radius); background: var(--socius-primary); color: #fff;
	font-weight: 700; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase;
	cursor: pointer; transition: background .15s, color .15s;
}
.socius-btn:hover { background: transparent; color: var(--socius-primary); }
.socius-btn--ghost { background: transparent; border-color: currentColor; color: var(--socius-ink); }
.socius-btn--ghost:hover { background: var(--socius-ink); color: #fff; border-color: var(--socius-ink); }
.socius-btn--light { background: #fff; border-color: #fff; color: var(--socius-ink); }
.socius-btn--light:hover { background: transparent; color: #fff; }
/* Language */
/* Cấu hình lại khung chứa cụm cờ */
.socius-header__lang {
    display: inline-flex !important;
    align-items: center;
    gap: 12px; /* Khoảng cách giữa các lá cờ */
    list-style: none !important; /* Khử dấu chấm tròn của thẻ li nếu có */
    margin: 0 15px; /* Khoảng cách giữa cụm cờ với nút LIÊN HỆ */
    padding: 0;
    vertical-align: middle;
}

/* Định dạng các item li chứa cờ */
.socius-header__lang li.lang-item {
    display: inline-block !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
}

/* Chỉnh kích thước và độ nét của lá cờ */
.socius-header__lang li.lang-item a img {
    width: 24px !important; /* Tăng kích thước lên 24px cho dễ nhìn, mặc định 16px hơi bé */
    height: auto !important;
    display: block;
    border-radius: 2px; /* Bo góc nhẹ nhìn cho hiện đại */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Tạo bóng mờ nhẹ cho cờ nổi bật */
    transition: all 0.2s ease-in-out;
}

/* Hiệu ứng mượt mà khi hover chuột vào cờ */
.socius-header__lang li.lang-item a:hover img {
    transform: scale(1.15); /* Phóng to nhẹ khi rê chuột vào */
    filter: brightness(1.1); /* Làm sáng cờ lên một chút */
}

/* Làm mờ nhẹ lá cờ của ngôn ngữ KHÔNG kích hoạt để phân biệt */
.socius-header__lang li.lang-item:not(.current-lang) a img {
    opacity: 0.65;
}

.socius-header__lang li.lang-item:not(.current-lang) a:hover img {
    opacity: 1;
}
/* Eyebrow nhãn nhỏ đỏ */
.socius-eyebrow { display: inline-block; color: var(--socius-primary); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }

/* Topbar — sáng */
.socius-topbar { background: var(--socius-navy); color: var(--socius-canvas); font-size: 12.5px; letter-spacing: .02em; border-bottom: 1px solid var(--socius-line); }
.socius-topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; flex-wrap: wrap; }
.socius-topbar a { color: var(--socius-canvas); margin-left: 16px; }
.socius-topbar a:hover { color: var(--socius-soft); }

/* Header — sáng (logo navy nổi trên nền trắng) */
.socius-header { background: #fff; border-bottom: 1px solid var(--socius-line); position: sticky; top: 0; z-index: 100; }
.socius-header.is-stuck { box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.socius-header__inner { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.socius-logo-text { font-weight: 700; font-size: 22px; letter-spacing: .05em; text-transform: uppercase; color: var(--socius-navy); }
.socius-nav { margin-left: auto; }
.socius-menu { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.socius-menu a { color: var(--socius-navy); font-weight: 600; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; }
.socius-menu a:hover { color: var(--socius-primary); }
.socius-header__actions { display: flex; align-items: center; gap: 16px; }
.socius-lang { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; font-size: 12.5px; font-weight: 600; text-transform: uppercase; }
.socius-lang a { color: var(--socius-muted); } .socius-lang a:hover, .socius-lang .current-lang a { color: var(--socius-primary); }
.socius-burger { display: none; flex-direction: column; gap: 5px; background: 0; border: 0; cursor: pointer; padding: 6px; }
.socius-burger span { width: 26px; height: 2px; background: var(--socius-navy); display: block; }

/* Hero / page header — nền SÁNG, dùng cho home + archive + single CPT */
.socius-hero { background: var(--socius-soft); color: var(--socius-ink); text-align: center; padding-block: clamp(56px, 9vw, 104px); border-bottom: 1px solid var(--socius-line); }
.socius-hero__title { color: var(--socius-ink); max-width: 20ch; margin-inline: auto; }
.socius-hero__sub { font-size: 18px; color: var(--socius-muted); max-width: 62ch; margin: 0 auto 26px; }
.socius-hero .single__meta { color: var(--socius-primary); }
.socius-hero .socius-btn { background: var(--socius-navy); border-color: var(--socius-navy); color: #fff; }
.socius-hero .socius-btn:hover { background: transparent; color: var(--socius-navy); }

/* Section head dùng chung */
.socius-shead { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.socius-shead h2 { margin: 0 0 10px; }
.socius-shead p { color: var(--socius-muted); margin: 0; }

/* Lưới card (lĩnh vực / ngành nghề) */
.socius-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--socius-line); border: 1px solid var(--socius-line); }
.socius-card { background: #fff; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--socius-ink); transition: background .15s; }
.socius-card:hover { background: var(--socius-soft); color: var(--socius-ink); }
.socius-card__title { font-weight: 600; font-size: 16px; }
.socius-card__plus { color: var(--socius-primary); font-size: 22px; line-height: 1; flex: none; }

/* Tin tức */
.socius-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.socius-newscard { background: #fff; border: 1px solid var(--socius-line); display: flex; flex-direction: column; }
.socius-newscard__thumb { background: var(--socius-ink); aspect-ratio: 16/10; overflow: hidden; }
.socius-newscard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.socius-newscard__body { padding: 20px; }
.socius-newscard__date { color: var(--socius-primary); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.socius-newscard__title { font-size: 17px; margin: 8px 0; }
.socius-newscard__title a { color: var(--socius-ink); } .socius-newscard__title a:hover { color: var(--socius-primary); }
.socius-newscard__ex { color: var(--socius-muted); font-size: 14px; margin: 0; }

/* CTA dải tối */
.socius-home-cta { background: var(--socius-navy); color: #fff; text-align: center; padding-block: clamp(48px, 7vw, 84px); }
.socius-home-cta h2 { color: #fff; margin: 0 0 8px; }
.socius-home-cta p { color: rgba(255,255,255,.8); margin: 0 0 24px; }

/* Footer */
.socius-footer { background: var(--socius-ink); color: #c9c9c7; }
.socius-footer__inner { display: flex; justify-content: space-between; gap: 32px; padding-block: 56px; flex-wrap: wrap; }
.socius-footer__brand strong { color: #fff; font-size: 22px; letter-spacing: .05em; text-transform: uppercase; }
.socius-footer__addr, .socius-footer__contact { color: #b4b4b2; margin: 8px 0 0; }
.socius-footer a { color: #c9c9c7; } .socius-footer a:hover { color: var(--socius-primary); }
.socius-footer__menu { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.socius-footer__bar { border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; }
.socius-footer__bar p { padding-block: 16px; margin: 0; color: #8f8f8d; }

/* Blog / archive / single */
.page-title { font-size: clamp(28px, 4vw, 42px); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--socius-line); }
.post-card__thumb { background: var(--socius-soft); display: block; }
.post-card__thumb img { width: 100%; }
.post-card__body { padding: 22px; }
.post-card__title { font-size: 18px; margin: 0 0 6px; } .post-card__title a { color: var(--socius-ink); } .post-card__title a:hover { color: var(--socius-primary); }
.post-card__meta { color: var(--socius-primary); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; }
.post-card__excerpt { color: var(--socius-muted); }
.link { font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--socius-primary); }
.single__content { color: #2b2b2a; } .single__content h2 { margin-top: 1.4em; }
.single__content a { color: var(--socius-primary); text-decoration: underline; }
.single__content ul { padding-left: 20px; } .single__content li { margin: 6px 0; }
/* Lawyer single: 2 cột ảnh trái + bio phải */
.socius-lawyer-grid { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.socius-lawyer-single__photo { margin: 0; } .socius-lawyer-single__photo img { width: 100%; }
@media (max-width: 720px) { .socius-lawyer-grid { grid-template-columns: 1fr; gap: 24px; } .socius-lawyer-single__photo { max-width: 320px; } }
/* Team archive: 4 người 1 hàng, ảnh portrait 3:4 */
.post-grid.socius-team { grid-template-columns: repeat(4, 1fr); }
.socius-team .post-card__thumb { display: block; aspect-ratio: 3/4; overflow: hidden; background: var(--socius-soft); }
.socius-team .post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1000px) { .post-grid.socius-team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-grid.socius-team { grid-template-columns: 1fr; } }

/* TOC */
.socius-toc { background: var(--socius-soft); border: 1px solid var(--socius-line); border-left: 4px solid var(--socius-primary); padding: 18px 22px; margin: 24px 0; }
.socius-toc__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: 0; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--socius-ink); }
.socius-toc__title { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.socius-toc__chevron { width: 9px; height: 9px; border-right: 2px solid var(--socius-primary); border-bottom: 2px solid var(--socius-primary); transform: rotate(45deg); transition: transform .2s; }
.socius-toc[aria-collapsed="true"] .socius-toc__chevron { transform: rotate(-135deg); }
.socius-toc__list { margin: 14px 0 0; padding-left: 18px; } .socius-toc__item { margin: 6px 0; }
.socius-toc__item--h3 { margin-left: 16px; font-size: 13.5px; }
.socius-toc__list a { color: var(--socius-ink); } .socius-toc__list a:hover { color: var(--socius-primary); }

/* Landing (block native) */
.socius-landing > section, .socius-landing .wp-block-group.alignfull { padding-block: clamp(56px, 8vw, 96px); }
.socius-landing .socius-hero { background: var(--socius-ink); color: #fff; text-align: center; }
.socius-landing .socius-hero__title { color: #fff; font-size: clamp(32px, 6vw, 56px); }
.socius-landing .socius-hero__sub { font-size: 18px; color: rgba(255,255,255,.85); max-width: 60ch; margin: 0 auto 24px; }
.socius-features .wp-block-columns { gap: 24px; }
.socius-features .wp-block-column { background: #fff; border: 1px solid var(--socius-line); padding: 28px; }
.socius-faq { max-width: 760px; margin-inline: auto; }
.socius-faq .wp-block-details { border-bottom: 1px solid var(--socius-line); padding: 16px 0; } .socius-faq summary { font-weight: 600; cursor: pointer; }
.socius-lead { background: var(--socius-ink); color: #fff; } .socius-lead .socius-lead__title { color: #fff; }
.socius-lead .wpcf7 { max-width: 480px; margin-inline: auto; }
.socius-lead input, .socius-lead textarea { width: 100%; padding: 13px; margin: 7px 0; border-radius: 0; border: 1px solid #3a3a39; background: #232322; color: #fff; font-size: 16px; font-family: inherit; }
.socius-lead input[type="submit"] { background: var(--socius-primary); border: 2px solid var(--socius-primary); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.socius-lead input[type="submit"]:hover { background: transparent; }
.socius-cta { background: var(--socius-soft); text-align: center; }

/* Responsive */
@media (max-width: 860px) {
	.socius-burger { display: flex; }
	.socius-nav { position: fixed; inset: 70px 0 auto 0; background: #fff; border-bottom: 1px solid var(--socius-line); box-shadow: 0 8px 16px rgba(0,0,0,.06); transform: translateY(-130%); transition: transform .25s; }
	.socius-nav.is-open { transform: translateY(0); }
	.socius-menu { flex-direction: column; gap: 0; padding: 8px var(--socius-gap); }
	.socius-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--socius-line); }
}
