/**
 * Homepage-only styles.
 */

/* ===== Legacy front-page.php (remove after template-homepage.php is active) ===== */
.hero-image-wrapper { position: relative; display: inline-block; width: 100%; }
.hero-image-overlay { position: absolute; top: 0; left: 0; right: 0; height: 40%; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent); pointer-events: none; z-index: 1; }
.hero-image { display: block; width: 100%; height: auto; }
@media (min-width: 768px) {
	.hero-image-wrapper { margin-top: -28px; }
	.hero-image { aspect-ratio: 2.3 / 1; object-fit: cover; object-position: center top; }
}
body.home .meet-max { background: #fff; }
body.home .six-reasons-outro,
body.home .six-reasons-outro p { color: #343333; }
body.home .our-offices { background: #DEE1E4; }
body.home .faq-section { background: #fff; }
body.home .meet-max,
body.home .our-offices,
body.home .faq-section { margin-bottom: 2em; }
body.home .meet-max .flex-wrapper { display: block; gap: 2em; }
@media only screen and (min-width: 768px) {
	body.home .meet-max .flex-wrapper { display: grid; grid-template-columns: 1fr 2fr; align-items: center; }
}
body.home .meet-max .flex-item:first-child img {
	border-radius: 0.3em; max-height: 420px; width: 100%; object-fit: cover; object-position: top center;
}
body.home .meet-max-quote {
	font-style: italic; background: #fff; border-left: 3px solid #E9CB47;
	border-radius: 0 0.3em 0.3em 0; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	padding: 1em 1.5em; margin: 1.5em 0;
}
body.home .meet-max-quote footer {
	margin-top: 0.5em; font-style: normal; font-weight: 600; color: #675C4E;
}
body.home .our-offices .flex-wrapper.locations {
	display: grid; grid-template-columns: 1fr; gap: 1.5em; margin: 2em 0;
}
@media only screen and (min-width: 768px) {
	body.home .our-offices .flex-wrapper.locations { grid-template-columns: repeat(2, 1fr); }
}
@media only screen and (min-width: 1024px) {
	body.home .our-offices .flex-wrapper.locations { grid-template-columns: repeat(3, 1fr); }
}
body.home .our-offices .flex-wrapper.locations .flex-item {
	width: auto; max-width: none; margin: 0;
}
body.home .our-offices .location-content img,
body.home .our-offices .flex-item > img {
	width: 100%; height: 200px; object-fit: cover;
}
body.home .faq-section { max-width: 900px; margin-left: auto; margin-right: auto; }
body.home .faq-item { border-bottom: 1px solid #ddd; }
body.home .faq-question-heading { margin: 0; text-transform: none; font-size: 1em; }
body.home .faq-question {
	width: 100%; text-align: left; background: none; border: 0; padding: 1em 0;
	font-size: 1.1em; font-family: 'Open Sans', 'Montserrat', sans-serif; font-weight: 600;
	cursor: pointer; color: #675C4E;
}
body.home .faq-answer { display: none; padding: 0 0 1em; }
body.home .faq-item.is-open .faq-answer { display: block; }
.six_reasons_intro_text { text-align: center; max-width: 1200px; margin-left: auto; margin-right: auto; }
.location-content-label { margin-bottom: 0; font-size: 1em; font-weight: 600; }
.location-content-label + p { margin-top: 0; }
.flex-item .mt-auto { margin-top: auto; }

/* ===== Unique hp-* (template-homepage.php) ===== */

/* ---------- Hero ---------- */
.hp-hero {
	position: relative;
	display: inline-block;
	width: 100%;
}
.hp-hero__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 40%;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
	pointer-events: none;
	z-index: 1;
}
.hp-hero__img {
	display: block;
	width: 100%;
	height: auto;
}
@media (min-width: 768px) {
	.hp-hero { margin-top: -28px; }
	.hp-hero__img {
		display: block;
		width: 100%;
		aspect-ratio: 2.3 / 1;
		object-fit: cover;
		object-position: center top;
	}
}

/* ---------- Layout shells ---------- */
.hp-breakout {
	margin: 2em calc(50% - 50vw);
	padding: 2em;
	background: #DEE1E4;
}
.hp-breakout + .hp-breakout {
	margin-top: -2em;
}
#content .hp-breakout h2 {
	margin-top: .5em;
	margin-bottom: 1.5rem;
}
.hp-breakout > .wrapper {
	position: relative;
	z-index: 1;
	width: 100%;
}

.hp-grid {
	display: block;
	gap: 2em;
	margin-bottom: 2em;
}
@media only screen and (min-width: 768px) {
	.hp-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		max-width: 1200px;
		margin: 0 auto;
	}
}
.hp-grid > div:last-child {
	display: grid;
	gap: 1em;
}

.hp-flex {
	justify-content: center;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	padding: 0;
	margin: 0;
	gap: 1.5em;
	box-sizing: border-box;
}
.hp-flex__item {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex-grow: 1;
	flex-basis: 280px;
	width: auto;
	margin: 0;
	box-sizing: border-box;
}
.hp-center { text-align: center; }
.hp-mt-auto { margin-top: auto; }
.hp-lg-heading {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.95em;
	margin-bottom: 0;
}

/* ---------- CTA / cards ---------- */
.hp-cta {
	margin-top: 2em;
	margin-bottom: 2em;
	text-align: center;
	padding: 2em;
	background: rgba(255, 255, 255, 0.55);
	border: solid 2px #A7AEAE;
	font-weight: 600;
	color: #343333;
}
#content .hp-cta h2 { margin-top: .5em; }

.hp-box {
	box-shadow: 0 0 3.8em 8px rgba(52, 51, 51, 0.6);
	text-align: center;
	margin-bottom: 3.5em;
	width: 100%;
	min-height: 0;
}
.hp-box h5 {
	text-transform: uppercase;
	color: #675C4E;
	font-weight: 600;
	font-size: 1.3em;
	margin: 1em 0 0;
}
.hp-box a {
	display: block;
	text-align: center;
	line-height: 1.2;
	padding: 2em 4% 1em;
	position: relative;
	width: 100%;
}
.hp-box a span {
	display: inline-block;
	position: relative;
	bottom: -40px;
}
.hp-bg-img {
	align-items: center;
	justify-content: center;
	display: flex;
	position: relative;
	background-size: cover;
	min-height: 300px;
}
.hp-box.hp-bg-img {
	padding: 2em;
	text-align: center;
	background-size: cover;
	background-position: center;
}

/* ---------- Meet Max ---------- */
.hp-meet-max {
	background: #fff;
	margin-bottom: 2em;
}
.hp-meet-max .hp-flex {
	display: block;
	gap: 2em;
}
@media only screen and (min-width: 768px) {
	.hp-meet-max .hp-flex {
		display: grid;
		grid-template-columns: 1fr 2fr;
		align-items: center;
	}
}
.hp-meet-max .hp-flex__item:first-child img {
	border-radius: 0.3em;
	max-height: 420px;
	width: 100%;
	object-fit: cover;
	object-position: top center;
}
.hp-meet-max-quote {
	font-style: italic;
	background: #fff;
	border-left: 3px solid #E9CB47;
	border-radius: 0 0.3em 0.3em 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	padding: 1em 1.5em;
	margin: 1.5em 0;
}
.hp-meet-max-quote footer {
	margin-top: 0.5em;
	font-style: normal;
	font-weight: 600;
	color: #675C4E;
}

/* ---------- Practice areas ---------- */
.hp-practices { margin-bottom: 2em; }
#content .hp-practice-areas {
	margin: 1em 0;
	gap: 1rem;
}
#content .hp-practice-areas .hp-flex__item {
	border: 3px solid #e9cb47;
	margin: 0;
	position: relative;
	background: #fff;
}
#content .hp-practice-areas .hp-flex__item * {
	transition: all .3s ease-in-out;
}
#content .hp-practice-areas .hp-flex__item .btn {
	position: absolute;
	width: 100%;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
}
.hp-bg {
	background-size: cover;
	background-position: center;
}

/* ---------- Six reasons ---------- */
.hp-six-reasons-bg {
	background: #ffffff;
}
.hp-six-reasons-intro {
	text-align: center;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}
.hp-six-reasons .hp-reasons-wrap {
	border: .2em solid #E9CB47;
	border-top: none;
	padding-left: 0;
	padding-right: 0;
	padding-bottom: 3%;
}
#content .hp-six-reasons ul,
#content .hp-six-reasons ul.hp-checked {
	font-size: 1.15em;
	padding-left: 4em;
}
.hp-six-reasons ul li { margin: 1em 0; }
.hp-six-reasons-outro,
.hp-six-reasons-outro p { color: #343333; }

/* ---------- Offices ---------- */
.hp-offices {
	background: #DEE1E4;
	margin-bottom: 2em;
}
.hp-offices .hp-flex.hp-locations {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5em;
	margin: 2em 0;
}
@media only screen and (min-width: 768px) {
	.hp-offices .hp-flex.hp-locations { grid-template-columns: repeat(2, 1fr); }
}
@media only screen and (min-width: 1024px) {
	.hp-offices .hp-flex.hp-locations { grid-template-columns: repeat(3, 1fr); }
}
.hp-offices .hp-flex.hp-locations .hp-flex__item {
	width: auto;
	max-width: none;
	margin: 0;
	background: #fff;
	border: 5px solid #665b4d;
	font-size: 1.2em;
}
.hp-location { padding: .5em 2em; }
.hp-location-label {
	margin-bottom: 0;
	font-size: 1em;
	font-weight: 600;
}
.hp-location-label + p { margin-top: 0; }
.hp-offices .hp-location img,
.hp-offices .hp-flex__item > img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

/* ---------- Vigorous CTA band ---------- */
.hp-vigorous {
	background-color: transparent;
	background-image: url(/wp-content/uploads/Content-v3-bg-1.jpg);
	margin-bottom: -1.5em;
}
.hp-vigorous h2:first-child {
	font-size: 2em;
	font-weight: 300;
	text-transform: uppercase;
}
.hp-vigorous .hp-image-box {
	display: block;
	border: .2em solid #E9CB47;
	width: 100%;
}
.hp-vigorous .hp-image-box img {
	max-height: 150px;
	width: 5.2em;
	height: auto;
	transform: scale(2.1);
}
#content .hp-vigorous a h6 {
	color: #675C4E;
	font-size: 2em;
	font-weight: 400;
	transition: color .4s ease 0s;
	text-transform: uppercase;
	margin-top: 3em;
	line-height: 1.1em;
	margin-bottom: 2em;
}
.hp-vigorous .hp-third { padding: 2em 3em 3em; }
.hp-vigorous a strong {
	color: #675C4e;
	font-weight: 600;
	font-size: 1.2em;
	line-height: 1.1em;
}
.hp-text-highlight { /* inherits theme highlight look when present */ }

/* ---------- FAQ ---------- */
.hp-faq {
	background: #fff;
	max-width: 900px;
	margin: 0 auto 2em;
}
.hp-faq-item { border-bottom: 1px solid #ddd; }
.hp-faq-question-heading {
	margin: 0;
	text-transform: none;
	font-size: 1em;
}
.hp-faq-question {
	width: 100%;
	text-align: left;
	background: none;
	border: 0;
	padding: 1em 0;
	font-size: 1.1em;
	font-family: 'Open Sans', 'Montserrat', sans-serif;
	font-weight: 600;
	cursor: pointer;
	color: #675C4E;
}
.hp-faq-answer {
	display: none;
	padding: 0 0 1em;
}
.hp-faq-item.is-open .hp-faq-answer { display: block; }

/* ---------- Home below (testimonials band) ---------- */
.hp-home-below.hp-one-whole.wrapper,
.hp-home-below.wrapper.hp-one-whole {
	max-width: 1920px;
	margin: auto;
	width: 100%;
	padding-bottom: 3em;
	box-sizing: border-box;
}
.hp-home-below.hp-inverse.hp-bg-img {
	background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(/wp-content/uploads/testimonials-bg.jpg);
	background-size: cover;
	align-items: center;
	justify-content: center;
	display: flex;
	position: relative;
	min-height: 300px;
}
.hp-home-below.hp-inverse,
.hp-home-below.hp-inverse h1,
.hp-home-below.hp-inverse h2,
.hp-home-below.hp-inverse h3,
.hp-home-below.hp-inverse h4 {
	color: #fff;
}
.hp-home-below h4 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 2em;
	text-align: center;
}
.hp-home-below .hp-flex {
	justify-content: center;
	display: flex;
	flex-flow: row wrap;
	padding: 0 1.25rem;
	margin: 0;
	max-width: 100%;
	box-sizing: border-box;
}
.hp-home-below .testimonial-slider {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	overflow: hidden;
	box-sizing: border-box;
}
.hp-home-below .testimonial-slider .rev-cont,
.hp-home-below .testimonial-slider .rev-cont * {
	color: #343333;
}
.hp-home-below .testimonial-slider .ts-read-more,
.hp-home-below .testimonial-slider button.ts-read-more {
	display: inline-flex;
	align-items: center;
	background: none;
	border: none;
	box-shadow: none;
	padding: 4px 0;
	margin: 0;
	min-width: 0;
	width: auto;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #ff8f00;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-transform: none;
	appearance: none;
}

