/*
Theme Name: MM Practice
Description: Lightweight theme for Mukesh Mishra's practice sites. No builder, no JavaScript, no web fonts.
Version: 1.0.0
Update URI: false
Text Domain: mm-practice
*/

:root {
	--ink: #1b2733;
	--muted: #55636f;
	--line: #dfe3e6;
	--paper: #fff;
	--brand: #17324d;
	--brand-2: #24506f;
	--accent: #a8701c;
	--tint: #f4f2ec;
	--on-brand: #fff;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--r: 10px;
}
.site-nihb {
	--brand: #234a40;
	--brand-2: #2f6355;
	--accent: #a64b24;
	--tint: #f7f1e6;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); color: var(--brand); line-height: 1.2; font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 30; background: #fff; padding: 8px 12px; }

.btn { display: inline-block; background: var(--brand); color: var(--on-brand); border: 2px solid var(--brand); border-radius: var(--r); padding: .68em 1.25em; font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer; }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn-line { background: transparent; color: var(--brand); }
.btn-line:hover { color: #fff; }
.btn-sm { padding: .5em .95em; font-size: .94rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.3em 0 .6em; }

.head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head-bar { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { text-decoration: none; display: grid; line-height: 1.2; margin-right: auto; }
.brand-name { font: 600 1.2rem/1.2 var(--serif); color: var(--brand); }
.brand-tag { font-size: .8rem; color: var(--muted); }
.nav { display: flex; gap: 18px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--accent); }
.head-cta { display: flex; align-items: center; gap: 14px; }
.head-tel { font-weight: 600; text-decoration: none; color: var(--brand); white-space: nowrap; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; color: var(--brand); padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); min-width: 220px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.menu nav a { display: block; padding: 12px; text-decoration: none; color: var(--ink); }

.hero { background: var(--tint); padding: clamp(40px, 6vw, 84px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(28px, 5vw, 68px); align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .92rem; margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.hero-note { font-size: .95rem; color: var(--muted); margin: 0; }
.portrait { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.portrait img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.portrait figcaption, .portrait .cap { padding: 14px 18px; font-size: .95rem; color: var(--muted); border-top: 1px solid var(--line); }
.portrait strong { display: block; color: var(--brand); font-family: var(--serif); font-size: 1.12rem; }
figure { margin: 0; }

.facts { background: var(--brand); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; padding: 26px 0; }
.facts b { display: block; font: 600 1.08rem/1.3 var(--serif); }
.facts span { font-size: .92rem; opacity: .86; }

.section { padding: clamp(44px, 6vw, 76px) 0; }
.section.alt { background: var(--tint); }
.section-head { max-width: 680px; margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { border-color: var(--brand-2); color: inherit; }
.card-link h2, .card-link h3 { font-size: 1.2rem; }
.card-link .more { color: var(--brand-2); font-weight: 600; font-size: .95rem; }

.steps { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.steps li { counter-increment: s; margin: 0; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600; margin-bottom: 10px; }
.steps h3 { margin-bottom: .3em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { margin: 0; padding: .35em .85em; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; }

.note { background: var(--tint); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 var(--r) var(--r) 0; margin: 1.4em 0; }
.note p:last-child { margin-bottom: 0; }

details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--brand); }
details.faq p { margin: .6em 0 .2em; }

.pagehead { background: var(--tint); padding: clamp(32px, 5vw, 58px) 0; }
.pagehead h1 { font-size: clamp(1.85rem, 1.4rem + 1.9vw, 2.6rem); max-width: 22em; }
.pagehead .lead { margin-bottom: 0; }
.crumb, .byline { font-size: .92rem; color: var(--muted); margin-bottom: .5em; }
.byline { margin: 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 60px); padding: clamp(32px, 5vw, 56px) 0 clamp(44px, 6vw, 72px); }
.prose { min-width: 0; max-width: 72ch; }
.prose h2 { margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3em; }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 1.2em; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.side-card { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 10px; }
.side-card img { border-radius: 8px; width: 132px; height: 132px; object-fit: cover; }
.side-card h2 { font-size: 1.25rem; margin: 4px 0 0; }
.side-card p { margin: 0; font-size: .95rem; color: var(--muted); }
.side-addr { font-size: .88rem !important; }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea { font: 400 1rem/1.4 var(--sans); padding: .65em .75em; border: 1px solid #b6bec5; border-radius: 8px; width: 100%; background: #fff; color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.form-msg.ok { background: #e4f2e9; color: #17503a; }
.form-msg.bad { background: #fbe9e4; color: #8a2c12; }

.foot { background: var(--brand); color: #e6ecef; margin-top: 0; font-size: .95rem; }
.foot a { color: #fff; }
.foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 32px; padding: 44px 0 24px; }
.foot-name { font: 600 1.2rem/1.2 var(--serif); color: #fff; }
.foot nav a { display: block; padding: 3px 0; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot-note { border-top: 1px solid rgba(255, 255, 255, .22); padding: 16px 0 24px; font-size: .88rem; }
.foot-note p { margin-bottom: .4em; }
.dock { display: none; }

.nav-links { display: flex; gap: 12px; margin-top: 24px; }

@media (max-width: 1120px) {
	.nav { display: none; }
	.menu { display: block; }
}
@media (max-width: 860px) {
	.hero-grid, .split, .layout { grid-template-columns: 1fr; }
	.hero-grid .portrait { max-width: 340px; }
	.facts-grid { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
	.side-card { position: static; }
	.foot-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 620px) {
	body { font-size: 16.5px; padding-bottom: 58px; }
	.head-cta { display: none; }
	.head-bar { min-height: 62px; }
	.form-row { grid-template-columns: 1fr; }
	.btns .btn { flex: 1 1 100%; }
	.dock { display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; inset: auto 0 0; z-index: 25; background: #fff; border-top: 1px solid var(--line); }
	.dock a { padding: 16px; text-align: center; font-weight: 600; text-decoration: none; color: var(--brand); }
	.dock-book { background: var(--brand); color: #fff !important; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 1em 0; }
.gallery-grid img { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; }
