/*
 * Husna Mutti & Co — base styles.
 * Loaded via functions.php. Uses tokens from theme.json where practical.
 */

:root {
	--hmc-navy: #0E1B2C;
	--hmc-navy-800: #14263D;
	--hmc-navy-700: #1B3350;
	--hmc-white: #FFFFFF;
	--hmc-beige: #F5F0E8;
	--hmc-beige-light: #FAF7F1;
	--hmc-gold: #C6A15B;
	--hmc-gold-dark: #A8863F;
	--hmc-ink: #1A2233;
	--hmc-slate: #5A6B84;
	--hmc-line: #E2DCCE;

	--hmc-font-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--hmc-font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;

	--hmc-content: 760px;
	--hmc-wide: 1240px;

	/* Header sizing tokens (driven by JS scroll state). */
	--hmc-header-h: 96px;
	--hmc-header-pad: 20px;
	--hmc-logo-h: 80px;
	--hmc-header-h-scrolled: 76px;
	--hmc-header-pad-scrolled: 12px;
	--hmc-logo-h-scrolled: 64px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--hmc-font-sans);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--hmc-ink);
	background: var(--hmc-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--hmc-navy);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--hmc-gold);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--hmc-font-serif);
	font-weight: 600;
	color: var(--hmc-navy);
	line-height: 1.2;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.375rem, 2.25vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; }

p {
	margin: 0 0 1em;
}

ul,
ol {
	padding-left: 1.5rem;
}

figure {
	margin: 0;
}

/* ---------------------------------- */
/* Buttons — pill, navy/gold/outline  */
/* ---------------------------------- */

.wp-block-button__link,
.wp-element-button,
button {
	border-radius: 999px;
	font-family: var(--hmc-font-sans);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	padding: 0.875rem 1.75rem;
	text-decoration: none;
	display: inline-block;
	line-height: 1.4;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
}

.wp-block-button__link {
	background: var(--hmc-navy);
	color: var(--hmc-white);
	border: 1px solid var(--hmc-navy);
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
	background: var(--hmc-gold);
	color: var(--hmc-navy);
	border-color: var(--hmc-gold);
}

/* Gold variant */
.is-style-hmc-gold .wp-block-button__link {
	background: var(--hmc-gold);
	color: var(--hmc-navy);
	border: 1px solid var(--hmc-gold);
}

.is-style-hmc-gold .wp-block-button__link:hover,
.is-style-hmc-gold .wp-block-button__link:focus {
	background: var(--hmc-gold-dark);
	color: var(--hmc-white);
	border-color: var(--hmc-gold-dark);
}

/* Outline variant (navy) */
.is-style-hmc-outline .wp-block-button__link {
	background: transparent;
	color: var(--hmc-navy);
	border: 1px solid var(--hmc-navy);
}

.is-style-hmc-outline .wp-block-button__link:hover,
.is-style-hmc-outline .wp-block-button__link:focus {
	background: var(--hmc-navy);
	color: var(--hmc-white);
}

/* Outline variant (light, for dark surfaces) */
.is-style-hmc-outline-light .wp-block-button__link {
	background: transparent;
	color: var(--hmc-white);
	border: 1px solid rgba(255, 255, 255, 0.6);
}

.is-style-hmc-outline-light .wp-block-button__link:hover,
.is-style-hmc-outline-light .wp-block-button__link:focus {
	background: var(--hmc-white);
	color: var(--hmc-navy);
	border-color: var(--hmc-white);
}

/* ---------------------------------- */
/* Header                             */
/* ---------------------------------- */

.hmc-site-header {
	background: var(--hmc-white);
	border-bottom: 1px solid var(--hmc-line);
	position: sticky;
	top: 0;
	z-index: 50;
	transition: box-shadow 200ms ease, border-color 200ms ease;
}

/* Scroll-shrink state driven by menu.js (is-scrolled on body). */
.hmc-site-header.is-scrolled {
	box-shadow: 0 4px 20px rgba(14, 27, 44, 0.08);
}

.admin-bar .hmc-site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .hmc-site-header {
		top: 46px;
	}
}

.hmc-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	max-width: 1320px;
	margin: 0 auto;
	padding: var(--hmc-header-pad) 2rem;
	transition: padding 200ms ease;
}

.hmc-brand {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.hmc-logo {
	display: inline-block;
	line-height: 0;
	text-decoration: none;
}

.hmc-logo img {
	object-fit: contain;
	width: auto;
	height: var(--hmc-logo-h);
	max-width: 260px;
	display: block;
	transition: height 200ms ease;
}

/* Desktop nav (hidden below 1024px) */
.hmc-desktop-nav {
	display: flex;
	align-items: center;
	flex: 1;
	justify-content: center;
	min-width: 0;
}

.hmc-primary-nav .wp-block-navigation__container {
	gap: 0.15rem;
}

.hmc-primary-nav .wp-block-navigation-item {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--hmc-navy);
}

.hmc-primary-nav .wp-block-navigation-item a {
	padding: 0.5rem 0.7rem;
	border-radius: 6px;
	white-space: nowrap;
}

.hmc-primary-nav .wp-block-navigation-item a:hover,
.hmc-primary-nav .wp-block-navigation-item a:focus {
	background: var(--hmc-beige-light);
	color: var(--hmc-navy);
}

/* Dropdowns */
.hmc-primary-nav .wp-block-navigation-submenu .wp-block-navigation__submenu-container {
	background: var(--hmc-white);
	border: 1px solid var(--hmc-line);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(14, 27, 44, 0.1);
	padding: 0.5rem;
	z-index: 60;
}

.hmc-primary-nav .wp-block-navigation-submenu .wp-block-navigation__submenu-container a {
	padding: 0.5rem 1rem;
	border-radius: 6px;
	color: var(--hmc-navy);
}

.hmc-primary-nav .wp-block-navigation-submenu .wp-block-navigation__submenu-container a:hover,
.hmc-primary-nav .wp-block-navigation-submenu .wp-block-navigation__submenu-container a:focus {
	background: var(--hmc-beige-light);
	color: var(--hmc-navy);
}

.hmc-primary-nav .wp-block-navigation-submenu .wp-block-navigation-item__label::after {
	content: "▾";
	display: inline-block;
	margin-left: 0.4em;
	font-size: 0.7em;
	vertical-align: middle;
	color: var(--hmc-gold);
}

/* Desktop actions: language selector + WhatsApp */
.hmc-desktop-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
}

/* Language selector */
.hmc-lang {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.hmc-lang-link {
	color: var(--hmc-slate);
	text-decoration: none;
	padding: 0.25rem 0.2rem;
	transition: color 150ms ease;
}

.hmc-lang-link:hover,
.hmc-lang-link:focus {
	color: var(--hmc-navy);
}

.hmc-lang-link.is-active {
	color: var(--hmc-navy);
	font-weight: 700;
}

.hmc-lang-sep {
	color: var(--hmc-line);
	user-select: none;
}

/* Mobile bar (hidden on desktop; visible below 1024px) */
.hmc-site-header .hmc-mobile-bar {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: auto;
}

.hmc-whatsapp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 42px;
	padding: 0 1.1rem;
	border-radius: 999px;
	background: var(--hmc-gold);
	color: var(--hmc-navy);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	white-space: nowrap;
	transition: background 150ms ease, color 150ms ease;
}

.hmc-whatsapp-btn:hover,
.hmc-whatsapp-btn:focus {
	background: var(--hmc-gold-dark);
	color: var(--hmc-white);
}

.hmc-whatsapp-icon {
	flex-shrink: 0;
}

/* Hamburger (single control, mobile only) */
.hmc-site-header .hmc-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--hmc-line);
	border-radius: 10px;
	background: var(--hmc-white);
	color: var(--hmc-navy);
	cursor: pointer;
	padding: 0;
	transition: background 150ms ease, border-color 150ms ease;
}

.hmc-menu-toggle:hover,
.hmc-menu-toggle:focus {
	background: var(--hmc-beige-light);
	border-color: var(--hmc-gold);
}

.hmc-menu-toggle .hmc-menu-toggle-icon {
	display: inline-block;
	width: 20px;
	height: 2px;
	background: currentColor;
	position: relative;
}

.hmc-menu-toggle .hmc-menu-toggle-icon::before,
.hmc-menu-toggle .hmc-menu-toggle-icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 20px;
	height: 2px;
	background: currentColor;
	transition: transform 200ms ease;
}

.hmc-menu-toggle .hmc-menu-toggle-icon::before {
	top: -6px;
}

.hmc-menu-toggle .hmc-menu-toggle-icon::after {
	top: 6px;
}

/* Off-canvas drawer */
.hmc-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(14, 27, 44, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 250ms ease, visibility 250ms ease;
	z-index: 90;
}

.hmc-drawer-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.hmc-drawer {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 80vw;
	max-width: 340px;
	background: var(--hmc-white);
	z-index: 100;
	transform: translateX(-102%);
	transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
	overflow-y: auto;
	overscroll-behavior: contain;
	visibility: hidden;
}

.hmc-drawer.is-open {
	transform: translateX(0);
	visibility: visible;
}

.hmc-drawer-inner {
	padding: 1.5rem 1.25rem 2rem;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.hmc-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.hmc-drawer-head .hmc-logo img {
	height: 40px;
}

.hmc-drawer-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--hmc-line);
	border-radius: 10px;
	background: var(--hmc-white);
	color: var(--hmc-navy);
	cursor: pointer;
	padding: 0;
	transition: background 150ms ease, border-color 150ms ease;
}

.hmc-drawer-close:hover,
.hmc-drawer-close:focus {
	background: var(--hmc-beige-light);
	border-color: var(--hmc-gold);
}

.hmc-drawer-close-icon {
	position: relative;
	width: 16px;
	height: 16px;
}

.hmc-drawer-close-icon::before,
.hmc-drawer-close-icon::after {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;
	width: 16px;
	height: 2px;
	background: currentColor;
}

.hmc-drawer-close-icon::before {
	transform: rotate(45deg);
}

.hmc-drawer-close-icon::after {
	transform: rotate(-45deg);
}

.hmc-drawer-lang {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 500;
	margin-bottom: 1.5rem;
}

.hmc-drawer-lang .hmc-lang-link {
	padding: 0.5rem 0.4rem;
}

/* Drawer nav (plain semantic list + details accordions) */
.hmc-drawer-nav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hmc-drawer-nav .hmc-drawer-item {
	border-bottom: 1px solid var(--hmc-line);
}

.hmc-drawer-nav .hmc-drawer-item > a,
.hmc-drawer-nav .hmc-drawer-sub > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 54px;
	padding: 0.7rem 0.25rem;
	font-size: 1.0625rem;
	font-weight: 500;
	color: var(--hmc-navy);
	text-decoration: none;
}

.hmc-drawer-nav .hmc-drawer-item > a:hover,
.hmc-drawer-nav .hmc-drawer-item > a:focus {
	color: var(--hmc-gold-dark);
}

.hmc-drawer-nav .hmc-drawer-sub > summary {
	list-style: none;
	cursor: pointer;
}

.hmc-drawer-nav .hmc-drawer-sub > summary::-webkit-details-marker {
	display: none;
}

.hmc-drawer-nav .hmc-drawer-sub > summary::after {
	content: "▾";
	margin-left: 0.5em;
	font-size: 0.75em;
	color: var(--hmc-gold);
	transition: transform 200ms ease;
}

.hmc-drawer-nav .hmc-drawer-sub[open] > summary::after {
	transform: rotate(180deg);
}

.hmc-drawer-nav .hmc-drawer-submenu {
	list-style: none;
	margin: 0;
	padding: 0 0 0.5rem 1.25rem;
}

.hmc-drawer-nav .hmc-drawer-submenu a {
	display: block;
	padding: 0.55rem 0.25rem;
	font-size: 0.9375rem;
	color: var(--hmc-slate);
	text-decoration: none;
}

.hmc-drawer-nav .hmc-drawer-submenu a:hover,
.hmc-drawer-nav .hmc-drawer-submenu a:focus {
	color: var(--hmc-navy);
}

/* Body scroll lock while drawer is open */
body.hmc-drawer-open {
	overflow: hidden;
}

/* Scroll-shrink compacted state */
body.hmc-header-scrolled .hmc-site-header .hmc-header-inner {
	padding-top: var(--hmc-header-pad-scrolled);
	padding-bottom: var(--hmc-header-pad-scrolled);
}

body.hmc-header-scrolled .hmc-site-header .hmc-logo img {
	height: var(--hmc-logo-h-scrolled);
}

/* ---------------------------------- */
/* Hero                               */
/* ---------------------------------- */

.hmc-hero {
	background: linear-gradient(135deg, var(--hmc-navy) 0%, var(--hmc-navy-800) 60%, var(--hmc-navy-700) 100%);
	color: var(--hmc-white);
	padding: 1.75rem 1.5rem 0;
}

.hmc-hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 3rem;
	align-items: end;
	max-width: var(--hmc-wide);
	margin: 0 auto;
}

.hmc-eyebrow {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hmc-gold);
	margin-bottom: 1rem;
}

.hmc-hero-title {
	color: var(--hmc-white);
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	line-height: 1.05;
	margin-bottom: 1.25rem;
}

.hmc-hero-main {
	font-size: 1.0625rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.92);
	max-width: 36em;
	margin-bottom: 1rem;
}

.hmc-hero-support {
	color: rgba(255, 255, 255, 0.75);
	max-width: 36em;
	margin-bottom: 2rem;
}

.hmc-hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.hmc-hero-media {
	display: flex;
	justify-content: center;
	align-items: flex-end;
}

.hmc-hero-image {
	position: relative;
	max-width: 420px;
	width: 100%;
	margin: 0 auto;
	align-self: end;
}

.hmc-hero-image img {
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
}

/* ---------------------------------- */
/* Statistics / Quick proof           */
/* ---------------------------------- */

.hmc-statistics {
	background: var(--hmc-white);
	color: var(--hmc-navy);
	padding: 2.5rem 1.5rem 3rem;
}

.hmc-statistics-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	max-width: var(--hmc-wide);
	margin: 0 auto;
	text-align: center;
}

.hmc-stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 1.5rem 1rem;
}

.hmc-stat-icon {
	color: var(--hmc-gold);
	margin-bottom: 0.5rem;
}

.hmc-stat-value {
	font-family: var(--hmc-font-serif);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 600;
	line-height: 1.1;
	color: var(--hmc-navy);
	margin: 0;
}

.hmc-stat-label {
	font-size: 0.9375rem;
	color: var(--hmc-slate);
	margin: 0;
	max-width: 18em;
}

/* ---------------------------------- */
/* Testimonials                       */
/* ---------------------------------- */

.hmc-testimonials {
	background: var(--hmc-beige-light);
	color: var(--hmc-navy);
	padding: 4rem 1.5rem;
}

.hmc-testimonials-title {
	text-align: center;
}

.hmc-testimonials-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	max-width: var(--hmc-wide);
	margin: 0 auto;
}

.hmc-testimonial-card {
	background: var(--hmc-white);
	border: 1px solid var(--hmc-line);
	border-radius: 12px;
	padding: 1.75rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hmc-testimonial-card.hmc-pending {
	border-style: dashed;
	opacity: 0.85;
}

.hmc-testimonial-quote {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--hmc-ink);
	margin: 0;
}

.hmc-testimonial-author {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--hmc-gold-dark);
	margin: 0;
}

/* ---------------------------------- */
/* Consultation / Enquiry form        */
/* ---------------------------------- */

.hmc-enquiry {
	background: var(--hmc-white);
	color: var(--hmc-navy);
	padding: 4rem 1.5rem;
}

.hmc-enquiry-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	max-width: var(--hmc-wide);
	margin: 0 auto;
	align-items: start;
}

.hmc-enquiry-title {
	color: var(--hmc-navy);
}

.hmc-enquiry-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hmc-form-field {
	margin: 0;
}

.hmc-form-field label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--hmc-navy);
	margin-bottom: 0.35rem;
}

.hmc-form-field input,
.hmc-form-field select,
.hmc-form-field textarea {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--hmc-line);
	border-radius: 8px;
	font-family: var(--hmc-font-sans);
	font-size: 1rem;
	color: var(--hmc-ink);
	background: var(--hmc-white);
}

.hmc-form-field input:focus,
.hmc-form-field select:focus,
.hmc-form-field textarea:focus {
	outline: none;
	border-color: var(--hmc-gold);
}

.hmc-form-submit {
	margin: 0.5rem 0 0;
}

.hmc-enquiry-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 2rem;
	border: none;
	border-radius: 999px;
	background: var(--hmc-gold);
	color: var(--hmc-navy);
	font-family: var(--hmc-font-sans);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease;
}

.hmc-enquiry-submit:hover,
.hmc-enquiry-submit:focus {
	background: var(--hmc-gold-dark);
	color: var(--hmc-white);
}

/* ---------------------------------- */
/* About intro                        */
/* ---------------------------------- */

.hmc-about-intro {
	padding: 3.5rem 1.5rem 5rem;
	background: var(--hmc-beige-light);
}

.hmc-about-intro-title {
	max-width: 16em;
}

.hmc-about-intro-cta {
	margin-top: 2rem;
}

/* ---------------------------------- */
/* Featured litigation                */
/* ---------------------------------- */

.hmc-featured-litigation {
	background: var(--hmc-navy);
	color: var(--hmc-white);
	padding: 5rem 1.5rem;
}

.hmc-litigation-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	max-width: var(--hmc-wide);
	margin: 0 auto;
}

.hmc-litigation-title {
	color: var(--hmc-white);
	font-size: clamp(1.875rem, 3.5vw, 2.75rem);
}

.hmc-litigation-sub {
	color: var(--hmc-gold);
	font-size: 1.25rem;
	font-weight: 500;
	margin-bottom: 1.5rem;
}

.hmc-featured-litigation p {
	color: rgba(255, 255, 255, 0.82);
}

.hmc-litigation-matters-title {
	color: var(--hmc-white);
	font-size: 1.375rem;
	border-bottom: 1px solid rgba(198, 161, 91, 0.5);
	padding-bottom: 0.75rem;
	margin-bottom: 1.25rem;
}

.hmc-checklist {
	list-style: none;
	padding-left: 0;
	margin: 0 0 1.5rem;
}

.hmc-checklist li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.6rem;
	color: rgba(255, 255, 255, 0.9);
}

.hmc-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 10px;
	height: 10px;
	border: 2px solid var(--hmc-gold);
	border-radius: 50%;
}

/* ---------------------------------- */
/* Practice areas / cards             */
/* ---------------------------------- */

.hmc-practice-areas {
	padding: 3rem 1.5rem 5rem;
	background: var(--hmc-white);
}

.hmc-section-head {
	margin-bottom: 2.5rem;
}

/* Practice Areas intro — one centered column */
.hmc-practice-areas .hmc-section-head {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	margin-bottom: 3rem;
}

.hmc-practice-areas-title {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--hmc-gold);
	margin: 0 0 0.75rem;
	text-align: center;
}

.hmc-practice-main-title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	color: var(--hmc-navy);
	font-family: var(--hmc-font-serif);
	margin: 0 0 1.25rem;
	text-align: center;
}

.hmc-practice-areas .hmc-section-head p {
	max-width: 34em;
	margin: 0 auto;
	color: var(--hmc-slate);
	text-align: center;
	line-height: 1.7;
}

.hmc-practice-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.hmc-practice-card {
	background: var(--hmc-beige-light);
	border: 1px solid var(--hmc-line);
	border-radius: 12px;
	padding: 2rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hmc-practice-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(14, 27, 44, 0.1);
	border-color: var(--hmc-gold);
}

.hmc-practice-card-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-decoration: none;
	color: var(--hmc-navy);
}

.hmc-practice-icon {
	width: 44px;
	height: 44px;
	color: var(--hmc-gold);
}

.hmc-practice-card-title {
	font-size: 1.0625rem;
	margin: 0;
	text-align: center;
	color: var(--hmc-navy);
}

.hmc-practice-card-desc {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--hmc-slate);
	margin: 0;
	text-align: center;
	max-width: 26em;
}

/* ---------------------------------- */
/* Director                           */
/* ---------------------------------- */

.hmc-director {
	background: var(--hmc-beige);
	padding: 5rem 1.5rem;
}

.hmc-director-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 3.5rem;
	align-items: center;
	max-width: var(--hmc-wide);
	margin: 0 auto;
}

.hmc-director-media {
	display: flex;
	justify-content: center;
}

.hmc-director-image {
	position: relative;
	max-width: 440px;
	width: 100%;
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 16px 40px rgba(14, 27, 44, 0.15);
}

.hmc-director-image::before {
	content: "";
	position: absolute;
	inset: -14px 14px 14px -14px;
	background: var(--hmc-gold);
	opacity: 0.55;
	border-radius: 12px;
	z-index: -1;
}

.hmc-director-image img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: center 20%;
	display: block;
}

.hmc-director-name {
	font-size: clamp(1.875rem, 3.5vw, 2.75rem);
	margin-bottom: 0.25rem;
}

.hmc-director-role {
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--hmc-gold-dark);
	margin-bottom: 1.5rem;
}

.hmc-director-positioning {
	font-weight: 600;
	color: var(--hmc-navy);
}

.hmc-director-cta {
	margin-top: 1.5rem;
}

/* ---------------------------------- */
/* Our approach / steps               */
/* ---------------------------------- */

.hmc-our-approach {
	padding: 5rem 1.5rem;
	background: var(--hmc-white);
}

.hmc-steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	max-width: var(--hmc-wide);
	margin: 0 auto;
}

.hmc-step {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 1.5rem;
	padding: 1.5rem 1.75rem;
	background: var(--hmc-beige-light);
	border-left: 3px solid var(--hmc-gold);
	border-radius: 0 12px 12px 0;
	align-items: start;
}

.hmc-step-number {
	font-family: var(--hmc-font-serif);
	font-size: 2rem;
	font-weight: 600;
	color: var(--hmc-gold);
	line-height: 1;
	margin: 0;
}

.hmc-step-title {
	margin-bottom: 0.35rem;
}

.hmc-step p:last-child {
	margin-bottom: 0;
}

/* ---------------------------------- */
/* Why choose                         */
/* ---------------------------------- */

.hmc-why-choose {
	background: var(--hmc-beige);
	padding: 5rem 1.5rem;
}

.hmc-why-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	max-width: var(--hmc-wide);
	margin: 0 auto;
}

.hmc-why-item {
	background: var(--hmc-white);
	border: 1px solid var(--hmc-line);
	border-radius: 12px;
	padding: 1.75rem;
}

.hmc-why-item-title {
	font-size: 1.375rem;
	margin-bottom: 0.5rem;
}

/* ---------------------------------- */
/* When should you speak to a lawyer  */
/* ---------------------------------- */

.hmc-when-to-speak {
	padding: 5rem 1.5rem;
	background: var(--hmc-white);
}

.hmc-when-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 4rem;
	max-width: var(--hmc-wide);
	margin: 0 auto;
}

.hmc-when-closing {
	font-weight: 600;
	color: var(--hmc-navy);
	margin-top: 1.5rem;
}

.hmc-when-cta {
	margin-top: 1.5rem;
}

/* ---------------------------------- */
/* FAQ                                */
/* ---------------------------------- */

.hmc-faq-preview {
	padding: 5rem 1.5rem;
	background: var(--hmc-beige-light);
}

.hmc-faq-list {
	max-width: var(--hmc-content);
	margin: 0 auto;
}

.hmc-faq-item {
	background: var(--hmc-white);
	border: 1px solid var(--hmc-line);
	border-radius: 10px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1rem;
}

.hmc-faq-question {
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
	cursor: pointer;
	position: relative;
	padding-right: 2rem;
}

.hmc-faq-question::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 0.1em;
	font-family: var(--hmc-font-sans);
	font-size: 1.25rem;
	color: var(--hmc-gold);
	transition: transform 0.2s ease;
}

.hmc-faq-item.is-open .hmc-faq-question::after {
	content: "–";
}

.hmc-faq-answer {
	color: var(--hmc-slate);
	margin-bottom: 0;
}

.hmc-faq-cta {
	margin-top: 2rem;
}

/* ---------------------------------- */
/* Final CTA                          */
/* ---------------------------------- */

.hmc-final-cta {
	background: var(--hmc-navy);
	color: var(--hmc-white);
	padding: 5rem 1.5rem;
	text-align: center;
}

.hmc-final-cta-title {
	color: var(--hmc-white);
}

.hmc-final-cta-support {
	color: rgba(255, 255, 255, 0.85);
	font-weight: 500;
}

/* ---------------------------------- */
/* Contact                            */
/* ---------------------------------- */

.hmc-contact {
	padding: 5rem 1.5rem;
	background: var(--hmc-white);
}

.hmc-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	max-width: var(--hmc-wide);
	margin: 0 auto;
}

.hmc-contact-block {
	margin-bottom: 1.75rem;
}

.hmc-contact-block-title {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--hmc-gold-dark);
	margin-bottom: 0.25rem;
}

.hmc-contact-phone a,
.hmc-contact-email a {
	font-size: 1.25rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--hmc-navy);
}

.hmc-contact-phone a:hover,
.hmc-contact-email a:hover {
	color: var(--hmc-gold-dark);
}

.hmc-contact-actions {
	margin-top: 1rem;
}

/* ---------------------------------- */
/* Footer                             */
/* ---------------------------------- */

.hmc-site-footer {
	background: var(--hmc-navy-800);
	color: rgba(255, 255, 255, 0.8);
	padding: 4rem 1.5rem 1.5rem;
}

.hmc-footer-top {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 3rem;
	max-width: var(--hmc-wide);
	margin: 0 auto;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hmc-footer-firm {
	font-family: var(--hmc-font-serif);
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--hmc-white);
	margin-bottom: 0.25rem;
}

.hmc-footer-label {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.8125rem;
	color: var(--hmc-gold);
	margin-bottom: 1rem;
}

.hmc-footer-tagline {
	font-family: var(--hmc-font-serif);
	font-style: italic;
	font-size: 1.125rem;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 1rem;
}

.hmc-footer-description {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.7);
	max-width: 32em;
}

.hmc-footer-heading {
	font-size: 1rem;
	color: var(--hmc-white);
	margin-bottom: 1rem;
}

.hmc-footer-nav a,
.hmc-footer-column a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
}

.hmc-footer-nav a:hover,
.hmc-footer-column a:hover {
	color: var(--hmc-gold);
}

.hmc-footer-links {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.hmc-footer-links li {
	margin-bottom: 0.5rem;
}

.hmc-footer-column p {
	margin-bottom: 0.5rem;
}

.hmc-footer-bottom {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	max-width: var(--hmc-wide);
	margin: 0 auto;
	padding-top: 1.5rem;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.55);
}

/* ---------------------------------- */
/* Page hero (inner pages)            */
/* ---------------------------------- */

.hmc-page-hero {
	background: var(--hmc-navy);
	color: var(--hmc-white);
	padding: 4rem 1.5rem;
}

.hmc-page-hero-title {
	color: var(--hmc-white);
	margin-bottom: 1rem;
}

.hmc-page-hero-intro {
	color: rgba(255, 255, 255, 0.8);
	font-size: 1.125rem;
	max-width: 36em;
}

/* ---------------------------------- */
/* Service detail layout              */
/* ---------------------------------- */

.hmc-breadcrumb {
	padding: 1.25rem 1.5rem 0;
	max-width: var(--hmc-wide);
	margin: 0 auto;
}

.hmc-breadcrumb-text {
	font-size: 0.875rem;
	color: var(--hmc-slate);
	margin: 0;
}

.hmc-breadcrumb-text a {
	color: var(--hmc-navy);
	text-decoration: none;
}

.hmc-breadcrumb-text a:hover {
	color: var(--hmc-gold-dark);
}

.hmc-breadcrumb-current {
	color: var(--hmc-navy);
	font-weight: 600;
}

.hmc-service-layout {
	padding: 2rem 1.5rem 4rem;
	max-width: var(--hmc-wide);
	margin: 0 auto;
}

.hmc-service-grid {
	display: grid;
	grid-template-columns: 25% 75%;
	gap: 3rem;
	align-items: start;
}

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

.hmc-service-nav {
	background: var(--hmc-beige-light);
	border: 1px solid var(--hmc-line);
	border-radius: 12px;
	padding: 1.5rem;
}

.hmc-service-nav-title {
	font-size: 1.125rem;
	margin-bottom: 1rem;
}

.hmc-service-list .wp-block-navigation__container {
	flex-direction: column;
	align-items: stretch;
	gap: 0.25rem;
}

.hmc-service-list .wp-block-navigation-item a {
	display: block;
	padding: 0.6rem 0.9rem;
	border-radius: 8px;
	color: var(--hmc-navy);
	text-decoration: none;
	font-size: 0.9375rem;
}

.hmc-service-list .wp-block-navigation-item a:hover,
.hmc-service-list .wp-block-navigation-item.current-menu-item a,
.hmc-service-list .wp-block-navigation-item.current_page_item a {
	background: var(--hmc-navy);
	color: var(--hmc-white);
}

.hmc-service-content-inner {
	max-width: 820px;
}

.hmc-service-title {
	margin-bottom: 0.75rem;
}

.hmc-service-intro {
	font-size: 1.25rem;
	color: var(--hmc-navy);
}

.hmc-service-subheading {
	margin-top: 2rem;
}

.hmc-service-content-inner .hmc-checklist li {
	color: var(--hmc-ink);
}

.hmc-service-content-inner .hmc-checklist li::before {
	border-color: var(--hmc-gold-dark);
}

/* ---------------------------------- */
/* Team                               */
/* ---------------------------------- */

.hmc-team-section {
	padding: 3rem 1.5rem;
}

.hmc-team-section-title {
	margin-bottom: 0.5rem;
}

.hmc-team-grid {
	padding: 0;
}

.hmc-team-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.hmc-team-card {
	background: var(--hmc-beige-light);
	border: 1px solid var(--hmc-line);
	border-radius: 12px;
	padding: 1.5rem;
}

.hmc-team-card-name {
	font-family: var(--hmc-font-serif);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--hmc-navy);
	margin-bottom: 0.25rem;
}

.hmc-team-card-role {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--hmc-gold-dark);
	margin-bottom: 0.5rem;
}

.hmc-team-card-placeholder {
	font-size: 0.875rem;
	color: var(--hmc-slate);
	font-style: italic;
	margin: 0;
}

/* ---------------------------------- */
/* Certificates                       */
/* ---------------------------------- */

.hmc-certificates-grid {
	padding: 3rem 1.5rem 5rem;
}

.hmc-certificates-grid-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	max-width: var(--hmc-wide);
	margin: 0 auto;
}

.hmc-certificate-card {
	background: var(--hmc-beige-light);
	border: 1px dashed var(--hmc-line);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	padding: 1.5rem;
}

.hmc-certificate-placeholder {
	color: var(--hmc-slate);
	font-style: italic;
	text-align: center;
	margin: 0;
}

/* ---------------------------------- */
/* Placeholder content notice         */
/* ---------------------------------- */

.hmc-placeholder-content {
	background: var(--hmc-beige-light);
	border: 1px dashed var(--hmc-line);
	border-radius: 12px;
	padding: 2rem 1.5rem;
}

.hmc-placeholder-badge {
	display: inline-block;
	background: var(--hmc-gold);
	color: var(--hmc-navy);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 0.25rem 0.75rem;
	margin-bottom: 1rem;
}

.hmc-placeholder-title {
	margin-bottom: 0.5rem;
}

/* ---------------------------------- */
/* Page content (inner)               */
/* ---------------------------------- */

.hmc-page-content {
	padding: 4rem 1.5rem;
}

.hmc-page-title,
.hmc-post-title {
	padding-top: 3rem;
}

/* ---------------------------------- */
/* 404                                */
/* ---------------------------------- */

.hmc-404 {
	padding: 6rem 1.5rem;
}

/* ---------------------------------- */
/* Responsive                         */
/* ---------------------------------- */

@media (max-width: 1100px) {
	.hmc-practice-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hmc-hero-grid,
	.hmc-litigation-grid,
	.hmc-when-grid,
	.hmc-contact-grid,
	.hmc-director-grid {
		grid-template-columns: 1fr;
	}

	/* Hero mobile order: heading -> body -> image -> CTA. */
	.hmc-hero-content {
		display: contents;
	}

	.hmc-hero-media {
		order: 2;
	}

	.hmc-hero-ctas {
		order: 3;
	}

	.hmc-footer-top {
		grid-template-columns: 1fr 1fr;
	}

	/* Statistics: keep 4 in one row on tablet/mobile — tighten instead. */
	.hmc-statistics-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 0.75rem;
	}

	.hmc-stat-item {
		padding: 0.75rem 0.25rem;
		gap: 0.25rem;
	}

	.hmc-stat-icon {
		width: 28px;
		height: 28px;
		margin-bottom: 0.25rem;
	}

	.hmc-stat-value {
		font-size: clamp(1.25rem, 3.5vw, 2rem);
	}

	.hmc-stat-label {
		font-size: 0.75rem;
		line-height: 1.3;
	}

	/* Testimonials: 3-col -> 1-col. */
	.hmc-testimonials-grid {
		grid-template-columns: 1fr;
	}

	/* Enquiry: 2-col -> 1-col. */
	.hmc-enquiry-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 1023px) {
	/* Mobile/tablet: hide desktop nav + actions, show mobile bar + hamburger. */
	.hmc-desktop-nav,
	.hmc-desktop-actions {
		display: none;
	}

	/* Beat WP core .is-layout-flex (same specificity, loads later) on mobile. */
	.hmc-site-header .hmc-desktop-nav,
	.hmc-site-header .hmc-desktop-actions {
		display: none;
	}

	/* Hero mobile: centered content, 16px body, readable width. */
	.hmc-hero-title,
	.hmc-hero-main,
	.hmc-hero-ctas,
	.hmc-hero-media {
		text-align: center;
	}

	.hmc-hero-main {
		font-size: 1rem;
		line-height: 1.6;
	}

	.hmc-hero-ctas {
		justify-content: center;
	}

	.hmc-hero-media {
		justify-content: center;
	}

	/* Mobile top bar: [logo] [WhatsApp] [☰] — one row, no stray elements. */
	.hmc-site-header .hmc-header-inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
	}

	.hmc-site-header .hmc-mobile-bar {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 0.75rem;
		width: auto;
		margin-left: auto;
		flex-shrink: 0;
	}

	/* One clear 3-line hamburger icon. */
	.hmc-site-header .hmc-menu-toggle {
		display: inline-flex;
		width: 44px;
		height: 44px;
	}

	.hmc-site-header .hmc-menu-toggle .hmc-menu-toggle-icon {
		width: 22px;
		height: 2px;
	}

	.hmc-site-header .hmc-menu-toggle .hmc-menu-toggle-icon::before,
	.hmc-site-header .hmc-menu-toggle .hmc-menu-toggle-icon::after {
		width: 22px;
		height: 2px;
	}

	.hmc-site-header .hmc-menu-toggle .hmc-menu-toggle-icon::before {
		top: -7px;
	}

	.hmc-site-header .hmc-menu-toggle .hmc-menu-toggle-icon::after {
		top: 7px;
	}

	/* Drawer + overlay: viewport-fixed off-canvas (outside the sticky header). */
	.hmc-drawer-overlay,
	.hmc-drawer {
		position: fixed;
	}

	.hmc-drawer {
		top: 0;
		left: 0;
		bottom: 0;
		width: 80vw;
		max-width: 340px;
		transform: translateX(-102%);
		transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
		visibility: hidden;
		z-index: 100;
	}

	.hmc-drawer.is-open {
		transform: translateX(0);
		visibility: visible;
	}

	.hmc-drawer-overlay {
		inset: 0;
		z-index: 90;
	}

	/* Mobile header sizing tokens. */
	:root {
		--hmc-header-h: 78px;
		--hmc-header-pad: 14px;
		--hmc-logo-h: 72px;
		--hmc-header-h-scrolled: 66px;
		--hmc-header-pad-scrolled: 10px;
		--hmc-logo-h-scrolled: 58px;
	}

	.hmc-header-inner {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.hmc-service-grid {
		grid-template-columns: 1fr;
	}

	.hmc-service-sidebar {
		position: static;
	}

	.hmc-team-cards {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 420px) {
	/* Keep the row on one line: tighten WhatsApp pill at very narrow widths. */
	.hmc-whatsapp-btn {
		padding: 0 0.8rem;
		gap: 0.4rem;
		font-size: 0.8125rem;
		height: 40px;
	}

	.hmc-header-inner {
		gap: 0.5rem;
	}
}

@media (max-width: 640px) {
	.hmc-practice-areas .hmc-section-head {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.hmc-practice-grid,
	.hmc-why-grid,
	.hmc-certificates-grid-cards {
		grid-template-columns: 1fr;
	}

	.hmc-footer-top {
		grid-template-columns: 1fr;
	}

	.hmc-hero {
		padding: 3rem 1rem 4rem;
	}

	.hmc-hero-ctas .wp-block-button {
		width: 100%;
	}

	.hmc-hero-ctas .wp-block-button__link {
		width: 100%;
		text-align: center;
	}

	.hmc-step {
		grid-template-columns: 48px 1fr;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Accessibility: focus visible */
:focus-visible {
	outline: 2px solid var(--hmc-gold);
	outline-offset: 3px;
	border-radius: 2px;
}

.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;
}
