/*
 * Kamal Zahaika Law Office: "The Office Letterhead".
 * Tokens follow DESIGN.md. RTL-first: logical properties only, so Hebrew needs no new CSS.
 */

/* ---------------------------------------------------------------- */
/* Fonts (self-hosted, SIL OFL). Arabic + Latin subsets per weight.  */
/* ---------------------------------------------------------------- */
@font-face { font-family: "KZ Sans"; src: url("../fonts/plex-arabic-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "KZ Sans"; src: url("../fonts/plex-arabic-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "KZ Sans"; src: url("../fonts/plex-arabic-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "KZ Sans"; src: url("../fonts/plex-arabic-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "KZ Sans"; src: url("../fonts/plex-arabic-arabic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "KZ Sans"; src: url("../fonts/plex-arabic-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "KZ Serif"; src: url("../fonts/naskh-arabic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "KZ Serif"; src: url("../fonts/naskh-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "KZ Serif"; src: url("../fonts/naskh-arabic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "KZ Serif"; src: url("../fonts/naskh-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
/* Hebrew (IBM Plex Sans Hebrew, Frank Ruhl Libre; OFL). Downloaded only when Hebrew text is on the page. */
@font-face { font-family: "KZ Sans"; src: url("../fonts/plex-hebrew-hebrew-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "KZ Sans"; src: url("../fonts/plex-hebrew-hebrew-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "KZ Sans"; src: url("../fonts/plex-hebrew-hebrew-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "KZ Serif"; src: url("../fonts/frank-ruhl-hebrew-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "KZ Serif"; src: url("../fonts/frank-ruhl-hebrew-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+20AA, U+25CC, U+FB1D-FB4F; }

/* ---------------------------------------------------------------- */
/* Tokens                                                            */
/* ---------------------------------------------------------------- */
:root {
	--kz-ink: #083042;
	--kz-night: #001f3b;
	--kz-signal: #0096e7;
	--kz-link: #0073b5;
	--kz-paper: #f5f4ef;
	--kz-paper-deep: #ecebe4;
	--kz-surface: #ffffff;
	--kz-tint: #eaf4fb; /* pale signal-blue band behind the contact section */
	--kz-line: #d9dee2;
	--kz-muted: #4a6170;
	--kz-notice: #8a4b12;

	--kz-font-sans: "KZ Sans", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
	--kz-font-serif: "KZ Serif", "Noto Naskh Arabic", "Traditional Arabic", serif;
	--kz-lh-body: 1.8;

	--kz-container: 1200px;
	--kz-gutter: clamp(1.25rem, 4vw, 2.5rem);
	--kz-header-h: 4rem;
	--kz-radius: 2px;
	--kz-ease: 150ms ease;
	--kz-admin-bar: var(--wp-admin--admin-bar--height, 0px);
}

@media (min-width: 1080px) {
	:root { --kz-header-h: 5rem; }
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--kz-header-h) + var(--kz-admin-bar) + 1rem);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--kz-surface);
	color: var(--kz-ink);
	font-family: var(--kz-font-sans);
	font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
	line-height: var(--kz-lh-body);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--kz-link);
}

:focus-visible {
	outline: 2px solid var(--kz-signal);
	outline-offset: 3px;
}

.kz-container {
	width: 100%;
	max-width: calc(var(--kz-container) + 2 * var(--kz-gutter));
	margin-inline: auto;
	padding-inline: var(--kz-gutter);
}

.kz-main:focus {
	outline: none;
}

/* Skip link: visible only on keyboard focus. */
.kz-skip {
	position: absolute;
	inset-inline-start: 1rem;
	top: calc(var(--kz-admin-bar) + 0.75rem);
	z-index: 100;
	padding: 0.5rem 1rem;
	background: var(--kz-ink);
	color: #fff;
	text-decoration: none;
	border-radius: var(--kz-radius);
	transform: translateY(-200%);
}

.kz-skip:focus {
	transform: none;
}

/* ---------------------------------------------------------------- */
/* 1. Top bar                                                        */
/* ---------------------------------------------------------------- */
.kz-header {
	position: sticky;
	top: var(--kz-admin-bar);
	z-index: 50;
	background: var(--kz-surface);
	border-bottom: 1px solid transparent;
	transition: border-color var(--kz-ease);
}

.kz-header.is-scrolled,
.kz-header.is-open {
	border-bottom-color: var(--kz-line);
}

.kz-header__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: var(--kz-header-h);
}

/* Brand: mark + name + tagline */
.kz-brand {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
	color: var(--kz-ink);
	text-decoration: none;
}

.kz-brand__mark {
	flex: none;
	width: auto;
	height: 2.25rem;
}

.kz-brand__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.35;
}

.kz-brand__name {
	font-family: var(--kz-font-serif);
	font-weight: 700;
	font-size: 0.98rem;
}

.kz-brand__tagline {
	font-size: 0.8125rem;
	color: var(--kz-muted);
}

@media (min-width: 1080px) {
	.kz-brand__mark { height: 2.75rem; }
	.kz-brand__name { font-size: 1.0625rem; }
}

/* Menu button (mobile and tablet) */
.kz-menu-btn {
	display: none;
	flex: none;
	align-items: center;
	gap: 0.5rem;
	margin-inline-start: auto;
	min-height: 44px;
	padding: 0.5rem 0.75rem;
	background: transparent;
	border: 1px solid var(--kz-line);
	border-radius: var(--kz-radius);
	color: var(--kz-ink);
	font: 500 0.9375rem/1 var(--kz-font-sans);
	cursor: pointer;
}

.kz-menu-btn__icon {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	justify-content: space-between;
	width: 18px;
	height: 10px;
}

.kz-menu-btn__icon span {
	display: block;
	height: 2px;
	background: currentColor;
	transition: transform var(--kz-ease);
}

.kz-header.is-open .kz-menu-btn__icon span:first-child { transform: translateY(4px) rotate(45deg); }
.kz-header.is-open .kz-menu-btn__icon span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Nav links */
.kz-nav-wrap {
	display: flex;
	align-items: center;
	gap: 2rem;
	margin-inline-start: auto;
}

.kz-nav__list,
.kz-langswitch {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kz-nav__list {
	gap: 0.25rem 1.75rem;
}

.kz-nav__link {
	position: relative;
	display: inline-block;
	padding-block: 0.5rem;
	color: var(--kz-ink);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
}

/* Underline uses the logo's gradient rule. */
.kz-nav__link::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0.25rem;
	height: 2px;
	background: linear-gradient(to left, var(--kz-signal), var(--kz-night));
	transform: scaleX(0);
	transform-origin: right;
	transition: transform var(--kz-ease);
}

.kz-nav__link:hover::after,
.kz-nav__link:focus-visible::after {
	transform: scaleX(1);
}

/* Contact: the primary call to action, a filled button instead of an underlined link. */
.kz-nav__link--cta {
	padding: 0.5rem 1.125rem;
	background: var(--kz-ink);
	color: #fff;
	border: 1px solid var(--kz-ink);
	border-radius: var(--kz-radius);
	font-weight: 600;
	transition: background-color var(--kz-ease), border-color var(--kz-ease);
}

.kz-nav__link--cta:hover,
.kz-nav__link--cta:focus-visible {
	background: var(--kz-night);
	border-color: var(--kz-night);
}

.kz-nav__link--cta::after {
	display: none;
}

/* Public office phone: a quiet click-to-call link beside the contact button. */
.kz-header__call {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	color: var(--kz-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
	white-space: nowrap;
}

.kz-header__call .kz-icon {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	color: var(--kz-link);
}

.kz-header__call:hover span,
.kz-header__call:focus-visible span {
	color: var(--kz-link);
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

/* Map link under the address (contact section, footer, privacy page). */
.kz-maps-link {
	display: inline-block;
	margin-top: 0.25rem;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

/* Language switch: عربي | עברית */
.kz-langswitch {
	gap: 0;
	padding-inline-start: 1.5rem;
	border-inline-start: 1px solid var(--kz-line);
}

.kz-langswitch li + li::before {
	content: "|";
	padding-inline: 0.5rem;
	color: var(--kz-line);
}

.kz-langswitch a {
	color: var(--kz-muted);
	font-size: 0.9375rem;
	text-decoration: none;
}

.kz-langswitch a[aria-current="true"] {
	color: var(--kz-ink);
	font-weight: 600;
}

/* Collapsed menu below 1080px (only when JS is available; otherwise links simply wrap). */
@media (max-width: 1079.98px) {
	.kz-js .kz-menu-btn {
		display: inline-flex;
	}

	.kz-js .kz-nav-wrap {
		position: absolute;
		inset-inline: 0;
		top: 100%;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		margin: 0;
		padding: 0.5rem var(--kz-gutter) 1.5rem;
		background: var(--kz-surface);
		border-bottom: 1px solid var(--kz-line);
		max-height: calc(100dvh - var(--kz-header-h) - var(--kz-admin-bar));
		overflow-y: auto;
	}

	.kz-js .kz-header.is-open .kz-nav-wrap {
		display: flex;
	}

	.kz-js .kz-nav__list {
		flex-direction: column;
		align-items: stretch;
	}

	.kz-js .kz-nav__list li + li {
		border-top: 1px solid var(--kz-line);
	}

	.kz-js .kz-nav__link {
		display: block;
		padding-block: 0.875rem;
		font-size: 1.0625rem;
	}

	.kz-js .kz-nav__link::after {
		display: none;
	}

	/* In the open menu the CTA stays a filled, full-width button. */
	.kz-js .kz-nav__list li.kz-nav__item--cta {
		margin-top: 0.75rem;
		border-top: 0;
	}

	.kz-js .kz-nav__link--cta {
		padding: 0.875rem 1.125rem;
		text-align: center;
	}

	.kz-js .kz-header__call {
		padding-top: 0.5rem;
		font-size: 1.0625rem;
	}

	/* Top-bar switch on phones and tablets: stays outside the menu, beside the menu button, framed
	   like the button so the two read as a pair. */
	.kz-header .kz-langswitch--bar {
		flex: none;
		padding: 0;
		border: 0;
	}

	.kz-header .kz-langswitch__icon {
		border: 1px solid var(--kz-line);
		color: var(--kz-ink);
	}
}

/* Top-bar switch: one globe icon linking to the other language (name in its tooltip and accessible name). */
.kz-langswitch--bar {
	display: flex;
	align-items: center;
	padding-inline-start: 1rem;
}

.kz-langswitch__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--kz-radius);
	color: var(--kz-muted);
	transition: color var(--kz-ease), border-color var(--kz-ease);
}

.kz-langswitch__icon .kz-icon {
	width: 1.375rem;
	height: 1.375rem;
}

.kz-langswitch__icon:hover,
.kz-langswitch__icon:focus-visible {
	color: var(--kz-link);
	border-color: currentColor;
}

/* Footer bar copy of the switch. */
.kz-langswitch--footer {
	padding: 0;
	border: 0;
}

.kz-langswitch--footer li + li::before {
	color: var(--kz-footer-muted);
}

.kz-langswitch--footer a,
.kz-langswitch--footer a[aria-current="true"] {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--kz-footer-link);
	font-size: inherit;
}

.kz-langswitch--footer a:not([aria-current]) {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* ---------------------------------------------------------------- */
/* Hebrew (/he/): same RTL layout, type tuned for the Hebrew faces.  */
/* Arabic needs tall lines for its ascenders, descenders and dots;   */
/* IBM Plex Sans Hebrew and Frank Ruhl Libre read better slightly    */
/* tighter and a touch smaller at the same nominal size.             */
/* ---------------------------------------------------------------- */
:root:lang(he) {
	--kz-font-sans: "KZ Sans", "IBM Plex Sans Hebrew", "Segoe UI", Arial, sans-serif;
	--kz-font-serif: "KZ Serif", "Frank Ruhl Libre", "David", "Times New Roman", serif;
	--kz-lh-body: 1.65;
}

:lang(he) body {
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
}

/* Frank Ruhl Libre sets wider than Naskh at the same size: a step smaller keeps the hero to three lines. */
:lang(he) .kz-hero__title {
	font-size: clamp(2rem, 1.2rem + 3.3vw, 3.5rem);
}

:lang(he) .kz-hero__title,
:lang(he) .kz-h2,
:lang(he) .kz-notfound__title,
:lang(he) .kz-policy__title {
	line-height: 1.2;
}

:lang(he) .kz-lawyer__name,
:lang(he) .kz-policy__h2,
:lang(he) .kz-privacy__title,
:lang(he) .kz-faq__solo-q,
:lang(he) .kz-faq__book.is-enhanced .kz-faq__pane-q,
:lang(he) .kz-brand__text {
	line-height: 1.3;
}

:lang(he) .kz-hero__text,
:lang(he) .kz-lead,
:lang(he) .kz-faq__text p,
:lang(he) .kz-privacy__text p,
:lang(he) .kz-footer__disclaimer {
	line-height: 1.7;
}

:lang(he) .kz-lawyer__row dd,
:lang(he) .kz-contact__msg,
:lang(he) .kz-contact__privacy,
:lang(he) .kz-footer__info dd {
	line-height: 1.6;
}

/* Very small phones: keep the name, drop the tagline. */
@media (max-width: 359.98px) {
	.kz-brand__tagline { display: none; }
}

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

/* Phones with the language switch in the bar: the menu button keeps only its icon (the label stays
   for screen readers), so the office name still fits on one line beside the button and the switch. */
@media (max-width: 599.98px) {
	.kz-header:has(.kz-langswitch--bar) .kz-menu-btn {
		padding-inline: 0.75rem;
	}

	.kz-header:has(.kz-langswitch--bar) .kz-menu-btn__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

/* Phones: slightly smaller brand so the full office name fits beside the menu button. */
@media (max-width: 599.98px) {
	.kz-brand { gap: 0.5rem; }
	.kz-brand__mark { height: 2rem; }
	.kz-brand__name { font-size: 0.875rem; }
	.kz-brand__tagline { font-size: 0.75rem; }
}

/* ---------------------------------------------------------------- */
/* Shared pieces                                                     */
/* ---------------------------------------------------------------- */

/* Signature rule: the short gradient line beside the Arabic line of the logo. */
.kz-rule {
	display: block;
	width: 4.5rem;
	height: 2px;
	background: linear-gradient(to left, var(--kz-signal), var(--kz-night));
}

.kz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	min-height: 3rem;
	font-family: var(--kz-font-sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	border-radius: var(--kz-radius);
	transition: background-color var(--kz-ease), color var(--kz-ease), border-color var(--kz-ease);
}

.kz-btn--primary {
	padding: 0.875rem 1.75rem;
	background: var(--kz-ink);
	color: #fff;
	border: 1px solid var(--kz-ink);
}

.kz-btn--primary:hover {
	background: var(--kz-night);
	border-color: var(--kz-night);
}

/* Secondary: a quiet text link with a drawn arrow pointing forward. */
.kz-btn--secondary {
	padding: 0.875rem 0.25rem;
	color: var(--kz-ink);
	background: transparent;
	border: 0;
}

.kz-btn--secondary:hover {
	color: var(--kz-link);
}

/* Icons */
.kz-icon {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	color: var(--kz-link);
	transition: transform var(--kz-ease);
}

[dir="ltr"] .kz-icon--forward {
	transform: scaleX(-1);
}

a:hover > .kz-icon--forward {
	transform: translateX(-4px);
}

[dir="ltr"] a:hover > .kz-icon--forward {
	transform: scaleX(-1) translateX(-4px);
}

/* ---------------------------------------------------------------- */
/* 2. Hero                                                           */
/* ---------------------------------------------------------------- */
/* The one tinted band on the white page. */
.kz-hero {
	background: var(--kz-paper);
}

.kz-hero__inner {
	display: grid;
	gap: clamp(3rem, 8vw, 4.5rem);
	padding-block: clamp(3rem, 2rem + 5vw, 5rem) clamp(3rem, 2rem + 5vw, 5rem);
}

/* Desktop: the hero fills the first screen and its two columns sit centred, vertically and together. */
@media (min-width: 1024px) {
	.kz-hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
		align-content: center;
		gap: clamp(3rem, 6vw, 6rem);
		min-height: calc(100svh - var(--kz-header-h) - var(--kz-admin-bar));
		padding-block: clamp(3rem, 6vh, 5rem);
	}

	.kz-hero:not(.kz-hero--with-sheet) .kz-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}
}

.kz-hero__rule {
	margin-bottom: 1.75rem;
}

.kz-hero__title {
	max-width: 11em;
	margin: 0;
	font-family: var(--kz-font-serif);
	font-weight: 700;
	font-size: clamp(2.25rem, 1.35rem + 3.8vw, 4rem);
	line-height: 1.4;
	color: var(--kz-ink);
	text-wrap: balance;
}

.kz-hero__text {
	max-width: 34em;
	margin: 1.5rem 0 0;
	color: var(--kz-muted);
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
	line-height: 1.85;
	text-wrap: pretty;
}

.kz-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2rem;
	margin-top: 2.5rem;
}

@media (max-width: 479.98px) {
	.kz-hero__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
	}

	.kz-btn--secondary {
		justify-content: center;
	}
}

/* Letterhead sheet holding the contact form: a page from the office, with a second sheet just behind it. */
.kz-sheet {
	position: relative;
	width: 100%;
	max-width: 34rem;
}

@media (min-width: 1024px) {
	.kz-sheet {
		max-width: 34rem;
		justify-self: end;
	}
}

.kz-sheet::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #fbfaf7;
	border: 1px solid var(--kz-line);
	transform: translate(-14px, 14px);
}

[dir="ltr"] .kz-sheet::before {
	transform: translate(14px, 14px);
}

.kz-sheet__paper {
	position: relative;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: var(--kz-surface);
	border: 1px solid var(--kz-line);
	box-shadow: 0 1px 2px rgba(8, 48, 66, 0.05), 0 24px 48px -28px rgba(8, 48, 66, 0.28);
}

.kz-sheet__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--kz-line);
}

.kz-sheet__head img {
	width: auto;
	height: 1.75rem;
}

.kz-sheet__head span {
	font-family: var(--kz-font-serif);
	font-weight: 600;
	font-size: 0.9rem;
	line-height: 1.5;
}

@media (max-width: 479.98px) {
	.kz-sheet::before {
		transform: translate(-8px, 8px);
	}

	[dir="ltr"] .kz-sheet::before {
		transform: translate(8px, 8px);
	}
}

/* ---------------------------------------------------------------- */
/* Shared section frame                                              */
/* ---------------------------------------------------------------- */
/* One white background for the whole page; sections follow each other with no tone change or divider. */

.kz-section > .kz-container {
	padding-block: clamp(2.75rem, 2rem + 3.5vw, 4.75rem);
}

.kz-section__head .kz-rule {
	margin-bottom: 1.5rem;
}

.kz-h2 {
	margin: 0;
	font-family: var(--kz-font-serif);
	font-weight: 700;
	font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
	line-height: 1.4;
	color: var(--kz-ink);
	text-wrap: balance;
}

.kz-lead {
	max-width: 36em;
	margin: 1.25rem 0 0;
	color: var(--kz-muted);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	line-height: 1.9;
	text-wrap: pretty;
}

/* ---------------------------------------------------------------- */
/* 3. About                                                          */
/* ---------------------------------------------------------------- */
.kz-about__inner {
	display: grid;
	gap: clamp(2.5rem, 5vw, 3.5rem);
}

/* Heading on one side, office statement on the other; cards run full width below. */
@media (min-width: 1024px) {
	.kz-about__head {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: clamp(3rem, 6vw, 6rem);
		align-items: end;
	}

	.kz-about__head .kz-lead {
		margin: 0;
	}
}

.kz-lawyers {
	display: grid;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 1024px) {
	.kz-lawyers {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/*
 * Signature block, laid out sideways so it stays short:
 * phone   [photo][name]  /  [details full width]
 * tablet+ [photo][name]  /  [photo][details]
 */
.kz-lawyer {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "head" "details";
	align-content: start;
	column-gap: clamp(1rem, 3vw, 1.75rem);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	background: var(--kz-surface);
	border: 1px solid var(--kz-line);
}

.kz-lawyer--photo {
	grid-template-columns: 6.5rem minmax(0, 1fr);
	grid-template-areas: "photo head" "details details";
}

@media (min-width: 600px) {
	.kz-lawyer--photo {
		grid-template-columns: clamp(9rem, 16vw, 12rem) minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		grid-template-areas: "photo head" "photo details";
	}
}

.kz-lawyer__photo {
	grid-area: photo;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--kz-line);
}

.kz-lawyer__head {
	grid-area: head;
	align-self: center;
}

@media (min-width: 600px) {
	.kz-lawyer--photo .kz-lawyer__head {
		align-self: start;
	}
}

.kz-lawyer__rule {
	width: 2.5rem;
	margin-bottom: 1rem;
}

.kz-lawyer__name {
	margin: 0;
	font-family: var(--kz-font-serif);
	font-weight: 700;
	font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.4375rem);
	line-height: 1.45;
}

.kz-lawyer__details {
	grid-area: details;
	margin: 1rem 0 0;
}

.kz-lawyer__row {
	padding-block: 0.625rem;
	border-top: 1px solid var(--kz-line);
}

.kz-lawyer__row:last-child {
	padding-bottom: 0;
}

.kz-lawyer__row dt {
	color: var(--kz-muted);
	font-size: 0.8125rem;
	font-weight: 600;
}

.kz-lawyer__row dd {
	margin: 0.125rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.7;
}

/* Any number of lawyers: on desktop an odd last card (or a single card) takes the full row instead of leaving a gap. */
@media (min-width: 1024px) {
	.kz-lawyer:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.kz-lawyer:last-child:nth-child(odd) .kz-lawyer__details {
		max-width: 44rem;
	}
}

/* ---------------------------------------------------------------- */
/* Page not found                                                    */
/* ---------------------------------------------------------------- */
.kz-notfound__inner {
	min-height: calc(70svh - var(--kz-header-h));
	padding-block: clamp(4rem, 3rem + 6vw, 8rem);
}

.kz-notfound .kz-rule {
	margin-bottom: 1.5rem;
}

.kz-notfound__title {
	margin: 0;
	font-family: var(--kz-font-serif);
	font-weight: 700;
	font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
	line-height: 1.4;
}

.kz-notfound__action {
	margin: 2rem 0 0;
}
