/* The site's own CSS, loaded last. */

/* Contact Form 7 puts its spinner after the submit button, a flex item the source's row never had. */
.contact-us .submit-wrap .wpcf7-spinner {
	display: none;
}

/* A failed send shows the source's fail block (main.js), not CF7's line too. */
.form-container .wpcf7-form.failed .wpcf7-response-output {
	display: none;
}

/* The blog hub's Load More is a link to the next page where the source had a <button>: its line and centring. */
.text-body a.load-more {
	line-height: inherit;
	text-align: center;
}

/* The about block's container drops the container's side padding, so below its 1076 px its text met the screen's edges. */
@media screen and (max-width: 1107px) {
	.container.about__container {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* Experience at tablet width: the desktop's top room again, so the decor squares end above the item headings. */
@media screen and (min-width: 768px) and (max-width: 991px) {
	.experience__list-wrap {
		padding-top: 100px;
	}
}

/* From 768 to about 891 px the blue square sat under the end of the next heading ("Practice Areas"): to the right, past it. */
@media screen and (min-width: 768px) and (max-width: 919px) {
	.experience .decor-block.decor-block--bllue {
		right: calc(5% - 70px);
	}
}

/*
 * A post card's author link sits on the date's line, absolutely, and a card under 280 px has no room for both:
 * there (the blog's three columns at tablet width, any two narrow columns) it goes under the date. Its height
 * is a 24 px target.
 */
.articles__autor {
	min-height: 24px;
}

@media screen and (min-width: 480px) and (max-width: 991px) {
	.articles__list--hub .articles__autor {
		position: static;
		margin-top: 12px;
	}
}

@media screen and (min-width: 480px) and (max-width: 639px) {
	.articles__autor {
		position: static;
		margin-top: 12px;
	}
}

/* Below 992 px the card's photo rises above it: on a case, clear of the author's photo; on a post it is hidden, and so is its room. */
@media screen and (max-width: 991px) {
	.single-case .case-template__container > .cta {
		margin-top: 64px;
	}

	.single-post .case-template__container > .cta:not(.cta-target .cta):not(.service-desc__wrap .cta):not(.cta--full) {
		padding-top: 40px;
	}
}

@media screen and (max-width: 767px) {
	/* Recent Results in one column: room for a card's label and the next card's icon, which overhang it. */
	.case__list.case__list--template {
		row-gap: 64px;
	}
}

@media screen and (max-width: 479px) {
	/* The in-text card's lead line at 40 px is wider than the phone's card ("Compensation."). */
	.cta-target .cta .cta__text p:first-child:not(:last-child) {
		font-size: 32px;
	}
}

/* A contact card's lead line is no paragraph (inc/rich-html.php): the look the source's first paragraph had. */
.cta__text .cta__lead {
	margin: 0 0 16px;
	font-family: montserrat-custom;
	font-size: 40px;
	font-style: normal;
	font-weight: 500;
	line-height: 120%;
}

.cta:not(.cta-target .cta):not(.service-desc__wrap .cta) .cta__text .cta__lead {
	font-size: 32px;
}

/* Hub cards' titles are h2 under the page's h1: the h3 size they had. */
h2.case__item-title {
	font-size: 32px;
}

@media screen and (max-width: 991px) {
	h2.case__item-title {
		font-size: 24px;
	}
}

/* A contact card's title is no heading of the page's (inc/rich-html.php): the look its h2 or h3 had. */
.cta__text .cta__title {
	margin: 0 0 16px;
	font-family: Montserrat-custom, Arial, sans-serif;
	font-size: 32px;
	font-weight: 400;
	line-height: 120%;
}

@media screen and (max-width: 991px) {
	.cta__text .cta__title {
		line-height: 130%;
	}

	.cta__text .cta__title--h3 {
		font-size: 24px;
	}
}

/* Home's h1 is the hero's eyebrow, in the eyebrow's look; its slogan keeps the h1's look. */
.subtitle h1.subtitle__text {
	margin: 0;
	font-family: inherit;
	line-height: inherit;
}

.hero__text .hero__slogan {
	margin-bottom: 16px;
	font-family: Montserrat-custom, Arial, sans-serif;
	font-size: 72px;
	font-weight: 400;
	line-height: 120%;
	color: var(--green-moss);
}

@media screen and (max-width: 991px) {
	.hero__text .hero__slogan {
		font-size: 40px;
		text-align: center;
	}
}

/* The hero opens every page it is on: its fade-in held the first screen, its photo the LCP, at opacity 0. */
.hero .anim-fade {
	opacity: 1;
	transform: none;
}

/* The source's bare `a { display: block }` broke a link in a CTA's sentence onto a line of its own. */
.cta__text p a {
	display: inline;
}

/* A numbered list in the body copy in the bulleted lists' face, its number circle in Montserrat, as the design draws them; the source gives `ol` none. */
.section-text ol {
	font-family: Merriweather-custom, Arial, sans-serif;
}

.section-text ol li::before {
	font-family: Montserrat-custom, Arial, sans-serif;
}

/* The author label's green on the card's white was 2.8:1. */
.autor__subtitle {
	color: var(--forest-green);
}

/* The Case Type list, closed, is out of reach (main.js makes it a keyboard combobox). */
.form__select-dropdown {
	visibility: hidden;
	transition-property: max-height, opacity, visibility;
	transition-duration: 0.5s, 0.5s, 0s;
	transition-delay: 0s, 0s, 0.5s;
}

.custom-select--active + .form__select-dropdown {
	visibility: visible;
	transition-delay: 0s;
}

/* A form field's focus was only its border turning gold, 2.67:1 against the unfocused one: the select's green ring. */
.form__input:focus-visible,
.form__custom-select:focus-visible,
.form__select-dropdown li:focus-visible {
	outline: 2px solid var(--forest-green);
	outline-offset: -2px;
}

/* The contact form's required fields carry a visible mark, which a screen reader skips: aria-required says it. */
.form__field:has(> [aria-required="true"]) > .form__label::after,
.form__select-wrap:has(> select[aria-required="true"]):not([data-filled]) .selected-value::after {
	content: "\00a0*";
	content: "\00a0*" / "";
}

/* A wide blog card's white date and author sat on the photo through a 70% green, 2.3-3.0:1 on a pale one: the scrim deepens under them. */
@media (min-width: 1280px) {
	.articles__item:nth-child(6n + 1) .articles__item-wrap::before,
	.articles__item:nth-child(6n + 6) .articles__item-wrap::before {
		background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(25, 130, 78, 0.7) 70%, rgba(17, 84, 51, 0.85) 85%);
	}
}

/* The Elfsight reviews' dates and rating count, a 50% black, were 3.4-3.5:1 on white and on the badge's green. */
.es-review-info-container .es-review-info-date,
.es-header-rating-container .es-header-rating-reviews-count {
	color: rgba(17, 17, 17, 0.7);
}

/*
 * White text on the green-to-blue gradient was 3.0-3.15:1, the eyebrow's gradient letters 2.7-3.0:1 on the
 * pale sections: the same two hues, darker, to 4.6:1 at their lightest.
 */
.cta,
.contact-us {
	background-image: linear-gradient(107deg, #39843e -4.25%, #227cac 145.62%);
}

/* The rich text's green link was 1.2:1 on the contact band's gradient. */
.contact-us .section-text a {
	color: inherit;
	text-decoration: underline;
}

.button {
	--harlequin: #39843e;
	--azure-crayola: #227cac;
}

.subtitle__text {
	--harlequin: #337839;
	--azure-crayola: #1f719d;
}

/* The crumbs' green over the hero's pale picture was 4.38-4.45:1. */
.breadcrumb__item a.breadcrumb__text {
	color: #1b7021;
}

@media screen and (max-width: 479px) {
	/* On a phone the white name sits on the photo's white blouse (1.28:1): a moss-green plate under it. */
	.name-wrap:where(.w-variant-dea6708f-c013-b5d1-1cd3-58401606a9c9) {
		background-color: rgba(58, 73, 62, 0.8);
		box-shadow: 0 0 0 8px rgba(58, 73, 62, 0.8);
		border-radius: 4px;
	}
}

/* One community card a view on a phone: the slider's side room for its arrows moves into each card, so the next card stays outside the clip. */
@media screen and (max-width: 479px) {
	.community__swiper {
		padding-left: 0;
		padding-right: 0;
	}

	.community__item.swiper-slide {
		box-sizing: border-box;
		padding-left: 36px;
		padding-right: 36px;
	}
}
