/*
Theme Name: MKS Legal Advisors
Theme URI: https://mkslegaladvisors.com
Author: MKS Legal Advisors
Description: Custom premium WordPress theme for an Indian litigation and advisory practice focused on GST litigation, DRT recovery, NCLT insolvency, RERA disputes, commercial agreements, and contract disputes.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: mks-legal-advisors
*/

:root {
	--bg: #fbfaf7;
	--surface: #ffffff;
	--surface-soft: #f3f0ea;
	--ink: #14213d;
	--muted: #5d6679;
	--line: #ded8cc;
	--gold: #b88746;
	--gold-soft: #e6c58f;
	--green: #1f7a5f;
	--green-soft: #e7f4ef;
	--navy: #0f2742;
	--danger: #7a2c2c;
	--shadow: 0 20px 50px rgba(20, 33, 61, 0.12);
	--radius: 8px;
	--max: 1180px;
	--font-body: "Inter", "Segoe UI", Arial, sans-serif;
	--font-heading: Georgia, "Times New Roman", serif;
	--h1: clamp(2.5rem, 6vw, 5.25rem);
	--h2: clamp(1.65rem, 2.4vw, 2.35rem);
	--h3: clamp(1.24rem, 2vw, 1.58rem);
	--text: clamp(1rem, 1.1vw, 1.08rem);
	--small: 0.82rem;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
}

.site-shell {
	overflow: hidden;
}

.container {
	width: min(100% - 40px, var(--max));
	margin-inline: auto;
}

.narrow {
	max-width: 900px;
}

.skip-link {
	position: absolute;
	top: 12px;
	left: -999px;
	z-index: 999;
	padding: 10px 14px;
	background: var(--ink);
	color: #fff;
}

.skip-link:focus {
	left: 12px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-title {
	margin-top: 0;
	color: var(--ink);
	font-family: var(--font-heading);
	font-weight: 700;
	letter-spacing: 0;
}

p {
	margin-top: 0;
	color: var(--muted);
}

section,
.content {
	padding-block: 74px;
}

/* Header and navigation */
.site-header {
	position: sticky;
	top: 0;
	z-index: 70;
	background: rgba(252, 251, 248, 0.96);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(222, 216, 204, 0.78);
}

.topbar {
	background: var(--navy);
	color: #eef5f2;
	font-size: 0.8rem;
}

.topbar .container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding-block: 7px;
}

.topbar-tagline {
	white-space: nowrap;
}

.topbar-links {
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: flex-end;
	white-space: nowrap;
}

.topbar a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #fff;
	font-weight: 700;
}

.navbar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: 86px;
	padding-block: 18px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 320px;
}

.brand-logo {
	width: 52px;
	height: 52px;
	flex: 0 0 auto;
	object-fit: contain;
}

.brand-title {
	display: block;
	font-size: 1.08rem;
	line-height: 1.08;
}

.brand-subtitle {
	display: block;
	margin-top: 5px;
	color: var(--muted);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nav-toggle {
	display: none;
	position: relative;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
	content: "";
	position: absolute;
	left: 50%;
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 999px;
	transform: translateX(-50%);
	transition: opacity 160ms ease, transform 160ms ease, top 160ms ease;
}

.nav-toggle::before {
	top: 13px;
}

.nav-toggle span {
	top: 19px;
}

.nav-toggle::after {
	top: 25px;
}

.nav-toggle[aria-expanded="true"]::before {
	top: 19px;
	transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"]::after {
	top: 19px;
	transform: translateX(-50%) rotate(-45deg);
}

.mobile-nav-head,
.nav-close,
.nav-overlay {
	display: none;
}

.primary-menu-wrap {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
}

.primary-menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 11px;
	border-radius: var(--radius);
	color: #26364f;
	font-size: 0.94rem;
	font-weight: 800;
}

.primary-menu a:hover,
.primary-menu a:focus {
	background: var(--green-soft);
	color: var(--green);
}

.primary-menu .menu-item-has-children {
	position: relative;
}

.primary-menu .menu-item-has-children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-left: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}

.primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	z-index: 90;
	display: grid;
	min-width: 430px;
	margin: 0;
	padding: 18px 10px 10px;
	list-style: none;
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid rgba(222, 216, 204, 0.9);
	border-radius: var(--radius);
	box-shadow: 0 24px 58px rgba(20, 33, 61, 0.16);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 6px);
	transition: opacity 160ms ease, transform 160ms ease;
}

.primary-menu .sub-menu::before {
	content: "";
	position: absolute;
	inset: -12px 0 auto;
	height: 12px;
}

.primary-menu .menu-item-has-children:hover > .sub-menu,
.primary-menu .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.mks-service-dropdown li + li {
	border-top: 1px solid rgba(222, 216, 204, 0.72);
}

.mks-service-dropdown a {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	justify-content: start;
	min-height: 0;
	padding: 12px;
	text-align: left;
	color: var(--ink);
}

.mks-service-dropdown a:hover,
.mks-service-dropdown a:focus {
	background: #f4f8f5;
}

.submenu-icon,
.icon-dot,
.footer-brand-icon,
.service-icon {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--green-soft);
	color: var(--green);
}

.submenu-icon {
	width: 34px;
	height: 34px;
}

.mks-service-dropdown strong {
	display: block;
	color: var(--navy);
	font-size: 0.94rem;
	line-height: 1.2;
}

.mks-service-dropdown small {
	display: block;
	margin-top: 3px;
	color: var(--muted);
	font-size: 0.76rem;
	font-weight: 600;
	line-height: 1.35;
}

.nav-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 17px;
	border-radius: var(--radius);
	background: var(--green);
	color: #fff;
	font-weight: 850;
	box-shadow: 0 14px 28px rgba(31, 122, 95, 0.18);
	white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus {
	background: #166b53;
}

/* Hero sections */
.hero,
.page-hero {
	position: relative;
	background:
		linear-gradient(90deg, rgba(251, 250, 247, 1) 0%, rgba(251, 250, 247, 0.94) 48%, rgba(231, 244, 239, 0.72) 100%),
		linear-gradient(135deg, #fbfaf7, #eef4f1);
	border-bottom: 1px solid var(--line);
}

.hero {
	padding: 72px 0 66px;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.75fr);
	gap: 38px;
	align-items: center;
	min-height: 500px;
}

.page-hero {
	padding: 64px 0;
}

.page-hero .container {
	display: grid;
	align-content: center;
	min-height: 330px;
}

.services-hero .container {
	min-height: 280px;
}

.services-hero h1 {
	max-width: 1080px;
	font-size: clamp(2.8rem, 5.3vw, 4.85rem);
}

.services-intro-section {
	padding-top: 56px;
}

.services-intro-section .section-head {
	align-items: center;
	margin-bottom: 34px;
}

.services-intro-section .section-head h2 {
	max-width: 720px;
	font-size: var(--h2);
	line-height: 1.16;
}

.services-intro-section .section-head > p {
	max-width: 520px;
	justify-self: end;
	margin: 0;
}

.page-hero .container.narrow {
	max-width: min(1180px, calc(100% - 40px));
}

.eyebrow,
.section-kicker {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 18px;
	color: var(--green);
	font-size: 0.78rem;
	font-weight: 850;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
	content: "";
	width: 34px;
	height: 1px;
	background: var(--gold);
}

.hero h1,
.page-hero h1 {
	width: min(100%, 1180px);
	max-width: 1180px;
	margin: 0;
	color: var(--ink);
	font-size: var(--h1);
	line-height: 1.04;
	text-wrap: balance;
}

.text-accent {
	background: linear-gradient(105deg, #16745f 0%, #2c9c79 42%, #b88746 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: 0 10px 32px rgba(31, 122, 95, 0.08);
}

.hero-lede,
.page-lede {
	width: min(100%, 1000px);
	max-width: 1000px;
	margin: 22px 0 0;
	color: #465570;
	font-size: var(--text);
	line-height: 1.72;
}

.hero-actions,
.section-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.hero-panel {
	align-self: end;
	padding: 24px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(222, 216, 204, 0.86);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.hero-panel ul,
.premium-list,
.credential-list,
.process-list,
.quick-list,
.footer-list,
.service-side-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hero-panel li,
.premium-list li,
.credential-list li,
.process-list li,
.quick-list li {
	padding: 14px 0;
	border-bottom: 1px solid rgba(222, 216, 204, 0.75);
}

.hero-panel li {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
}

.premium-list li,
.credential-list li,
.process-list li,
.quick-list li {
	display: block;
}

.hero-panel li:last-child,
.premium-list li:last-child,
.credential-list li:last-child,
.process-list li:last-child,
.quick-list li:last-child {
	border-bottom: 0;
}

.hero-panel strong,
.premium-list strong,
.credential-list strong,
.process-list strong,
.quick-list strong {
	display: block;
	color: var(--ink);
}

.icon-dot,
.footer-brand-icon {
	margin-right: 12px;
	vertical-align: middle;
}

.site-footer h2 .footer-brand-icon {
	width: 34px;
	height: 34px;
}

/* Buttons */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 12px 18px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-weight: 850;
	line-height: 1.1;
	text-align: center;
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus {
	transform: translateY(-1px);
}

.button-primary {
	background: var(--ink);
	color: #fff;
	box-shadow: 0 18px 35px rgba(20, 33, 61, 0.18);
}

.button-secondary {
	background: var(--surface);
	color: var(--ink);
	border-color: var(--line);
}

.button-whatsapp {
	background: var(--green);
	color: #fff;
	box-shadow: 0 18px 35px rgba(31, 122, 95, 0.2);
}

/* Shared content sections */
.section-head {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
	gap: 34px;
	align-items: end;
	margin-bottom: 30px;
}

.section-head h2,
.content h2,
.cta-band h2 {
	margin-bottom: 14px;
	font-size: var(--h2);
	line-height: 1.16;
}

.about-grid,
.contact-grid,
.cta-inner,
.practice-tabs,
.service-detail-layout,
.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
	gap: 34px;
	align-items: start;
}

.trust-strip {
	padding-block: 18px;
	background: var(--surface);
	border-block: 1px solid var(--line);
}

.trust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.trust-item {
	padding: 18px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.trust-number {
	display: block;
	color: var(--green);
	font-family: var(--font-heading);
	font-size: 1.62rem;
	font-weight: 700;
}

.trust-label {
	display: block;
	color: var(--muted);
	font-size: 0.9rem;
}

.about-band,
.service-detail-section,
.contact-section,
.blog-section {
	background: var(--bg);
}

.bio-card,
.contact-card,
.form-card,
.detail-block,
.service-sidebar,
.empty-state,
.post-cta {
	padding: 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 10px 28px rgba(20, 33, 61, 0.045);
}

.detail-block + .detail-block,
.faq-block,
.post-cta {
	margin-top: 22px;
}

.rich-detail h2,
.faq-block h2,
.service-sidebar h2,
.form-card h2,
.contact-card h2,
.bio-card h3 {
	font-size: var(--h3);
	line-height: 1.22;
}

.faq-list details {
	border-bottom: 1px solid var(--line);
}

.faq-list summary {
	position: relative;
	padding: 16px 42px 16px 0;
	color: var(--ink);
	font-weight: 850;
	cursor: pointer;
}

.faq-list summary::after {
	content: "+";
	position: absolute;
	right: 8px;
	top: 14px;
	color: var(--green);
	font-size: 1.2rem;
}

.faq-list details[open] summary::after {
	content: "-";
}

.service-sidebar {
	position: sticky;
	top: 128px;
}

.service-sidebar .button + .button {
	margin-top: 10px;
}

.service-side-list a,
.footer-list a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-block: 5px;
	color: inherit;
}

.footer-contact-links {
	display: grid;
	gap: 13px;
	margin-top: 6px;
}

.footer-contact-links a {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 8px;
	align-items: center;
	line-height: 1.25;
}

.footer-contact-links .mks-svg {
	width: 20px;
	height: 20px;
}

.footer-note {
	margin-top: 18px;
	max-width: 260px;
	line-height: 1.5;
}

.service-side-list li {
	border-bottom: 1px solid rgba(222, 216, 204, 0.78);
}

.service-side-list li:last-child {
	border-bottom: 0;
}

.service-side-list a {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	width: 100%;
	padding: 13px 0;
	line-height: 1.32;
}

.service-side-list .mks-svg {
	width: 19px;
	height: 19px;
	margin-top: 3px;
	color: var(--ink);
}

.service-side-list a:hover,
.service-side-list a:focus {
	color: var(--green);
}

/* Services */
.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-height: 320px;
	padding: 28px;
	background: var(--surface);
	border: 1px solid #e8dcc8;
	border-radius: var(--radius);
	box-shadow: 0 12px 30px rgba(20, 33, 61, 0.035);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card::after {
	content: "";
	position: absolute;
	inset: -48px -48px auto auto;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	border: 1px solid rgba(184, 135, 70, 0.24);
	background: transparent;
}

.service-card:hover {
	transform: translateY(-3px);
	border-color: rgba(31, 122, 95, 0.28);
	box-shadow: 0 16px 34px rgba(20, 33, 61, 0.08);
}

.service-icon {
	width: 54px;
	height: 54px;
	margin-bottom: 20px;
	border: 1px solid rgba(184, 135, 70, 0.55);
	background: #f7fbf8;
	color: #0a5c48;
	box-shadow: 0 14px 30px rgba(20, 33, 61, 0.06);
}

.service-icon .mks-svg {
	width: 22px;
	height: 22px;
	stroke-width: 2.35;
}

.service-card h2,
.service-card h3 {
	margin-bottom: 14px;
	color: #061936;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.45rem, 2vw, 1.7rem);
	line-height: 1.08;
	font-weight: 700;
}

.service-card p {
	color: #5f6f8a;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: clamp(1rem, 1.18vw, 1.08rem);
	line-height: 1.62;
}

.service-card a,
.read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--green);
	font-weight: 850;
}

.service-card a {
	margin-top: auto;
	padding-top: 18px;
}

/* Blog */
.category-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin: 0 0 24px;
}

.post-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 11px;
}

.post-categories a,
.category-filter a {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 6px 10px;
	border: 1px solid rgba(31, 122, 95, 0.18);
	border-radius: 999px;
	background: #f3faf6;
	color: var(--green);
	font-size: 0.76rem;
	font-weight: 850;
	line-height: 1;
}

.post-categories a:hover,
.post-categories a:focus,
.category-filter a:hover,
.category-filter a:focus,
.category-filter a.is-active {
	background: var(--green);
	color: #fff;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.post-card {
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 10px 28px rgba(20, 33, 61, 0.045);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(20, 33, 61, 0.08);
}

.post-card-media {
	display: block;
	aspect-ratio: 1.65 / 1;
	overflow: hidden;
	background: linear-gradient(135deg, #102b49, #1f7a5f);
	border-bottom: 1px solid var(--line);
}

.post-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

.post-card:hover .post-card-image {
	transform: scale(1.035);
}

.post-card-image-fallback {
	display: grid;
	place-items: end start;
	padding: 18px;
	color: rgba(255, 255, 255, 0.92);
	font-family: var(--font-heading);
	font-size: 1.24rem;
	font-weight: 700;
}

.post-card-body {
	padding: 20px 22px 22px;
}

.post-card h2 {
	margin: 8px 0 10px;
	font-size: var(--h3);
	line-height: 1.22;
}

.post-meta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	color: var(--green);
	font-size: 0.76rem;
	font-weight: 850;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.article-content {
	font-size: var(--text);
}

.article-content h2 {
	margin-top: 34px;
}

.single-featured-image {
	margin: 0 0 28px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface-soft);
	box-shadow: 0 14px 34px rgba(20, 33, 61, 0.06);
}

.pagination-wrap {
	margin-top: 28px;
}

/* Forms and notices */
.mks-form {
	display: grid;
	gap: 16px;
}

.field {
	display: grid;
	gap: 7px;
}

.field label {
	color: var(--ink);
	font-weight: 800;
}

.field input,
.field textarea,
.field select {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--ink);
}

.field select {
	appearance: none;
	padding-right: 46px;
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2314213d'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m6%209%206%206%206-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px 18px;
	cursor: pointer;
}

.field textarea {
	min-height: 130px;
	resize: vertical;
}

.notice {
	margin-bottom: 18px;
	padding: 14px 16px;
	border-radius: var(--radius);
	background: var(--green-soft);
	color: var(--green);
	font-weight: 760;
}

.notice-error {
	background: #f7e9e9;
	color: var(--danger);
}

.contact-methods {
	display: grid;
	gap: 12px;
	margin-top: 18px;
}

.contact-method {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg);
}

.contact-method .icon-dot {
	width: 28px;
	height: 28px;
	align-self: center;
	justify-self: center;
}

.contact-method small {
	display: block;
	margin-bottom: 4px;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 750;
	line-height: 1.1;
	text-transform: uppercase;
}

.contact-method strong {
	display: block;
	color: var(--ink);
	line-height: 1.28;
}

/* Footer */
.cta-band {
	padding: 58px 0;
	background: var(--navy);
	color: #fff;
}

.cta-band h1,
.cta-band h2,
.cta-band h3,
.cta-band h4,
.cta-band h5,
.cta-band h6 {
	color: #fff;
}

.cta-band p {
	color: #e3edf3;
}

.site-footer {
	padding: 58px 0 30px;
	background: var(--navy);
	color: #dce5eb;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
	color: #fff;
}

.site-footer p,
.site-footer li,
.footer-bottom {
	color: #dce5eb;
}

.site-footer a {
	color: #f2f7fa;
}

.site-footer a:hover,
.site-footer a:focus {
	color: var(--gold-soft);
}

.footer-grid {
	grid-template-columns: 1.3fr repeat(3, minmax(0, 0.7fr));
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	margin-top: 42px;
	padding-top: 22px;
	padding-right: 82px;
	border-top: 1px solid rgba(255, 255, 255, 0.13);
	font-size: 0.9rem;
}

.footer-bottom span:last-child {
	max-width: min(100%, 820px);
	text-align: right;
}

.whatsapp-float {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 80;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 50%;
	background: linear-gradient(135deg, #20b968, #15975b);
	color: #fff;
	box-shadow: 0 12px 24px rgba(21, 151, 91, 0.22), 0 0 0 8px rgba(31, 189, 104, 0.08);
}

/* Icons */
.mks-svg {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	vertical-align: middle;
}

.icon-dot .mks-svg,
.submenu-icon .mks-svg {
	width: 17px;
	height: 17px;
}

.nav-cta .mks-svg,
.button .mks-svg,
.post-meta .mks-svg {
	width: 17px;
	height: 17px;
}

.whatsapp-float .mks-svg {
	width: 24px;
	height: 24px;
}

/* Responsive */
@media (min-width: 1280px) {
	:root {
		--max: 1240px;
	}
}

@media (max-width: 1180px) {
	.brand {
		min-width: 260px;
	}

	.primary-menu {
		gap: 2px;
	}

	.primary-menu a {
		padding-inline: 8px;
		font-size: 0.88rem;
	}

	.nav-cta {
		padding-inline: 14px;
	}
}

@media (max-width: 980px) {
	body.nav-open {
		overflow: hidden;
	}

	.container {
		width: min(100% - 32px, var(--max));
	}

	.topbar .container {
		grid-template-columns: 1fr;
		align-items: start;
		gap: 8px;
	}

	.topbar-tagline {
		white-space: normal;
	}

	.navbar {
		min-height: 76px;
		padding-block: 12px;
	}

	.brand {
		min-width: 0;
		max-width: calc(100% - 56px);
	}

	.brand-title {
		font-size: 0.98rem;
	}

	.brand-subtitle {
		font-size: 0.6rem;
		white-space: normal;
	}

	.nav-toggle {
		display: grid;
		place-items: center;
		flex: 0 0 42px;
	}

	.primary-menu-wrap {
		position: fixed;
		inset: 0 0 0 auto;
		z-index: 9999;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: min(92vw, 410px);
		height: 100vh;
		height: 100dvh;
		margin: 0;
		padding: 20px;
		overflow-y: auto;
		overflow-x: hidden;
		background: #fffdf8;
		border-left: 1px solid rgba(222, 216, 204, 0.95);
		box-shadow: -28px 0 70px rgba(20, 33, 61, 0.22);
		transform: translateX(105%);
		transition: transform 220ms ease;
	}

	.primary-menu-wrap.is-open {
		transform: translateX(0);
	}

	.mobile-nav-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		padding-bottom: 18px;
		margin-bottom: 16px;
		border-bottom: 1px solid var(--line);
		color: var(--ink);
	}

	.mobile-brand {
		display: grid;
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 12px;
		align-items: center;
		min-width: 0;
	}

	.mobile-brand-logo {
		width: 42px;
		height: 42px;
		object-fit: contain;
	}

	.mobile-nav-head strong {
		display: block;
		font-family: var(--font-heading);
		font-size: 1.44rem;
		line-height: 1.05;
	}

	.mobile-nav-head small {
		display: block;
		margin-top: 4px;
		color: var(--muted);
		font-size: 0.78rem;
		font-weight: 800;
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}

	.nav-close {
		position: relative;
		display: grid;
		place-items: center;
		flex: 0 0 40px;
		width: 40px;
		height: 40px;
		padding: 0;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: var(--bg);
		color: var(--ink);
		cursor: pointer;
	}

	.nav-close::before,
	.nav-close::after {
		content: "";
		position: absolute;
		width: 18px;
		height: 2px;
		background: currentColor;
	}

	.nav-close::before {
		transform: rotate(45deg);
	}

	.nav-close::after {
		transform: rotate(-45deg);
	}

	.nav-overlay {
		position: fixed;
		inset: 0;
		z-index: 9990;
		display: block;
		background: rgba(15, 39, 66, 0.48);
		backdrop-filter: blur(2px);
	}

	.nav-overlay[hidden] {
		display: none;
	}

	.primary-menu {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0;
		padding: 4px 0;
		border-block: 1px solid rgba(222, 216, 204, 0.72);
	}

	.primary-menu a {
		width: 100%;
		justify-content: space-between;
		min-height: 54px;
		padding: 14px 4px;
		background: transparent;
		border: 0;
		border-radius: 0;
		color: var(--ink);
		font-size: 1.02rem;
		font-weight: 850;
	}

	.primary-menu > li + li {
		border-top: 1px solid rgba(222, 216, 204, 0.72);
	}

	.primary-menu a:hover,
	.primary-menu a:focus {
		background: transparent;
		color: var(--green);
	}

	.primary-menu .menu-item-has-children {
		grid-column: 1 / -1;
	}

	.primary-menu .sub-menu {
		position: static !important;
		inset: auto !important;
		display: none;
		grid-template-columns: 1fr;
		min-width: 0;
		width: 100%;
		margin: 0 0 14px;
		padding: 4px 0 4px 12px;
		background: transparent;
		border: 0;
		border-left: 2px solid rgba(31, 122, 95, 0.22);
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		pointer-events: auto;
		transform: none !important;
	}

	.primary-menu .menu-item-has-children.submenu-open > .sub-menu,
	.primary-menu .menu-item-has-children:focus-within > .sub-menu {
		display: grid;
	}

	.primary-menu .sub-menu::before {
		display: none;
	}

	.mks-service-dropdown a {
		display: grid;
		grid-template-columns: 28px minmax(0, 1fr);
		justify-content: start;
		text-align: left;
		width: 100%;
		max-width: 100%;
		min-height: 48px;
		padding: 10px 0;
		margin: 0;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.mks-service-dropdown li {
		border-top: 0;
	}

	.mks-service-dropdown li + li {
		border-top: 1px solid rgba(222, 216, 204, 0.6);
	}

	.mks-service-dropdown a:hover,
	.mks-service-dropdown a:focus {
		background: transparent;
		color: var(--green);
	}

	.mks-service-dropdown strong,
	.mks-service-dropdown small {
		overflow-wrap: anywhere;
		white-space: normal;
	}

	.mks-service-dropdown strong {
		font-size: 0.93rem;
		line-height: 1.25;
	}

	.mks-service-dropdown small {
		display: none;
	}

	.submenu-icon {
		width: 24px;
		height: 24px;
		margin-top: 1px;
		background: transparent;
		border: 0;
	}

	.nav-cta {
		width: 100%;
		margin-top: auto;
		min-height: 52px;
		border-radius: 8px;
	}

	.hero,
	.page-hero {
		padding-block: 46px;
	}

	.hero-grid,
	.about-grid,
	.contact-grid,
	.cta-inner,
	.section-head,
	.practice-tabs,
	.service-detail-layout,
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.footer-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 24px;
		row-gap: 28px;
	}

	.footer-grid > div:first-child {
		grid-column: 1 / -1;
	}

	.hero-grid,
	.page-hero .container {
		min-height: 0;
	}

	.services-hero h1 {
		font-size: clamp(2.15rem, 8.8vw, 3.2rem);
	}

	.services-intro-section .section-head > p {
		max-width: 100%;
		justify-self: start;
	}

	.hero h1,
	.page-hero h1 {
		font-size: clamp(2rem, 9vw, 3.15rem);
		line-height: 1.06;
	}

	.hero-lede,
	.page-lede {
		font-size: 0.98rem;
		line-height: 1.62;
	}

	.hero-actions,
	.section-actions {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.button {
		width: 100%;
	}

	.trust-grid,
	.services-grid,
	.post-grid {
		grid-template-columns: 1fr 1fr;
	}

	.service-sidebar {
		position: static;
	}
}

@media (max-width: 640px) {
	.container {
		width: min(100% - 28px, var(--max));
	}

	section,
	.content {
		padding-block: 48px;
	}

	.topbar .container,
	.topbar-links {
		display: grid;
		gap: 8px;
	}

	.topbar-links {
		display: flex;
		justify-content: space-between;
		width: 100%;
	}

	.brand-logo {
		width: 46px;
		height: 46px;
	}

	.primary-menu {
		grid-template-columns: 1fr;
	}

	.trust-grid,
	.services-grid,
	.post-grid {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 22px;
		row-gap: 30px;
	}

	.footer-grid > div:first-child,
	.footer-grid > div:last-child {
		grid-column: 1 / -1;
	}

	.site-footer h3 {
		margin-bottom: 12px;
	}

	.hero-panel,
	.bio-card,
	.contact-card,
	.form-card,
	.detail-block,
	.service-sidebar,
	.service-card,
	.empty-state,
	.post-cta {
		padding: 20px;
	}

	.post-card-body {
		padding: 18px;
	}

	.post-card-media {
		aspect-ratio: 1.45 / 1;
	}

	.field input,
	.field textarea,
	.field select {
		font-size: 16px;
	}

	.footer-bottom {
		display: grid;
		gap: 10px;
		padding-right: 62px;
		text-align: left;
	}

	.footer-bottom span:last-child {
		max-width: 100%;
		text-align: left;
	}

	.whatsapp-float {
		width: 42px;
		height: 42px;
		right: 14px;
		bottom: 14px;
	}
}

@media (max-width: 390px) {
	.container {
		width: min(100% - 24px, var(--max));
	}

	.brand-title {
		font-size: 0.9rem;
	}

	.brand-subtitle {
		font-size: 0.56rem;
	}
}
