/* ==========================================================================
   Owen's Drilling — Areas Served archive
   Brand rhythm: 11 / 22 / 33 / 44 / 55 / 66 / 111
   Palette: --primary #47809e  --primary-light #72b9d5  --secondary #6e9bae
            --secondary-light #aad4e2  --green-dark #364741  --grey-dark #404042
   ========================================================================== */

/* GeneratePress renders #content as a flex container, so the wrapper has to be
   told to fill it — otherwise it shrink-wraps to its widest child and the bands
   stop short of the viewport edge. */
.od-areas {
	width: 100%;
	flex: 1 1 100%;
	min-width: 0;
	--od-radius: 4px;
	--od-card-bg: rgba(255, 255, 255, 0.06);
	--od-card-border: rgba(255, 255, 255, 0.18);
}

/* Clears the fixed site header, same offset the single area pages use. */
.od-areas__spacer {
	background-color: var(--grey-dark);
	padding-top: 111px;
	padding-bottom: 33px;
}

.od-areas > section {
	width: 100%;
}

/* Full-bleed bands, 1111px of content, 33px gutters. */
.od-areas .od-inner {
	margin-left: auto;
	margin-right: auto;
	max-width: 1111px;
	padding: 66px 33px;
}

.od-areas .od-inner--narrow {
	max-width: 1111px;
}

.od-areas .od-eyebrow {
	display: block;
	margin: 0 0 11px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--secondary-light);
}

/* --------------------------------------------------------------- Hero --- */

.od-hero {
	position: relative;
	overflow: hidden;
	background-color: var(--grey-dark);
	background-image:
		radial-gradient(120% 90% at 82% 8%, rgba(71, 128, 158, 0.42) 0%, rgba(71, 128, 158, 0) 62%),
		linear-gradient(175deg, rgba(110, 155, 174, 0.22) 0%, rgba(64, 64, 66, 0) 55%);
	border-bottom: 11px solid var(--white, #fff);
	color: var(--white, #fff);
	text-align: center;
}

.od-hero__inner {
	padding-top: 66px;
	padding-bottom: 66px;
	text-shadow: 0 0 11px rgba(0, 0, 0, 0.65);
}

.od-hero h1 {
	margin: 0 0 22px;
	color: var(--white, #fff) !important;
	font-size: clamp(2rem, 4.5vw, 2.75rem);
	line-height: 1.15;
}

.od-hero__lede {
	margin: 0 auto;
	max-width: 760px;
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.86);
}





/* ---------------------------------------------------------------- Map --- */

.od-map-section {
	background-color: rgba(204, 204, 204, 0.3);
}

.od-map-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 22px;
	margin-bottom: 33px;
}

.od-map-section__head h2 {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.od-map-section__hint {
	margin: 0;
	font-size: 15px;
	color: var(--grey-dark);
	opacity: 0.8;
}

.od-map-frame {
	position: relative;
	border: 1px solid rgba(64, 64, 66, 0.18);
	border-top: 11px solid var(--primary);
	border-radius: var(--od-radius);
	overflow: hidden;
	background-color: #e8edf0;
	box-shadow: 0 18px 44px rgba(54, 71, 65, 0.18);
}

.od-map {
	width: 100%;
	height: clamp(520px, 80vh, 780px);
}

/* Fallback shown when the Maps API cannot load. */
.od-map-fallback {
	display: none;
	padding: 44px 22px;
	text-align: center;
	font-size: 16px;
	color: var(--grey-dark);
}

.od-map-frame.is-unavailable .od-map { display: none; }
.od-map-frame.is-unavailable .od-map-fallback { display: block; }

/* Google info window, brand-matched. */
.od-iw {
	min-width: 190px;
	padding: 4px 4px 2px;
	font-family: inherit;
}

.od-iw__title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 500;
	color: var(--green-dark);
}

.od-iw__meta {
	margin: 0 0 11px;
	font-size: 13px;
	color: var(--grey-dark);
	opacity: 0.8;
}

.od-iw__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--primary);
	text-decoration: none;
}

.od-iw__link:hover { color: var(--green-dark); }

/* --------------------------------------------------------------- Grid --- */

.od-grid-section {
	background-color: var(--primary);
	border-top: 11px solid var(--secondary-light);
	border-bottom: 11px solid var(--secondary-light);
	color: var(--white, #fff);
}

.od-grid-section h2 {
	margin: 0 0 11px;
	color: var(--white, #fff) !important;
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.od-grid-section__intro {
	margin: 0 0 44px;
	max-width: 720px;
	color: rgba(255, 255, 255, 0.85);
}

.od-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.od-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 33px 22px;
	background-color: var(--od-card-bg);
	border: 1px solid var(--od-card-border);
	border-radius: var(--od-radius);
	color: var(--white, #fff);
	text-decoration: none;
	transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out,
		border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.od-card:hover,
.od-card:focus-visible,
.od-card.is-active {
	transform: translateY(-4px);
	background-color: rgba(255, 255, 255, 0.12);
	border-color: var(--secondary-light);
	box-shadow: 0 14px 33px rgba(0, 0, 0, 0.22);
	color: var(--white, #fff);
}

.od-card:focus-visible {
	outline: 2px solid var(--secondary-light);
	outline-offset: 3px;
}

.od-card__pin {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 22px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.16);
	transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.od-card__pin svg {
	width: 22px;
	height: 22px;
	fill: #ffffff;
	transition: fill 0.3s ease-in-out;
}

.od-card:hover .od-card__pin,
.od-card:focus-visible .od-card__pin,
.od-card.is-active .od-card__pin {
	background-color: var(--secondary-light);
	transform: translateY(-2px);
}

.od-card:hover .od-card__pin svg,
.od-card:focus-visible .od-card__pin svg,
.od-card.is-active .od-card__pin svg {
	fill: var(--primary);
}

.od-card__name {
	margin: 0 0 4px;
	color: var(--white, #fff) !important;
	font-size: 22px;
	line-height: 1.25;
}

.od-card__region {
	margin: 0 0 15px;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--secondary-light);
}

.od-card__nearby {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
}

.od-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	font-size: 15px;
	font-weight: 500;
	color: var(--white, #fff);
}

.od-card__cta svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
	transition: transform 0.3s ease-in-out;
}

.od-card:hover .od-card__cta svg,
.od-card:focus-visible .od-card__cta svg,
.od-card.is-active .od-card__cta svg {
	transform: translateX(4px);
}

/* ---------------------------------------------------------------- CTA --- */

.od-cta {
	background-color: var(--secondary);
	color: var(--white, #fff);
	text-align: center;
}

.od-cta__inner {
	padding-bottom: 55px;
}

.od-cta h2 {
	margin: 0 0 11px;
	color: var(--white, #fff) !important;
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.od-cta p {
	margin: 0 auto 33px;
	max-width: 620px;
	color: rgba(255, 255, 255, 0.9);
}

.od-cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 11px;
}

.od-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 33px;
	border: 1px solid transparent;
	border-radius: var(--od-radius);
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.3s ease-in-out;
}

.od-btn--primary {
	background-color: var(--grey-dark);
	border-color: var(--grey-dark);
	color: var(--white, #fff);
}

.od-btn--primary:hover,
.od-btn--primary:focus-visible {
	background-color: var(--green-dark);
	border-color: var(--green-dark);
	color: var(--white, #fff);
}

.od-btn--ghost {
	background-color: transparent;
	border-color: rgba(255, 255, 255, 0.6);
	color: var(--white, #fff);
}

.od-btn--ghost:hover,
.od-btn--ghost:focus-visible {
	background-color: rgba(255, 255, 255, 0.14);
	border-color: var(--white, #fff);
	color: var(--white, #fff);
}

/* -------------------------------------------------------- Breakpoints --- */

@media (max-width: 1024px) {
	.od-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
	.od-areas .od-inner { padding: 44px 33px; }
	.od-grid { grid-template-columns: 1fr; }
	.od-map-section__head { align-items: flex-start; }
}

@media (max-width: 480px) {
	.od-hero__lede { font-size: 16px; }
	.od-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.od-card,
	.od-card__pin,
	.od-card__pin svg,
	.od-card__cta svg,
	.od-btn { transition: none; }
	.od-card:hover,
	.od-card:focus-visible,
	.od-card.is-active { transform: none; }
}
