/*
Theme Name: MJW Law Firm
Theme URI: https://www.mjwlawfirm.com
Author: SmartSites
Author URI: https://www.smartsites.com
Description: Custom theme for the Law Offices of Melissa Waldinger P.A., rebuilt to match the previous Justia site page by page. Optional ACF fields on the front page.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: mjw
*/

:root {
	--c-primary: #006da3;
	--c-secondary: #00476a;
	--c-highlight: #00638a;
	--c-accent: #ed0000;
	--c-nav: #20325a;
	--c-banner: #0a2d54;
	--c-gold: #faab00;
	--c-light-gray: #f6f6f6;
	--c-gray: #cecfcf;
	--c-input-border: #d6d7d8;
	--c-text: #000;
	--font: "Open Sans", Arial, sans-serif;
	--wrap: 1200px;
	--narrow: 1000px;
	--gutter: 25px;
	--shadow: 0 0 20px 0 rgba(0, 0, 0, .1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0; background: #fff; color: var(--c-text);
	font-family: var(--font); font-size: 20px; line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body.has-cookie-modal { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration: none; transition: color .3s; }
a:hover, a:focus-visible { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--c-primary); font-weight: 600; margin: 0; }
h2 { font-size: 26px; line-height: 1.6; }
h3 { font-size: 24px; line-height: 1.6; }
h4 { font-size: 22px; line-height: 1.6; }
p { margin: 0 0 30px; }
strong, b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed !important; top: 10px; left: 10px; z-index: 10002; width: auto; height: auto; clip: auto;
	background: #fff; padding: 10px 16px; font-size: 16px;
}

.narrow { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 100px var(--gutter); }
.section--gray { background: var(--c-light-gray); }

/* Section titles: 38px blue with a short rule under them. */
.title-underlined {
	position: relative; max-width: 1150px; margin: 0 auto 75px; padding: 0 var(--gutter);
	color: var(--c-primary); font-size: 38px; font-weight: 600; line-height: 1.1; text-align: center;
}
.title-underlined::after {
	content: ""; position: absolute; left: 50%; bottom: -25px; width: 150px; height: 2px;
	background: var(--c-highlight); transform: translateX(-50%);
}
.title-underlined--left { margin-left: 0; padding: 0; text-align: left; }
.title-underlined--left::after { left: 0; transform: none; }
.title-link { color: inherit; }
.title-link:hover, .title-link:focus-visible { color: inherit; text-decoration: underline; }

/* ---------- Buttons and links ---------- */
.button {
	display: inline-block; padding: 16px 30px; border: 0; border-radius: 25px;
	background: var(--c-accent); color: #fff; font: 700 18px/1.1 var(--font);
	text-align: center; text-decoration: none; cursor: pointer; transition: filter .3s, background-color .3s, color .3s;
}
.button:hover, .button:focus-visible { color: #fff; text-decoration: none; filter: saturate(60%); }
.button--ghost { border: 1px solid var(--c-primary); background: transparent; color: var(--c-primary); }
.button--ghost:hover, .button--ghost:focus-visible { background: var(--c-primary); color: #fff; filter: none; }
.button-row { margin-top: 50px; text-align: center; }
.link-arrow { display: inline-block; font-weight: 700; }
.link-arrow::after { content: " \203A"; }
.link-button {
	padding: 0; border: 0; background: none; color: var(--c-primary); font: inherit; font-weight: 700;
	cursor: pointer;
}
.link-button:hover, .link-button:focus-visible { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 999; background: #fff;
	box-shadow: 0 1px 5px 0 rgba(0, 0, 0, .15);
}
.admin-bar .site-header { top: 32px; }
.top-numbers { display: none; }
.header-main {
	display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: center;
	max-width: var(--wrap); height: 100px; margin: 0 auto; padding: 0 var(--gutter);
}
.site-logo { display: grid; justify-items: center; }
.site-logo img { display: block; width: 450px; max-width: 100%; }
.header-cta { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.header-cta__label { color: var(--c-highlight); font-size: 20px; font-weight: 700; line-height: 1.3; }
.header-cta__phone { color: var(--c-primary); font-size: 24px; line-height: 1.3; }

.primary-nav { background: var(--c-nav); }
.primary-nav > ul {
	display: flex; max-width: 1150px; height: 50px; margin: 0 auto; padding: 0; list-style: none;
}
.primary-nav > ul > li { position: relative; flex: 1 1 auto; transition: background-color .3s; }
.primary-nav > ul > li > a, .primary-nav .menu-item--more > button {
	display: block; width: 100%; padding: 0 20px; border: 0; background: none;
	color: #fff; font: 600 16px/50px var(--font); text-align: center; white-space: nowrap; cursor: pointer;
}
.primary-nav > ul > li > a:hover, .primary-nav > ul > li > a:focus-visible { text-decoration: none; }
.primary-nav > ul > li:hover, .primary-nav > ul > li:focus-within { background-color: rgba(255, 255, 255, .2); }
.primary-nav > ul > li.menu-item--cta { background: var(--c-accent); }
.primary-nav > ul > li.menu-item--cta:hover, .primary-nav > ul > li.menu-item--cta:focus-within { background: var(--c-accent); filter: saturate(60%); }
.primary-nav .menu-item--more { background: rgba(255, 255, 255, .1); }
.primary-nav .sub-menu {
	display: none; position: absolute; top: 100%; right: 0; z-index: 10; min-width: 220px; margin: 0; padding: 10px 0;
	list-style: none; background: #4a5677;
}
.primary-nav .menu-item--more.is-open .sub-menu, .primary-nav .menu-item--more:hover .sub-menu { display: block; }
.primary-nav .sub-menu li { border-left: 0; transition: background-color .3s; }
.primary-nav .sub-menu li:hover, .primary-nav .sub-menu li:focus-within { margin-left: -.2rem; border-left: .2rem solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .2); }
.primary-nav .sub-menu a { display: block; padding: 8px 15px; color: #fff; font: 400 18px/1.6 var(--font); text-align: left; white-space: nowrap; }
.primary-nav .sub-menu a:hover { text-decoration: none; }

/* ---------- Banner ---------- */
.banner { position: relative; height: 550px; overflow: hidden; background: var(--c-banner); color: #fff; }
.banner__image img {
	position: absolute; top: 0; left: 50%; width: 1300px; max-width: none; height: 550px;
	transform: translateX(-50%);
}
.banner__tagline {
	position: absolute; inset: 0; display: flex; align-items: center;
	max-width: var(--wrap); margin: 0 auto; padding: 35px var(--gutter);
}
.banner__inner { width: 62%; }
.banner__title { margin: 0; color: #fff; font-size: 55px; font-weight: 600; line-height: 1.2; }
.banner__text { margin: 0; color: #fff; font-size: 27.5px; font-weight: 600; line-height: 1.2; }
.banner__button { margin-top: 30px; }
.banner--internal { height: 300px; }
.banner--internal .banner__image img { height: 300px; }
.banner--internal .banner__title { font-size: 41.25px; }
.banner--internal .banner__text { font-size: 20.625px; }
.banner--internal .banner__button { margin-top: 22px; }

/* ---------- Badges ---------- */
.badges { padding: 25px 0; overflow: hidden; border-bottom: 1px solid #eee; }
.badges__list {
	display: flex; max-width: 1150px; margin: 0 auto; padding: 0; list-style: none;
	transition: transform .5s ease;
}
.badges__item { display: flex; flex: 0 0 25%; align-items: center; justify-content: center; height: 150px; padding: 25px 0; }
.badges__item img { display: block; width: 100%; height: 100px; object-fit: contain; }

/* ---------- Breadcrumbs and page content ---------- */
.breadcrumbs { max-width: 1150px; margin: 0 auto; padding: 14px 0 15px; font-size: 14px; line-height: 1.6; }
.breadcrumbs a { color: var(--c-highlight); font-weight: 700; }
.breadcrumbs .sep { margin: 0 6px; }
.page-body { padding-bottom: 100px; }
.page-article { max-width: 950px; margin: 0 auto; padding-top: 50px; }
.breadcrumbs + .page-article { padding-top: 50px; }
.page-title {
	max-width: 950px; margin: 0 auto 50px; color: var(--c-primary);
	font-size: 38px; font-weight: 600; line-height: 1.6; text-align: center;
}
.intro { padding: 100px var(--gutter) 70px; }
.intro .narrow { max-width: 1000px; padding: 0 var(--gutter); }
.intro .page-title { position: relative; margin-bottom: 75px; font-size: 44px; line-height: 1.1; }
/* Home page title: short blue rule under it, as on the previous site. */
.intro .page-title::after {
	content: ""; position: absolute; left: 50%; bottom: -25px; width: 150px; height: 2px;
	background: var(--c-highlight); transform: translateX(-50%);
}
.entry-content h2 { margin: 0; font-size: 26px; line-height: 1.6; }
.entry-content h3 { margin: 24px 0 0; font-size: 24px; line-height: 1.6; }
.entry-content h4 { margin: 24px 0 0; font-size: 22px; }
.entry-content ul, .entry-content ol { margin: 20px 0 30px; padding-left: 40px; }
.entry-content li { margin: 0 0 10px; }
.entry-content table { width: 100%; margin: 0 0 30px; border-collapse: collapse; font-size: 18px; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--c-gray); text-align: left; vertical-align: top; }
.entry-content th { background: var(--c-light-gray); }
.entry-content img { display: block; margin: 0 auto 30px; }
.entry-content blockquote { margin: 0 0 10px; font-style: italic; }
.entry-content blockquote p { margin-bottom: 10px; }
.entry-content blockquote + cite { display: block; margin: 0 0 40px; font-style: normal; font-weight: 600; }
.entry-content .button-cookies { margin-top: 10px; }

/* Site map list */
.sitemap-list, .sitemap-list ul { margin: 0; padding-left: 25px; list-style: disc; }
.sitemap-list ul { margin-top: 10px; list-style: circle; }

/* ---------- Practice areas (home) ---------- */
.cards {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 75px 50px;
	max-width: 1150px; margin: 0 auto; padding: 0; list-style: none;
}
.cards > li { flex: 0 0 350px; }
.card { position: relative; display: block; width: 350px; max-width: 100%; height: 300px; overflow: hidden; color: #fff; }
.card:hover, .card:focus-visible { color: #fff; text-decoration: none; }
.card__image img { display: block; width: 100%; height: 300px; object-fit: cover; }
.card__text {
	position: absolute; left: 0; right: 0; top: 249.5px; display: flex; flex-direction: column; justify-content: center;
	padding: 10px 25px; line-height: 1.3; transition: top .3s ease-in-out;
}
.card__text::after {
	content: ""; position: absolute; left: 0; top: 0; z-index: 0; width: 100%; height: 500px;
	background: var(--c-primary); opacity: .7; transition: opacity .3s ease-in-out;
}
.card__title { position: relative; z-index: 1; font-size: 20px; font-weight: 600; line-height: 1.3; }
.card__excerpt {
	position: relative; z-index: 1; display: block; max-height: 0; overflow: hidden; opacity: 0;
	padding-top: 4.5px; font-size: 18px; line-height: 1.5;
	transition: max-height .5s ease-in-out, opacity .5s ease-in-out;
}
.card:hover .card__text, .card:focus-visible .card__text { top: 150px; }
.card:hover .card__text::after, .card:focus-visible .card__text::after { opacity: .9; }
.card:hover .card__excerpt, .card:focus-visible .card__excerpt { max-height: 7.5rem; opacity: 1; }

/* ---------- Meet Melissa (home) ---------- */
.meet__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 1150px; margin: 0 auto; }
.meet__text p { margin-bottom: 30px; }
.meet__pictures { position: relative; min-height: 354px; }
.meet__photo, .meet__deco { position: absolute; width: 350px; height: 350px; }
.meet__photo { z-index: 2; top: 2px; left: 100px; box-shadow: 0 0 50px 10px rgba(0, 0, 0, .1); }
.meet__deco--1 { z-index: 1; top: 52px; left: 150px; }
.meet__deco--2 { z-index: 0; top: -48px; left: 50px; }
.meet__photo img, .meet__deco img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Reviews band ---------- */
.reviews__carousel { position: relative; max-width: var(--wrap); height: 392px; margin: 0 auto; padding: 0 var(--gutter); }
.reviews__stage { position: relative; height: 100%; }
.review {
	position: absolute; top: 0; left: 50%; display: grid; grid-template-columns: 50px 1fr; column-gap: 20px; align-content: start;
	width: 460px; max-width: calc(100% - 50px); margin: 0; padding: 25px; border-radius: 10px;
	background: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden;
	transform: translateX(-50%); transition: transform .4s ease, opacity .4s ease;
}
.review.is-current { z-index: 2; opacity: 1; visibility: visible; }
.review.is-prev, .review.is-next { z-index: 1; width: 435px; opacity: 1; visibility: visible; }
.review.is-prev { transform: translateX(calc(-50% - 345px)) translateY(50px); }
.review.is-next { transform: translateX(calc(-50% + 345px)) translateY(50px); }
.review.is-prev .review__text, .review.is-next .review__text,
.review.is-prev .review__author, .review.is-next .review__author,
.review.is-prev .review__stars, .review.is-next .review__stars { opacity: .5; }
.review__quote {
	grid-row: 1; width: 50px; height: 50px; padding: 10px; border: 2px solid var(--c-highlight);
	border-radius: 50%; fill: var(--c-highlight);
}
.review__author { grid-row: 1; align-self: center; margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; }
.review__author cite { font-style: normal; }
.review__stars { grid-column: 1 / -1; width: 200px; height: 47px; margin-top: 15px; fill: var(--c-gold); }
.review__text { grid-column: 1 / -1; margin: 0; font-style: italic; }
.review__text p { margin: 0; }
.carousel-arrow {
	position: absolute; top: 50%; z-index: 3; width: 35px; height: 35px; padding: 0; border: 0; border-radius: 50%;
	background: #9a9fa8; cursor: pointer; transform: translateY(-50%); transition: background-color .3s;
}
.carousel-arrow::before {
	content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; background: #fff;
	-webkit-mask: url("assets/img/arrow.svg") center / contain no-repeat; mask: url("assets/img/arrow.svg") center / contain no-repeat;
}
.carousel-arrow--prev { left: 5px; }
.carousel-arrow--prev::before { transform: rotate(180deg); }
.carousel-arrow--next { right: 5px; }
.carousel-arrow:hover, .carousel-arrow:focus-visible { background: var(--c-primary); }
.reviews .button-row { margin-top: 50px; }
.reviews__submit { margin: 0; padding-top: 50px; font-size: 14px; line-height: 1.6; text-align: center; }
.reviews__submit a { color: #333; }

/* ---------- FAQs (home) ---------- */
.faqs { max-width: 950px; margin: 0 auto; }
.faq { position: relative; padding: 25px; border-top: 1px solid var(--c-gray); }
.faq__q {
	display: block; width: 100%; margin: 0 0 5px; padding: 0 80px 0 0; border: 0; background: none;
	color: var(--c-primary); font: 700 20px/1.6 var(--font); text-align: left; cursor: pointer;
}
.faq__q:hover .faq__label { text-decoration: underline; }
.faq__icon {
	position: absolute; top: 50%; right: 12px; display: flex; align-items: center; justify-content: center;
	width: 50px; height: 50px; border-radius: 10px; background: var(--c-light-gray); transform: translateY(-50%);
}
.faq__icon::before {
	content: ""; width: 12px; height: 12px; background: var(--c-highlight); transform: rotate(90deg);
	-webkit-mask: url("assets/img/arrow.svg") center / contain no-repeat; mask: url("assets/img/arrow.svg") center / contain no-repeat;
	transition: transform .2s;
}
.faq__q[aria-expanded="true"] .faq__icon::before { transform: rotate(-90deg); }
.faq__a { padding-right: 80px; font-size: 18px; line-height: 1.6; }
.faq__a[hidden] { display: none; }
.faqs .button-row { padding-top: 0; }

/* ---------- Offices ---------- */
.offices-carousel { position: relative; max-width: var(--wrap); margin: 0 auto; overflow: hidden; }
.offices-carousel__track { --per-view: 3; display: flex; transition: transform .4s ease; }
.offices-carousel .office { flex: 0 0 calc(100% / var(--per-view)); padding: 0 var(--gutter); }
.office__pin {
	display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; margin: 0 0 25px; padding: 7px;
	border: 2px solid var(--c-highlight); border-radius: 50%;
}
.office__pin svg { width: 20px; height: 25px; fill: var(--c-highlight); }
.office__name { display: block; color: var(--c-primary); font-size: 22px; font-weight: 600; line-height: 1.6; }
.office__map a { color: var(--c-highlight); }
.office__phone { display: block; }
.office__phone a { color: #000; }
.carousel-dots { display: flex; justify-content: center; gap: 0; height: 30px; }
.offices-section .button-row { margin-top: 0; }
.carousel-dots[hidden] { display: none; }
.carousel-dots button {
	width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.carousel-dots button::before {
	content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--c-gray);
}
.carousel-dots button[aria-selected="true"]::before { background: var(--c-primary); }

/* Contact page offices with map pictures */
.offices-list__items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; max-width: 1150px; margin: 0 auto; }
.offices-list .office { display: flex; gap: 25px; align-items: flex-start; }
.office__map-image img { display: block; width: 250px; height: 150px; object-fit: cover; }

/* ---------- Contact band ---------- */
.contact-band__inner { display: flex; max-width: var(--wrap); margin: 0 auto; }
.contact-band__form { flex: 0 0 575px; max-width: 100%; padding: 100px 50px; background: #fff; }
.contact-band__form .title-underlined { margin: 0 0 60px; }
.contact-band__image { display: flex; flex: 1 1 600px; order: 2; align-items: center; }
.contact-band__image img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Forms ---------- */
.mjw-form { display: block; }
.mjw-form .field { display: block; margin: 0 0 20px; }
.mjw-form input[type="text"], .mjw-form input[type="email"], .mjw-form input[type="tel"], .mjw-form textarea {
	display: block; width: 100%; height: 50px; padding: 0 10px; border: 1px solid var(--c-input-border); border-radius: 5px;
	background: #fff; color: #000; font: 18px/1.5 var(--font); transition: border-color .3s;
}
.mjw-form textarea { height: 160px; padding: 10px; resize: vertical; }
.mjw-form input:focus, .mjw-form textarea:focus { border-color: var(--c-highlight); outline: none; }
.mjw-form input:focus::placeholder, .mjw-form textarea:focus::placeholder { opacity: .6; }
.mjw-form ::placeholder { color: #595959; opacity: 1; }
.mjw-form .button { display: block; margin: 0 auto; }
.mjw-form fieldset { margin: 0 0 20px; padding: 0; border: 0; }
.mjw-form legend { padding: 0; font-weight: 700; }
.mjw-form .fields { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.mjw-form .fields .field { margin: 0; }
.mjw-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mjw-form-wrap { scroll-margin-top: 170px; }
.mjw-form-wrap:focus { outline: none; }
.entry-content .mjw-form-wrap { max-width: 600px; margin: 30px auto 0; }
.form-intro { margin-bottom: 20px; }
.form-notice { margin: 0 0 16px; padding: 14px 18px; border-radius: 5px; font-size: 16px; }
.form-notice--error { background: #fdecec; color: #8a1010; }

/* ---------- Attorney card (bio page) ---------- */
.attorney-card { background: var(--c-light-gray); }
.attorney-card__inner { display: grid; grid-template-columns: 500px 700px; max-width: var(--wrap); height: 450px; margin: 0 auto; padding: 0 0 0 var(--gutter); }
.attorney-card__photo img { display: block; width: 450px; height: 450px; object-fit: cover; }
.attorney-card__info {
	display: grid; grid-template-columns: 350px 250px; grid-template-areas: "name name" "phones social" "courts courts";
	column-gap: 50px; align-content: center; padding: 15px var(--gutter); line-height: 1.4;
}
.attorney-card__name { grid-area: name; margin: 0; color: var(--c-primary); font-size: 38px; font-weight: 400; line-height: 1.1; }
.attorney-card__phones { grid-area: phones; align-self: center; padding: 15px 0; }
.attorney-card__phones span { display: block; }
.attorney-card__phones strong { font-weight: 400; }
.attorney-card__phones a { color: #000; font-weight: 700; }
.attorney-card .social-icons { grid-area: social; flex-direction: column; align-self: center; gap: 0; }
.attorney-card .social-icons a { gap: 5px; font-weight: 700; }
.attorney-card .social-icons img { width: 20px; height: 20px; }
.attorney-card .social-icons__label { font-size: 20px; }
.jurisdictions { grid-area: courts; margin-top: 0; }
.jurisdictions__title { display: block; margin: 0 0 10px; color: var(--c-primary); font-size: 24px; font-weight: 400; line-height: 1.1; }
.jurisdictions__list { margin: 0; padding: 0; list-style: none; }
.jurisdictions__list li { margin: 0 0 5px; }
.jurisdictions__list.is-collapsed:not(.is-expanded) .is-extra { display: none; }
.jurisdictions .link-button { color: #000; }
.jurisdictions .link-button::after { content: ""; display: inline-block; margin-left: 8px; border: 5px solid transparent; border-top-color: currentColor; vertical-align: 2px; }
.jurisdictions .link-button[aria-expanded="true"]::after { border-top-color: transparent; border-bottom-color: currentColor; vertical-align: 6px; }
.social-icons { display: flex; align-items: flex-start; gap: 5px; }
.social-icons a { display: inline-flex; align-items: center; gap: 8px; color: #000; }
.social-icons img { display: block; width: 45px; height: 45px; }

/* ---------- Why Choose (Family Law pages) ---------- */
.why-choose__body { margin: 0 auto; }
.why-choose__body ul { margin: 20px 0 30px; padding-left: 40px; }

/* ---------- Client reviews page ---------- */
.page-client-reviews .entry-content blockquote { padding: 25px 25px 0; border-radius: 10px 10px 0 0; background: #fff; box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { font-size: 18px; line-height: 1.6; }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; min-height: 100px; }
.site-footer__logo img { display: block; width: 380px; max-width: 100%; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 25px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--c-highlight); font-size: 16px; font-weight: 600; }
.footer-offices { display: grid; grid-template-columns: repeat(3, 350px); justify-content: space-between; row-gap: 0; margin-top: 25px; }
.footer-offices .office { margin-top: 25px; font-size: 20px; }
.footer-offices .office__name { color: #000; font-size: 20px; font-weight: 700; }
.footer-localities { display: grid; grid-template-columns: 150px 1fr; gap: 50px; margin-top: 50px; }
.footer-localities .localities { max-width: 950px; margin: 0; }
.localities__toggle { display: none; }
.footer-title { margin: 25px 0 0; }
.footer-legal p { margin: 25px 0 0; }
.footer-legal__links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-legal__links a { display: inline-flex; align-items: center; gap: 10px; color: #000; }
.footer-legal__links img { width: 48px; height: 23px; }
.site-footer__bottom { max-width: var(--wrap); margin: 50px auto; padding: 0 var(--gutter); }
.copyright { margin: 0; }
.copyright a { color: #000; }

/* ---------- Cookie banner and panel ---------- */
.cookie-banner {
	position: fixed; left: 20px; bottom: 27px; z-index: 10000; max-width: 750px; padding: 25px;
	border-radius: 10px; background: #fff; color: #000; box-shadow: 0 0 50px 10px rgba(0, 0, 0, .1);
	font-size: 18px; line-height: 1.5;
}
.cookie-banner[hidden], .cookie-modal[hidden] { display: none; }
.cookie-banner__text { margin: 0 30px 15px 0; }
.cookie-banner__text a, .cookie-modal a { color: #224095; font-weight: 700; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cookie-button {
	padding: 10px 30px; border: 1px solid #071538; border-radius: 5px; background: none;
	color: #224095; font: 700 18px/1.3 var(--font); cursor: pointer;
}
.cookie-button:hover, .cookie-button:focus-visible { background: #e6ebf2; }
.cookie-button--wide { display: block; width: 100%; margin-top: 20px; }
.cookie-link { padding: 0; border: 0; background: none; color: #224095; font: 700 18px/1.3 var(--font); cursor: pointer; }
.cookie-link:hover, .cookie-banner__text a:hover { color: #ba0000; text-decoration: underline; }
.cookie-close {
	position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; padding: 0; border: 0; background: none;
	color: #333; font-size: 24px; line-height: 1; cursor: pointer;
}
.cookie-modal { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .5); }
.cookie-modal__box {
	position: relative; width: 100%; max-width: 500px; max-height: 100%; overflow: auto; padding: 30px;
	border-radius: 10px; background: #fff; font-size: 18px; line-height: 1.5;
}
.cookie-modal__title { margin: 0 0 10px; color: #000; font-size: 22px; font-weight: 700; }
.cookie-category { margin-top: 15px; border: 1px solid #ddd; }
.cookie-category__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px; }
.cookie-category__toggle { display: flex; gap: 12px; padding: 0; border: 0; background: none; color: #000; font: 700 18px/1.3 var(--font); text-align: left; cursor: pointer; }
.cookie-category__status { color: #224095; font-size: 16px; font-weight: 700; }
.cookie-category__text { margin: 0; padding: 0 15px 15px; font-size: 16px; }
.cookie-modal__note { margin: 15px 0 0; text-align: center; }
.switch { position: relative; display: inline-block; width: 60px; height: 32px; flex: 0 0 60px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__slider { position: absolute; inset: 0; border-radius: 32px; background: #ccc; transition: background .2s; pointer-events: none; }
.switch__slider::before { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .switch__slider { background: #071a8a; }
.switch input:checked + .switch__slider::before { transform: translateX(28px); }
.switch input:focus-visible + .switch__slider { outline: 2px solid var(--c-primary); outline-offset: 2px; }

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
	.footer-offices { grid-template-columns: repeat(2, 1fr); column-gap: 50px; }
	.review.is-prev { transform: translateX(calc(-50% - 280px)) translateY(50px); }
	.review.is-next { transform: translateX(calc(-50% + 280px)) translateY(50px); }
}
@media (max-width: 1199px) and (min-width: 750px) {
	.attorney-card__inner { grid-template-columns: 40% 60%; height: auto; padding: 0; }
	.attorney-card__photo img { width: 100%; height: 100%; }
	.attorney-card__info { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
	.banner__inner { width: 70%; }
	.banner__title { font-size: 44px; }
	.banner__text { font-size: 22px; }
	.meet__inner { grid-template-columns: 1fr; }
	.meet__pictures { width: 450px; max-width: 100%; margin: 50px auto 0; }
	.contact-band__form { flex-basis: 50%; }
	.offices-list__items { grid-template-columns: 1fr; }
}

/* ---------- Phones ---------- */
@media (max-width: 749px) {
	body { font-size: 18px; }
	.section { padding: 50px 20px; }
	.title-underlined { margin-bottom: 60px; font-size: 30px; }
	.top-numbers { display: block; padding: 10px 0 0; text-align: center; box-shadow: 0 2px 5px rgba(0, 0, 0, .15); }
	.top-numbers__label { display: block; font-size: 20px; line-height: 1.6; }
	.top-numbers__toggle {
		display: block; width: calc(100% - 40px); max-width: 370px; margin: 5px auto 15px; padding: 10px 20px; border: 0; border-radius: 25px;
		background: var(--c-accent); color: #fff; font: 700 20px/1.3 var(--font); cursor: pointer;
	}
	.top-numbers__toggle[aria-expanded="true"] { filter: saturate(60%); }
	.top-numbers__list { margin: 0; padding: 0; list-style: none; }
	.top-numbers__list li { border-top: 1px solid #ccc; }
	.top-numbers__list a { display: block; padding: 6px; color: var(--c-highlight); font-size: 20px; font-weight: 700; }
	.site-header { position: relative; }
	.header-main { grid-template-columns: 1fr; height: auto; padding: 20px; }
	.site-logo img { width: 340px; }
	.header-cta { display: none; }
	.primary-nav > ul { height: auto; }
	.primary-nav > ul > li { flex: 1 1 0; }
	.primary-nav > ul > li > a, .primary-nav .menu-item--more > button { padding: 0 8px; font-size: 18px; line-height: 50px; }
	.primary-nav .menu-item--more { background: rgba(255, 255, 255, .1); }
	.banner { height: auto; }
	.banner__image img { position: static; display: block; width: 100%; height: auto; transform: none; }
	.banner__tagline { position: absolute; inset: 0 0 auto; display: block; padding: 25px 20px; text-align: center; }
	.banner__inner { width: 100%; }
	.banner__title { font-size: 26px; }
	.banner__text, .banner__button { display: none; }
	.banner--internal .banner__title { font-size: 26px; }
	.badges__list { max-width: none; }
	.badges__item { flex: 0 0 100%; }
	.page-article { padding-top: 30px; }
	.page-title { font-size: 30px; line-height: 1.3; margin-bottom: 30px; }
	.intro { padding: 50px 20px; }
	.intro .page-title { font-size: 30px; margin-bottom: 75px; }
	.page-body { padding-bottom: 50px; }
	.entry-content ul, .entry-content ol { padding-left: 25px; }
	.cards { gap: 30px; }
	.cards > li { flex-basis: 100%; max-width: 350px; }
	.meet__pictures { width: 300px; min-height: 300px; }
	.meet__photo, .meet__deco { width: 240px; height: 240px; }
	.meet__photo { left: 30px; top: 30px; }
	.meet__deco--1 { left: 60px; top: 60px; }
	.meet__deco--2 { left: 0; top: 0; }
	.reviews__carousel { height: auto; padding: 0 45px; }
	.reviews__stage { height: auto; }
	.review { position: relative; left: auto; display: none; width: 100%; max-width: none; transform: none; }
	.review.is-current { display: grid; }
	.review.is-prev, .review.is-next { display: none; }
	.reviews .button-row { margin-top: 40px; }
	.faq { padding: 20px 0; }
	.faq__q { padding-right: 60px; font-size: 18px; }
	.faq__icon { right: 0; width: 44px; height: 44px; }
	.faq__a { padding-right: 0; font-size: 17px; }
	.offices-carousel .office { padding: 0 20px; }
	.contact-band__inner { display: block; }
	.contact-band__form { padding: 50px 20px; }
	.contact-band__image { display: none; }
	.offices-list .office { flex-direction: column; }
	.attorney-card__inner { grid-template-columns: 1fr; height: auto; padding: 0; }
	.attorney-card__photo img { width: 100%; height: auto; aspect-ratio: 1; }
	.attorney-card__info { grid-template-columns: 1fr; grid-template-areas: "name" "phones" "social" "courts"; padding: 25px 20px; }
	.attorney-card .social-icons { padding-bottom: 15px; }
	.social-icons { justify-content: center; }
	.site-footer__inner { padding-top: 40px; }
	.site-footer__top { justify-content: center; text-align: center; }
	.footer-links { justify-content: center; }
	.footer-offices { grid-template-columns: 1fr; text-align: center; }
	.footer-localities { grid-template-columns: 1fr; gap: 25px; justify-items: center; text-align: center; }
	.localities__more { display: none; }
	.localities__more.is-expanded { display: inline; }
	.localities__toggle { display: inline; }
	.footer-title, .footer-legal { text-align: center; }
	.footer-legal__links { justify-content: center; }
	.site-footer__bottom { text-align: center; }
	.cookie-banner { left: 0; right: 0; bottom: 0; max-width: 250px; padding: 20px 15px 10px; font-size: 12px; }
	.cookie-banner__actions { flex-direction: column; align-items: stretch; gap: 8px; }
	.cookie-button, .cookie-link { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}

/* ---------- Content helpers carried over from the previous site ---------- */
.has-text-align-center { text-align: center; }
.entry-content a.button[data-open-cookies] { display: table; margin: 0 auto 30px; }
.team-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 50px; }
.team-card {
	display: block; width: 300px; padding-bottom: 20px; background: #fff; color: #000; text-align: center;
	transition: box-shadow .3s ease-in-out, color .3s ease-in-out;
}
.team-card img { display: block; width: 300px; height: 300px; margin: 0 0 20px; object-fit: cover; }
.team-card strong { font-size: 20px; font-weight: 600; }
.team-card:hover, .team-card:focus-visible { color: var(--c-highlight); text-decoration: none; box-shadow: 0 0 1.25rem 0 rgba(0, 0, 0, .1); }

/* Images placed in content (e.g. the office photo on the bio page) */
.entry-content figure { margin: 0 0 30px; }
.entry-content figure.alignright { float: right; max-width: 50%; margin: 25px 0 25px 30px; }
.entry-content figure.alignleft { float: left; max-width: 50%; margin: 25px 30px 25px 0; }
.entry-content figure img { margin: 0; }
.entry-content figcaption { margin-top: 10px; font-size: 16px; line-height: 1.5; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content h2.is-underlined { position: relative; margin: 50px 0 25px; padding-top: 0; font-size: 24px; line-height: 1.1; }
.entry-content h2.is-underlined::after { content: ""; position: absolute; left: 0; bottom: -12px; width: 150px; height: 2px; background: var(--c-highlight); }
.entry-content h2.is-underlined + ul { margin-top: 25px; padding-left: 0; list-style: none; }

/* FAQ page: question cards, two at a time */
.faq-cards { position: relative; margin: 0 0 50px; padding: 0 50px; }
.faq-cards__viewport { overflow: hidden; }
.faq-cards__track { --per-view: 2; display: flex; transition: transform .6s ease; }
.faq-card { flex: 0 0 calc(100% / var(--per-view)); padding: 0 15px; }
.faq-card__inner { height: 100%; padding: 25px; border-radius: 10px; background: var(--c-light-gray); }
.faq-card h3 { margin: 0 0 15px; font-size: 22px; line-height: 1.4; }
.faq-card p { margin: 0 0 20px; font-size: 18px; }
.faq-card p:last-child { margin: 0; }
.faq-card a[href="#content"] { font-weight: 700; }
.faq-cards .carousel-arrow { top: 120px; }
.faq-cards .carousel-arrow--prev { left: 0; }
.faq-cards .carousel-arrow--next { right: 0; }
@media (max-width: 749px) {
	.faq-cards { padding: 0 40px; }
	.faq-card { padding: 0 5px; }
}
