/*
 * Ola Jawhara Law Firm
 * Desktop values are taken 1:1 from the 1440px Figma frames; comments give the Figma y position.
 * Logical properties (inline-start/end) mirror the layout for Arabic automatically.
 */

:root {
	--navy: #121a30;
	--navy-2: #1f2840;
	--gold: #e1ac6c;
	--white: #fff;
	--muted: rgba(171, 173, 177, 0.73);

	/* Figma uses 21 Cent / 21 Cent Condensed; these are the closest free matches.
	   Arabic glyphs fall through to Noto Sans Arabic, exactly as they do in Figma. */
	--sans: "Montserrat", "Noto Sans Arabic", system-ui, sans-serif;
	--display: "Instrument Serif", "Noto Sans Arabic", "Times New Roman", serif;
	--serif-bold: "Old Standard TT", "Noto Sans Arabic", Georgia, serif;

	--display-track: 0.035em; /* Instrument Serif runs ~10% narrower than 21 Cent Condensed */

	--page: 1440px;
	--gutter: 80px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--navy);
	color: var(--white);
	font-family: var(--sans);
	font-size: 20px;
	line-height: 1.25;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	overflow-x: clip; /* 'hidden' would stop the sticky header from sticking */
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

h1,
h2,
h3,
p,
ul,
figure,
blockquote {
	margin: 0;
	padding: 0;
}

ul {
	list-style: none;
}

[id] {
	scroll-margin-top: 24px;
}

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Spam trap: clipped rather than pushed off-screen, which would widen RTL pages. */
.hp {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.hl {
	color: var(--gold);
	font-style: normal;
}

em.hl {
	font-style: italic;
}

/* Arabic has no true italics; Figma shows the highlights upright. */
.lang-ar em.hl {
	font-style: normal;
}

/* ---------------------------------------------------------------- header */

.site-header {
	background: var(--navy);
	position: relative;
	z-index: 20;
}

.site-header__inner {
	direction: ltr; /* Figma keeps the logo left and the switch right in both languages */
	max-width: var(--page);
	height: 184px;
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: flex;
	align-items: center;
}

.brand img {
	width: 134px;
	height: auto;
	margin-top: -4px; /* logo top at 31 */
}

.site-nav {
	margin-left: 110px;
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 50px;
}

.lang-ar .site-nav ul {
	direction: rtl;
	gap: 70px;
}

.site-nav a {
	display: block;
	font-weight: 500;
	font-size: 20px;
	line-height: 24px;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color 0.2s;
}

.site-nav a:hover {
	color: var(--gold);
}

.lang-switch {
	position: relative;
	flex: none;
	width: 75px;
	height: 28px;
	margin-left: 48px;
	border: 1px solid var(--gold);
	border-radius: 100px;
	background: var(--navy-2);
}

.lang-switch__knob {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 35px;
	height: 22px;
	border-radius: 100px;
	background: var(--gold);
	color: var(--navy-2);
	font: 500 15px/22px var(--sans);
	text-align: center;
	transition: transform 0.25s ease;
}

.lang-switch--ar .lang-switch__knob {
	transform: translateX(34px);
}

.lang-switch--en:hover .lang-switch__knob {
	transform: translateX(6px);
}

.lang-switch--ar:hover .lang-switch__knob {
	transform: translateX(28px);
}

.lang-switch.is-switching .lang-switch__knob {
	transform: translateX(34px);
}

.lang-switch--ar.is-switching .lang-switch__knob {
	transform: translateX(0);
}

.nav-toggle {
	display: none;
}

/* ------------------------------------------------------------------ hero */

.hero {
	position: relative;
	min-height: 602px; /* 184 → 786 */
	overflow: hidden;
	isolation: isolate;
}

.hero__bg,
.hero__bg picture,
.hero__bg img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hero__bg {
	z-index: -1;
}

/* Same crop as Figma: photo drawn 2598px wide at x -523, y -624 inside the 1440px hero. */
.hero__bg img {
	inset: 0 auto auto -36.32%;
	width: 180.42%;
	height: auto;
	max-width: none;
	transform: translateY(-42.71%);
}

.hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(18, 26, 48, 0.8);
}

.hero__inner {
	max-width: var(--page);
	margin: 0 auto;
	padding: 173px var(--gutter) 74px; /* tagline at 357 */
}

.hero__tagline {
	display: flex;
	align-items: center;
	gap: 17.5px;
	color: var(--gold);
	font-weight: 600;
	font-size: 24px;
	line-height: 29px;
}

.hero__tagline::before {
	content: "";
	flex: none;
	width: 56.5px;
	height: 2px;
	background: var(--gold);
}

.hero__headline {
	margin-top: 36px; /* 422 */
	font-family: var(--display);
	font-weight: 400;
	font-size: 50px;
	line-height: 64px;
	letter-spacing: var(--display-track);
}

.lang-ar .hero__headline {
	font-size: 44px;
	font-weight: 600;
}

.rotator {
	display: inline-grid;
	vertical-align: bottom;
}

.rotator__word {
	grid-area: 1 / 1;
	opacity: 0;
	transform: translateY(0.35em);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.rotator__word.is-active {
	opacity: 1;
	transform: none;
}

.rotator__word.is-leaving {
	opacity: 0;
	transform: translateY(-0.35em);
}

.hero__intro {
	max-width: 1222px;
	margin-top: 42px; /* 528 */
	font-family: var(--display);
	font-size: 36px;
	line-height: 46px;
	letter-spacing: var(--display-track);
}

.lang-ar .hero__intro {
	margin-top: 32px;
	font-size: 28px;
	line-height: 46px;
}

.hero__actions {
	direction: ltr; /* solid button first, left to right, in both languages */
	display: flex;
	gap: 45px;
	margin-top: 28px; /* 648 */
}

.lang-ar .hero__actions {
	justify-content: flex-end;
	gap: 18px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 197px;
	height: 64px;
	border: 1px solid var(--gold);
	border-radius: 100px;
	font-weight: 700;
	font-size: 20px;
	line-height: 24px;
	text-transform: uppercase;
	transition: background-color 0.2s, color 0.2s;
}

.lang-ar .btn {
	font-size: 24px;
}

.btn--solid {
	background: var(--gold);
	color: var(--white);
}

.btn--solid:hover {
	background: transparent;
}

.btn--outline {
	font-size: 19px;
}

.btn--outline:hover {
	background: var(--gold);
}

/* ------------------------------------------------------------------ firm */

.firm {
	max-width: var(--page);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 550px) minmax(0, 590px);
	justify-content: space-between;
	align-items: start;
	padding: 86px 82px 202px 103px; /* 872 … rule at 2054 */
	padding-inline: 103px 82px;
	min-height: 1268px; /* keeps the divider at 2054, as in Figma */
}

/* Arabic copy is much shorter: let the section fit its text instead of leaving ~700px empty. */
.lang-ar .firm {
	min-height: 0;
	padding-bottom: 150px;
}

.eyebrow {
	color: var(--gold);
	font-weight: 700;
	font-size: 24px;
	line-height: 29px;
}

.firm__title {
	margin-top: 30px;
	font-family: var(--display);
	font-weight: 400;
	font-size: 40px;
	line-height: 48px;
	letter-spacing: 0.02em;
}

.lang-ar .firm__title {
	font-size: 34px;
	line-height: 52px;
	margin-top: 30px;
}

.firm__title .hl,
.why__title .hl,
.section-head__title .hl {
	font-style: normal;
}

.quote {
	position: relative;
	width: 506px;
	max-width: 100%;
	min-height: 169px;
	margin-top: 18px; /* 1000 */
	padding: 56px 60px 35px 39px;
	padding-inline: 39px 60px;
	background: var(--navy-2);
	border-inline-start: 3px solid var(--gold);
	border-start-end-radius: 30px;
	border-end-end-radius: 30px;
}

.quote__mark {
	position: absolute;
	top: 15px;
	inset-inline-start: 18px;
	color: rgba(225, 172, 108, 0.39);
	font-family: var(--display);
	font-size: 70px;
	line-height: 86px;
	height: 41px;
	overflow: hidden;
}

.quote__text {
	font-family: var(--display);
	font-size: 20px;
	line-height: 128.09%;
	letter-spacing: 0.045em;
}

.lang-ar .quote__text {
	font-size: 20px;
	line-height: 26px;
	letter-spacing: 0;
}

.quote__author {
	margin-top: 9px;
	color: var(--gold);
	font-weight: 500;
	font-size: 14px;
	line-height: 17px;
	letter-spacing: 0.02em;
}

.commitment {
	margin-top: 61px; /* 1230 */
}

.commitment__title {
	color: var(--gold);
	font-weight: 500;
	font-size: 20px;
	line-height: 128.09%;
	letter-spacing: 0.02em;
}

.commitment__text {
	font-weight: 400;
	font-size: 26px;
	line-height: 128.09%;
	letter-spacing: 0.02em;
}

.lang-ar .commitment__text {
	font-size: 20px;
	letter-spacing: 0;
}

.firm__body {
	margin-top: 50px; /* 922 */
	font-size: 24px;
	line-height: 125%;
	letter-spacing: 0.02em;
}

.lang-ar .firm__body {
	margin-top: 40px;
	font-size: 20px;
	letter-spacing: 0;
}

.rich-text p + p {
	margin-top: 30px;
}

.lang-ar .rich-text p + p {
	margin-top: 0;
}

.rich-text strong {
	color: var(--gold);
	font-weight: 800;
}

.lang-ar .rich-text strong {
	font-weight: 700;
}

/* ------------------------------------------------------------------ rule */

.rule {
	height: 2px;
	max-width: 1440px;
	margin: 0 auto;
	border: 0;
	background: linear-gradient(90deg, transparent 0%, rgba(225, 172, 108, 0.35) 4%, var(--gold) 30%, var(--gold) 70%, rgba(225, 172, 108, 0.35) 96%, transparent 100%);
}

/* ------------------------------------------------------------------- why */

.why {
	max-width: var(--page);
	margin: 0 auto;
	padding: 150px 81px 221px 77px; /* text at 2206 … services label at 2971 */
	padding-inline: 77px 81px;
}

.why__head {
	min-height: 120px; /* cards stay at 2530 whatever the text length, as in Figma */
	display: grid;
	grid-template-columns: minmax(0, 616px) minmax(0, 666px);
	justify-content: space-between;
	align-items: start;
}

.why__title {
	font-family: var(--serif-bold);
	font-weight: 700;
	font-size: 35px;
	line-height: 46px;
}

.lang-ar .why__title {
	font-size: 34px;
	line-height: 52px;
}

.why__text {
	font-size: 24px;
	line-height: 125%;
	letter-spacing: 0.02em;
}

.lang-ar .why__text {
	font-size: 24px;
	letter-spacing: 0;
}

.why__cards {
	display: grid;
	grid-template-columns: repeat(4, 245px);
	justify-content: center;
	gap: 59px;
	margin-top: 204px; /* 2530 */
}

.why-card {
	min-height: 220px;
	padding: 37px 6px 24px 28px;
	padding-inline: 28px 6px;
	background: var(--navy-2);
	border: 1px solid var(--gold);
	border-radius: 28px;
}

.icon-ring {
	display: grid;
	place-items: center;
	flex: none;
	width: 53px;
	height: 53px;
	border: 1px solid var(--gold);
	border-radius: 50%;
}

.icon-ring img {
	width: 31px;
	height: 31px;
	object-fit: contain;
}

.icon-ring--lg {
	width: 63px;
	height: 63px;
	border-width: 2px;
}

.icon-ring--lg img {
	width: 36px;
	height: 36px;
}

.why-card__title {
	margin-top: 15px;
	font-weight: 400;
	font-size: 11px;
	line-height: 13px;
}

.why-card__text {
	margin-top: 13px;
	font-size: 11px;
	line-height: 13px;
}

.lang-ar .why-card__title,
.lang-ar .why-card__text {
	font-size: 12px;
	line-height: 16px;
}

/* ---------------------------------------------------------- section head */

.section-head {
	text-align: center;
}

.section-head__eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	color: var(--gold);
	font-weight: 700;
	font-size: 20px;
	line-height: 24px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.lang-ar .section-head__eyebrow {
	letter-spacing: 0;
	gap: 50px;
}

.section-head__eyebrow::before,
.section-head__eyebrow::after,
.ornament::before,
.ornament::after {
	content: "";
	width: 79px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold));
}

.section-head__eyebrow::after,
.ornament::after {
	background: linear-gradient(90deg, var(--gold), transparent);
}

.section-head__title {
	margin-top: 63px; /* 3058 */
	font-family: var(--serif-bold);
	font-weight: 700;
	font-size: 40px;
	line-height: 53px;
	letter-spacing: 0.035em;
}

.lang-ar .section-head__title {
	margin-top: 54px;
	font-weight: 400;
	font-size: 70px;
	line-height: 89px;
}

.ornament {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 65px;
}

.ornament--diamond {
	margin-top: 55px; /* 3166 */
}

.lang-ar .ornament--diamond {
	margin-top: 32px;
}

.ornament--diamond span {
	width: 15.4px;
	height: 17px;
	background: var(--gold);
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.ornament--scales {
	gap: 10px;
}

.ornament--scales::before,
.ornament--scales::after {
	width: 43px;
}

.ornament--scales img {
	width: 29px;
	height: 26px;
}

/* -------------------------------------------------------------- services */

.services {
	padding: 0 0 224px; /* grid ends 3978, rule at 4202 */
}

.services__grid {
	display: grid;
	grid-template-columns: repeat(3, 352px);
	justify-content: center;
	column-gap: 108px;
	row-gap: 75px;
	margin-top: 75px; /* 3258 */
}

.service-card {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 84px;
	padding: 8px 12px 8px 24px;
	background: var(--navy-2);
	border: 1px solid var(--gold);
	border-radius: 10px;
	transition: transform 0.2s, box-shadow 0.2s;
}

.lang-ar .service-card {
	direction: rtl;
	padding: 8px 24px 8px 12px;
}

.service-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.service-card__title {
	font-weight: 600;
	font-size: 20px;
	line-height: 24px;
}

/* --------------------------------------------------------------- contact */

.contact {
	max-width: var(--page);
	margin: 0 auto;
	padding: 55px 81px 0 76px; /* ornament at 4257 */
	padding-inline: 76px 81px;
}

.contact__title {
	margin-top: 16px;
	text-align: center;
	font-family: var(--display);
	font-weight: 400;
	font-size: 70px;
	line-height: 89px;
	letter-spacing: var(--display-track);
}

.contact__body {
	display: grid;
	grid-template-columns: minmax(0, 520px) minmax(0, 708px);
	justify-content: space-between;
	align-items: start;
	margin-top: 82px; /* 4470 */
}

.contact-info {
	display: grid;
	gap: 61px;
	padding-top: 15px;
}

.contact-info li {
	display: grid;
	grid-template-columns: 77px 1fr;
	grid-template-rows: auto auto;
	column-gap: 50px;
	align-content: start;
}

.contact-info__icon {
	grid-row: 1 / 3;
	display: grid;
	place-items: center;
	width: 77px;
	height: 77px;
	border: 2px solid var(--gold);
	border-radius: 50%;
}

/* Pin, phone and mail share one square size and line weight everywhere. */
.contact-info__icon img,
.footer-contact__icon img {
	width: 36px;
	height: 36px;
}

.contact-info__label {
	margin-top: 8px;
	color: var(--gold);
	font-weight: 500;
	font-size: 15px;
	line-height: 18px;
}

.contact-info__value {
	margin-top: 14px;
	font-weight: 600;
	font-size: 24px;
	line-height: 29px;
	justify-self: start;
}

.contact-form__box {
	display: grid;
	grid-template-columns: 215px 1fr;
	gap: 41px 22px;
	padding: 55px 45px 55px 46px;
	padding-inline: 46px 45px;
	border: 1px solid var(--gold);
	border-radius: 49px;
}

.field--full {
	grid-column: 1 / -1;
}

.field--subject {
	margin-top: -10px;
}

.field input,
.field textarea {
	display: block;
	width: 100%;
	height: 57px;
	padding: 0 21px;
	background: var(--navy-2);
	border: 1px solid var(--gold);
	border-radius: 15px;
	color: var(--white);
	font: 500 18px/22px var(--sans);
}

.field textarea {
	height: 243px;
	padding: 25px;
	resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
	color: var(--muted);
	opacity: 1;
}

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--white);
}

.contact-form__submit {
	display: block;
	width: 100%;
	height: 52px;
	margin-top: 31px;
	border: 1px solid var(--gold);
	border-radius: 10px;
	background: var(--gold);
	color: var(--navy);
	font: 500 20px/24px var(--sans);
	cursor: pointer;
	transition: filter 0.2s;
}

.contact-form__submit:hover {
	filter: brightness(1.08);
}

.contact-form__notice {
	margin-top: 16px;
	font-size: 15px;
	line-height: 18px;
}

.contact-form__notice-title {
	display: block;
	color: var(--gold);
}

.contact-form__status {
	margin-bottom: 20px;
	padding: 14px 20px;
	border: 1px solid var(--gold);
	border-radius: 15px;
	font-size: 16px;
}

.contact-form__status--error {
	border-color: #e57373;
}

/* ---------------------------------------------------------------- footer */

.site-footer__inner {
	max-width: var(--page);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 543px 1fr;
	padding: 24px 81px 87px 75px; /* logo at 5302 */
	padding-inline: 75px 81px;
}

.site-footer__logo img {
	width: 420px;
}

.footer-contact {
	display: grid;
	gap: 64px;
	margin-top: 65px;
}

.footer-contact li {
	display: flex;
	align-items: center;
	min-height: 43px;
	font-weight: 600;
	font-size: 20px;
	line-height: 24px;
}

/* Each icon is centred in the same 42px slot, so the column lines up in both languages. */
.footer-contact__icon {
	flex: none;
	display: flex;
	justify-content: center;
	width: 126px;
	padding-inline: 28px 56px;
}

.socials {
	display: flex;
	gap: 45px;
	margin-top: 50px;
	padding-inline-start: 16px;
}

/* Brand icons keep the same order as English (Facebook first) in Arabic too. */
.lang-ar .socials {
	direction: ltr;
	justify-content: flex-end;
	padding-left: 0;
	padding-right: 16px;
}

.socials a {
	display: grid;
	place-items: center;
	width: 65px;
	height: 65px;
	border: 1px solid var(--white);
	border-radius: 50%;
	transition: background-color 0.2s;
}

.socials a:hover {
	background: rgba(255, 255, 255, 0.1);
}

.socials img {
	width: auto;
	max-width: 35px;
	max-height: 41px;
}

.office-hours {
	padding-top: 101px; /* 5403 */
	font-size: 24px;
	line-height: 29px;
	letter-spacing: 0.07em;
}

.lang-ar .office-hours {
	letter-spacing: 0;
}

.office-hours__title {
	font: inherit;
}

.office-hours ul {
	display: grid;
	gap: 29px;
	margin-top: 29px;
}

/* -------------------------------------------------------------- generic */

.page-plain {
	max-width: 900px;
	margin: 0 auto;
	padding: 120px 24px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1399px) {
	:root {
		--gutter: 48px;
	}

	.site-nav {
		margin-left: auto;
	}

	.site-nav ul,
	.lang-ar .site-nav ul {
		gap: 32px;
	}

	.firm,
	.why,
	.contact,
	.site-footer__inner {
		padding-inline: var(--gutter);
	}

	.firm {
		column-gap: 64px;
	}

	.why__cards {
		grid-template-columns: repeat(4, minmax(0, 245px));
		gap: 32px;
	}

	.services__grid {
		grid-template-columns: repeat(3, minmax(0, 352px));
		column-gap: 40px;
		padding-inline: var(--gutter);
	}

	.contact__body {
		column-gap: 48px;
	}
}

@media (max-width: 1180px) {
	.site-header__inner {
		height: 120px;
	}

	.brand img {
		width: 96px;
	}

	.nav-toggle {
		display: grid;
		place-items: center;
		order: 3;
		width: 48px;
		height: 48px;
		margin-left: 20px;
		padding: 0;
		background: none;
		border: 1px solid var(--gold);
		border-radius: 50%;
		cursor: pointer;
	}

	.nav-toggle__bar,
	.nav-toggle__bar::before,
	.nav-toggle__bar::after {
		display: block;
		width: 20px;
		height: 2px;
		background: var(--white);
		transition: transform 0.25s, opacity 0.25s;
	}

	.nav-toggle__bar {
		position: relative;
	}

	.nav-toggle__bar::before,
	.nav-toggle__bar::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.nav-toggle__bar::before {
		top: -6px;
	}

	.nav-toggle__bar::after {
		top: 6px;
	}

	.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
		background: transparent;
	}

	.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
		transform: translateY(6px) rotate(45deg);
	}

	.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
		transform: translateY(-6px) rotate(-45deg);
	}

	.lang-switch {
		margin-left: auto;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin: 0;
		background: var(--navy);
		border-top: 1px solid rgba(225, 172, 108, 0.4);
		border-bottom: 1px solid rgba(225, 172, 108, 0.4);
		display: none;
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav ul,
	.lang-ar .site-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 12px var(--gutter) 20px;
	}

	.site-nav a {
		padding: 14px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.hero__inner {
		padding-top: 110px;
	}

	.hero__bg img {
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: 62% 50%;
		transform: none;
	}

	.firm,
	.why__head,
	.contact__body {
		grid-template-columns: 1fr;
		row-gap: 56px;
	}

	.firm,
	.lang-ar .firm {
		min-height: 0;
		padding-top: 80px;
		padding-bottom: 110px;
	}

	/* The desktop Arabic offsets must not add extra space once the columns stack. */
	.firm__body,
	.lang-ar .firm__body {
		margin-top: 0;
	}

	.why {
		padding-top: 100px;
		padding-bottom: 140px;
	}

	.why__head {
		min-height: 0;
		row-gap: 24px;
	}

	.why__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 72px;
	}

	.services {
		padding-bottom: 120px;
	}

	.services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 28px;
		column-gap: 28px;
	}

	.lang-ar .services__grid {
		direction: rtl;
	}

	.contact {
		padding-top: 72px;
	}

	.contact__body {
		margin-top: 56px;
	}

	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
		column-gap: 40px;
		padding-top: 72px;
	}

	.site-footer__logo img {
		width: 320px;
	}

	.office-hours {
		padding-top: 40px;
	}
}

@media (max-width: 767px) {
	:root {
		--gutter: 20px;
	}

	body {
		font-size: 16px;
	}

	.site-header__inner {
		height: 92px;
	}

	.brand img {
		width: 72px;
	}

	.hero {
		min-height: 0;
	}

	.hero__inner {
		padding-top: 72px;
		padding-bottom: 64px;
	}

	.hero__tagline {
		font-size: 17px;
		line-height: 22px;
		gap: 12px;
	}

	.hero__tagline::before {
		width: 36px;
	}

	.hero__headline,
	.lang-ar .hero__headline {
		margin-top: 24px;
		font-size: 34px;
		line-height: 42px;
	}

	.hero__intro,
	.lang-ar .hero__intro {
		margin-top: 20px;
		font-size: 24px;
		line-height: 32px;
	}

	.hero__actions,
	.lang-ar .hero__actions {
		gap: 14px;
		margin-top: 32px;
		justify-content: flex-start;
	}

	.lang-ar .hero__actions {
		justify-content: flex-end;
	}

	.btn {
		width: auto;
		min-width: 0;
		flex: 1;
		height: 54px;
		font-size: 16px;
	}

	.btn--outline {
		font-size: 15px;
	}

	.lang-ar .btn {
		font-size: 19px;
	}

	.firm,
	.lang-ar .firm {
		padding-top: 64px;
		padding-bottom: 80px;
		row-gap: 36px;
	}

	.eyebrow {
		font-size: 20px;
	}

	.firm__title,
	.lang-ar .firm__title {
		margin-top: 14px;
		font-size: 32px;
		line-height: 40px;
	}

	.quote {
		width: 100%;
		padding: 52px 22px 26px 26px;
		padding-inline: 26px 22px;
	}

	.quote__text {
		font-size: 19px;
	}

	.commitment {
		margin-top: 40px;
	}

	.commitment__text,
	.lang-ar .commitment__text {
		font-size: 19px;
	}

	.firm__body,
	.lang-ar .firm__body {
		font-size: 17px;
		letter-spacing: 0.01em;
	}

	.rich-text p + p {
		margin-top: 20px;
	}

	.why {
		padding-top: 64px;
		padding-bottom: 88px;
	}

	.why__title,
	.lang-ar .why__title {
		font-size: 28px;
		line-height: 36px;
	}

	.why__text {
		font-size: 18px;
	}

	.why__cards {
		grid-template-columns: 1fr;
		gap: 18px;
		margin-top: 44px;
	}

	.why-card {
		min-height: 0;
		display: grid;
		grid-template-columns: 63px 1fr;
		column-gap: 18px;
		padding: 22px;
		border-radius: 22px;
	}

	.why-card .icon-ring {
		grid-row: 1 / 3;
	}

	.why-card__title {
		margin-top: 6px;
		font-size: 15px;
		line-height: 19px;
		font-weight: 600;
	}

	.why-card__text,
	.lang-ar .why-card__text {
		margin-top: 6px;
		font-size: 14px;
		line-height: 19px;
	}

	.lang-ar .why-card__title {
		font-size: 15px;
		line-height: 20px;
	}

	.section-head__eyebrow {
		font-size: 16px;
	}

	.section-head__eyebrow::before,
	.section-head__eyebrow::after {
		width: 48px;
	}

	.section-head__title {
		margin-top: 28px;
		font-size: 30px;
		line-height: 38px;
		padding-inline: var(--gutter);
	}

	.lang-ar .section-head__title {
		margin-top: 20px;
		font-size: 44px;
		line-height: 60px;
	}

	.ornament--diamond,
	.lang-ar .ornament--diamond {
		margin-top: 28px;
	}

	.services {
		padding-bottom: 80px;
	}

	.services__grid {
		grid-template-columns: 1fr;
		row-gap: 14px;
		margin-top: 40px;
	}

	.service-card {
		min-height: 72px;
	}

	.service-card__title {
		font-size: 17px;
		line-height: 21px;
	}

	.contact {
		padding-top: 56px;
	}

	.contact__title {
		font-size: 52px;
		line-height: 64px;
	}

	.contact__body {
		margin-top: 40px;
		row-gap: 40px;
	}

	.contact-info {
		gap: 26px;
		padding-top: 0;
	}

	.contact-info li {
		grid-template-columns: 60px 1fr;
		column-gap: 18px;
	}

	.contact-info__icon {
		width: 60px;
		height: 60px;
	}

	.contact-info__icon img,
	.footer-contact__icon img {
		width: 30px;
		height: 30px;
	}

	.contact-info__label {
		margin-top: 6px;
	}

	.contact-info__value {
		margin-top: 4px;
		font-size: 18px;
		line-height: 24px;
	}

	.contact-form__box {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 24px 18px;
		padding-inline: 18px;
		border-radius: 28px;
	}

	.field--subject {
		margin-top: 0;
	}

	.field input {
		height: 52px;
	}

	.field textarea {
		height: 180px;
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.site-footer__logo img {
		width: 260px;
	}

	.footer-contact {
		gap: 22px;
		margin-top: 36px;
	}

	.footer-contact li {
		font-size: 17px;
	}

	.footer-contact__icon {
		width: 64px;
		padding-inline: 8px 14px;
	}

	.socials {
		gap: 18px;
		margin-top: 32px;
		padding-inline-start: 0;
	}

	.lang-ar .socials {
		padding-right: 0;
	}

	.socials a {
		width: 54px;
		height: 54px;
	}

	.socials img {
		max-width: 28px;
		max-height: 32px;
	}

	.office-hours {
		padding-top: 44px;
		font-size: 18px;
		line-height: 24px;
	}

	.office-hours ul {
		gap: 12px;
		margin-top: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}

/* ------------------------------------------------------------------------
 * Mobile best practices (phones and tablets)
 * - Arabic header mirrors: logo on the right, menu button on the left
 * - long text: start-aligned, >= 16px, line-height ~1.5 (Arabic 1.7), space between paragraphs
 * - tap targets >= 44px without changing how things look (invisible hit area)
 * ---------------------------------------------------------------------- */
@media (max-width: 1180px) {
	.lang-ar .site-header__inner {
		direction: rtl;
	}

	/* The switch is LTR inside (so its knob slides correctly), which would flip its logical
	   margins; use physical ones so it sits next to the menu button, away from the logo. */
	.lang-ar .lang-switch {
		direction: ltr;
		margin-left: 0;
		margin-right: auto;
	}

	.lang-ar .nav-toggle {
		margin-left: 0;
		margin-inline-start: 20px;
	}

	/* bigger invisible hit areas */
	.lang-switch::before,
	.footer-contact a::before,
	.contact-info__value::before,
	.breadcrumb a::before,
	.read-more::before,
	.speak-card__phone::before {
		content: "";
		position: absolute;
		inset: -10px 0; /* taller tap area only: wider would poke past the screen edge */
	}

	.footer-contact a,
	.contact-info__value,
	.breadcrumb a,
	.read-more {
		position: relative;
	}
}

@media (max-width: 1180px) {
	.rich-text p + p,
	.lang-ar .rich-text p + p {
		margin-top: 14px;
	}

	.firm__body,
	.lang-ar .firm__body,
	.why__text,
	.commitment__text,
	.lang-ar .commitment__text,
	.contact-form__notice,
	.office-hours {
		line-height: 1.5;
	}

	.lang-ar .firm__body,
	.lang-ar .why__text,
	.lang-ar .commitment__text,
	.lang-ar .contact-form__notice {
		line-height: 1.7;
	}

	.why-card__text,
	.lang-ar .why-card__text {
		font-size: 15px;
		line-height: 1.5;
	}

	.service-card__title,
	.why-card__title {
		line-height: 1.35;
	}

	.hero__intro,
	.lang-ar .hero__intro {
		line-height: 1.4;
	}

	.contact-form__notice {
		font-size: 14px;
	}

	.field input,
	.field textarea {
		font-size: 16px; /* iOS zooms into fields under 16px */
	}
}

@media (max-width: 1180px) {
	.site-footer__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.office-hours li {
		white-space: nowrap; /* "Monday 8AM - 7PM" stays on one line */
	}
}

@media (max-width: 767px) {
	.site-footer__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	/* The Arabic opening paragraph is a full statement: a size that keeps the buttons in view. */
	.lang-ar .hero__intro {
		font-size: 20px;
		line-height: 1.6;
	}
}

/* ------------------------------------------------------------------------
 * Sticky header on phones and tablets: compact once the page scrolls
 * ---------------------------------------------------------------------- */
@media (max-width: 1180px) {
	.site-header {
		position: sticky;
		top: 0;
		transition: box-shadow 0.25s ease;
	}

	.site-header__inner,
	.brand img {
		transition: height 0.25s ease, width 0.25s ease;
	}

	.site-header.is-scrolled {
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	}

	.site-header.is-scrolled .site-header__inner {
		height: 72px;
	}

	.site-header.is-scrolled .brand img {
		width: 60px;
	}

	/* the open menu scrolls on its own if it is taller than the screen */
	.site-nav {
		max-height: calc(100vh - 72px);
		overflow-y: auto;
	}

	/* jump links land below the header instead of under it */
	[id] {
		scroll-margin-top: 96px;
	}
}

@media (max-width: 767px) {
	.site-header.is-scrolled .site-header__inner {
		height: 64px;
	}

	.site-header.is-scrolled .brand img {
		width: 52px;
	}
}

/* logged-in editors: keep the header below the WordPress admin bar */
@media (min-width: 601px) and (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (min-width: 783px) and (max-width: 1180px) {
	.admin-bar .site-header {
		top: 32px;
	}
}
