/*
Theme Name: FarrisVet Astra Child
Theme URI: https://farrisvet.com/
Description: Custom child theme for the FarrisVet website.
Author: FarrisVet
Template: astra
Version: 0.7.0
Text Domain: farrisvet-astra
*/

/*
 * Keep site-specific design rules here. Astra remains the updateable parent
 * theme; never modify wp-content/themes/astra directly.
 */

/* Preserve the configured global page background across breakpoints. */
body,
.site-content {
	background-color: var(--ast-global-color-10) !important;
}
.ast-primary-header-bar{
	background-color:var(--ast-global-color-10) !important;
	box-shadow: 0 8px 6px -6px rgba(0, 0, 0, 0.45);
}

.site-content,
.cb-carousel-block,
.farrisvet-hero-carousel {
	box-shadow: 0 8px 6px -6px rgba(0, 0, 0, 0.45)!important;
	z-index: 1;
}

/* Keep the header logo on the same 1280px rail as the carousel. */
.ast-primary-header-bar .site-primary-header-wrap.ast-container {
	max-width: 1280px;
}

/* Use Astra's global link color for every primary-navigation state. */
.site-header .main-header-menu .menu-link,
.site-header .main-header-menu .menu-item:hover > .menu-link,
.site-header .main-header-menu .menu-link:hover,
.site-header .main-header-menu .menu-link:focus,
.site-header .main-header-menu .current-menu-item > .menu-link,
.site-header .main-header-menu .current-menu-ancestor > .menu-link,
.ast-header-break-point .site-header .main-header-menu .menu-link,
.ast-header-break-point .site-header .main-header-menu .menu-item:hover > .menu-link,
.ast-header-break-point .site-header .main-header-menu .menu-link:focus,
.ast-header-break-point .site-header .main-header-menu .current-menu-item > .menu-link,
.ast-header-break-point .site-header .main-header-menu .current-menu-ancestor > .menu-link,
#ast-mobile-site-navigation .main-header-menu .menu-link,
#ast-mobile-site-navigation .main-header-menu .menu-item:hover > .menu-link,
#ast-mobile-site-navigation .main-header-menu .menu-link:focus,
#ast-mobile-site-navigation .main-header-menu .current-menu-item > .menu-link,
#ast-mobile-site-navigation .main-header-menu .current-menu-ancestor > .menu-link {
	color: var(--ast-global-color-9);
}

/* Front-page carousel: edge-to-edge at every viewport width. */
.home .site-content > .ast-container,
.home .content-area,
.home .site-main,
.home .site-main > article,
.home .entry-content {
	max-width: none;
	width: 100%;
}

.home .site-content > .ast-container,
.home .site-main > article,
.home .entry-content {
	margin: 0;
	padding: 0;
}

.home.ast-plain-container #primary {
	margin-block: 0;
}

.home .entry-header {
	display: none;
}

.home .entry-content > .cb-carousel-block {
	--wp--custom--carousel-block--navigation-alignfull-color: #fff;
	--wp--custom--carousel-block--navigation-color: #fff;
	--wp--custom--carousel-block--navigation-hover-color: #fff;
	--wp--custom--carousel-block--navigation-sides-offset: max(1rem, calc((100vw - 1280px) / 2 + 1rem));
	--wp--custom--carousel-block--pagination-bottom: 1.25rem;
	--wp--custom--carousel-block--pagination-bullet-active-color: #fff;
	--wp--custom--carousel-block--pagination-bullet-inactive-color: #fff;
	background: #545a3f;
	margin: 0 calc(50% - 50vw) !important;
	max-width: none;
	width: 100vw;
}

.home .entry-content > .farrisvet-hero-carousel {
	background: #545a3f;
	margin: 0 calc(50% - 50vw);
	max-width: none;
	overflow: hidden;
	width: 100vw;
}

@supports (width: 100dvw) {
	.home .entry-content > .cb-carousel-block {
		margin-inline: calc(50% - 50dvw) !important;
		width: 100dvw;
	}

	.home .entry-content > .farrisvet-hero-carousel {
		margin-inline: calc(50% - 50dvw);
		width: 100dvw;
	}
}

.farrisvet-hero-carousel__track {
	aspect-ratio: 1672 / 941;
	margin-inline: auto;
	max-width: 1280px;
	position: relative;
}

.farrisvet-hero-carousel__slide {
	inset: 0;
	margin: 0;
	opacity: 0;
	position: absolute;
	transition: opacity 600ms ease;
}

.farrisvet-hero-carousel__slide.is-active {
	opacity: 1;
	z-index: 1;
}

.farrisvet-hero-carousel__slide img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.home .entry-content > .cb-carousel-block > .swiper {
	margin-inline: auto;
	max-width: 1280px;
}

.home .cb-carousel-block[data-cb-pagination="true"] .swiper-horizontal {
	margin-bottom: 0;
}

.home .cb-carousel-block .cb-button-prev {
	left: var(--wp--custom--carousel-block--navigation-sides-offset);
}

.home .cb-carousel-block .cb-button-next {
	right: var(--wp--custom--carousel-block--navigation-sides-offset);
}

.home .cb-carousel-block .cb-pagination.swiper-pagination-horizontal {
	bottom: var(--wp--custom--carousel-block--pagination-bottom);
	top: auto;
}

.home .cb-carousel-block .wp-block-image,
.home .cb-carousel-block .wp-block-image img {
	display: block;
	height: auto;
	margin: 0;
	width: 100%;
}

.home .cb-carousel-block .swiper-slide {
	background: #111;
}

/* Main homepage content moved from the former About Us page. */
.home .farrisvet-home-content {
	box-sizing: border-box;
	margin-inline: auto;
	max-width: 960px;
	padding: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 4vw, 3rem) !important;
	scroll-margin-top: 2rem;
}
h4 + p,
h4 + strong{
    margin-block-start: 6px!important;
}

.widget-title{
	margin-block-end: 0!important;
}

.home .farrisvet-home-content > :first-child {
	margin-top: 0;
}

.home .farrisvet-home-content > :last-child {
	margin-bottom: 0;
}

.home .farrisvet-home-content > h2 {
	font-size: 2rem;
}

.home .farrisvet-home-content h4 {
	font-size: 1.375rem;
}

/* Classic editorial drop cap for the opening paragraph. */
.home .farrisvet-home-content > p:first-of-type::first-letter {
	color: #545a3f;
	float: left;
	font-family: "Arial Black", sans-serif;
	font-size: 3.6em;
	font-weight: 1000;
	line-height: 0.78;
	margin: 0.1em 0.06em 0 -.03em;
}

.home .farrisvet-home-content .farrisvet-directions-link {
	align-items: center;
	background: #545a3f;
	border: 1px solid #aeb59a;
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 0.875em;
	font-weight: 600;
	line-height: 1;
	margin-top: 0.65rem;
	padding: 0.55em 0.9em;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.home .farrisvet-home-content .farrisvet-directions-link:hover,
.home .farrisvet-home-content .farrisvet-directions-link:focus {
	background: #656c4c;
	border-color: #d1d5c5;
	color: #fff;
}

.home .farrisvet-home-content .farrisvet-directions-link:focus-visible {
	outline: 2px solid #545a3f;
	outline-offset: 3px;
}

.home .farrisvet-hours-status {
	align-items: flex-start;
	background: rgb(255 255 255 / 24%);
	border: 1px solid rgb(84 90 63 / 24%);
	border-radius: 0.5rem;
	color: var(--ast-global-color-3, #334155);
	display: flex;
	flex-direction: column;
	font-size: 0.875rem;
	gap: 0.1rem;
	line-height: 1.35;
	margin-top: 0.8rem;
	padding: 0.5rem 0.65rem;
	width: fit-content;
}

.home .farrisvet-hours-status__dot {
	background: #8a593c;
	border-radius: 50%;
	flex: 0 0 0.55rem;
	height: 0.55rem;
	width: 0.55rem;
}

.home .farrisvet-hours-status__message {
	align-items: center;
	display: flex;
	gap: 0.45rem;
}

.home .farrisvet-hours-status__label {
	font-weight: 700;
	white-space: nowrap;
}

.home .farrisvet-hours-status__detail {
	display: block;
	margin-left: 1rem;
	white-space: nowrap;
}

.home .farrisvet-hours-status[data-state="open"] .farrisvet-hours-status__dot {
	background: #545a3f;
	box-shadow: 0 0 0 3px rgb(84 90 63 / 16%);
}

.home .farrisvet-hours-status[data-state="lunch"] .farrisvet-hours-status__dot {
	background: #9b7945;
	box-shadow: 0 0 0 3px rgb(155 121 69 / 14%);
}

/* Match the location map to the height of its neighboring clinic details. */
.home .farrisvet-home-content .wpgmza_map {
	height: 390px !important;
}

.home .farrisvet-map {
	align-items: center;
	background: #d8dacd;
	display: flex;
	height: 390px;
	justify-content: center;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.home .farrisvet-map iframe {
	border: 0;
	height: 100%;
	width: 100%;
}

.home .farrisvet-map__placeholder {
	color: var(--ast-global-color-3, #334155);
	padding: 1.5rem;
	text-align: center;
}

.home .farrisvet-map__placeholder p {
	margin: 0 0 0.75rem;
}

.home .farrisvet-map__load {
	background: #545a3f;
	border: 1px solid #aeb59a;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	padding: 0.6em 1em;
}

.home .farrisvet-map__load:hover,
.home .farrisvet-map__load:focus-visible {
	background: #656c4c;
}

@media (prefers-reduced-motion: reduce) {
	.home .cb-carousel-block .swiper-slide {
		transition-duration: 0ms !important;
	}

	.farrisvet-hero-carousel__slide {
		transition: none;
	}
}

/* Clinic information footer. */
.farrisvet-clinic-footer {
	background: var(--ast-global-color-11, #8a593c);
	color: #fff;
	padding: clamp(2.5rem, 5vw, 4.5rem) 1.5rem;
	text-align: center;
}

.farrisvet-clinic-footer__inner {
	display: grid;
	gap: clamp(2rem, 4vw, 4rem);
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
	margin-inline: auto;
	max-width: 1280px;
}

.farrisvet-clinic-footer__section h2,
.farrisvet-clinic-footer__section .widget-title {
	color: inherit;
	font-size: clamp(1.25rem, 1.6vw, 1.55rem);
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 1.25rem;
}

.farrisvet-clinic-footer .widget_media_image {
	margin-bottom: 1.25rem;
}

.farrisvet-clinic-footer .widget_media_image a,
.farrisvet-clinic-footer .widget_media_image img {
	display: block;
	height: auto;
	margin-inline: auto;
	max-width: 190px;
}

.farrisvet-footer-widget + .farrisvet-footer-widget {
	margin-top: 0;
}

.farrisvet-clinic-footer__section,
.farrisvet-clinic-footer__section address,
.farrisvet-clinic-footer__section p,
.farrisvet-clinic-footer__phone {
	color: inherit;
	font-size: clamp(0.95rem, 1.15vw, 1.1rem);
	font-style: normal;
	line-height: 1.55;
	margin: 0;
}

.farrisvet-clinic-footer__hours p + p {
	margin-top: 0.35rem;
}

.farrisvet-clinic-footer .footer-hours strong {
	display: inline;
}

.farrisvet-clinic-footer .footer-phone a {
	color: inherit;
	text-decoration: none;
}

.farrisvet-clinic-footer .footer-phone a:hover,
.farrisvet-clinic-footer .footer-phone a:focus-visible {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.farrisvet-clinic-footer__hours strong,
.farrisvet-clinic-footer__hours span {
	display: block;
}

.farrisvet-clinic-footer__phone {
	display: inline-block;
	text-decoration: none;
}

.farrisvet-clinic-footer__phone:hover,
.farrisvet-clinic-footer__phone:focus-visible {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.farrisvet-footer-widget.widget_media_image{
	max-width: 129px!important;
	margin-block-end: 6px!important;
	MARGIN:0 auto;
}

@media (max-width: 781px) {
	.home .farrisvet-home-content {
		padding-inline: 20px !important;
	}

	.home .farrisvet-home-content .wp-block-columns > .wp-block-column:first-child {
		text-align: center;
	}

	.home .farrisvet-hours-status {
		margin-inline: auto;
	}

	.home .farrisvet-home-content .wpgmza_map {
		height: 350px !important;
	}

	.home .farrisvet-map {
		height: 350px;
	}

	.farrisvet-clinic-footer__inner {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 544px) {
	header .custom-logo-link img {
		max-width: 96px;
		width: 96px;
	}
}
