/*
Theme Name: Humane Đồng Nai
Theme URI: https://humane.balico.net
Author: Bảo Linh
Author URI: https://balico.com.vn
Description: Theme phúc lợi động vật cho Chi cục Chăn nuôi và Thủy sản thành phố Đồng Nai. Giao diện theo thiết kế Claude Design (Trang chủ, Giới thiệu); có Dự án, Thư viện tài liệu PDF, Liên hệ, Theme Options và hiệu ứng reveal khi cuộn.
Version: 3.0.2
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: humane-dong-nai
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   Design notes
   Values follow the Claude Design export (Trang chủ-html, Giới thiệu-html):
   blue #068FDA blocks, indigo #2E3192 headings/primary actions, yellow #F5B800
   accent actions, soft #F2F7FC alternating sections, 18–20px card radius,
   pill buttons. Elements marked [data-reveal] animate in when scrolled into
   view, in both scroll directions (see assets/js/theme.js).
   ========================================================================== */

/* 1. Tokens & base ======================================================== */
:root {
	--ink: #0f1a3d;
	--ink-soft: #3a4466;
	--muted: #4e5878;
	--brand: #2e3192;
	--brand-dark: #24307a;
	--blue: #068fda;
	--primary: #0b5fa5;
	--accent: #f5b800;
	--accent-light: #ffd24a;
	--on-blue: #d7ddf5;
	--soft: #f2f7fc;
	--tint: #d6e8f6;
	--tint-2: #e4f3fc;
	--tag: #e4e6f7;
	--line: #dce7f2;
	--line-2: #e3ecf5;
	--footer: #f9f9f9;
	--paper: #ffffff;
	--coral-dark: #c4442f;
	--radius: 18px;
	--radius-lg: 20px;
	--max: 1192px;
	--narrow: 760px;
	--header-h: 90px;
	--font: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	background: var(--paper);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--brand); }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, dl, dd { margin-top: 0; }
h1 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; margin-bottom: 20px; }
h2, .h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.18; letter-spacing: -.01em; font-weight: 800; margin-bottom: 12px; color: var(--brand); }
h3, .h3 { font-size: 21px; line-height: 1.3; font-weight: 800; margin-bottom: 8px; color: var(--brand); }
h4, .h4 { font-size: 18px; line-height: 1.35; font-weight: 700; margin-bottom: 8px; }
p { color: var(--ink-soft); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.wrap.narrow { width: min(calc(100% - 48px), var(--narrow)); }
.section { padding: 104px 0; }
.section-soft { background: var(--soft); }
.stack { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.stack > * { margin: 0; }
.body-lg, .body-lg p { font-size: 17px; color: var(--ink-soft); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center; }
.two-col.is-top { align-items: start; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	z-index: 100000; top: 12px; left: 12px; padding: 10px 16px;
	background: #fff; color: var(--brand); border-radius: 8px; font-weight: 700;
}
.icon { width: 18px; height: 18px; flex: none; }

/* 2. Actions & small components =========================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent;
	font-weight: 700; font-size: 16px; line-height: 1.2; cursor: pointer; text-align: center;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-light); color: var(--ink); }
.btn-ghost { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--brand); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.more { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; font-weight: 700; color: var(--primary); }
.more:hover { color: var(--brand); }

.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.eyebrow.is-accent { color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5fd38d; }

.photo-credit {
	position: absolute; z-index: 3; right: 12px; bottom: 10px; max-width: calc(100% - 24px);
	padding: 3px 8px; border-radius: 4px; background: var(--ink); color: #fff;
	font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 40px; }
.section-head-text { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.section-head .section-title { margin: 0; }
.section-head.is-center { flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 36px; }
.section-head.is-center .section-head-text { align-items: center; gap: 10px; }
.section-head.is-center .section-title { font-size: clamp(24px, 2.6vw, 32px); }
.section-title { color: var(--brand); }

/* 3. Header & navigation ================================================== */
.site-header { position: sticky; top: 0; z-index: 80; background: #fff; border-bottom: 1px solid var(--line-2); }
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: var(--header-h); padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { width: 65px; height: 65px; flex: none; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-line1 { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.brand-line2 { font-size: 17px; font-weight: 800; color: var(--brand); }

.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a { display: block; padding: 10px 0; font-size: 15px; font-weight: 600; color: var(--ink); box-shadow: inset 0 -2px 0 transparent; transition: box-shadow .2s ease, color .2s ease; }
.primary-nav .menu > li > a:hover { color: var(--brand); }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_item > a,
.primary-nav .current_page_parent > a { color: var(--brand); box-shadow: inset 0 -2px 0 var(--accent); }
.primary-nav .menu > li.nav-cta > a { padding: 11px 20px; border-radius: 999px; background: var(--brand); color: #fff; box-shadow: none; }
.primary-nav .menu > li.nav-cta > a:hover { background: var(--brand-dark); }

.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px 0; position: absolute; left: -16px; top: 100%; min-width: 300px;
	background: #fff; border: 1px solid var(--line); border-radius: 14px;
	box-shadow: 0 16px 40px rgba(15, 26, 61, .12); opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 9px 18px; font-size: 15px; font-weight: 500; color: var(--ink); }
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu .current-menu-item > a { background: var(--soft); color: var(--brand); }
.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); opacity: .6; }

.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--brand); place-items: center; cursor: pointer; }
.menu-btn .icon { width: 22px; height: 22px; }
.menu-btn .icon-close, .menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

.mobile-drawer {
	position: fixed; z-index: 79; left: 0; right: 0; top: var(--header-h); bottom: 0; overflow: auto;
	padding: 8px 24px 32px; background: #fff; border-top: 1px solid var(--line-2);
}
.admin-bar .mobile-drawer { top: calc(var(--header-h) + 32px); }
.mobile-drawer[hidden] { display: none; }
.mobile-drawer .menu, .mobile-drawer .sub-menu { list-style: none; margin: 0; padding: 0; }
.mobile-drawer .menu > li { border-bottom: 1px solid var(--line); }
.mobile-drawer a { display: block; padding: 16px 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.mobile-drawer .current-menu-item > a { color: var(--brand); }
.mobile-drawer .sub-menu { padding: 0 0 12px 16px; }
.mobile-drawer .sub-menu a { padding: 8px 0; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.mobile-drawer .nav-cta { border-bottom: 0 !important; margin-top: 24px; }
.mobile-drawer .nav-cta > a { text-align: center; background: var(--brand); color: #fff; border-radius: 999px; }

/* 4. Hero / banner (split: blue copy + photo) ============================= */
.hero-split { display: flex; flex-wrap: wrap; background: var(--blue); color: #fff; overflow: hidden; }
.hero-split-copy {
	flex: 5 1 420px; min-width: 0; padding: clamp(56px, 7vw, 104px) clamp(24px, 5vw, 72px);
	display: flex; flex-direction: column; justify-content: center; gap: 28px;
}
.hero-split-copy > * { margin: 0; }
.hero-split h1 { max-width: 820px; color: #fff; }
.hero-lede { max-width: 600px; font-size: 19px; line-height: 1.6; color: var(--on-blue); }
.hero-split .btn-row { margin-top: 8px; }
.hero-split-media { flex: 7 1 520px; min-width: 0; position: relative; min-height: 560px; }
.hero-split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-split-media .photo-credit { right: 16px; bottom: 12px; }
.hero-split.is-banner .hero-split-copy { padding: clamp(48px, 6vw, 88px) clamp(24px, 5vw, 72px); gap: 22px; }
.hero-split.is-banner h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.1; }
.hero-split.is-banner .hero-lede { color: #fff; max-width: 560px; }
.hero-split.is-banner .hero-split-media { min-height: 440px; }
.hero-split.is-banner .hero-split-media img { object-position: center 60%; }
.hero-split .breadcrumbs ol { margin: 0; color: #fff; font-weight: 600; }
.hero-split .breadcrumbs a { color: #fff; }
.hero-split .breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* 5. Home & about sections ================================================= */
.media-frame { position: relative; margin: 0; min-height: 440px; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint); }
.media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }

/* Lĩnh vực hoạt động */
.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.focus-card { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--brand-dark); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.focus-card:hover { color: #fff; }
.focus-card-media { position: absolute; inset: 0; }
.focus-card-media.is-empty { background: radial-gradient(circle at 80% 15%, rgba(255, 255, 255, .18), transparent 45%), linear-gradient(150deg, var(--blue) 0%, var(--brand) 85%); }
.focus-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform .6s ease; }
.focus-card:hover .focus-card-media img { transform: scale(1.04); }
.focus-card .photo-credit { top: 16px; right: 16px; bottom: auto; font-size: 11px; }
.focus-card-panel { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 26px; background: var(--blue); }
.focus-card-title { font-size: 23px; font-weight: 800; line-height: 1.25; }
.focus-card-text { font-size: 15px; color: var(--on-blue); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.focus-card-more { font-weight: 700; color: var(--accent); }

/* Dự án tiêu biểu */
.project-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); border-radius: 24px; overflow: hidden; background: var(--blue); color: #fff; }
.project-feature-media { position: relative; min-height: 420px; background: #3a47a8; }
.project-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-feature-media .photo-credit { left: 12px; right: auto; }
.project-feature-body { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.project-feature-body > * { margin: 0; }
.project-feature-body h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; color: #fff; }
.project-feature-body p { font-size: 17px; color: var(--on-blue); }
.project-feature-body .btn { margin-top: 8px; }

/* Cards: news, features, steps, people */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card-grid.is-four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.news-card:hover { border-color: #b9cde3; box-shadow: 0 14px 36px rgba(15, 26, 61, .08); }
.news-card-media { position: relative; display: block; height: 180px; background: var(--tint); overflow: hidden; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .news-card-media img { transform: scale(1.04); }
.news-card-media .photo-credit { font-size: 11px; right: 10px; bottom: 8px; }
.news-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.news-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 13px; color: var(--muted); }
.news-card-meta .tag { font-weight: 700; color: var(--brand); background: var(--tag); padding: 3px 10px; border-radius: 999px; }
.news-card-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.news-card-title a { color: inherit; }
.news-card-title a:hover { color: var(--brand); }
.news-card-excerpt { margin: 0; font-size: 15px; }

.feature-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.feature-card > * { margin: 0; }
.feature-card-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--tint-2); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.feature-card-icon .icon { width: 28px; height: 28px; stroke-width: 1.8; }
.feature-card p { font-size: 16px; }

.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px 40px; display: flex; flex-direction: column; gap: 16px; }
.value-card > * { margin: 0; }
.value-card .icon { width: 40px; height: 40px; color: var(--blue); stroke-width: 1.8; }
.value-card h2 { font-size: 30px; line-height: 1.2; }
.value-card p { font-size: 18px; }
.value-card.is-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.value-card.is-primary .icon, .value-card.is-primary h2, .value-card.is-primary p { color: #fff; }

.step-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.step-card { background: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.step-card > * { margin: 0; }
.step-num { font-size: 32px; font-weight: 800; line-height: 1; color: var(--blue); }
.step-card h3 { font-size: 19px; }
.step-card p { font-size: 15px; }

.info-card { background: var(--soft); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.info-card-head { display: flex; align-items: center; gap: 18px; font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--brand); }
.info-card-logo { width: 96px; height: 96px; flex: none; object-fit: contain; }
.info-list { margin: 0; display: flex; flex-direction: column; gap: 16px; font-size: 16px; }
.info-list > div { display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.info-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list dt { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.info-list dd { margin: 0; font-weight: 600; }
.info-list .info-list-row { flex-direction: row; flex-wrap: wrap; gap: 16px 40px; }
.info-list .info-list-row > div { display: flex; flex-direction: column; gap: 2px; }

.person-card { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 24px; }
.person-photo { width: 132px; height: 132px; border-radius: 50%; background: var(--tint-2); color: var(--blue); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo .icon { width: 56px; height: 56px; stroke-width: 1.6; }
.person-card strong { font-size: 19px; font-weight: 800; color: var(--brand); }
.person-card span:last-child { font-size: 15px; color: var(--ink-soft); }
.dept-list { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.dept-list h3 { margin: 0; font-size: 20px; }
.dept-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.dept-list li { padding: 12px 20px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: 15px; }

/* Thư viện hình ảnh (mosaic) */
.gallery-mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: 260px 260px; gap: 16px; }
.gallery-item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .photo-credit { font-size: 11px; right: 10px; bottom: 8px; }
.gallery-a { grid-column: 1 / 4; grid-row: 1 / 3; }
.gallery-b { grid-column: 4 / 5; grid-row: 1 / 3; }
.gallery-c { grid-column: 5 / 7; grid-row: 1 / 2; }
.gallery-d { grid-column: 5 / 6; grid-row: 2 / 3; }
.gallery-e { grid-column: 6 / 7; grid-row: 2 / 3; }
.gallery-mosaic:not(.count-5) { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-template-rows: none; grid-auto-rows: 260px; }
.gallery-mosaic:not(.count-5) .gallery-item { grid-column: auto; grid-row: auto; }

/* Liên kết website / Đơn vị phối hợp */
.logos-section { padding: 88px 0; }
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 16px; }
.logo-tile { height: 112px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; transition: border-color .2s ease, box-shadow .2s ease; }
a.logo-tile:hover { border-color: var(--blue); box-shadow: 0 10px 26px rgba(15, 26, 61, .08); }
.logo-tile img { max-width: 100%; max-height: 76px; width: auto; object-fit: contain; }
.logo-tile-name { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.logo-tile.is-text .logo-tile-name { font-size: 15px; font-weight: 700; color: var(--brand); }
.section-soft .logo-tile { border-color: transparent; }

/* CTA */
.cta-section { padding: 0 0 96px; }
.section-soft + .cta-section, .logos-section.section-soft + .cta-section { padding-top: 96px; }
.cta-panel {
	background: var(--brand); color: #fff; border-radius: 28px;
	padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 80px);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 56px;
}
.cta-copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 16px; }
.cta-copy > * { margin: 0; }
.cta-copy h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.1; color: #fff; }
.cta-copy p { font-size: 18px; color: var(--on-blue); max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-actions .icon { width: 18px; height: 18px; }

/* 6. Inner pages ========================================================== */
.page-header { padding: 56px 0 48px; background: var(--soft); }
.page-title { max-width: 920px; font-size: clamp(34px, 4.2vw, 56px); margin-bottom: 16px; color: var(--brand); }
.is-article .page-title { font-size: clamp(30px, 3.6vw, 46px); }
.page-lede { max-width: 720px; font-size: 19px; margin: 0; }
.page-meta { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 20px; font-size: 14px; color: var(--ink-soft); }
.page-meta > * + *::before { content: "·"; margin: 0 10px; }
.page-meta a { color: var(--primary); font-weight: 600; }
.page-meta small { color: var(--ink-soft); margin-right: 6px; font-size: 14px; }
.page-figure { position: relative; margin-top: 36px; margin-bottom: 0; aspect-ratio: 21 / 9; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.page-figure img { width: 100%; height: 100%; object-fit: cover; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 20px; padding: 0; font-size: 14px; color: var(--ink-soft); }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; opacity: .5; }
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumbs [aria-current] { max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.list-section { padding-top: 40px; }
.intro-content { max-width: var(--narrow); margin-bottom: 48px; }

.chip-nav { display: flex; flex-wrap: wrap; gap: 0 28px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.chip { padding: 12px 0; font-size: 15px; font-weight: 500; color: var(--ink-soft); box-shadow: inset 0 -2px 0 transparent; margin-bottom: -1px; }
.chip:hover { color: var(--ink); }
.chip.is-active { color: var(--brand); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }

.list-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 48px; }
.list-filters .field { margin: 0; min-width: 180px; }
.list-filters .field-grow { flex: 1; min-width: 220px; }
.filter-actions { display: flex; gap: 8px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea, .search-form input {
	width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #c3cfdc; border-radius: 10px; background: #fff;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search-form input:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: var(--primary); }

.search-form { display: flex; gap: 8px; max-width: 600px; }
.search-form .btn { flex: none; width: 48px; padding: 0; }
.search-again { margin-bottom: 40px; }
.result-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.result-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.result-item .news-meta { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.result-item h2 a:hover { text-decoration: underline; }
.result-item p { margin: 0; font-size: 15px; }

.empty-state { padding: 40px 0; border-top: 1px solid var(--line); }
.empty-state .search-form { margin-top: 16px; }
.back-home { margin-top: 28px; }

.pagination { margin-top: 64px; }
.pagination ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; }
.pagination a.page-numbers:hover { border-color: var(--ink); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .dots { border: 0; }

/* Article */
.article { padding-top: 48px; }
.article-cover { position: relative; margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.article-cover img { width: 100%; }
.article-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.article-project { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); }
.article-project .news-meta { display: block; font-size: 13px; color: var(--ink-soft); }
.article-project strong { font-size: 18px; color: var(--primary); }
.article-project:hover strong { text-decoration: underline; }
.article-project .icon { display: none; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { padding: 4px 10px; border-radius: 3px; background: var(--soft); font-size: 13px; }
.tag-list a:hover { background: var(--tint); }
.related { background: var(--soft); }

/* Entry content (editor output) */
.entry-content { font-size: 18px; line-height: 1.75; color: var(--ink); }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content p, .entry-content li { color: #23384f; }
.entry-content h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.8em; margin-bottom: .5em; }
.entry-content h3 { font-size: 21px; margin-top: 1.6em; margin-bottom: .4em; }
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }
.entry-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content ul, .entry-content ol { padding-left: 1.25em; }
.entry-content li + li { margin-top: .35em; }
.entry-content blockquote, .entry-content .wp-block-quote { margin: 1.8em 0; padding: 0 0 0 24px; border-left: 3px solid var(--primary); font-size: 22px; line-height: 1.45; font-weight: 600; }
.entry-content blockquote p { color: var(--ink); }
.entry-content figure { margin-inline: 0; }
.entry-content img { border-radius: var(--radius); }
.entry-content figcaption, .wp-caption-text { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.entry-content .source-note { margin-top: 2.5em; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.entry-content .wp-block-button__link { background: var(--brand); color: #fff; border-radius: 999px; padding: 13px 22px; font-weight: 600; text-decoration: none; }
.entry-content .wp-block-columns { gap: 32px; }
.entry-content .wp-block-group.has-background { border-radius: var(--radius); padding: 28px; }
.entry-content .alignwide { width: min(calc(100vw - 48px), var(--max)); margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignleft { float: left; margin: 0 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: 0 0 1em 1.5em; }
.entry-content .aligncenter { margin-inline: auto; }
.has-soft-background-color { background-color: var(--soft); }
.has-tint-background-color { background-color: var(--tint); }

/* Project detail */
.project-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 64px; align-items: start; }
.project-toc { position: sticky; top: calc(var(--header-h) + 32px); }
.project-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.project-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 15px; color: var(--ink-soft); }
.project-toc a:hover { color: var(--brand); border-left-color: var(--accent); }
.project-sections { max-width: var(--narrow); }
.project-section { padding: 40px 0; border-top: 1px solid var(--line); }
.project-section:first-child { padding-top: 0; border-top: 0; }
.project-section h2 { font-size: 28px; }
.project-section .entry-content > :last-child { margin-bottom: 0; }

/* Library */
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doc-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 16px 20px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.doc-icon { color: var(--primary); padding-top: 2px; }
.doc-icon .icon { width: 26px; height: 26px; }
.doc-title { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.doc-title a:hover { text-decoration: underline; }
.doc-body p { margin: 0; font-size: 15px; }
.doc-body .news-meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; }
.doc-download { min-height: 40px; padding: 0 14px; font-size: 14px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 80px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-list { list-style: none; margin: 24px 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.contact-list small { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 2px; }
.contact-list a:not(.more):hover { color: var(--primary); text-decoration: underline; }
.contact-list .more { margin-top: 6px; font-size: 14px; }
.contact-icon { color: var(--primary); padding-top: 2px; }
.contact-form-wrap { padding: 40px; border-radius: var(--radius); background: var(--soft); }
.contact-form-wrap > p { margin-bottom: 24px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .field { margin: 0 0 16px; }
.contact-form .field label span { color: var(--coral-dark); }
.contact-form .btn { margin-top: 4px; }
.wpcf7-form-control-wrap { display: block; }
.contact-form textarea { height: 180px; }
.contact-form .wpcf7-not-valid { border-color: var(--coral-dark); }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; color: var(--coral-dark); }
.wpcf7-spinner { vertical-align: middle; margin: 0 0 0 12px; }
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 12px 16px; border: 0; border-left: 3px solid var(--ink-soft); border-radius: var(--radius); background: var(--paper); font-size: 15px; }
.wpcf7 form.sent .wpcf7-response-output { background: #e6f4ec; border-color: #2e7d4f; color: #1d5b3c; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { background: #fbeae6; border-color: var(--coral-dark); color: #8d3022; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 500; background: var(--soft); border-left: 3px solid var(--ink-soft); }
.form-notice.is-success { background: #e6f4ec; border-color: #2e7d4f; color: #1d5b3c; }
.form-notice.is-error { background: #fbeae6; border-color: var(--coral-dark); color: #8d3022; }


/* 7. Footer =============================================================== */
.site-footer { background: var(--footer); color: var(--ink); padding: 72px 0 32px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .brand { gap: 14px; }
.footer-brand .brand-logo { width: 72px; height: 72px; }
.footer-brand .brand-line1 { font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.footer-brand .brand-line2 { font-size: 21px; font-weight: 800; color: var(--ink); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.footer-contact a { color: var(--ink); }
.footer-contact a:hover { color: var(--brand); text-decoration: underline; }
.footer-title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 14px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-menu a { color: var(--blue); }
.footer-menu a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--on-blue); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--primary); }
.footer-bottom a { color: var(--primary); }

.social-links { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; transition: background-color .2s ease, transform .2s ease; }
.social-link:hover { color: #fff; transform: translateY(-2px); }
.social-link .icon { width: 20px; height: 20px; }
.social-link.is-facebook:hover { background: #1877f2; }
.social-link.is-youtube:hover { background: #ff0000; }
.social-link.is-tiktok:hover { background: #000; }
.social-links.is-light { margin-top: 12px; }
.contact-social p { margin: 0; font-size: 15px; }

/* 8. Scroll reveal ======================================================== */
/* Only when <html class="js-reveal"> (set in <head> when supported + motion allowed). */
.js-reveal [data-reveal] {
	opacity: 0;
	transform: translate3d(0, 32px, 0);
	transition: opacity .7s cubic-bezier(.2, .65, .2, 1), transform .7s cubic-bezier(.2, .65, .2, 1);
	will-change: opacity, transform;
}
.js-reveal [data-reveal][data-from="top"] { transform: translate3d(0, -32px, 0); }
.js-reveal [data-reveal="left"] { transform: translate3d(-48px, 0, 0); }
.js-reveal [data-reveal="right"] { transform: translate3d(48px, 0, 0); }
.js-reveal [data-reveal="fade"] { transform: none; }
.js-reveal [data-reveal="zoom"] { transform: scale(.94); }
.js-reveal [data-reveal].is-visible {
	opacity: 1;
	transform: none;
	transition-delay: calc(var(--i, 0) * 90ms);
}

/* 9. Responsive =========================================================== */
@media (max-width: 1200px) {
	.primary-nav { display: none; }
	.menu-btn { display: grid; }
}

@media (max-width: 980px) {
	:root { --header-h: 80px; }
	.site-header .brand-logo { width: 56px; height: 56px; }
	.section { padding: 80px 0; }
	.focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.project-layout { grid-template-columns: 1fr; gap: 24px; }
	.project-toc { position: static; }
	.project-toc ol { display: flex; flex-wrap: wrap; gap: 4px 20px; border: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
	.project-toc a { padding: 4px 0; border: 0; margin: 0; }
	.project-section:first-child { padding-top: 24px; }
	.contact-grid { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.admin-bar .mobile-drawer { top: calc(var(--header-h) + 46px); }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
	.admin-bar .mobile-drawer { top: var(--header-h); }
}

@media (max-width: 760px) {
	.gallery-mosaic, .gallery-mosaic:not(.count-5) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 200px; }
	.gallery-a { grid-column: 1 / 3; grid-row: auto; }
	.gallery-b { grid-column: auto; grid-row: span 2; }
	.gallery-c, .gallery-d, .gallery-e { grid-column: auto; grid-row: auto; }
}

@media (max-width: 680px) {
	:root { --header-h: 76px; }
	.wrap, .wrap.narrow { width: min(calc(100% - 32px), var(--max)); }
	.section { padding: 64px 0; }
	/* Header shows only the logo on phones; the name stays available to screen readers. */
	.site-header .brand-copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.site-header .brand-logo { width: 56px; height: 56px; }
	.hero-split-copy { gap: 20px; }
	.hero-split-media { min-height: 320px; flex-basis: 100%; }
	.hero-split.is-banner .hero-split-media { min-height: 280px; }
	.hero-lede { font-size: 17px; }
	/* Two buttons side by side, half width each. */
	.btn-row { flex-wrap: nowrap; gap: 10px; }
	.btn-row .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 15px; white-space: nowrap; }
	.media-frame { min-height: 280px; }
	.focus-grid, .card-grid { grid-template-columns: 1fr; }
	.project-feature-media { min-height: 260px; }
	.project-feature-body { padding: 32px 24px; }
	.info-card { padding: 24px; }
	.info-card-logo { width: 64px; height: 64px; }
	.value-card { padding: 32px 24px; }
	.value-card h2 { font-size: 26px; }
	.logos-section { padding: 64px 0; }
	.cta-section { padding-bottom: 64px; }
	.section-soft + .cta-section, .logos-section.section-soft + .cta-section { padding-top: 64px; }
	.cta-panel { border-radius: 22px; }
	.cta-actions .btn { flex: 1 1 100%; }
	.page-header { padding: 32px 0 28px; }
	.page-lede { font-size: 17px; }
	.page-figure { aspect-ratio: 4 / 3; margin-top: 24px; }
	.list-filters .field, .list-filters .field-grow, .filter-actions { flex: 1 1 100%; min-width: 0; }
	.filter-actions .btn { flex: 1; }
	.chip-nav { flex-wrap: nowrap; overflow-x: auto; gap: 0 22px; scrollbar-width: none; }
	.chip { white-space: nowrap; }
	.doc-item { grid-template-columns: 28px minmax(0, 1fr); }
	.doc-download { grid-column: 2; justify-self: start; }
	.contact-form-wrap { padding: 24px 18px; }
	.contact-form .form-row { grid-template-columns: 1fr; gap: 0; }
	.entry-content { font-size: 17px; }
	.footer-top { grid-template-columns: 1fr; gap: 32px; }
	.footer-brand .brand-line1 { font-size: 15px; }
	.footer-brand .brand-line2 { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; }
}
