/* Elementor pages: the home page, the About pages and their forms. Layout and
   colour live in Elementor (kit globals); this covers what its controls cannot
   reach — the headline period, the events strip, and WPForms. */

/* Kepler headline + Redwood period, per the style guide. */
.owb-period {
	color: var(--owb-redwood);
}

/* ---------------------------------------------------------------- home */
.owb-pull {
	color: var(--owb-main);
	font-family: var(--owb-font-headline) !important;
	font-size: 28px;
	font-style: italic;
	font-weight: 700;
	line-height: 1.3;
	margin-top: 8px;
}

.owb-photo-credit {
	align-self: flex-end;
	opacity: .75;
}

.owb-photo-credit p {
	margin: 0;
}

.owb-region-card {
	border-top: 3px solid var(--owb-redwood);
	transition: box-shadow .25s ease, transform .25s ease;
}

.owb-region-card:hover {
	box-shadow: 0 18px 40px rgba(0, 4, 41, .1);
	transform: translateY(-4px);
}

.owb-arrow-link {
	color: var(--owb-main) !important;
	font-family: var(--owb-font-secondary) !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 2.2;
	text-decoration: none;
	text-transform: uppercase;
}

.owb-arrow-link::after {
	color: var(--owb-redwood);
	content: " \2192";
	display: inline-block;
	transition: transform .2s ease;
}

.owb-arrow-link:hover::after,
.owb-arrow-link:focus-visible::after {
	transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
	.owb-region-card,
	.owb-arrow-link::after {
		transition: none;
	}

	.owb-region-card:hover {
		transform: none;
	}
}

/* ---------------------------------------------------------------- title band */
/* Secondary pages: a photo (or Midnight) band whose foot carries the title
   strip. The strip's colours and opacity are page CSS variables written by
   Elementor's Page Settings (inc/header-options.php); the fallbacks here are
   Midnight at full strength. */

/* Content-box, so the band's height in Elementor is the photo below the
   header: the header offset (header.css) is padding on top of it. */
.elementor .owb-title-band {
	box-sizing: content-box;
}

.owb-title-strip {
	background-color: color-mix(in srgb, var(--owb-strip-bg, var(--owb-midnight)) var(--owb-strip-opacity, 100%), transparent);
}

.owb-title-strip .elementor-heading-title {
	color: var(--owb-strip-title, #fff) !important;
}

.owb-title-strip .elementor-widget-text-editor,
.owb-title-strip .elementor-widget-text-editor p {
	color: var(--owb-strip-text, var(--owb-barrel)) !important;
	margin: 0;
}

/* ---------------------------------------------------------------- events */
.owb-upcoming {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.owb-upcoming-item {
	margin: 0;
}

/* Event art is often a logo or poster: show all of it. */
.owb-upcoming .owb-event-card-media {
	background: #fff;
	padding: 10px;
}

.owb-upcoming .owb-event-card-media img {
	object-fit: contain;
}

.owb-upcoming-empty {
	color: var(--owb-muted);
}

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

@media (max-width: 680px) {
	.owb-upcoming {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------------------- forms */
.owb-form-section .wpforms-container {
	margin: 0;
}

.owb-form-section .wpforms-field-label,
.owb-form-section .wpforms-field-sublabel {
	color: var(--owb-main);
	font-family: var(--owb-font-secondary) !important;
}

.owb-form-section .wpforms-field-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.owb-form-section .wpforms-required-label {
	color: var(--owb-redwood);
}

.owb-form-section input[type="text"],
.owb-form-section input[type="email"],
.owb-form-section textarea {
	background: #fff;
	border: 1px solid var(--owb-line);
	border-radius: 0;
	color: var(--owb-main);
	font-size: 16px;
	max-width: 100%;
	padding: 12px 14px;
}

.owb-form-section input[type="text"]:focus,
.owb-form-section input[type="email"]:focus,
.owb-form-section textarea:focus {
	border-color: var(--owb-main);
	box-shadow: none;
	outline: 2px solid var(--owb-sky);
	outline-offset: 0;
}

/* WPForms paints its button from these variables, with selectors that
   outrank a plain class; setting the variables is what sticks. */
.owb-form-section .wpforms-container {
	--wpforms-button-background-color: var(--owb-redwood);
	--wpforms-button-border-color: var(--owb-redwood);
	--wpforms-button-text-color: #fff;
	--wpforms-button-border-radius: 0;
	--wpforms-button-border-style: solid;
	--wpforms-button-border-size: 2px;
	--wpforms-button-size-font-size: 13px;
	--wpforms-button-size-height: 52px;
	--wpforms-button-size-padding-h: 32px;
}

.owb-form-section div.wpforms-container-full button[type="submit"] {
	font-family: var(--owb-font-secondary) !important;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.owb-form-section div.wpforms-container-full button[type="submit"]:hover,
.owb-form-section div.wpforms-container-full button[type="submit"]:focus-visible {
	background: #fff;
	color: var(--owb-redwood);
}

/* On a Midnight band (the home page's newsletter strip). */
.owb-form-section--dark .wpforms-field-label,
.owb-form-section--dark .wpforms-field-sublabel,
.owb-form-section--dark .wpforms-confirmation-container-full p {
	color: var(--owb-barrel) !important;
}

.owb-form-section--dark .wpforms-confirmation-container-full {
	background: transparent;
	border: 1px solid rgba(242, 237, 233, .3);
}
