/*
Theme Name: Jalur Inovasi Rak Buku
Theme URI: https://jalurinovasi.com.my/
Author: Jalur Inovasi Sdn. Bhd.
Description: Reka bentuk B — tema moden "rak buku" untuk Jalur Inovasi Sdn. Bhd. Biru dakwat dengan empat warna kategori produk sebagai jalur, rak buku pada sepanduk utama, kad produk berwarna mengikut kategori, logo pelanggan bergerak dan fon Lexend yang mudah dibaca. Halaman Utama, Pengenalan, Produk dan Pelanggan dicipta secara automatik semasa tema diaktifkan.
Version: 1.2.2
Requires at least: 6.0
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: jalur-rakbuku
*/

/* ---------- Token ---------- */
:root {
	--ink: #1f2b5c;
	--ink-deep: #172150;
	--ink-soft: #e8ebf5;
	--paper: #f3f5fa;
	--white: #ffffff;
	--text: #283252;
	--muted: #5f6987;
	--line: #e0e4ef;
	--teal: #1f9e8f;   /* Pendidikan Islam */
	--yellow: #f5b83d; /* Prasekolah */
	--blue: #3e7fd9;   /* Akademik */
	--red: #e0503f;    /* Bahasa */
	--f: "Lexend", "Segoe UI", system-ui, sans-serif;
	--maxw: 1200px;
	--r-lg: 28px;
	--r-md: 16px;
	--r-sm: 10px;
}
.cat-islam { --cat: var(--teal); --cat-soft: #dff2ef; }
.cat-prasekolah { --cat: var(--yellow); --cat-soft: #fdf1d8; }
.cat-akademik { --cat: var(--blue); --cat-soft: #e2ecfa; }
.cat-bahasa { --cat: var(--red); --cat-soft: #fbe3df; }

/* ---------- Asas ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
	margin: 0; font-family: var(--f); font-weight: 300; font-size: 1.0625rem; line-height: 1.7;
	color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
strong, b { font-weight: 600; }
h1, h2, h3 { font-family: var(--f); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--yellow); color: var(--ink); padding: 10px 16px; z-index: 100; font-weight: 600; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* Jalur empat warna */
.jalur { display: flex; height: 6px; }
.jalur span { flex: 1; }
.jalur span:nth-child(1) { background: var(--teal); }
.jalur span:nth-child(2) { background: var(--yellow); }
.jalur span:nth-child(3) { background: var(--blue); }
.jalur span:nth-child(4) { background: var(--red); }

/* Titik kategori */
.cat-dot { display: inline-flex; align-items: center; gap: 10px; }
.cat-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cat, var(--ink)); flex: none; }

/* ---------- Butang ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
	background: transparent; -webkit-appearance: none; appearance: none; font-family: inherit; /* <button> tanpa warna kelabu lalai pelayar */
	font-weight: 500; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-deep); color: var(--white); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--ink-deep); }
.btn-yellow:hover { background: #ffc955; color: var(--ink-deep); }
.btn-line-light { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-line-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-ghost:hover { background: var(--ink-soft); }
.text-link { font-weight: 500; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }

/* ---------- Kepala ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.site-logo img, .custom-logo { width: 50px; height: 50px; object-fit: contain; }
.brand-name { font-weight: 600; font-size: 1.2rem; color: var(--ink); letter-spacing: -.01em; }
.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav .menu { display: flex; gap: 6px; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a {
	display: block; padding: 9px 18px; border-radius: 999px; color: var(--text); font-weight: 400; text-decoration: none;
	transition: background-color .2s;
}
.primary-nav .menu > li > a:hover { background: var(--paper); }
.primary-nav .menu > li.current-menu-item > a,
.primary-nav .menu > li.current_page_item > a { background: var(--ink); color: var(--white); }
.primary-nav .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; vertical-align: 3px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.primary-nav .sub-menu {
	position: absolute; top: calc(100% + 12px); left: 50%; width: 560px; padding: 14px;
	display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
	box-shadow: 0 30px 60px -30px rgba(23,33,80,.45);
	opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.primary-nav .sub-menu a { display: block; padding: 9px 14px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-size: .94rem; line-height: 1.35; }
.primary-nav .sub-menu a:hover { background: var(--paper); color: var(--ink); }
.nav-contact { display: none; }
.sub-toggle { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-cta { padding: 11px 22px; }
.nav-toggle { display: none; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 32px; align-items: center; }
.hero-text { padding-bottom: 0; }
.hero h1 { max-width: 12ch; margin-bottom: 24px; }
.hero-lead { font-size: 1.2rem; color: var(--muted); max-width: 44ch; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; }
.cat-chips a { color: var(--muted); text-decoration: none; }
.cat-chips a:hover { color: var(--ink); }

.hero-shelf { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px 24px 0; }
.hero-shelf::before { content: ""; position: absolute; inset: 0 0 34px 0; background: var(--paper); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.shelf-row { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 8px; }
.shelf-row > img { min-width: 0; flex-shrink: 1; }
.shelf-book {
	width: 19%; height: auto; object-fit: contain; /* kekalkan nisbah asal kulit buku */
	border-radius: 3px 8px 8px 3px; box-shadow: inset 4px 0 0 rgba(0,0,0,.12), 0 18px 26px -16px rgba(23,33,80,.6);
	transform-origin: bottom center;
	animation: shelf-in .7s cubic-bezier(.2,.8,.2,1) both;
}
.shelf-book-1 { width: 18%; animation-delay: .05s; }
.shelf-book-2 { width: 22%; animation-delay: .12s; }
.shelf-book-3 { width: 26%; animation-delay: .19s; }
.shelf-book-4 { width: 21%; animation-delay: .26s; }
.shelf-book-5 { width: 17%; transform: rotate(9deg); margin-left: 10px; animation-name: shelf-in-lean; animation-delay: .33s; }
@keyframes shelf-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes shelf-in-lean { from { opacity: 0; transform: translateY(40px) rotate(0); } to { opacity: 1; transform: rotate(9deg); } }
.shelf-top { padding: 0 8px; }
.shelf-row:not(.shelf-top) { padding: 0 14px 0 4px; }
.shelf-top .shelf-book { width: 16.5%; animation-delay: 0s; }
.shelf-top .shelf-book:nth-child(even) { width: 15%; }
.shelf-top .shelf-book:nth-child(3) { transform: rotate(-6deg); animation-name: shelf-in-lean-l; }
@keyframes shelf-in-lean-l { from { opacity: 0; transform: translateY(40px) rotate(0); } to { opacity: 1; transform: rotate(-6deg); } }
.shelf-board-mid { height: 14px !important; margin: 0 -8px 34px !important; border-radius: 4px !important; background: var(--ink-soft) !important; }
.shelf-board-mid::after { display: none; }
.shelf-board { position: relative; height: 34px; margin: 0 -24px; z-index: 1; background: var(--ink); border-radius: 6px; }
.shelf-board::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: linear-gradient(rgba(23,33,80,.25), transparent); }

/* ---------- Nilai ---------- */
.values { background: var(--ink); color: #cdd3ea; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.value { padding: 40px 34px 42px; border-top: 6px solid var(--cat); }
.value + .value { border-left: 1px solid rgba(255,255,255,.1); }
.value h2 { font-size: 1.35rem; color: var(--white); margin-bottom: 8px; }
.value p { margin: 0; }

/* ---------- Seksyen ---------- */
.section { padding: 100px 0; }
.section-tight { padding-top: 40px; }
.section-paper { background: var(--paper); }
.section-title { margin-bottom: 14px; }
.section-sub { color: var(--muted); margin: 0; }
.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.big-lead { font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.55; color: var(--ink); font-weight: 300; }

/* Tentang */
.about-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 34px 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-row li { display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 20px 0; font-size: .92rem; color: var(--muted); }
.facts-row li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.facts-row strong { color: var(--ink); font-size: 1.05rem; font-weight: 500; line-height: 1.35; }
.photo-strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; margin-top: 64px; }
.photo-strip img { width: 100%; height: 300px; object-fit: cover; background: var(--ink-soft); border-radius: var(--r-md); }
.photo-strip img:nth-child(2) { border-radius: var(--r-md) var(--r-md) 120px var(--r-md); }

/* ---------- Kad buku ---------- */
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.book-card {
	position: relative; display: flex; flex-direction: column; background: var(--white);
	border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
	transition: transform .25s, box-shadow .25s;
}
.book-card:hover { transform: translateY(-4px); box-shadow: 0 26px 40px -28px rgba(23,33,80,.55); }
.book-card[hidden] { display: none; }
.book-card.is-target { animation: ring 2.4s ease-out; }
@keyframes ring { 0%, 40% { box-shadow: 0 0 0 4px var(--cat); } 100% { box-shadow: 0 0 0 0 transparent; } }
.book-shelf { position: relative; padding: 30px 34px 0; background: var(--cat-soft); }
.book-shelf::after { content: ""; display: block; height: 12px; margin: 0 -34px; background: var(--cat); }
.book-shelf img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; object-position: bottom; background: transparent; filter: drop-shadow(0 10px 12px rgba(23,33,80,.3)); }
.book-body { padding: 18px 22px 24px; }
.book-cat { font-size: .82rem; font-weight: 500; color: var(--muted); margin: 0 0 6px; }
.book-cat::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--cat); }
.book-title { margin: 0 0 4px; font-size: 1.12rem; line-height: 1.3; }
.book-title span { font-weight: 400; color: var(--muted); }
.book-level { margin: 0; color: var(--muted); font-size: .93rem; }
.book-hit { position: absolute; inset: 0; background: none; border: 0; cursor: pointer; z-index: 1; border-radius: var(--r-md); }

/* Penapis */
.filter-wrap { position: sticky; top: 85px; z-index: 20; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); padding: 14px 0; }
.filter-bar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filter-btn {
	flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px;
	border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--text); cursor: pointer; font-weight: 400;
}
.filter-btn.cat-islam::before, .filter-btn.cat-prasekolah::before, .filter-btn.cat-akademik::before, .filter-btn.cat-bahasa::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--cat); }
.filter-btn span { color: var(--muted); font-size: .85rem; }
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filter-btn[aria-pressed="true"] span { color: #c7cde6; }
.filter-count { color: var(--muted); font-size: .93rem; margin-bottom: 26px; }

/* Tetingkap butiran */
.product-modal { width: min(940px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--r-lg); box-shadow: 0 50px 100px -40px rgba(23,33,80,.7); color: var(--text); }
.product-modal::backdrop { background: rgba(23,33,80,.6); backdrop-filter: blur(3px); }
.modal-grid { display: grid; grid-template-columns: .9fr 1.1fr; }
.modal-media { background: var(--paper); padding: 36px; }
.modal-cover img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(23,33,80,.35)); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-top: 20px; }
.gallery-thumb { padding: 5px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-size: .72rem; color: var(--muted); }
.gallery-thumb img { aspect-ratio: 3 / 4; object-fit: contain; width: 100%; margin-bottom: 3px; border-radius: 4px; background: var(--ink-soft); }
.gallery-thumb[aria-current="true"] { border-color: var(--ink); color: var(--ink); font-weight: 500; }
.modal-info { position: relative; padding: 44px 40px 38px; }
.modal-info .product-cat { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.modal-info h2 { font-size: 1.9rem; padding-right: 40px; }
.modal-close { position: absolute; top: 20px; right: 20px; width: 42px; height: 42px; display: grid; place-items: center; background: var(--paper); border: 0; border-radius: 50%; cursor: pointer; color: var(--ink); }
.spec { margin: 24px 0 32px; }
.spec div { display: grid; grid-template-columns: 150px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 500; color: var(--ink); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Pelanggan bergerak ---------- */
.marquee { display: flex; overflow: hidden; gap: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track { display: flex; flex: none; gap: 18px; padding-right: 18px; animation: marquee 60s linear infinite; }
.marquee-track li { flex: none; display: flex; align-items: center; gap: 14px; width: 300px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.marquee-track img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.marquee-track span { font-size: .9rem; line-height: 1.35; color: var(--ink); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Seruan tindakan ---------- */
.cta { padding: 0 0 100px; }
.section-paper + .cta, .section + .cta { padding-top: 0; }
.cta-box { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 56px 60px 62px; background: var(--ink); border-radius: var(--r-lg); color: #cdd3ea; }
.cta-box h2 { color: var(--white); margin-bottom: 10px; }
.cta-text { max-width: 560px; }
.cta-text p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-box .jalur { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; }

/* ---------- Kepala halaman dalaman ---------- */
.page-head { padding: 64px 0 64px; background: var(--paper); }
.page-head-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.page-head.has-image .page-head-grid { grid-template-columns: 1.05fr .95fr; }
.page-head h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin-bottom: 16px; }
.page-lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin: 0; }
.page-head-media img { width: 100%; height: 320px; object-fit: cover; background: var(--ink-soft); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 120px; }
.breadcrumb { display: flex; gap: 10px; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Pengenalan ---------- */
.story { display: grid; grid-template-columns: .75fr 1.25fr; gap: 64px; }
.story-side .section-title { position: sticky; top: 120px; }
.story-body p { max-width: 64ch; color: var(--muted); }
.story-body p.big-lead { color: var(--ink); max-width: none; }
.fact-tiles { padding-bottom: 100px; }
.tiles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 28px; background: var(--cat-soft); border-radius: var(--r-md); border-top: 6px solid var(--cat); }
.tile span { font-size: .88rem; color: var(--muted); }
.tile strong { font-size: 1.2rem; line-height: 1.35; color: var(--ink); font-weight: 600; }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.focus-card { background: var(--white); padding: 32px 30px; border-radius: var(--r-md); border: 1px solid var(--line); }
.focus-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; margin-bottom: 18px; background: var(--cat-soft); color: var(--ink); }
.focus-icon .icon { width: 26px; height: 26px; }
.focus-card p { margin: 0; color: var(--muted); }
.staff { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.staff-media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-soft); }
.staff-media img { width: 100%; height: auto; } /* gambar penuh, nisbah asal */
.staff-media .jalur { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; }
.staff-text p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 400; font-size: .95rem; }

/* ---------- Pelanggan ---------- */
.client-row { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--line); }
.client-row:first-child { padding-top: 0; border-top: 0; }
.client-row-head { position: relative; padding-left: 22px; }
.client-row-head::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 6px; border-radius: 3px; background: var(--cat); }
.client-row-head h2 { font-size: 1.5rem; margin-bottom: 6px; }
.client-row-head p { margin: 0; color: var(--muted); }
.logo-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.logo-tiles li { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; border-radius: var(--r-md); background: var(--paper); }
.logo-box { display: grid; place-items: center; height: 96px; background: var(--white); border-radius: var(--r-sm); }
.logo-box img { max-height: 76px; width: auto; object-fit: contain; }
.logo-tiles p { margin: 0; font-size: .95rem; line-height: 1.4; color: var(--ink); font-weight: 400; }

/* ---------- Kaki laman ---------- */
.site-footer { background: var(--ink-deep); color: #b6bedc; font-size: .96rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1.3fr; gap: 44px; padding-top: 72px; padding-bottom: 56px; }
.footer-logo { display: inline-grid; place-items: center; width: 76px; height: 76px; background: var(--white); border-radius: 22px; margin-bottom: 18px; }
.footer-logo img { width: 56px; height: 56px; object-fit: contain; }
.footer-name { color: var(--white); font-weight: 600; font-size: 1.1rem; margin-bottom: 8px; }
.footer-summary { max-width: 36ch; }
.footer-heading { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 18px; letter-spacing: 0; }
.site-footer a { color: #e3e7f5; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-links li { margin-bottom: 10px; }
.footer-contact address { margin-bottom: 16px; }
.footer-contact li { display: grid; grid-template-columns: 70px 1fr; gap: 10px; margin-bottom: 8px; }
.footer-contact li span { color: #8892bb; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); }
.footer-social a:hover { background: rgba(255,255,255,.16); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* Kandungan umum WordPress */
.entry-content { max-width: 780px; }
.entry-content > * + * { margin-top: 1em; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.page-banner { display: none; }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
	.book-grid { grid-template-columns: repeat(3, 1fr); }
	.footer-top { grid-template-columns: 1fr 1fr; }
	.header-cta { display: none; }
}
@media (max-width: 960px) {
	.nav-toggle { display: grid; }
	.header-inner { justify-content: space-between; }
	.primary-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; background: var(--white); border-bottom: 1px solid var(--line);
		box-shadow: 0 30px 50px -30px rgba(23,33,80,.5);
		max-height: calc(100vh - 84px); overflow-y: auto; padding: 12px 24px 26px;
	}
	.nav-open .primary-nav { display: flex; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav .menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
	.primary-nav .menu > li > a { flex: 1; padding: 14px 0; border-radius: 0; background: none !important; color: var(--text) !important; font-size: 1.1rem; }
	.primary-nav .menu > li.current-menu-item > a, .primary-nav .menu > li.current_page_item > a { font-weight: 600; color: var(--ink) !important; }
	.primary-nav .menu-item-has-children > a::after { display: none; }
	.sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; background: var(--paper); border: 0; border-radius: 50%; cursor: pointer; }
	.sub-toggle span { width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
	.is-open > .sub-toggle span { transform: rotate(-135deg) translate(-2px, -2px); }
	.primary-nav .sub-menu { position: static; width: 100%; display: none; grid-template-columns: 1fr; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; }
	.primary-nav .is-open > .sub-menu { display: grid; }
	.primary-nav .menu-item-has-children:hover > .sub-menu,
	.primary-nav .menu-item-has-children:focus-within > .sub-menu { transform: none; }
	.primary-nav .sub-menu::before { display: none; }
	.nav-contact { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }
	.nav-contact a { display: flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; }
	.hero-grid, .about-split, .story, .staff, .page-head.has-image .page-head-grid { grid-template-columns: 1fr; gap: 36px; }
	.hero { padding: 40px 0 36px; }
	.hero-text { padding-bottom: 0; }
	.hero-shelf { padding: 32px 16px 0; }
	.shelf-top { padding: 0 4px; }
	.values-grid { grid-template-columns: 1fr; }
	.value + .value { border-left: 0; }
	.tiles-grid { grid-template-columns: 1fr 1fr; }
	.focus-grid { grid-template-columns: 1fr; }
	.client-row { grid-template-columns: 1fr; gap: 24px; }
	.story-side .section-title { position: static; }
	.modal-grid { grid-template-columns: 1fr; }
	.modal-media { padding: 26px 26px 10px; }
	.modal-cover img { max-height: 44vh; }
	.photo-strip img { height: 220px; }
	.filter-wrap { top: 84px; }
}
@media (max-width: 720px) {
	body { font-size: 1rem; }
	.section { padding: 68px 0; }
	.section-tight { padding-top: 28px; }
	.book-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.book-shelf { padding: 20px 20px 0; }
	.book-shelf::after { margin: 0 -20px; }
	.book-body { padding: 14px 14px 18px; }
	.book-title { font-size: 1rem; }
	.facts-row { grid-template-columns: 1fr; }
	.facts-row li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
	.photo-strip { grid-template-columns: 1fr 1fr; }
	.photo-strip img:first-child { grid-column: span 2; }
	.photo-strip img { height: 180px; }
	.footer-top { grid-template-columns: 1fr; }
	.cta-box { padding: 40px 26px 46px; }
	.spec div { grid-template-columns: 1fr; gap: 2px; }
	.modal-info { padding: 30px 22px 26px; }
	.tiles-grid { grid-template-columns: 1fr; }
	.staff-media { max-width: 420px; }
	.page-head-media img { height: 220px; }
	.marquee-track li { width: 250px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.marquee { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
	.marquee-track { flex-wrap: wrap; justify-content: center; padding: 0 24px; }
	.marquee-track[aria-hidden] { display: none; }
}

/* ---------- Borang pertanyaan ---------- */
.enquiry-modal { width: min(680px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--r-lg); box-shadow: 0 50px 100px -40px rgba(23,33,80,.7); color: var(--text); overflow: auto; }
.enquiry-modal::backdrop { background: rgba(23,33,80,.6); backdrop-filter: blur(3px); }
.enquiry-modal .modal-close { z-index: 2; }
.enquiry-head { padding: 40px 40px 8px; border-top: 8px solid; border-image: linear-gradient(90deg, var(--teal) 0 25%, var(--yellow) 25% 50%, var(--blue) 50% 75%, var(--red) 75%) 1; }
.enquiry-head h2 { font-size: 1.8rem; margin-bottom: 8px; padding-right: 48px; }
.enquiry-head p { color: var(--muted); margin: 0; max-width: 52ch; }
.enquiry-form { padding: 24px 40px 36px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 500; color: var(--ink); }
.field .req, .form-note .req { color: var(--red); }
.field .opt { font-weight: 300; color: var(--muted); }
.field input, .field select, .field textarea {
	width: 100%; font: inherit; font-size: 1rem; font-weight: 300; color: var(--text);
	padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white);
	transition: border-color .15s, box-shadow .15s;
}
.field input, .field select { height: 52px; }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(62,127,217,.2); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error { margin: 0; min-height: 0; font-size: .85rem; color: #c23a2a; }
.field-error:empty { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; font-size: .93rem; color: var(--muted); }
.form-status:empty { display: none; }
.form-status.is-error { color: #c23a2a; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.form-actions .btn[disabled] { opacity: .65; cursor: wait; }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }
.enquiry-done { padding: 56px 40px 48px; text-align: center; }
.enquiry-done h2 { font-size: 1.7rem; margin-bottom: 10px; }
.enquiry-done p { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }
.done-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: #dff2ef; color: var(--teal); }
@media (max-width: 720px) {
	.enquiry-head { padding: 30px 22px 6px; }
	.enquiry-form { padding: 20px 22px 28px; }
	.field-grid { grid-template-columns: 1fr; }
	.form-actions .btn { width: 100%; }
	.enquiry-done { padding: 44px 22px 36px; }
}
