/*
Theme Name: GKPC & Associates LLP
Theme URI: https://www.gkpcllp.com
Author: GKPC & Associates LLP
Description: Custom theme for GKPC & Associates LLP, Chartered Accountants, built on the firm's brand system (Brand System v1.3).
Version: 1.2.0
Requires at least: 6.3
Requires PHP: 7.4
License: Proprietary
Text Domain: gkpc
*/

/* ---------- Fonts (TeX Gyre, GUST Font License) ---------- */
@font-face { font-family: "Pagella"; src: url("fonts/texgyrepagella-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Pagella"; src: url("fonts/texgyrepagella-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Pagella"; src: url("fonts/texgyrepagella-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Pagella"; src: url("fonts/texgyrepagella-bolditalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Heros"; src: url("fonts/texgyreheros-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Heros"; src: url("fonts/texgyreheros-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
	--navy: #12294B;
	--red: #B7202E;
	--red-tint: #E8505E;
	--slate: #5A748F;
	--paper: #FBFAF7;
	--graphite: #39414E;
	--rule: #D9DEE6;
	--white: #ffffff;
	--serif: "Pagella", "Palatino Linotype", Palatino, Georgia, serif;
	--sans: "Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--wrap: 1200px;
	--gutter: clamp(20px, 4vw, 40px);
	--space: clamp(64px, 9vw, 120px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--graphite); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--slate); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--navy); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 5.4vw, 66px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.label { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--slate); margin: 0 0 18px; }
.label--light { color: #A9BACB; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--graphite); max-width: 640px; }
.link { font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--navy); padding-bottom: 2px; }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; font-size: 26px; }
.wordmark__name { font-family: var(--serif); font-weight: 700; color: var(--navy); line-height: 1; white-space: nowrap; letter-spacing: -0.005em; }
.wordmark__c { color: var(--red); }
.wordmark__et { font-style: italic; font-size: 1.07em; }
.wordmark__rule { display: block; width: 100%; height: 1px; margin: 7px 0 6px; background: linear-gradient(to right, var(--red) 0 9%, var(--navy) 9% 100%); }
.wordmark__desc { font-family: var(--sans); font-size: .36em; font-weight: 400; letter-spacing: .58em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.wordmark--reverse .wordmark__name, .wordmark--reverse .wordmark__desc { color: #fff; }
.wordmark--reverse .wordmark__c { color: var(--red-tint); }
.wordmark--reverse .wordmark__rule { background: linear-gradient(to right, var(--red-tint) 0 9%, #fff 9% 100%); opacity: .9; }

/* ---------- Utility bar + masthead ---------- */
.utility { background: var(--navy); color: #C9D3DF; font-size: 13px; letter-spacing: .02em; }
.utility__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.utility a { color: #fff; text-decoration: none; }
.utility__right { display: flex; gap: 24px; }

.masthead { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 24px; }
.masthead__brand { text-decoration: none; }

.sitenav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.sitenav > ul > li > a { display: block; padding: 12px 16px; font-size: 15px; font-weight: 700; color: var(--navy); text-decoration: none; letter-spacing: .02em; border-bottom: 2px solid transparent; }
.sitenav > ul > li > a:hover, .sitenav > ul > li > a[aria-current] { border-bottom-color: var(--navy); }
.sitenav__cta { background: var(--navy); color: #fff !important; padding: 12px 22px !important; margin-left: 8px; border-bottom: 0 !important; }
.sitenav__cta:hover { background: #0B1D37; }

.has-sub { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); box-shadow: 0 24px 40px -24px rgba(18,41,75,.25); visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; }
.has-sub:hover .mega, .has-sub:focus-within .mega { visibility: visible; opacity: 1; transform: none; }
.mega__inner { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 36px; }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 32px; }
.mega a { display: block; padding: 14px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.mega a strong { display: block; font-family: var(--serif); font-size: 19px; color: var(--navy); }
.mega a span { display: block; font-size: 14px; color: var(--slate); }
.mega a:hover strong { text-decoration: underline; text-underline-offset: 3px; }

.navtoggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.navtoggle span:not(.sr) { display: block; height: 2px; background: var(--navy); margin: 6px 0; transition: transform .2s; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .03em; text-decoration: none; border: 1.5px solid var(--navy); cursor: pointer; transition: background .15s, color .15s; }
.btn--solid { background: var(--navy); color: #fff; }
.btn--solid:hover { background: #0B1D37; }
.btn--line { background: transparent; color: var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 110px) 0; border-bottom: 1px solid var(--rule); position: relative; }
.hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--navy); }
.hero__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero__title { max-width: 18ch; font-size: clamp(38px, 4.6vw, 58px); }
.hero__index { background: var(--navy); color: #fff; padding: 36px 36px 28px; }
.hero__index ol { list-style: none; margin: 0; padding: 0; }
.hero__index li a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; font-family: var(--serif); font-size: 20px; }
.hero__index li:last-child a { border-bottom: 1px solid rgba(255,255,255,.16); }
.hero__index .num { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: #A9BACB; }
.hero__index .arrow { opacity: .5; transition: transform .15s, opacity .15s; }
.hero__index li a:hover .arrow { transform: translateX(4px); opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }
.section--band { background: #F1F3F6; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section__sub { color: var(--slate); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.card { display: flex; flex-direction: column; padding: 34px 32px 30px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #fff; text-decoration: none; color: var(--graphite); min-height: 250px; transition: background .15s; }
.card:hover { background: var(--paper); }
.card__num { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--slate); margin-bottom: 26px; }
.card h3 { font-size: 25px; }
.card p { color: var(--graphite); }
.card__more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.card:hover .card__more { text-decoration: underline; text-underline-offset: 3px; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.principle { border-top: 2px solid var(--navy); padding-top: 22px; }
.principle__num { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--slate); line-height: 1; display: block; margin-bottom: 14px; }

.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; }
.partner { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--navy); padding: 30px 32px; }
.partner h3 { font-size: 26px; margin-bottom: 8px; }
.partner__role { font-size: 14px; letter-spacing: .04em; color: var(--slate); margin: 0; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card a { display: flex; flex-direction: column; height: 100%; padding: 28px; background: #fff; border: 1px solid var(--rule); text-decoration: none; color: var(--graphite); transition: border-color .15s; }
.post-card a:hover { border-color: var(--navy); }
.post-card__meta { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.post-card h3 { font-size: 22px; }
.post-card .card__more { margin-top: auto; }

/* ---------- CTA band ---------- */
.cta { background: var(--navy); color: #fff; padding: clamp(56px, 7vw, 88px) 0; }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0; }
.cta__contact { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta__contact a:not(.btn) { color: #fff; text-decoration: none; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 2px; }

/* ---------- Page heads ---------- */
.pagehead { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--rule); position: relative; }
.pagehead::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--navy); }
.pagehead h1 { max-width: 18ch; }
.crumbs { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: 18px; }
.crumbs a { color: var(--slate); }

/* ---------- About ---------- */
.prose-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.prose { max-width: 700px; }
.prose h2 { font-size: 30px; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--navy); font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--navy); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; }
.prose--after { margin-top: 48px; }
.facts { margin: 0; background: #fff; border: 1px solid var(--rule); }
.facts div { padding: 18px 24px; border-bottom: 1px solid var(--rule); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); margin-bottom: 4px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 20px; color: var(--navy); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value { border-top: 2px solid var(--navy); padding-top: 20px; }

/* ---------- Services ---------- */
.svc-list { border-top: 1px solid var(--rule); }
.svc-row { display: grid; grid-template-columns: 70px 1.4fr 1fr 40px; gap: 28px; align-items: start; padding: 38px 0; border-bottom: 1px solid var(--rule); }
.svc-row__num { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--slate); padding-top: 10px; }
.svc-row h2 { font-size: clamp(26px, 2.6vw, 32px); }
.svc-row h2 a { text-decoration: none; }
.svc-row h2 a:hover { text-decoration: underline; }
.svc-row__items { list-style: none; margin: 8px 0 0; padding: 0; }
.svc-row__items li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.svc-row__go { font-size: 24px; text-decoration: none; padding-top: 4px; }

.svc-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.included { border-top: 1px solid var(--rule); }
.included__item { padding: 26px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.included__item h3 { font-size: 21px; margin: 0; }
.included__item p { margin: 0; }
.svc-aside { position: sticky; top: 120px; display: grid; gap: 24px; }
.svc-aside__box { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--navy); padding: 30px; }
.svc-aside__box .btn { width: 100%; margin-top: 8px; }
.svc-aside__other ul { list-style: none; margin: 0; padding: 0; }
.svc-aside__other li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-family: var(--serif); font-size: 18px; }

/* ---------- FAQ + areas ---------- */
.faq { margin-top: 56px; }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item:first-of-type { border-top: 1px solid var(--rule); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: 20px; }
.faq__item summary::after { content: "+"; font-family: var(--sans); font-size: 26px; color: var(--navy); line-height: 1; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 24px; max-width: 640px; }
.section--areas { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.areas { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.areas h2 { margin: 0; }
.areas .lede { margin: 0; }
@media (max-width: 900px) { .areas { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-block { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--rule); }
.contact-block:last-child { border-bottom: 0; }
.contact-strong { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; max-width: 360px; }
.hours dt { font-weight: 700; color: var(--navy); }
.hours dd { margin: 0; }
.contact-form { background: #fff; border: 1px solid var(--rule); padding: clamp(28px, 4vw, 44px); }
.enquiry .field { margin-bottom: 18px; }
.enquiry .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.enquiry label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.enquiry input, .enquiry select, .enquiry textarea { width: 100%; font: inherit; font-size: 16px; color: var(--graphite); background: var(--paper); border: 1px solid var(--rule); border-radius: 0; padding: 13px 14px; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.enquiry .btn { width: 100%; margin-top: 4px; }
.enquiry .fine { font-size: 13px; color: var(--slate); margin: 14px 0 0; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; margin-bottom: 20px; font-size: 15px; border-left: 4px solid var(--navy); background: #EEF2F7; color: var(--navy); }
.notice--err { border-left-color: var(--graphite); background: #F3F1EE; color: var(--graphite); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(1) contrast(.95); }

.article-note { font-size: 14px; color: var(--slate); border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 40px; }
.pager { margin-top: 40px; }
.pager .page-numbers { padding: 6px 10px; }

/* ---------- Footer ---------- */
.footer { background: #0D1F3A; color: #C9D3DF; padding: 72px 0 0; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 56px; }
.footer .wordmark { font-size: 22px; margin-bottom: 22px; }
.footer__frn { font-size: 13px; letter-spacing: .06em; color: #A9BACB; }
.footer__addr { line-height: 1.7; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { padding: 5px 0; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__hours { color: #A9BACB; font-size: 14px; }
.footer__base { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 32px; font-size: 13px; color: #8FA1B5; }
.footer__base p { margin: 0; }
.footer__disclaimer { max-width: 720px; }

/* ---------- WhatsApp ---------- */
.wa { position: fixed; right: 22px; bottom: 22px; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(18,41,75,.5); z-index: 60; transition: transform .15s; }
.wa:hover { transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.cards, .posts { grid-template-columns: repeat(2, 1fr); }
	.values { grid-template-columns: repeat(2, 1fr); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.svc-row { grid-template-columns: 50px 1fr 40px; }
	.svc-row__items { grid-column: 2; }
}
@media (max-width: 900px) {
	.utility__inner > span:first-child { display: none; }
	.utility__right { width: 100%; justify-content: space-between; }
	.masthead__inner { min-height: 76px; }
	.wordmark { font-size: 21px; }
	.navtoggle { display: block; }
	.sitenav { position: fixed; inset: 114px 0 0 0; background: var(--paper); padding: 16px var(--gutter) 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; }
	.sitenav.is-open { transform: none; }
	.sitenav > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.sitenav > ul > li > a { padding: 18px 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 24px; }
	.sitenav__cta { margin: 24px 0 0; text-align: center; font-family: var(--sans) !important; font-size: 16px !important; }
	.mega { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; border: 0; background: transparent; }
	.mega__inner { padding: 4px 0 8px; }
	.mega .label { display: none; }
	.mega ul { grid-template-columns: 1fr; }
	.mega a { padding: 10px 0 10px 16px; border-top: 0; }
	.mega a strong { font-size: 17px; }
	.mega a span { display: none; }
	.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
	.navtoggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
	.hero__grid, .prose-grid, .svc-detail, .contact-grid { grid-template-columns: 1fr; }
	.hero__title { max-width: none; }
	.principles { grid-template-columns: 1fr; }
	.partners { grid-template-columns: 1fr; }
	.svc-aside { position: static; }
	.included__item { grid-template-columns: 1fr; gap: 6px; }
	.section__head--split { flex-direction: column; align-items: flex-start; }
	.footer__base { flex-direction: column; gap: 12px; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.cards, .posts, .values { grid-template-columns: 1fr; }
	.card { min-height: 0; }
	.footer__grid { grid-template-columns: 1fr; }
	.enquiry .field-row { grid-template-columns: 1fr; }
	.svc-row { grid-template-columns: 1fr 32px; gap: 12px; }
	.svc-row__num { display: none; }
	.svc-row__items { grid-column: 1; }
	.svc-row__go { grid-row: 1; grid-column: 2; }
	.wordmark { font-size: 18px; }
	.utility { font-size: 12px; }
	.utility__right { gap: 12px; }
	.cta__contact { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
