/*
Theme Name: Al-Muhammad AHS
Theme URI: https://diggitglobal.com
Author: DIGGIT Global
Author URI: https://diggitglobal.com
Description: Custom real estate and construction theme for Al-Muhammad AHS (Pvt) Ltd, Karachi. Properties for sale and rent, off-plan projects, agent profiles, map search and WhatsApp lead capture.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: Proprietary
Text Domain: amahs
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #0D0D0D;
	--ink-2: #151515;
	--ink-line: #2E2E2E;
	--red: #C9302C;
	--red-dark: #A82622;
	--red-logo: #EF4136;
	--text: #0D0D0D;
	--muted: #4D4D4D;
	--muted-dark: #B5B5B5;
	--line: #E3E3E3;
	--line-strong: #CFCFCF;
	--soft: #F4F4F4;
	--white: #FFFFFF;
	--radius: 10px;
	--radius-sm: 6px;
	--font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wrap: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 800; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--red-logo); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 12px 16px; background: var(--white); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1360px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background-color .15s, color .15s, border-color .15s; }
.btn-lg { min-height: 48px; padding: 0 24px; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #2A2A2A; color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn-white { background: var(--white); color: var(--red); font-weight: 800; }
.btn-white:hover { background: #FFE9E7; color: var(--red-dark); }
.btn-block { width: 100%; }
.link-strong { font-weight: 700; font-size: 14px; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); border-bottom: 1px solid #262626; position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 52px; height: 52px; border-radius: var(--radius-sm); background: #000; object-fit: contain; padding: 4px; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-size: 17px; font-weight: 800; color: var(--white); }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 26px; }
.primary-nav a { color: var(--white); text-decoration: none; font-size: 14px; font-weight: 600; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav a[aria-current="page"] { color: var(--red-logo); }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.header-actions .btn { font-size: 13px; }
.nav-toggle { display: none; background: transparent; border: 1px solid #3A3A3A; color: var(--white); width: 44px; height: 44px; border-radius: var(--radius-sm); cursor: pointer; }
@media (max-width: 480px) {
	.brand-mark { width: 44px; height: 44px; }
	.brand-name { font-size: 15px; }
	.brand-sub { font-size: 10px; letter-spacing: .06em; }
	.header-inner { gap: 12px; }
}
@media (max-width: 1024px) {
	.nav-toggle { margin-left: auto; }
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.primary-nav, .header-actions { display: none; width: 100%; }
	.site-header.is-open .primary-nav, .site-header.is-open .header-actions { display: block; }
	.site-header.is-open .header-actions { display: flex; }
	.primary-nav ul { flex-direction: column; gap: 0; }
	.primary-nav a { display: block; padding: 12px 0; border-top: 1px solid #262626; }
}

/* ---------- Shared section bits ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.eyebrow::before { content: ""; display: inline-block; width: 32px; height: 3px; background: var(--red-logo); }
.section { padding-top: 88px; }
.section-last { padding-bottom: 88px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head h2, .section-title { font-size: 34px; }
.section-head p { margin-top: 8px; color: var(--muted); }
.lead { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 760px; }
.grid { display: grid; gap: 24px; }
.grid-300 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-340 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.grid-260 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-240 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-200 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
@media (max-width: 400px) { .grid-300, .grid-340 { grid-template-columns: 1fr; } }
.badge { display: inline-block; padding: 6px 12px; border-radius: 4px; background: var(--ink); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.badge-soft { background: #FBE6E5; color: var(--red-dark); }
.badge-grey { background: #F1F1F1; color: var(--ink); }
.chip { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.img-fallback { background: repeating-linear-gradient(45deg, #E6E6E6 0 10px, #EFEFEF 10px 20px); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--white); }
.hero-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 112px; }
.hero-copy { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -.01em; }
.hero h1 .accent { color: var(--red-logo); display: block; }
.hero-text { font-size: 17px; line-height: 1.7; color: #D0D0D0; max-width: 560px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges span { padding: 8px 14px; border: 1px solid #3A3A3A; border-radius: 999px; font-size: 12px; font-weight: 600; color: #D0D0D0; }
.hero-media { flex: 1 1 440px; min-width: 0; }
.hero-media img { width: 100%; height: 400px; object-fit: cover; border-radius: 12px; }

/* ---------- Search card ---------- */
.search-wrap { margin-top: -64px; position: relative; z-index: 2; }
.search-card { background: var(--white); border-radius: 12px; box-shadow: 0 16px 44px rgba(0,0,0,.16); padding: 24px; border-top: 4px solid var(--red); display: flex; flex-direction: column; gap: 20px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { min-height: 44px; padding: 0 22px; border: 0; border-radius: var(--radius-sm); background: #F1F1F1; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); font-weight: 700; }
.search-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; align-items: end; }

/* ---------- Form fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea { min-height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0 12px; font-size: 14px; color: var(--ink); background: var(--white); width: 100%; }
.field textarea { padding: 10px 12px; min-height: 96px; resize: vertical; }
.field-dark input, .field-dark select, .field-dark textarea { border-color: transparent; }
.field-dark { color: var(--white); }
.hp-field { position: absolute; left: -9999px; }
.form-notice { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; }
.form-notice.ok { background: #E7F4EC; color: #1F5E35; }
.form-notice.err { background: #FBE6E5; color: var(--red-dark); }
.form-stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Goal cards ---------- */
.goal { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--white); transition: border-color .15s; }
.goal:hover { border-color: var(--ink); color: var(--ink); }
.goal-title { font-size: 20px; font-weight: 800; }
.goal-text { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- Property card ---------- */
.p-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: var(--white); transition: border-color .15s; }
.p-card:hover { border-color: var(--ink); color: var(--ink); }
.p-card-media { position: relative; height: 210px; background: #E6E6E6; }
.p-card-media img { width: 100%; height: 100%; object-fit: cover; }
.p-card-media .badge { position: absolute; top: 14px; left: 14px; }
.p-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price { font-size: 21px; font-weight: 800; color: var(--red); }
.p-card-title { font-size: 16px; font-weight: 700; }
.p-card-loc { font-size: 13px; color: var(--muted); }
.p-card-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: auto; padding-top: 12px; border-top: 1px solid #EEEEEE; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- Project card ---------- */
.pr-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: var(--soft); }
.pr-card:hover { color: var(--ink); }
.pr-card img { width: 100%; height: 230px; object-fit: cover; }
.pr-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.pr-card-title { font-size: 20px; font-weight: 800; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pills span { padding: 6px 12px; border-radius: 4px; background: var(--white); font-size: 12px; font-weight: 600; }

/* ---------- Build (dark) ---------- */
.dark-band { margin-top: 96px; background: var(--ink); color: var(--white); }
.dark-band .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 36px; }
.dark-band h2 { font-size: 36px; }
.dark-band .lead { color: #D0D0D0; }
.svc { padding: 24px; border: 1px solid var(--ink-line); border-radius: var(--radius); background: var(--ink-2); display: flex; flex-direction: column; gap: 10px; }
.svc::before { content: ""; width: 28px; height: 3px; background: var(--red-logo); }
.svc-title { font-size: 18px; font-weight: 800; }
.svc-text { font-size: 14px; line-height: 1.6; color: var(--muted-dark); }
.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.photo-row img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; }

/* ---------- Track record ---------- */
.t-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.t-card:hover { color: var(--ink); border-color: var(--ink); }
.t-card img { width: 100%; height: 180px; object-fit: cover; }
.t-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.clients-bar { margin-top: 24px; padding: 22px 24px; background: var(--soft); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.clients-bar strong { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.clients-bar span { font-size: 15px; font-weight: 700; }

/* ---------- Area links ---------- */
.area-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 700; }
.area-link:hover { border-color: var(--ink); color: var(--ink); }
.area-link small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }

/* ---------- Agent card ---------- */
.a-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.a-card-top { display: flex; gap: 14px; align-items: center; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #E6E6E6; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--muted); }
.a-card-name { font-size: 16px; font-weight: 800; color: var(--ink); text-decoration: none; }
.a-card-area { font-size: 13px; color: var(--muted); }
.a-card-actions { display: flex; gap: 10px; }
.a-card-actions .btn { flex: 1; font-size: 13px; }

/* ---------- Credentials ---------- */
.cred { padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 8px; display: flex; flex-direction: column; gap: 6px; }
.cred-body { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cred-title { font-size: 17px; font-weight: 800; }
.cred-num { font-size: 14px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: var(--white); border-radius: 14px; padding: 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; justify-content: space-between; }
.cta-band h2 { font-size: 32px; line-height: 1.25; }
.cta-band p { color: #FFE9E7; margin-top: 10px; }
.cta-copy { flex: 1 1 400px; }
.cta-form { flex: 1 1 380px; background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 24px; }
@media (max-width: 600px) { .cta-band { padding: 28px 20px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); font-size: 14px; line-height: 1.6; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.footer-grid h3 { font-size: 14px; color: var(--white); margin-bottom: 8px; }
.footer-grid a { color: var(--muted-dark); display: block; }
.footer-grid a:hover { color: var(--white); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-logo { width: 150px; height: 150px; object-fit: cover; }
.footer-bottom { border-top: 1px solid #262626; padding-top: 18px; padding-bottom: 28px; font-size: 12px; color: #A0A0A0; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #1F8F4E; color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.wa-float:hover { color: var(--white); background: #187341; }

/* ---------- Archive / search ---------- */
.page-head { background: var(--ink); color: var(--white); }
.page-head .wrap, .page-head .wrap-wide { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 12px; }
.page-head h1 { font-size: 38px; }
.page-head p { color: #D0D0D0; max-width: 680px; }
.filters { border-bottom: 1px solid var(--line); background: #F7F7F7; }
.filters form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding-top: 16px; padding-bottom: 16px; }
.filters .field { min-width: 130px; flex: 1 1 130px; }
.filters .field input, .filters .field select { min-height: 44px; }
.seg { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--white); font-weight: 600; font-size: 14px; cursor: pointer; }
.seg input:checked + span { background: var(--ink); color: var(--white); font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--red-logo); outline-offset: -3px; }
.results-layout { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 24px; padding-bottom: 64px; }
.results-list { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.results-bar h1 { font-size: 24px; }
.results-count { font-size: 14px; color: var(--muted); }
.row-card { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.row-card:hover { border-color: var(--ink); color: var(--ink); }
.row-card-media { flex: 1 1 240px; min-width: 0; min-height: 200px; background: #E6E6E6; }
.row-card-media img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.row-card-body { flex: 2 1 320px; padding: 18px 22px; display: flex; flex-direction: column; gap: 8px; }
.row-card-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.map-panel { flex: 1 1 420px; min-width: 0; }
.map-box { position: sticky; top: 100px; height: calc(100vh - 140px); min-height: 480px; border-radius: var(--radius); overflow: hidden; border: 1px solid #D2D2CC; background: #E4E4E0; }
.map-box-static { position: relative; top: 0; height: 320px; min-height: 0; }
@media (max-width: 1000px) { .map-box { position: relative; top: 0; height: 420px; } }
.map-pin { background: var(--red); color: var(--white); padding: 6px 10px; border-radius: 999px; font: 700 13px var(--font); white-space: nowrap; box-shadow: 0 4px 10px rgba(0,0,0,.25); display: inline-block; transform: translate(-50%, -50%); }
.leaflet-div-icon.amahs-pin { background: transparent; border: 0; }
.pagination { display: flex; gap: 8px; justify-content: center; padding-top: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 700; }
.pagination .page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.empty-state { padding: 40px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* ---------- Single property ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; padding-top: 24px; }
.gallery { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .gallery button img { height: 110px; } }
.gallery button { padding: 0; border: 0; background: #E6E6E6; cursor: zoom-in; border-radius: 8px; overflow: hidden; }
.gallery img { width: 100%; height: 150px; object-fit: cover; }
.gallery .g-main { grid-column: 1 / -1; border-radius: var(--radius); }
.gallery .g-main img { height: 460px; }
@media (max-width: 600px) { .gallery .g-main img { height: 280px; } }
.detail-layout { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-bottom: 64px; }
.detail-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.detail-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
@media (max-width: 1000px) { .detail-side { position: static; } }
.detail-title h1 { font-size: 34px; }
.detail-title .price { font-size: 32px; margin-top: 6px; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.spec { padding: 16px; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 4px; }
.spec small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.spec strong { font-size: 17px; }
.prose { font-size: 15px; line-height: 1.8; color: var(--muted); }
.prose p + p { margin-top: 1em; }
.block-title { font-size: 22px; margin-bottom: 12px; }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.amenities li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.amenities svg { flex: none; }
.build-nudge { padding: 22px; border-radius: var(--radius); background: var(--ink); color: var(--white); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.build-nudge p { color: var(--muted-dark); font-size: 14px; }
.side-card { padding: 24px; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); display: flex; flex-direction: column; gap: 16px; box-shadow: 0 8px 28px rgba(0,0,0,.08); background: var(--white); }
.side-card h2 { font-size: 17px; }
.side-note { padding: 20px; background: var(--soft); border-radius: var(--radius); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.meta-line { font-size: 12px; color: var(--muted); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; width: auto; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: var(--white); border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; }
.lb-next { right: 20px; top: 50%; }

/* ---------- Project ---------- */
.project-hero .hero-inner { padding-bottom: 72px; padding-top: 56px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { padding: 16px; border: 1px solid #333; border-radius: 8px; }
.stat small { display: block; font-size: 11px; color: var(--muted-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat strong { font-size: 20px; }
.unit-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.unit-card img { width: 100%; height: 180px; object-fit: cover; }
.unit-card div { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.table-wrap th { background: var(--ink); color: var(--white); text-align: left; padding: 14px 18px; }
.table-wrap td { padding: 14px 18px; border-top: 1px solid #EEEEEE; }
.table-wrap td:first-child { font-weight: 700; }
.progress-card { padding: 18px; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 10px; }
.bar { height: 8px; border-radius: 4px; background: var(--line); }
.bar span { display: block; height: 8px; border-radius: 4px; background: var(--red); }
.dark-form { padding: 28px; border-radius: 12px; background: var(--ink); color: var(--white); border-top: 4px solid var(--red); display: flex; flex-direction: column; gap: 14px; }
.dark-form p { color: var(--muted-dark); font-size: 14px; }
.split { display: flex; flex-wrap: wrap; gap: 32px; }
.split > * { flex: 1 1 380px; min-width: 0; }
.stack-64 { display: flex; flex-direction: column; gap: 64px; padding-top: 64px; padding-bottom: 64px; }

/* ---------- Agent ---------- */
.agent-hero { background: var(--soft); border-bottom: 4px solid var(--red); }
.agent-hero .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.agent-photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; background: #E6E6E6; }
.agent-hero h1 { font-size: 38px; }
.agent-actions { flex: 0 1 300px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Generic content ---------- */
.entry { padding-top: 48px; padding-bottom: 64px; max-width: 800px; }
.entry h2 { font-size: 26px; margin: 1.5em 0 .5em; }
.entry p { margin-bottom: 1em; line-height: 1.8; color: #333; }
