/**
 * IBIS block layouts — pages built in the block editor.
 *
 * Loaded only on pages that contain blocks (front end) and inside the block
 * editor (add_editor_style), so the legacy converted pages are untouched.
 * Sections come from the "IBIS sections" patterns (theme /patterns folder).
 */

@font-face {
	font-family: 'pfdintextpro-regular';
	font-style: normal;
	font-weight: normal;
	src: url('../../fonts/pfdintextpro-regular.woff') format('woff');
}

@font-face {
	font-family: 'pfdintextpro-bold';
	font-style: normal;
	font-weight: normal;
	src: url('../../fonts/pfdintextpro-bold.woff') format('woff');
}

/* ---- Editor canvas: match the site's typography ---- */

.editor-styles-wrapper {
	font-family: 'pfdintextpro-regular', sans-serif;
	font-size: 17px;
	color: #555;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper strong,
.editor-styles-wrapper b {
	font-family: 'pfdintextpro-bold', sans-serif;
	font-weight: normal;
	color: #555;
}

/* Theme heading stripe (main.css h1:after/h2:after) shown in the editor too */
.editor-styles-wrapper h1:after,
.editor-styles-wrapper h2:after {
	background: #fde428;
	border-radius: 3px;
	content: '';
	display: block;
	height: 6px;
	margin: 4px 0 0;
	width: 35px;
}

/* ---- Buttons ---- */

.wp-block-button__link,
.wp-block-button__link.wp-element-button {
	background-color: #00012a;
	border-radius: 0;
	color: #fff;
	font-family: 'pfdintextpro-bold', sans-serif;
	font-size: 15px;
	line-height: 1.3;
	padding: 14px 24px 12px;
	text-decoration: none !important;
	transition: background-color .2s;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
	background-color: #53cca5;
	color: #fff !important;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 2px solid #00012a;
	color: #00012a;
	padding: 12px 22px 10px;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: #00012a;
	color: #fff !important;
}

.wp-block-buttons {
	gap: 12px;
}

/* ---- Sections ---- */

.ibis-section {
	margin: 56px 0;
}

.ibis-section > :first-child {
	margin-top: 0;
}

.ibis-intro {
	font-size: 20px;
	line-height: 1.5;
}

/* Page header: navy band */
.ibis-hero {
	background: #00012a;
	color: #fff;
	margin: 0 0 56px;
	padding: 56px 48px;
}

.ibis-hero h1,
.ibis-hero h2,
.ibis-hero h3,
.ibis-hero p,
.ibis-hero strong {
	color: #fff;
}

.ibis-hero h1 {
	font-size: 44px;
	line-height: 1.15;
	margin: 0 0 12px;
}

.ibis-hero .ibis-hero__tagline {
	color: #53cca5;
	font-family: 'pfdintextpro-bold', sans-serif;
	font-size: 24px;
	margin: 0 0 20px;
}

.ibis-hero .wp-block-buttons {
	margin-top: 28px;
}

.ibis-hero .wp-block-button__link {
	background-color: #53cca5;
}

.ibis-hero .wp-block-button__link:hover {
	background-color: #3bb991;
}

.ibis-hero .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border-color: #fff;
	color: #fff;
}

.ibis-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: #fff;
	color: #00012a !important;
}

/* Event cards: two per row, one per row on phones */
.ibis-cards {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 28px 0;
}

.ibis-cards > * {
	margin: 0 !important;
}

.ibis-card {
	background: #f5f6f8;
	border: 1px solid #e2e5e9;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.ibis-card > .wp-block-image {
	margin: 0;
}

.ibis-card > .wp-block-image img {
	aspect-ratio: 16 / 9;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.ibis-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px 28px 28px;
}

.ibis-card__body > * {
	margin-top: 0;
}

.ibis-card__body h3 {
	font-size: 24px;
	margin: 0 0 10px;
}

.ibis-card__date {
	color: #3bb991;
	font-family: 'pfdintextpro-bold', sans-serif;
	margin: 0 0 2px;
}

.ibis-card__location {
	font-family: 'pfdintextpro-bold', sans-serif;
	margin: 0 0 14px;
}

.ibis-card__body .wp-block-buttons {
	margin-top: auto;
	padding-top: 10px;
}

/* Call-to-action band */
.ibis-cta {
	background: #00012a;
	color: #fff;
	margin: 56px 0;
	padding: 48px 40px;
	text-align: center;
}

.ibis-cta h2,
.ibis-cta h3,
.ibis-cta p,
.ibis-cta strong {
	color: #fff;
}

.ibis-cta .wp-block-buttons {
	justify-content: center;
	margin-top: 24px;
}

.ibis-cta .wp-block-button__link {
	background-color: #53cca5;
}

.ibis-cta .wp-block-button__link:hover {
	background-color: #3bb991;
}

.ibis-cta h1:after,
.ibis-cta h2:after,
.ibis-cta h3:after {
	margin-left: auto;
	margin-right: auto;
}

/* Ninja Forms submit button inside block pages: same look as the buttons above */
.nf-form-content input[type="button"],
.nf-form-content input[type="submit"] {
	background: #00012a;
	border: 0;
	border-radius: 0;
	color: #fff;
	cursor: pointer;
	font-family: 'pfdintextpro-bold', sans-serif;
	font-size: 15px;
	padding: 14px 24px 12px;
	transition: background-color .2s;
}

.nf-form-content input[type="button"]:hover,
.nf-form-content input[type="submit"]:hover {
	background: #53cca5;
	color: #fff;
}

/* Feature list with teal markers */
.ibis-feature-list {
	list-style: none;
	margin: 20px 0 28px;
	padding: 0;
}

.ibis-feature-list li {
	line-height: 1.6;
	margin: 0 0 12px;
	padding-left: 26px;
	position: relative;
}

.ibis-feature-list li:before {
	background: #53cca5;
	content: "";
	height: 10px;
	left: 0;
	position: absolute;
	top: 9px;
	width: 10px;
}

/* Light panel (e.g. around a form) */
.ibis-panel {
	background: #f5f6f8;
	border-top: 4px solid #53cca5;
	margin: 56px 0;
	padding: 40px;
}

@media (max-width: 767px) {
	.ibis-cards {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.ibis-hero {
		padding: 36px 24px;
	}

	.ibis-hero h1 {
		font-size: 32px;
	}

	.ibis-cta,
	.ibis-panel {
		padding: 32px 22px;
	}

	.ibis-section {
		margin: 40px 0;
	}
}
