/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.3
*/

/* COAST foundation - editable in the child theme. */
:root {
	--coast-navy: #152a59;
	--coast-blue: #004280;
	--coast-cyan: #00b2cd;
	--coast-cyan-bright: #01bedb;
	--coast-teal: #0c6b6d;
	--coast-light: #eefafc;
	--coast-soft: #f7f7f8;
	--coast-ink: #1c2744;
	--coast-charcoal: #3b3839;
	--coast-border: #d9dde2;
	--coast-focus: #f6d64a;
	--coast-page-max: 1640px;
	--coast-content-max: 1140px;
	--coast-copy-max: 760px;
	--coast-page-gutter: clamp(1.25rem, 5vw, 4.375rem);
	--coast-radius: 8px;
	--coast-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
	--coast-font: Roboto, Arial, sans-serif;
}

body {
	text-rendering: optimizeLegibility;
}

.coast-page,
.coast-homepage {
	color: var(--coast-navy);
	font-family: var(--coast-font);
	line-height: 1.45;
	max-width: 100%;
	overflow-x: clip;
	width: 100%;
}

.coast-container {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--coast-page-max);
	padding-left: var(--coast-page-gutter);
	padding-right: var(--coast-page-gutter);
	width: 100%;
}

.coast-container--content {
	max-width: calc(var(--coast-content-max) + (var(--coast-page-gutter) * 2));
}

.coast-section {
	padding-bottom: clamp(3rem, 6vw, 5.5rem);
	padding-top: clamp(3rem, 6vw, 5.5rem);
}

.coast-prose {
	max-width: var(--coast-copy-max);
}

.coast-prose > *:first-child {
	margin-top: 0;
}

.coast-prose > *:last-child {
	margin-bottom: 0;
}

.coast-page h1,
.coast-page h2,
.coast-page h3,
.coast-page h4 {
	color: var(--coast-navy);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.12;
}

.coast-button {
	align-items: center;
	background: var(--coast-blue);
	border: 2px solid var(--coast-blue);
	border-radius: var(--coast-radius);
	color: #fff;
	display: inline-flex;
	font-weight: 800;
	gap: 0.55rem;
	justify-content: center;
	min-height: 48px;
	padding: 0.8rem 1.15rem;
	text-decoration: none;
}

.coast-button:hover,
.coast-button:focus-visible {
	background: var(--coast-cyan);
	border-color: var(--coast-cyan);
	color: #fff;
}

.coast-button--outline:hover,
.coast-button--outline:focus-visible {
	background: #fff;
	border-color: var(--coast-cyan);
	color: var(--coast-blue);
}

.coast-card {
	background: #fff;
	border-radius: var(--coast-radius);
	box-shadow: var(--coast-shadow);
	overflow: hidden;
}

.coast-grid {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.coast-media {
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.coast-sr-only {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.coast-table-scroll {
	-webkit-overflow-scrolling: touch;
	overflow-x: auto;
}

.coast-table-scroll:focus-visible {
	outline: 3px solid var(--coast-cyan-bright);
	outline-offset: 3px;
}

@media (max-width: 760px) {
	.coast-container {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
}

/* COAST homepage styles. */

body.coast-homepage-page,
body.coast-homepage-page .site,
body.coast-homepage-page .site-content,
body.coast-homepage-page .site-footer {
	max-width: 100%;
	overflow-x: hidden;
}

body.coast-homepage-page {
	background-color: #152a59;
}

.site-header .inside-header {
	box-sizing: border-box;
	max-width: var(--coast-page-max);
	padding-left: 0;
	padding-right: 0;
	width: min(100% - 96px, var(--coast-page-max));
}

@media (min-width: 1100px) {
	.site-header .inside-header {
		gap: clamp(3rem, 6vw, 7rem);
	}

	#site-navigation {
		flex: 1 1 auto;
	}

	#site-navigation .inside-navigation,
	#site-navigation .main-nav,
	#site-navigation .main-nav > ul {
		width: 100%;
	}

	#site-navigation .main-nav > ul {
		display: flex;
		justify-content: space-between;
	}
}

.main-navigation .main-nav ul li a {
	font-size: 20px;
	font-weight: 500;
}

.main-navigation .dropdown-menu-toggle,
.main-navigation .dropdown-menu-toggle .gp-icon,
.main-navigation .dropdown-menu-toggle svg {
	color: #01BEDB;
	fill: #01BEDB;
}

.main-navigation .dropdown-menu-toggle svg {
	stroke: #01BEDB;
	stroke-linejoin: round;
	stroke-width: 42px;
	transform: scale(1.18);
	transform-origin: center;
}

body.coast-homepage-page .site-content,
body.coast-homepage-page .content-area,
body.coast-homepage-page .site-main,
body.coast-homepage-page .inside-article,
body.coast-homepage-page .entry-content {
	margin: 0;
	max-width: none;
	padding: 0;
	width: 100%;
}

body.coast-homepage-page #primary,
body.coast-homepage-page .content-area {
	float: none;
	width: 100%;
}

body.coast-homepage-page #right-sidebar,
body.coast-homepage-page #left-sidebar,
body.coast-homepage-page .widget-area.sidebar {
	display: none;
}

.coast-page *,
.coast-page *::before,
.coast-page *::after,
.coast-homepage *,
.coast-homepage *::before,
.coast-homepage *::after {
	box-sizing: border-box;
}

.coast-page img,
.coast-homepage img {
	height: auto;
	max-width: 100%;
}

.coast-page a,
.coast-homepage a {
	color: inherit;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

.coast-page a:focus-visible,
.coast-page button:focus-visible,
.coast-page [tabindex]:focus-visible,
.coast-homepage a:focus-visible {
	outline: 3px solid var(--coast-focus);
	outline-offset: 4px;
}

.coast-home-hero {
	background-image: url("/wp-content/plugins/coast-transit/assets/homepage/hero-no-blur.png");
	background-position: center;
	background-size: cover;
	min-height: clamp(360px, 42vw, 630px);
}

.coast-home-hero__inner {
	align-items: center;
	display: flex;
	justify-content: flex-end;
	margin: 0 auto;
	max-width: 1300px;
	min-height: clamp(360px, 42vw, 630px);
	padding: 3rem clamp(1.25rem, 3vw, 2.25rem) 3rem clamp(1.25rem, 4vw, 3rem);
}

.coast-home-hero__panel {
	background: rgba(239, 250, 252, 0.54);
	backdrop-filter: blur(7px);
	border-radius: 16px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
	max-width: 740px;
	padding: clamp(1.3rem, 2.4vw, 2.35rem) clamp(2rem, 4.8vw, 4.4rem);
}

.coast-home-hero h1 {
	color: #fff;
	font-size: clamp(2rem, 3.45vw, 3.65rem);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.06;
	margin: 0;
	text-shadow: 0 3px 8px rgba(0, 0, 0, 0.52);
}

.coast-home-services {
	background: #fff;
	margin-top: clamp(1.75rem, 4vw, 3rem);
	padding: 0 1.25rem;
	position: relative;
	z-index: 2;
}

.coast-service-panel {
	background: #eff1f4;
	border-radius: 10px;
	box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
	margin: 0 auto;
	max-width: 1080px;
	overflow: hidden;
}

.coast-service-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coast-homepage .coast-service-tab {
	align-items: center;
	background: var(--coast-blue);
	color: #fff;
	display: flex;
	font-weight: 800;
	gap: 0.6rem;
	justify-content: center;
	min-height: 86px;
	padding: 1rem;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.coast-service-tab img {
	height: 28px;
	width: auto;
}

.coast-homepage .coast-service-tab span,
.coast-homepage .coast-home-button span,
.coast-homepage .coast-app-promo span,
.coast-homepage .coast-app-promo small {
	color: #fff;
}

.coast-service-tab.is-active {
	background: var(--coast-cyan);
	position: relative;
}

.coast-service-tab.is-active::after {
	border-left: 18px solid transparent;
	border-right: 18px solid transparent;
	border-top: 18px solid var(--coast-cyan);
	bottom: -18px;
	content: "";
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
}

.coast-service-grid {
	display: grid;
	gap: clamp(1rem, 3vw, 2rem);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: clamp(2.25rem, 5vw, 3rem);
	position: relative;
}

.coast-service-empty {
	background: #eff1f4;
	min-height: clamp(250px, 27vw, 360px);
}

.coast-homepage .coast-service-card {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
	color: var(--coast-blue);
	display: grid;
	font-weight: 800;
	min-height: 180px;
	overflow: hidden;
	text-align: center;
	text-decoration: none;
}

.coast-service-card img {
	aspect-ratio: 1.9 / 1;
	background: #eff1f4;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.coast-service-card span {
	align-items: center;
	display: flex;
	justify-content: center;
	line-height: 1.1;
	min-height: 68px;
	padding: 0.8rem 1rem;
}

.coast-homepage .coast-service-card:hover,
.coast-homepage .coast-service-card:focus-visible {
	background: var(--coast-teal);
	color: #fff;
}

.coast-service-watermark {
	align-self: center;
	justify-self: center;
	max-width: 225px;
	opacity: 0.42;
	width: 80%;
}

.coast-home-quick-links,
.coast-home-important {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	margin: 0 auto;
	max-width: 1120px;
	padding: clamp(1.75rem, 4vw, 3rem) 1.25rem;
}

.coast-homepage .coast-home-button {
	align-items: center;
	background: var(--coast-blue);
	border: 2px solid var(--coast-blue);
	border-radius: 8px;
	color: #fff;
	display: inline-flex;
	font-size: 0.95rem;
	font-weight: 800;
	gap: 0.55rem;
	justify-content: center;
	min-height: 48px;
	padding: 0.8rem 1.15rem;
	text-decoration: none;
}

.coast-home-button img {
	flex: 0 0 auto;
	height: 1.45rem;
	width: 1.45rem;
}

.coast-homepage .coast-home-button:hover,
.coast-homepage .coast-home-button:focus-visible {
	background: var(--coast-cyan);
	border-color: var(--coast-cyan);
	color: #fff;
}

.coast-home-intro {
	background: var(--coast-navy);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	margin-top: 1rem;
}

.coast-home-intro__image img {
	display: block;
	height: 100%;
	min-height: 390px;
	object-fit: cover;
	width: 100%;
}

.coast-home-intro__copy {
	align-items: flex-start;
	background: var(--coast-navy);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(2rem, 6vw, 5.5rem);
}

.coast-home-intro__copy h2 {
	color: inherit;
	font-size: clamp(1.35rem, 2.5vw, 2.05rem);
	font-weight: 800;
	line-height: 1.18;
	margin: 0 0 1.75rem;
	max-width: 540px;
}

.coast-home-intro__copy h2::after {
	background: var(--coast-cyan);
	content: "";
	display: block;
	height: 5px;
	margin-top: 1.3rem;
	width: 78px;
}

.coast-home-intro__copy p {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0;
	max-width: 560px;
}

.coast-home-features {
	background: #fff url("/wp-content/plugins/coast-transit/assets/homepage/coast-watermark-bg.png") center / cover no-repeat;
	padding: clamp(2.5rem, 6vw, 5rem) 1.25rem;
}

.coast-home-features__inner {
	display: grid;
	gap: 2rem clamp(2.5rem, 5vw, 5rem);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0 auto;
	max-width: 1180px;
}

.coast-feature-link {
	align-items: center;
	display: grid;
	gap: 1.1rem;
	grid-template-columns: 170px minmax(0, 1fr);
	text-decoration: none;
}

.coast-feature-link img {
	display: block;
	height: auto;
	object-fit: cover;
	width: 170px;
}

.coast-feature-link strong {
	color: var(--coast-navy);
	display: block;
	font-size: 1.15rem;
	line-height: 1.2;
	margin-bottom: 0.35rem;
}

.coast-feature-link small {
	color: #1c2744;
	display: block;
	font-size: 0.95rem;
	line-height: 1.35;
}

.coast-home-updates {
	background: var(--coast-light) url("/wp-content/plugins/coast-transit/assets/homepage/light-blue-bg.png") center / cover no-repeat;
	padding: clamp(3rem, 6vw, 5.2rem) 1.25rem;
}

.coast-home-updates__inner {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
	grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.8fr);
	margin: 0 auto;
	max-width: 1140px;
}

.coast-home-calendar,
.coast-home-news article,
.coast-homepage .coast-app-promo {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

.coast-home-calendar {
	aspect-ratio: 1000 / 648;
	margin: 0;
	min-height: 320px;
	overflow: hidden;
	padding: 0;
}

.coast-home-calendar img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.coast-home-news {
	display: grid;
	gap: clamp(1.5rem, 4vw, 2.5rem);
}

.coast-home-news article {
	padding: clamp(1.5rem, 4vw, 2rem);
}

.coast-home-news h2 {
	color: var(--coast-navy);
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	line-height: 1.2;
	margin: 0 0 0.75rem;
}

.coast-home-news p {
	margin: 0;
}

.coast-homepage .coast-app-promo {
	aspect-ratio: 667 / 340;
	background: var(--coast-blue) url("/wp-content/plugins/coast-transit/assets/homepage/transit-app-promo.png") center / cover no-repeat;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 180px;
	padding: 2rem;
	text-decoration: none;
}

.coast-homepage .coast-app-promo span {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.coast-homepage .coast-app-promo small {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.coast-home-important {
	background: #fff;
	padding-bottom: clamp(1rem, 2vw, 1.75rem);
	padding-top: clamp(2.5rem, 5vw, 4rem);
}

.site-footer .gb-element-7beebbd0 {
	background-color: #152a59;
	/* Fill the PNG's transparent edges without cropping its waves. */
	background-image: var(--inline-bg-image), linear-gradient(to bottom, #fff 0, #fff 7vw, #152a59 7vw, #152a59 100%) !important;
	background-position: center top;
	background-repeat: no-repeat;
	background-size: 100% auto, 100% 100%;
}

.site-footer {
	background-color: #152a59;
}

.site-footer .coast-footer {
	background-color: transparent;
}

.site-footer .coast-footer__inner {
	padding-bottom: 0;
	padding-top: max(90px, calc(7vw + 3rem));
}

.site-footer .coast-footer__legal {
	margin-bottom: 0;
	padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

body.coast-homepage-page .coast-footer__button {
	border: 6px solid transparent !important;
	box-shadow: none !important;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

body.coast-homepage-page .coast-footer a.coast-footer__button:hover,
body.coast-homepage-page .coast-footer a.coast-footer__button:focus-visible {
	background: #fff !important;
	border-color: #00b2cd !important;
	box-shadow: none !important;
	color: #004280 !important;
}

@media (min-width: 901px) {
	.coast-home-intro__image img {
		max-width: none;
		width: calc(100% + 1px);
	}

	.coast-feature-link strong {
		white-space: nowrap;
	}

	.coast-home-quick-links,
	.coast-home-important {
		flex-wrap: nowrap;
	}

	.coast-home-important .coast-home-button {
		font-size: 0.82rem;
		gap: 0.42rem;
		padding-left: 0.85rem;
		padding-right: 0.85rem;
		white-space: nowrap;
	}
}

@media (max-width: 900px) {
	.coast-service-tabs,
	.coast-service-grid,
	.coast-home-intro,
	.coast-home-features__inner,
	.coast-home-updates__inner {
		grid-template-columns: 1fr;
	}

	.coast-service-tab.is-active::after,
	.coast-service-watermark {
		display: none;
	}

	.coast-home-hero__inner {
		justify-content: center;
	}

	.coast-home-hero__panel {
		max-width: 100%;
	}
}

@media (max-width: 640px) {
	.coast-home-hero,
	.coast-home-hero__inner {
		min-height: 430px;
	}

	.coast-home-hero__inner {
		align-items: flex-end;
		padding-bottom: 2rem;
	}

	.coast-service-panel {
		border-radius: 0;
		margin-inline: -1.25rem;
	}

	.coast-home-button {
		width: 100%;
	}

	.coast-feature-link {
		grid-template-columns: 118px minmax(0, 1fr);
	}

	.coast-feature-link img {
		width: 118px;
	}

}

@media (prefers-reduced-motion: no-preference) {
	.coast-homepage .coast-service-card,
	.coast-homepage .coast-home-button,
	.coast-feature-link,
	.coast-homepage .coast-app-promo {
		transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
	}

	.coast-homepage .coast-service-card:hover,
	.coast-homepage .coast-home-button:hover,
	.coast-feature-link:hover,
	.coast-homepage .coast-app-promo:hover {
		transform: translateY(-2px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.coast-page *,
	.coast-page *::before,
	.coast-page *::after,
	.coast-homepage *,
	.coast-homepage *::before,
	.coast-homepage *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
