/*
Theme Name:        Kashmir Boat
Theme URI:         https://kashmirboat.com
Author:            Sheikh Owais (Steve) · Aurelian Consulting Solutions
Description:       Theme for kashmirboat.com, the lost and found service for Jammu and Kashmir. Brand colours, self-hosted fonts and right-to-left Urdu. Requires the Kashmir Boat Core plugin.
Version:           2.1.2
Requires at least: 6.2
Requires PHP:      7.4
License:           GPL-2.0-or-later
Text Domain:       kashmirboat
*/

/* ---------- Fonts (self-hosted, SIL Open Font Licence) ---------- */
@font-face { font-family: 'Inter'; src: url(assets/fonts/inter-latin-wght-normal.woff2) format('woff2-variations'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; src: url(assets/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Noto Nastaliq Urdu'; src: url(assets/fonts/noto-nastaliq-urdu-arabic-400-normal.woff2) format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Noto Nastaliq Urdu'; src: url(assets/fonts/noto-nastaliq-urdu-arabic-700-normal.woff2) format('woff2'); font-weight: 600 800; font-display: swap; }
@font-face { font-family: 'Noto Naskh Arabic'; src: url(assets/fonts/noto-naskh-arabic-arabic-400-normal.woff2) format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Noto Naskh Arabic'; src: url(assets/fonts/noto-naskh-arabic-arabic-600-normal.woff2) format('woff2'); font-weight: 600 800; font-display: swap; }

/* ---------- Base ---------- */
:root {
	--kb-forest: #163B28; --kb-valley: #436F5B; --kb-saffron: #7B4E8B; --kb-ochre: #B5803F; --kb-cream: #F7F4EE; --kb-line: #DAD5CA; --kb-stone: #5B6660; --kb-body: #2E4A3B; --kb-mist: #E4EDE7;
	--kb-head: 'Inter', 'Aptos', system-ui, -apple-system, 'Segoe UI', sans-serif; --kb-sans: 'Aptos', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html[dir=rtl] { --kb-head: 'Noto Nastaliq Urdu', 'Inter', sans-serif; --kb-sans: 'Noto Naskh Arabic', 'Aptos', 'Inter', Tahoma, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--kb-cream); color: var(--kb-forest); font: 17px/1.6 var(--kb-sans); }
html[dir=rtl] body { font-size: 18px; line-height: 1.9; }
img { max-width: 100%; height: auto; }
a { color: var(--kb-forest); }
a:hover { color: var(--kb-valley); }
.kbt-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kbt-skip { position: absolute; inset-inline-start: 12px; top: -80px; background: var(--kb-forest); color: #fff; padding: 10px 16px; z-index: 100; }
.kbt-skip:focus { top: 12px; }
html, body { overflow-x: clip; }

/* ---------- Header ---------- */
.kbt-header { background: #fff; border-bottom: 1px solid var(--kb-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .kbt-header { top: 32px; }
.kbt-header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.kbt-logo img { display: block; height: 52px; width: auto; }
.kbt-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.kbt-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px; color: var(--kb-forest); text-decoration: none; font-weight: 600; font-size: 16px; }
.kbt-nav a:hover { background: var(--kb-mist); color: var(--kb-forest); }
.kbt-nav a[aria-current] { color: var(--kb-valley); }
.kbt-nav .kbt-lang { font-family: 'Noto Naskh Arabic', var(--kb-sans); }
.kbt-nav .kbt-nav-cta a { color: #fff; background: var(--kb-forest); padding: 11px 18px; margin-inline-start: 6px; }
.kbt-nav .kbt-nav-cta a:hover { background: #0F2C1C; color: #fff; }
.kbt-menu-btn { display: none; background: none; border: 1px solid var(--kb-line); border-radius: 10px; width: 46px; height: 46px; align-items: center; justify-content: center; color: var(--kb-forest); cursor: pointer; }

/* ---------- Page shells ---------- */
.kbt-main { min-height: 60vh; }
.kbt-page { padding: 36px 0 64px; }
.kbt-page-title { font-family: var(--kb-head); font-size: clamp(30px, 4.5vw, 44px); line-height: 1.15; margin: 0 0 18px; }
html[dir=rtl] .kbt-page-title { line-height: 1.9; }
.kbt-prose { max-width: 760px; }
.kbt-prose h2 { font-family: var(--kb-head); font-size: 24px; line-height: 1.3; margin: 32px 0 8px; }
html[dir=rtl] .kbt-prose h2 { line-height: 1.9; font-size: 23px; }
.kbt-prose p { color: var(--kb-body); margin: 0 0 14px; }
.kbt-lead { font-size: 20px; line-height: 1.6; color: var(--kb-body); }
.kbt-info-section { background: #fff; border: 1px solid var(--kb-line); border-radius: 14px; padding: 4px 24px 12px; margin: 0 0 14px; }
.kbt-info-section h2 { margin-top: 18px; }
.kbt-cta-inline { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.kbt-404 { text-align: center; padding-top: 30px; }
.kbt-404 p { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Home ---------- */
.kbt-hero { background: linear-gradient(180deg, #fff 0%, var(--kb-cream) 100%); padding: 48px 0 8px; border-bottom: 1px solid var(--kb-line); }
.kbt-hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; margin-bottom: 28px; }
.kbt-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--kb-valley); margin: 0 0 12px; }
html[dir=rtl] .kbt-eyebrow { letter-spacing: 0; text-transform: none; font-size: 16px; }
.kbt-hero-title { font-family: var(--kb-head); font-size: clamp(38px, 6vw, 66px); line-height: 1.04; letter-spacing: -.01em; margin: 0 0 18px; color: var(--kb-forest); }
html[dir=rtl] .kbt-hero-title { line-height: 1.8; letter-spacing: 0; font-size: clamp(34px, 5vw, 54px); }
.kbt-hero-lead { font-size: 19px; line-height: 1.6; color: var(--kb-body); max-width: 600px; margin: 0 0 24px; }
.kbt-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.kbt-hero-art { display: flex; justify-content: center; }
.kbt-hero-art img { width: 100%; max-width: 360px; }
.kbt-section { padding: 56px 0 8px; }
.kbt-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.kbt-h2 { font-family: var(--kb-head); font-size: clamp(26px, 3.5vw, 34px); line-height: 1.2; margin: 0 0 20px; }
html[dir=rtl] .kbt-h2 { line-height: 1.9; }
.kbt-more { font-weight: 700; color: var(--kb-valley); }
.kbt-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kbt-steps li { background: #fff; border: 1px solid var(--kb-line); border-radius: 16px; padding: 24px; }
.kbt-steps h3 { font-family: var(--kb-head); font-size: 22px; margin: 14px 0 6px; }
.kbt-steps p { margin: 0; color: var(--kb-body); }
.kbt-step-n { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; background: var(--kb-saffron); color: #fff; font-weight: 700; font-size: 18px; }
.kbt-districts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.kbt-districts .kbt-district-col:nth-child(3) { grid-column: 1 / -1; }
.kbt-districts .kbt-district-col:nth-child(3) ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kbt-district-col { background: #fff; border: 1px solid var(--kb-line); border-radius: 16px; padding: 22px 24px; }
.kbt-district-col h3 { font-family: var(--kb-head); font-size: 21px; margin: 0 0 12px; }
.kbt-district-col h3 a { text-decoration: none; }
.kbt-district-col ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.kbt-district-col li a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--kb-body); }
.kbt-district-col li a:hover { background: var(--kb-mist); }
.kbt-district-col em { font-style: normal; font-size: 13px; font-weight: 700; background: var(--kb-mist); color: var(--kb-forest); border-radius: 999px; padding: 1px 9px; }
.kbt-band { background: var(--kb-forest); color: #F7F4EE; margin-top: 64px; padding: 56px 0; }
.kbt-band .kbt-h2 { color: #fff; }
.kbt-band-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.kbt-ticks { list-style: none; margin: 0 0 24px; padding: 0; }
.kbt-ticks li { position: relative; padding-inline-start: 30px; margin-bottom: 10px; color: #DCE8E0; }
.kbt-ticks li::before { content: ''; position: absolute; inset-inline-start: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid #B9D2C2; border-bottom: 3px solid #B9D2C2; transform: rotate(-45deg); }
.kbt-btn-light { background: #F7F4EE; border-color: #F7F4EE; color: var(--kb-forest) !important; }
.kbt-btn-light:hover { background: #fff; border-color: #fff; }
.kbt-band-stats .kb-stats strong { color: #fff; }

/* ---------- Footer ---------- */
.kbt-footer { background: #0F2C1C; color: #CFE0D6; padding: 48px 0 0; }
.kbt-band + .kbt-footer, .kb + .kbt-footer { margin-top: 0; }
.kbt-footer-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; padding-bottom: 32px; }
.kbt-footer-brand img { height: 64px; width: auto; }
.kbt-footer-tag { font-family: var(--kb-head); font-size: 20px; color: #fff; margin: 14px 0 6px; }
.kbt-footer-brand p { margin: 0 0 8px; max-width: 420px; }
.kbt-footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kbt-footer-nav ul { list-style: none; margin: 0; padding: 0; }
.kbt-footer-nav a { color: #E8F0EA; text-decoration: none; display: inline-block; padding: 6px 0; }
.kbt-footer-nav a:hover { color: #fff; text-decoration: underline; }
.kbt-footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding: 18px 20px; font-size: 14px; color: #A9BFB2; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
	.kbt-menu-btn { display: inline-flex; }
	.kbt-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--kb-line); padding: 8px 20px 18px; box-shadow: 0 12px 24px rgba(22, 59, 40, .08); }
	body.kb-menu-open .kbt-nav { display: block; }
	.kbt-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.kbt-nav a { padding: 13px 12px; }
	.kbt-nav .kbt-nav-cta a { justify-content: center; margin: 8px 0 0; }
	.kbt-header-in { position: relative; }
}
@media (max-width: 860px) {
	.kbt-hero-in, .kbt-band-in, .kbt-footer-in { grid-template-columns: 1fr; }
	.kbt-hero-art { display: none; }
	.kbt-steps, .kbt-districts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.kbt-logo img { height: 42px; }
	.kbt-header-in { min-height: 66px; }
	.kbt-hero { padding-top: 28px; }
	.kbt-hero-ctas .kb-btn { flex: 1 1 100%; }
	.kbt-district-col ul { grid-template-columns: 1fr 1fr; }
	.kbt-page { padding-top: 24px; }
	.kbt-info-section { padding: 2px 16px 8px; }
}
@media (max-width: 782px) { .admin-bar .kbt-header { top: 46px; } }

/* ---------- Hub homepage (2.0) ---------- */
.kbt-hub-hero { background: linear-gradient(180deg, #fff 0%, var(--kb-cream) 100%); padding: 40px 0 28px; border-bottom: 1px solid var(--kb-line); }
.kbt-hub-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-bottom: 22px; }
.kbt-hub-title { font-family: var(--kb-head); font-size: clamp(30px, 4.6vw, 50px); line-height: 1.08; margin: 0 0 10px; color: var(--kb-forest); max-width: 820px; }
html[dir=rtl] .kbt-hub-title { line-height: 1.8; }
.kbt-hub-lead { font-size: 18px; color: var(--kb-body); margin: 0; max-width: 680px; }
.kbt-hub-mark img { width: 128px; height: auto; }
.kbt-hub-tools { padding: 36px 0 8px; }
.kbt-org-band { background: var(--kb-saffron-soft); border-top: 1px solid #E2D3E8; border-bottom: 1px solid #E2D3E8; margin-top: 56px; padding: 36px 0; }
.kbt-org-band-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.kbt-org-band h2 { margin: 0 0 6px; }
.kbt-org-band p { margin: 0; color: var(--kb-body); max-width: 680px; }
.kbt-sos { background: #A12C2C !important; border-color: #A12C2C !important; }
.kbt-sos:hover { background: #8A2222 !important; border-color: #8A2222 !important; }
@media (max-width: 700px) { .kbt-hub-hero-in { grid-template-columns: minmax(0, 1fr); } .kbt-hub-mark { display: none; } .kbt-districts { grid-template-columns: minmax(0,1fr); } .kbt-districts .kbt-district-col:nth-child(3) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Inter headings: tighter tracking at display sizes. */
.kbt-hero-title, .kbt-page-title, .kbt-hub-title, .kbt-h2 { letter-spacing: -0.025em; font-weight: 700; }
.kbt-prose h2, .kbt-steps h3, .kbt-district-col h3, .kbt-footer-tag { letter-spacing: -0.015em; }
html[dir=rtl] .kbt-hero-title, html[dir=rtl] .kbt-page-title, html[dir=rtl] .kbt-hub-title, html[dir=rtl] .kbt-h2 { letter-spacing: 0; }
