/*
Theme Name:  Hillcrest Farm Disc Golf
Description: Child theme for Divi 5. Holds the few things Divi can't manage itself
             (ACF JSON sync, Gravity Forms styling, small CSS refinements).
             Design tokens, presets, header/footer and page layouts live in Divi.
Author:      Lake Design
Author URI:  https://lakedesign.co
Template:    Divi
Version:     1.0.0
Text Domain: hillcrest
*/

/* Divi paints #main-content white; let the site background colour
   (Appearance → Customize → Colors) show through instead. */
#main-content {
	background-color: transparent;
}

/* ==========================================================================
   Course status (inc/status.php shortcodes). Colours are Divi global colours,
   so edits in the Variable Manager flow through.
   ========================================================================== */

/* Announcement bar ------------------------------------------------------- */
.hc-hello {
	background: var(--gcid-hc-alert);
	color: var(--gcid-body-color);
}
.hc-hello.is-brand {
	background: var(--gcid-secondary-color);
}
.hc-hello__inner {
	max-width: var(--gvid-hc-container);
	margin: 0 auto;
	padding: 6px var(--gvid-hc-gutter);
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 8px;
}
.hc-hello__body {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 18px;
	padding-left: 44px;
	text-align: center;
}
.hc-hello__text {
	margin: 0;
	padding: 0 !important;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}
.hc-hello__text svg {
	flex: 0 0 auto;
}
.hc-hello__text strong {
	font-weight: 800;
}
.hc-hello__link,
.hc-hello__link:hover {
	color: var(--gcid-body-color);
	font-size: 13px;
	font-weight: 800;
	font-stretch: 125%;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	padding: 10px 0;
}
.hc-hello__close {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 3px;
	color: var(--gcid-body-color);
	cursor: pointer;
}
@media (max-width: 767px) {
	.hc-hello__inner {
		padding: 4px 4px 4px 20px;
	}
	.hc-hello__body {
		justify-content: flex-start;
		padding-left: 0;
		text-align: left;
	}
	.hc-hello__text {
		align-items: flex-start;
		font-size: 14px;
	}
}

/* Status pills ----------------------------------------------------------- */
.hc-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	font-stretch: 125%;
	letter-spacing: 0.12em;
	line-height: 1.6;
	text-transform: uppercase;
	white-space: nowrap;
}
.hc-pill.is-open {
	background: var(--gcid-hc-open-bg);
	color: var(--gcid-hc-open-text);
}
.hc-pill.is-closed {
	background: var(--gcid-hc-closed-bg);
	color: var(--gcid-hc-closed-text);
}
.hc-pill.has-shadow {
	padding: 7px 13px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.hc-pill__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}
.hc-pill.is-open .hc-pill__dot {
	background: var(--gcid-hc-open-dot);
	box-shadow: 0 0 0 3px rgba(47, 143, 47, 0.22);
}
.hc-pill.has-shadow .hc-pill__dot {
	box-shadow: none;
}
.hc-pill.is-closed .hc-pill__dot {
	background: var(--gcid-hc-closed-dot);
}
.hc-status-line.is-closed {
	font-weight: 600;
	color: var(--gcid-hc-closed-note);
}
.hc-status-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #7be07b;
	box-shadow: 0 0 0 4px rgba(123, 224, 123, 0.25);
}
.hc-status-dot.is-closed {
	background: #f59a55;
	box-shadow: 0 0 0 4px rgba(245, 154, 85, 0.3);
}

/* The mobile menu ([hc_mobile_nav]) is styled in assets/css/mobile-nav.css. */

/* Announcement bar — mobile: one flowing line with an inline link. */
@media (max-width: 767px) {
	.hc-hello__body {
		display: block;
	}
	.hc-hello__text {
		display: inline;
	}
	.hc-hello__text svg {
		margin-right: 8px;
		vertical-align: -3px;
	}
	.hc-hello__link,
	.hc-hello__link:hover {
		display: inline;
		margin-left: 4px;
		padding: 0;
		font-size: 14px;
		font-stretch: 100%;
		letter-spacing: 0;
		text-transform: none;
		text-underline-offset: 3px;
	}
}

/* Overhanging logo sits above the open mobile menu panel. */
.hc-header .hc-logo {
	position: relative;
	z-index: 3;
}

/* Homepage status widget ([hc_status_widget]) ---------------------------- */
.hc-status-widget {
	position: relative;
	color: var(--gcid-body-color);
}
.hc-status-widget__heading {
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
}
.hc-status-widget__button {
	width: 100%;
	min-height: 72px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 14px 14px 20px;
	box-sizing: border-box;
	background: var(--gcid-primary-color);
	color: var(--gcid-hc-cream);
	border-radius: 4px;
	box-shadow: 0 18px 40px -16px rgba(8, 26, 12, 0.75), 0 2px 6px rgba(8, 26, 12, 0.2);
	cursor: pointer;
	text-align: left;
}
.hc-status-widget.is-open .hc-status-widget__button {
	border-radius: 4px 4px 0 0;
}
.hc-status-widget .hc-status-dot {
	flex: 0 0 auto;
}
.hc-status-widget__label {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.hc-status-widget__title {
	font-family: "Ultra", Georgia, serif;
	font-size: 21px;
	line-height: 1.1;
}
.hc-status-widget__summary {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--gcid-hc-on-dark-sub);
}
.hc-status-widget__action {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 800;
	font-stretch: 125%;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gcid-hc-gold-light);
}
.hc-status-widget__chevron {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--gcid-secondary-color);
	color: var(--gcid-hc-forest);
}
.hc-status-widget__chevron svg {
	transition: transform 0.25s ease;
}
.hc-status-widget.is-open .hc-status-widget__chevron svg {
	transform: rotate(180deg);
}
.hc-status-widget .hc-when-open,
.hc-status-widget.is-open .hc-when-closed {
	display: none;
}
.hc-status-widget.is-open .hc-when-open {
	display: inline;
}
.hc-status-widget__panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease;
	background: var(--gcid-hc-card);
	border-radius: 0 0 4px 4px;
	overflow: hidden;
}
.hc-status-widget.is-open .hc-status-widget__panel {
	grid-template-rows: 1fr;
	box-shadow: 0 30px 60px -24px rgba(8, 26, 12, 0.6), 0 2px 6px rgba(8, 26, 12, 0.18);
}
.hc-status-widget__panel-inner {
	min-height: 0;
	overflow: hidden;
}
.hc-status-widget__panel-body {
	padding: 2px 22px 18px;
}
.hc-status-widget__panel-body > * + * {
	border-top: 1px solid var(--gcid-hc-line);
}
.hc-status-widget__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
}
.hc-status-widget__course p {
	margin: 0;
	padding: 0 !important;
}
.hc-status-widget__name {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}
.hc-status-widget__sub {
	font-size: 14px;
	line-height: 1.4;
	color: var(--gcid-hc-muted);
}
.hc-status-widget__foot {
	margin: 0;
	padding: 14px 0 0 !important;
	font-size: 14px;
	line-height: 1.5;
	color: var(--gcid-hc-muted);
}

/* Hexagon shape for badges and bullets (add CSS class "hc-hex" to a module). */
.hc-hex {
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hc-hex p {
	padding: 0 !important;
}
/* The widget's button sits inside an h2 (for screen readers): keep body type. */
.hc-status-widget .hc-status-widget__heading,
.hc-status-widget .hc-status-widget__summary,
.hc-status-widget .hc-status-widget__action,
.hc-status-widget__panel {
	font-family: "Archivo", sans-serif;
	line-height: inherit;
	letter-spacing: normal;
	text-transform: none;
	color: inherit;
}
.hc-status-widget .hc-status-widget__summary {
	line-height: 1.35;
}
.hc-status-widget .hc-status-widget__action {
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gcid-hc-gold-light);
}

@media (max-width: 767px) {
	/* Draft 2 mobile: same bar as desktop, and the panel opens in the flow
	   (pushes the page down) instead of floating over the next section. */
	.hc-status-widget__button {
		padding: 14px 14px 14px 18px;
	}
	.hc-status-widget__action {
		gap: 8px;
	}
	.hc-status-widget__title {
		font-size: 20px;
	}
	.hc-status-widget__panel {
		position: static;
	}
	.hc-status-widget__panel-body {
		padding: 2px 18px 16px;
	}
	.hc-status-widget__row {
		gap: 14px;
		padding: 16px 0;
	}
	.hc-status-widget__name {
		font-size: 17px;
	}
	.hc-status-widget__foot {
		padding-top: 12px !important;
	}
}

/* Divi adds 10px below every heading; the design's spacing comes from the
   layout gaps instead. */
.et_pb_heading h1,
.et_pb_heading h2,
.et_pb_heading h3,
.et_pb_heading h4,
.et_pb_heading h5,
.et_pb_heading h6 {
	padding-bottom: 0;
}
