/* ==========================================================================
   Anantha Chess Academy — main stylesheet
   Palette: charcoal · warm ivory · muted gold/bronze
   Fonts: Cormorant Garamond (headings), Inter (body) — self-hosted, OFL
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
	--ink: #1d1c1a;
	--ink-2: #2a2825;
	--ink-3: #3a3733;
	--ivory: #f7f3ec;
	--paper: #fffdf9;
	--sand: #efe8dc;
	--gold: #b08d57;
	--gold-lt: #c9a66b;
	--gold-dk: #7d5f33;
	--text: #2b2926;
	--muted: #5f5a52;
	--muted-lt: #b9b2a6;
	--line: rgba(29, 28, 26, .12);
	--line-lt: rgba(247, 243, 236, .14);
	--success: #2f6b3f;
	--error: #a3362b;

	--font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(29, 28, 26, .05), 0 12px 32px -12px rgba(29, 28, 26, .18);
	--header-h: 76px;
	--gutter: clamp(16px, 4vw, 32px);
	--section-y: clamp(64px, 9vw, 112px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ivory);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--gold-dk); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
h1, h2, h3, h4, .timeline-year, .hero-badge-value, .fide-stats dd, .level-step { font-variant-numeric: lining-nums; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
.site-main:focus { outline: none; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 780px; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* Accessibility helpers (WordPress standard) */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus, .skip-link:focus {
	background: var(--paper); clip: auto !important; clip-path: none; color: var(--ink); display: block;
	font-size: 1rem; height: auto; left: 12px; top: 12px; padding: 12px 18px; width: auto; z-index: 100000; border-radius: 8px; box-shadow: var(--shadow);
}

/* WordPress core classes */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption, figcaption { font-size: .875rem; color: var(--muted); margin-top: .5em; }
.sticky, .bypostauthor { display: block; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 50px; padding: .8em 1.5em;
	font: 600 .98rem/1.2 var(--font-body); letter-spacing: .01em;
	border-radius: 999px; border: 1.5px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: .55em 1.15em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--ink-3); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-lt); color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }
.btn-outline-light { border-color: rgba(247, 243, 236, .5); color: var(--ivory); background: transparent; }
.btn-outline-light:hover { border-color: var(--ivory); background: var(--ivory); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.btn-row-center { justify-content: center; }

.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--gold-dk); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.text-link:hover { color: var(--ink); }
.text-link .icon { width: 1em; height: 1em; }

/* ---------- Typography helpers ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: .7em;
	font: 600 .78rem/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
	color: var(--gold-dk); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-title { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
.section-sub { color: var(--muted); font-size: 1.08rem; max-width: 40rem; }
.section-head { text-align: center; margin: 0 auto clamp(36px, 5vw, 56px); max-width: 720px; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head .section-sub { margin-inline: auto; }
.lead { font-size: 1.12rem; color: var(--text); }
.small-heading { font: 600 .8rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 1.8rem 0 .9rem; }

.section { padding-block: var(--section-y); position: relative; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(247, 243, 236, .92);
	-webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s, box-shadow .25s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(29, 28, 26, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.site-branding { display: flex; align-items: center; min-width: 0; }
.site-branding .custom-logo-link { display: block; line-height: 0; }
.site-branding .custom-logo { width: auto; height: 50px; max-width: 220px; object-fit: contain; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.nav-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
	display: block; padding: 10px 12px; border-radius: 8px;
	font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none; position: relative;
}
.nav-menu a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-menu a:hover::after, .nav-menu a.is-active::after, .nav-menu .current-menu-item > a::after { transform: scaleX(1); }

.nav-toggle {
	display: none; width: 46px; height: 46px; border-radius: 10px;
	border: 1px solid var(--line); background: var(--paper); color: var(--ink);
	align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .nav-toggle-open { display: inline-flex; }
.nav-toggle .nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }

@media (max-width: 960px) {
	:root { --header-h: 66px; }
	.site-branding .custom-logo { height: 42px; max-width: 180px; }
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		position: fixed; inset: var(--header-h) 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px var(--gutter) 24px;
		background: var(--ivory); border-bottom: 1px solid var(--line);
		box-shadow: 0 24px 40px -24px rgba(29, 28, 26, .45);
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity .2s, transform .2s, visibility 0s .2s;
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
	}
	.admin-bar .primary-nav { top: calc(var(--header-h) + 46px); }
	.primary-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
	.nav-menu { flex-direction: column; gap: 0; }
	.nav-menu a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav-menu a::after { display: none; }
	.nav-cta { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden;
	padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px);
}
.hero::before { /* subtle chessboard field */
	content: ""; position: absolute; top: 0; right: 0; width: 55%; height: 100%;
	background-image: conic-gradient(rgba(176, 141, 87, .09) 25%, transparent 0 50%, rgba(176, 141, 87, .09) 0 75%, transparent 0);
	background-size: 64px 64px;
	-webkit-mask-image: linear-gradient(to left, #000 20%, transparent 95%);
	mask-image: linear-gradient(to left, #000 20%, transparent 95%);
	pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-title { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 700; line-height: 1.02; margin-bottom: 1.4rem; letter-spacing: -.015em; }
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.28rem); font-weight: 600; color: var(--ink); margin-bottom: .8rem; max-width: 34rem; }
.hero-text { color: var(--muted); font-size: 1.08rem; max-width: 34rem; margin-bottom: 2rem; }
.btn-wa .icon { color: #1f8f4e; }
.btn-wa:hover .icon { color: currentColor; }

.hero-media { position: relative; isolation: isolate; max-width: 440px; width: 100%; justify-self: end; }
.hero-photo { margin: 0; position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); box-shadow: 0 30px 60px -30px rgba(29, 28, 26, .55); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-media::before {
	content: ""; position: absolute; inset: 18px -18px -18px 18px;
	border: 1.5px solid var(--gold); border-radius: 22px; z-index: -1;
}
.hero-badge {
	position: absolute; left: -26px; bottom: 34px;
	display: flex; flex-direction: column; align-items: flex-start;
	background: var(--ink); color: var(--ivory);
	padding: 14px 20px 12px; border-radius: 14px;
	box-shadow: 0 18px 36px -16px rgba(29, 28, 26, .6);
	border: 1px solid rgba(201, 166, 107, .35);
}
.hero-badge-label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lt); }
.hero-badge-value { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1; }

@media (max-width: 860px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-media { justify-self: center; max-width: 380px; margin-top: 8px; margin-right: 18px; }
	.hero::before { width: 100%; height: 55%; top: auto; bottom: 0; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 95%); mask-image: linear-gradient(to top, #000 10%, transparent 95%); }
	.hero-badge { left: -12px; bottom: 22px; }
}
@media (max-width: 480px) {
	.hero .btn-row .btn { width: 100%; }
}

/* ---------- Credibility bar ---------- */
.cred-bar { background: var(--ink); color: var(--ivory); }
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred-item {
	display: flex; align-items: center; gap: 14px;
	padding: 24px 18px; font-weight: 500; font-size: .98rem; line-height: 1.35;
}
.cred-item + .cred-item { border-left: 1px solid var(--line-lt); }
.cred-item .icon { width: 28px; height: 28px; color: var(--gold-lt); }
@media (max-width: 960px) {
	.cred-grid { grid-template-columns: repeat(2, 1fr); }
	.cred-item:nth-child(3) { border-left: 0; }
	.cred-item:nth-child(n+3) { border-top: 1px solid var(--line-lt); }
}
@media (max-width: 480px) {
	.cred-item { padding: 18px 10px; font-size: .9rem; gap: 10px; flex-direction: column; align-items: flex-start; }
}

/* ---------- About ---------- */
.section-about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-media { position: relative; }
.about-photo { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--sand); box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.about-media::after { /* rook line-art accent */
	content: ""; position: absolute; right: -14px; bottom: -14px; width: 96px; height: 96px;
	background-image: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0);
	background-size: 24px 24px; border-radius: 6px; opacity: .9; z-index: -0;
}
.about-photo { position: relative; z-index: 1; }
.coach-name { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--gold-dk); margin: -.3rem 0 1.2rem; }
.fide-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1.6rem; }
.fide-stats > div { background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; min-width: 150px; }
.fide-stats dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fide-stats dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1.1; color: var(--ink); }
.text-link-row { margin-top: 1.6rem; }
@media (max-width: 860px) {
	.about-grid { grid-template-columns: 1fr; }
	.about-media { max-width: 420px; margin-right: 14px; }
}

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.check-list .icon { color: var(--gold); margin-top: .12em; width: 1.05em; height: 1.05em; stroke-width: 2.2; }
.check-list-2col { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
@media (max-width: 560px) { .check-list-2col { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 22px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid-3 { grid-template-columns: 1fr; } }
.card {
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	padding: clamp(24px, 3vw, 32px);
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(176, 141, 87, .45); }
.card-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 12px;
	background: var(--ivory); color: var(--gold-dk); border: 1px solid rgba(176, 141, 87, .35);
	margin-bottom: 18px;
}
.card-icon .icon { width: 26px; height: 26px; }
.card-title { font-size: 1.55rem; margin-bottom: .4rem; }
.why-card p { color: var(--muted); margin: 0; }

.section-why { background: var(--ivory); }

/* ---------- Classes ---------- */
.section-classes { background: var(--paper); }
.level-top { display: flex; align-items: flex-start; justify-content: space-between; }
.level-step { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: rgba(176, 141, 87, .35); }
.level-card .card-title { margin-bottom: 1rem; }
.level-card { border-top: 3px solid var(--gold); }

.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: clamp(40px, 6vw, 64px); }
@media (max-width: 860px) { .mode-grid { grid-template-columns: 1fr; } }
.mode-card { border-radius: 20px; padding: clamp(28px, 4vw, 44px); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; }
.mode-card > p { max-width: 30rem; }
.mode-card .check-list { margin-bottom: 1.8rem; }
.mode-kicker { display: inline-flex; align-items: center; gap: .5em; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.mode-title { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.mode-online { background: var(--ink); color: var(--ivory); }
.mode-online .mode-title { color: var(--ivory); }
.mode-online .mode-kicker { color: var(--gold-lt); }
.mode-online > p { color: var(--muted-lt); }
.mode-online::after {
	content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px;
	background-image: conic-gradient(rgba(201, 166, 107, .14) 25%, transparent 0 50%, rgba(201, 166, 107, .14) 0 75%, transparent 0);
	background-size: 40px 40px; transform: rotate(12deg); pointer-events: none;
}
.mode-online .btn { margin-top: auto; }
.mode-offline { background: var(--sand); border: 1px solid rgba(176, 141, 87, .35); }
.mode-offline .mode-kicker { color: var(--gold-dk); }
.mode-address { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border-radius: 12px; padding: 16px 18px; margin: .2rem 0 1.6rem; font-weight: 500; line-height: 1.55; width: 100%; max-width: 30rem; }
.mode-address .icon { color: var(--gold-dk); margin-top: .15em; }
.mode-offline .btn-row { margin-top: auto; }

/* ---------- Achievements ---------- */
.section-achievements { background: var(--ink); color: var(--ivory); overflow: hidden; }
.section-achievements::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 280px;
	background-image: conic-gradient(rgba(201, 166, 107, .06) 25%, transparent 0 50%, rgba(201, 166, 107, .06) 0 75%, transparent 0);
	background-size: 56px 56px;
	-webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent);
	pointer-events: none;
}
.section-head-light .section-title { color: var(--ivory); }
.section-head-light .eyebrow { color: var(--gold-lt); }
.award-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 860px) { .award-grid { grid-template-columns: 1fr; } }
.award-card {
	background: var(--ink-2); border: 1px solid rgba(201, 166, 107, .3); border-radius: 20px; overflow: hidden;
	display: flex; flex-direction: column;
}
.award-photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); }
.award-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s; }
.award-card:hover .award-photo img { transform: scale(1.03); }
.award-body { padding: 24px 26px 26px; border-top: 3px solid var(--gold); }
.award-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: .6rem; }
.award-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--ink); flex: none; }
.award-icon .icon { width: 18px; height: 18px; stroke-width: 1.9; }
.award-event { color: var(--ivory); font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: .4rem; }
.award-date { color: var(--muted-lt); margin: 0; font-size: .95rem; }

.journey { position: relative; margin-top: clamp(56px, 8vw, 88px); }
.journey-title { color: var(--ivory); font-size: clamp(1.8rem, 3.2vw, 2.4rem); text-align: center; margin-bottom: 2rem; }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 150px; width: 1px; background: rgba(201, 166, 107, .4); }
.timeline-item { position: relative; display: grid; grid-template-columns: 126px 1fr; gap: 48px; padding: 14px 0; align-items: baseline; }
.timeline-item::before {
	content: ""; position: absolute; left: 150px; top: 1.45em; width: 11px; height: 11px;
	background: var(--gold); transform: translate(-50%, -50%) rotate(45deg);
	box-shadow: 0 0 0 4px var(--ink);
}
.timeline-year { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--gold-lt); text-align: right; padding-right: 0; line-height: 1.3; }
.timeline-text { color: var(--ivory); font-size: 1.04rem; line-height: 1.5; }
@media (max-width: 620px) {
	.timeline::before { left: 6px; }
	.timeline-item { grid-template-columns: 1fr; gap: 2px; padding: 12px 0 12px 32px; }
	.timeline-item::before { left: 6px; top: 1.35em; }
	.timeline-year { text-align: left; font-size: 1.2rem; }
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--sand); padding-block: clamp(56px, 8vw, 96px); position: relative; overflow: hidden; text-align: center; border-top: 1px solid rgba(176, 141, 87, .3); border-bottom: 1px solid rgba(176, 141, 87, .3); }
.cta-band::before, .cta-band::after {
	content: ""; position: absolute; width: 180px; height: 180px; top: 50%; transform: translateY(-50%);
	background-image: conic-gradient(rgba(29, 28, 26, .07) 25%, transparent 0 50%, rgba(29, 28, 26, .07) 0 75%, transparent 0);
	background-size: 45px 45px; pointer-events: none;
}
.cta-band::before { left: -60px; }
.cta-band::after { right: -60px; }
.cta-inner { position: relative; max-width: 760px; }
.cta-title { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 700; }
.cta-text { color: var(--muted); font-size: 1.1rem; margin: 0 auto 2rem; max-width: 36rem; }
.cta-band .btn-outline-light { border-color: var(--ink); color: var(--ink); }
.cta-band .btn-outline-light:hover { background: var(--ink); color: var(--ivory); }

/* ---------- Contact + Form ---------- */
.section-contact { background: var(--ivory); }
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.enquiry-wrap .section-sub { margin-bottom: 1.8rem; }

.enquiry-form { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.req { color: var(--error); }
.opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
	width: 100%; min-height: 50px; padding: 12px 14px;
	font: 400 1rem/1.4 var(--font-body); color: var(--text);
	background: var(--ivory); border: 1.5px solid #d9d1c3; border-radius: 10px;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
	-webkit-appearance: none; appearance: none;
}
.field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d5f33' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--paper); box-shadow: 0 0 0 4px rgba(176, 141, 87, .18); }
.field input::placeholder, .field textarea::placeholder { color: #9a9387; }
.field-error { min-height: 1.35em; margin: 4px 0 8px; font-size: .84rem; color: var(--error); line-height: 1.35; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); background: #fdf6f4; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill { position: relative; cursor: pointer; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radio-pill span {
	display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px;
	border: 1.5px solid #d9d1c3; border-radius: 999px; background: var(--ivory);
	font-weight: 500; transition: all .2s;
}
.radio-pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.radio-pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.field.has-error .radio-pill span { border-color: var(--error); }
.form-note { font-size: .86rem; color: var(--muted); margin: .4rem 0 1.2rem; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; font-weight: 500; }
.form-status[data-state="success"] { background: #eaf3ec; color: var(--success); border: 1px solid #bcd8c3; }
.form-status[data-state="error"] { background: #fbeeec; color: var(--error); border: 1px solid #ecc5bf; }
.form-status[data-state="info"] { background: var(--sand); color: var(--ink); border: 1px solid var(--line); }
.enquiry-form.is-sent .form-grid, .enquiry-form.is-sent .form-note, .enquiry-form.is-sent button[type="submit"] { display: none; }

.contact-card { background: var(--ink); color: var(--ivory); border-radius: 20px; padding: clamp(26px, 4vw, 36px); position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .contact-card { position: static; } }
.contact-title { color: var(--ivory); font-size: clamp(1.9rem, 3vw, 2.3rem); margin-bottom: .2rem; }
.contact-academy { color: var(--gold-lt); font-weight: 600; margin-bottom: .8rem; }
.contact-meta { list-style: none; padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid var(--line-lt); color: var(--muted-lt); font-size: .95rem; }
.contact-list { margin: 0 0 22px; display: grid; gap: 16px; }
.contact-list dt { display: flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 4px; }
.contact-list dt .icon { width: 16px; height: 16px; }
.contact-list dd { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.contact-list a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgba(247, 243, 236, .35); }
.contact-list a:hover { border-bottom-color: var(--gold-lt); color: #fff; }
.contact-card .btn-row .btn { flex: 1 1 160px; }

.map-card {
	position: relative; display: flex; align-items: flex-end; min-height: 150px; margin-top: 22px;
	border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ivory);
	background: var(--ink-2); border: 1px solid rgba(201, 166, 107, .3);
}
.map-card-grid {
	position: absolute; inset: 0;
	background-image: linear-gradient(rgba(201, 166, 107, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 166, 107, .12) 1px, transparent 1px);
	background-size: 28px 28px;
}
.map-card-pin { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(176, 141, 87, .18); }
.map-card-label { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px 16px; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); }
.map-card:hover .map-card-pin { transform: translate(-50%, -56%); transition: transform .25s; }
.map-embed { margin-top: 22px; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #151412; color: var(--muted-lt); padding-top: clamp(48px, 7vw, 72px); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 36px; padding-bottom: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand .custom-logo { height: 54px; width: auto; }
.footer-brand-text { font-family: var(--font-display); font-size: 1.8rem; color: var(--ivory); text-decoration: none; font-weight: 700; }
.footer-tagline { margin-top: 14px; color: var(--muted-lt); }
.footer-heading { font: 600 .76rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 14px; }
.footer-contact p { margin-bottom: .7em; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--gold-lt); }
.footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.social-links { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.social-links a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line-lt); }
.social-links a:hover { border-color: var(--gold-lt); }
.footer-bottom { border-top: 1px solid var(--line-lt); padding-block: 20px 28px; font-size: .86rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-bottom { padding-bottom: 96px; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
	position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
	display: inline-flex; align-items: center; gap: 8px;
	height: 52px; padding: 0 18px 0 14px; border-radius: 999px;
	background: #1f8f4e; color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem;
	box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
	transition: transform .2s, background-color .2s, opacity .25s;
}
.wa-float:hover { background: #197a42; color: #fff; transform: translateY(-2px); }
.wa-float .icon { width: 26px; height: 26px; }
@media (max-width: 620px) {
	.wa-float { width: 54px; height: 54px; padding: 0; justify-content: center; }
	.wa-float-label { display: none; }
}
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: clamp(40px, 7vw, 80px) clamp(28px, 5vw, 48px); }
.page-title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; }
.post-meta { color: var(--muted); font-size: .92rem; margin: .6rem 0 0; }
.content-area { padding-block: clamp(36px, 6vw, 72px); }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: 2rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.6rem; margin-top: 1.4em; }
.entry-content img { border-radius: 10px; }
.entry-content blockquote { margin: 1.5em 0; padding: .4em 0 .4em 1.2em; border-left: 3px solid var(--gold); font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); }
.entry-thumb { margin: 0 0 2rem; border-radius: 14px; overflow: hidden; }
.post-list { display: grid; gap: 28px; }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.post-card-thumb img { border-radius: 10px; margin-bottom: 18px; width: 100%; }
.post-card-title { font-size: 1.8rem; margin-bottom: 0; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--gold-dk); }
.nav-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.nav-links a, .nav-links span.current { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; }
.nav-label { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.notfound { padding-block: clamp(72px, 12vw, 140px); text-align: center; }
.notfound-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: rgba(176, 141, 87, .45); margin: 0 0 .1em; }
.notfound .lead { color: var(--muted); margin: 1rem auto 2rem; max-width: 32rem; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
}

@media print {
	.site-header, .wa-float, .cta-band, .enquiry-form, .nav-toggle { display: none !important; }
	body { background: #fff; }
}
