/*
Theme Name: Sint Maarten Foundation Child
Theme URI: https://wordpress.org/themes/sint-maarten-foundation/
Description: Child theme of Sint Maarten Foundation. Customize styles and templates here without modifying the parent theme.
Author: Sint Maarten Foundation
Template: sint-maarten-foundation
Version: 1.0.0
Requires at least: 4.4
Requires PHP: 5.2.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sint-maarten-foundation-child
*/

/* Reset leftover parent layout wrappers. */
.site {
	background: transparent;
}

/* Ensure homepage sections sit flush under the sticky header. */
#main {
	display: block;
}

/* Default page/post content readability within the custom design. */
.entry-content {
	color: var(--charcoal, #242424);
	font-family: var(--font-sans, Inter, system-ui, sans-serif);
	font-size: 1.05rem;
	line-height: 1.7;
	max-width: 48rem;
}

.entry-content a {
	color: var(--deep-gold, #946a20);
}

.section-heading a {
	color: inherit;
	text-decoration: none;
}

.section-heading a:hover {
	color: var(--deep-gold, #946a20);
}

/* Neutralize parent `.dropdown-toggle` absolute positioning if it ever loads. */
.site-header .dropdown-toggle,
.site-header .nav-link.dropdown-toggle,
.site-header .navbar-nav .nav-link.dropdown-toggle {
	position: static;
	right: auto;
	top: auto;
	width: auto;
	height: auto;
	display: block;
	background: transparent;
	border: 0;
	padding: 0.55rem 0.45rem;
	color: inherit;
	float: none;
}

.site-header .dropdown-toggle::after,
.site-header .menu-item-has-children > a::after {
	font-family: inherit;
	content: "";
	border: 0;
	border-top: 0.3em solid;
	border-right: 0.3em solid transparent;
	border-left: 0.3em solid transparent;
	display: inline-block;
	margin-left: 0.35em;
	vertical-align: 0.15em;
	width: 0;
	height: 0;
	position: static;
}

.site-header .navbar-nav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-header .navbar-nav > .nav-item {
	float: none;
	border: 0;
	position: relative;
}

.site-header .navbar-nav .dropdown-menu {
	position: absolute;
	left: 0;
	top: 100%;
	float: none;
	display: none;
	margin: 0;
}

.site-header .navbar-nav .dropdown-menu.show {
	display: block;
}

@media (min-width: 1400px) {
	.site-header .navbar-nav {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
	}

	.site-header .navbar-nav > .nav-item {
		display: flex;
		align-items: center;
	}
}

/* Hero/join first paint must not depend on footer JS (fatal errors hide .reveal). */
.hero .reveal,
.join-panel.reveal {
	opacity: 1;
	transform: none;
}

/* Fluent Form inside Join Community panel — match original Join design */
.smf-fluent-form {
	margin-top: 0.5rem;
	position: relative;
}

.smf-fluent-form .frm-fluent-form,
.smf-fluent-form .fluentform {
	margin: 0;
}

.smf-fluent-form .ff-t-container {
	gap: 0 1rem;
	margin-bottom: 0;
}

.smf-fluent-form .ff-el-group {
	margin-bottom: 1rem;
}

.smf-fluent-form .ff-el-input--label label {
	font-family: var(--font-sans, system-ui, sans-serif);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--muted, #6b6b6b);
	margin-bottom: 0.35rem;
}

.smf-fluent-form .ff-el-form-control {
	font-family: var(--font-sans, system-ui, sans-serif);
	border: 1px solid #d9d5cc;
	border-radius: 3px;
	min-height: 2.75rem;
	padding: 0.55rem 0.75rem;
	background: #fff;
	box-shadow: none;
}

.smf-fluent-form .ff-el-form-control:focus {
	border-color: var(--gold, #c59a32);
	box-shadow: 0 0 0 0.2rem var(--gold-soft, rgba(197, 154, 50, 0.2));
	outline: none;
}

.smf-fluent-form .smf-ff-consent,
.smf-fluent-form .ff-el-tc {
	margin-top: 0.25rem;
	margin-bottom: 1.25rem;
}

.smf-fluent-form .ff_t_c,
.smf-fluent-form .ff-el-form-check-label {
	font-family: var(--font-sans, system-ui, sans-serif);
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--near-black, #1a1a1a);
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
}

.smf-fluent-form .ff_t_c a,
.smf-fluent-form .ff-el-form-check-label a {
	color: var(--gold, #c59a32);
	text-decoration: none;
}

.smf-fluent-form .ff_t_c a:hover,
.smf-fluent-form .ff-el-form-check-label a:hover {
	text-decoration: underline;
}

.smf-fluent-form .ff-el-form-check-input,
.smf-fluent-form .ff_tc_checkbox input {
	width: 1.05rem;
	height: 1.05rem;
	border: 1px solid #d9d5cc;
	border-radius: 2px;
	accent-color: var(--gold, #c59a32);
}

.smf-fluent-form .ff-btn-submit,
.smf-fluent-form .ff-btn.ff-btn-submit {
	font-family: var(--font-sans, system-ui, sans-serif);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: var(--gold, #c59a32) !important;
	border-color: var(--gold, #c59a32) !important;
	color: #0a0a0a !important;
	border-radius: 3px !important;
	min-height: 2.85rem;
	padding: 0.7rem 1.35rem !important;
	box-shadow: none !important;
}

.smf-fluent-form .ff-btn-submit:hover,
.smf-fluent-form .ff-btn.ff-btn-submit:hover {
	background: #946a20 !important;
	border-color: #946a20 !important;
	color: #fff !important;
}

.smf-fluent-form .ff-el-form-buttons,
.smf-fluent-form .smf-ff-submit-wrap {
	margin-bottom: 0;
}

/* Keep note beside the submit button on desktop; normal flow on mobile. */
.smf-fluent-form .smf-ff-form-note {
	margin: 0.85rem 0 0;
	max-width: 28rem;
	line-height: 1.4;
}

@media (min-width: 768px) {
	.smf-fluent-form:not(:has(.ff-message-success)) {
		padding-bottom: 0.25rem;
	}

	.smf-fluent-form:not(:has(.ff-message-success)) .smf-ff-form-note {
		position: absolute;
		left: 13.5rem;
		bottom: 0.85rem;
		margin: 0;
		max-width: calc(100% - 14.5rem);
	}
}

/* After submit, Fluent Forms shows .ff-message-success and hides the form.
   Absolute note must not sit on top of the thank-you message. */
.smf-fluent-form:has(.ff-message-success) .smf-ff-form-note {
	display: none !important;
}

.smf-fluent-form .ff-message-success {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 1rem 1.15rem;
	line-height: 1.5;
	clear: both;
}

/* Cultural Arts Week registration Fluent Form — match screenshot */
.event-registration .smf-caw-fluent-form {
	padding: clamp(2rem, 5vw, 4rem);
	background: var(--white, #fff);
}

.smf-caw-fluent-form .frm-fluent-form,
.smf-caw-fluent-form .fluentform {
	margin: 0;
}

.smf-caw-fluent-form .smf-caw-section-title {
	margin: 0 0 1.1rem;
	font-family: var(--font-display, Georgia, serif);
	font-size: 1.45rem;
	font-weight: 500;
}

.smf-caw-fluent-form .smf-caw-section-title span {
	margin-right: 0.5rem;
	color: var(--gold, #c59a32);
	font-family: var(--font-sans, system-ui, sans-serif);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.smf-caw-fluent-form .smf-caw-heading {
	margin-bottom: 0;
}

.smf-caw-fluent-form .smf-caw-events {
	margin-bottom: 1.75rem;
}

.smf-caw-fluent-form .smf-caw-events .ff-el-input--content,
.smf-caw-fluent-form .smf-caw-events .ff-el-form-checkable-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
}

.smf-caw-fluent-form .smf-caw-events .ff-el-form-check {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: hidden;
}

.smf-caw-fluent-form .smf-caw-events .ff-el-form-check-label {
	display: block;
	position: relative;
	margin: 0;
	cursor: pointer;
}

/* Beat Fluent Forms: .fluentform .ff-el-form-check-label .ff-el-form-check-input { position:relative; top:-2px } */
.smf-caw-fluent-form .smf-caw-events .ff-el-form-check-label .ff-el-form-check-input,
.smf-caw-fluent-form .smf-caw-events .ff-el-form-check-label input[type="checkbox"] {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	opacity: 0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	pointer-events: none !important;
	vertical-align: unset !important;
}

.smf-caw-fluent-form .smf-caw-events .ff-el-form-check-label > span {
	display: flex;
	gap: 0.7rem;
	align-items: center;
	min-height: 52px;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--line, #e5e1d8);
	background: var(--ivory, #f7f3ed);
	color: var(--charcoal, #2a2a2a);
	font-family: var(--font-sans, system-ui, sans-serif);
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.3;
	transition: 0.2s ease;
}

.smf-caw-fluent-form .smf-caw-events .ff-el-form-check-label > span::before {
	font-family: "bootstrap-icons" !important;
	font-style: normal;
	font-weight: normal !important;
	font-size: 1rem;
	line-height: 1;
	color: var(--deep-gold, #946a20);
	speak: never;
}

.smf-caw-fluent-form .smf-caw-events .ff-el-form-check:nth-child(1) .ff-el-form-check-label > span::before { content: "\f4d0"; } /* people */
.smf-caw-fluent-form .smf-caw-events .ff-el-form-check:nth-child(2) .ff-el-form-check-label > span::before { content: "\f49e"; } /* music-note-beamed */
.smf-caw-fluent-form .smf-caw-events .ff-el-form-check:nth-child(3) .ff-el-form-check-label > span::before { content: "\f3c3"; } /* film */
.smf-caw-fluent-form .smf-caw-events .ff-el-form-check:nth-child(4) .ff-el-form-check-label > span::before { content: "\f589"; } /* stars */
.smf-caw-fluent-form .smf-caw-events .ff-el-form-check:nth-child(5) .ff-el-form-check-label > span::before { content: "\f264"; } /* chat-square-text */
.smf-caw-fluent-form .smf-caw-events .ff-el-form-check:nth-child(6) .ff-el-form-check-label > span::before { content: "\f6ca"; } /* ticket-perforated */

.smf-caw-fluent-form .smf-caw-events .ff-el-form-check-input:checked + span {
	border-color: var(--near-black, #0a0a0a);
	background: var(--near-black, #0a0a0a);
	color: #fff;
}

.smf-caw-fluent-form .smf-caw-events .ff-el-form-check-input:checked + span::before {
	color: var(--gold, #c59a32);
}

.smf-caw-fluent-form .smf-caw-events .ff-el-form-check-input:focus-visible + span {
	outline: 2px solid var(--gold, #c59a32);
	outline-offset: 2px;
}

.smf-caw-fluent-form .ff-el-input--label label {
	font-family: var(--font-sans, system-ui, sans-serif);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--muted, #6b6b6b);
	margin-bottom: 0.35rem;
}

.smf-caw-fluent-form .ff-el-form-control {
	min-height: 50px;
	border: 1px solid transparent;
	border-radius: 0;
	background: var(--ivory, #f7f3ed);
	box-shadow: none;
	font-family: var(--font-sans, system-ui, sans-serif);
	padding: 0.55rem 0.75rem;
}

.smf-caw-fluent-form .ff-el-form-control:focus {
	border-color: var(--gold, #c59a32);
	box-shadow: 0 0 0 0.15rem var(--gold-soft, rgba(197, 154, 50, 0.2));
	outline: none;
	background: #fff;
}

.smf-caw-fluent-form .ff-t-container {
	gap: 0 1rem;
}

.smf-caw-fluent-form .ff-el-group {
	margin-bottom: 1rem;
}

.smf-caw-fluent-form .ff-btn-submit,
.smf-caw-fluent-form .ff-btn.ff-btn-submit {
	width: 100%;
	min-height: 3rem;
	margin-top: 0.35rem;
	font-family: var(--font-sans, system-ui, sans-serif);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: var(--gold, #c59a32) !important;
	border-color: var(--gold, #c59a32) !important;
	color: #0a0a0a !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.smf-caw-fluent-form .ff-btn-submit:hover,
.smf-caw-fluent-form .ff-btn.ff-btn-submit:hover {
	background: #946a20 !important;
	border-color: #946a20 !important;
	color: #fff !important;
}

.smf-caw-fluent-form .registration-privacy {
	margin: 0.85rem 0 0;
	color: var(--muted, #6b6b6b);
	font-size: 0.72rem;
	text-align: center;
}

.smf-caw-fluent-form .registration-privacy i {
	margin-right: 0.25rem;
	color: var(--deep-gold, #946a20);
}

.smf-caw-fluent-form:has(.ff-message-success) .registration-privacy {
	display: none;
}

.smf-caw-fluent-form .smf-caw-events .ff-el-input--label {
	display: none;
}

@media (max-width: 575.98px) {
	.smf-caw-fluent-form .smf-caw-events .ff-el-input--content,
	.smf-caw-fluent-form .smf-caw-events .ff-el-form-checkable-wrapper {
		grid-template-columns: 1fr;
	}
}
