/*
 * movetoflorida.ai child theme styles. Mobile first. Contrast pairs are checked
 * in CI (scripts/check-contrast.py).
 *
 * Tokens are the theme's own --mtf-* custom properties, NOT --wp--preset--*:
 * Kadence replaces the theme.json color palette and font sizes with its own, so
 * presets like --wp--preset--color--off-white or --font-size--display are never
 * printed on the front end. Values mirror theme.json; keep the two in sync.
 */

:root {
	--mtf-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--mtf-radius: 0.375rem;
	--mtf-max: var(--wp--style--global--wide-size, 1200px);
	--mtf-content: var(--wp--style--global--content-size, 720px);
	--mtf-gutter: clamp(1rem, 4vw, 2.5rem);

	--mtf-c-navy: #14213D;
	--mtf-c-navy-deep: #0B1426;
	--mtf-c-gold: #C9A227;
	--mtf-c-off-white: #F8F6F1;
	--mtf-c-slate: #5A6472;
	--mtf-fs-small: 0.875rem;
	--mtf-fs-medium: 1rem;
	--mtf-fs-large: 1.375rem;
	--mtf-fs-x-large: 2.25rem;
	--mtf-fs-display: clamp(2.5rem, 5vw, 4.5rem);
	--mtf-ff-display: "Cormorant Garamond", Georgia, serif;
	--mtf-ff-body: Inter, system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */

body {
	font-family: var(--mtf-ff-body);
	color: var(--mtf-c-navy);
	background: var(--mtf-c-off-white);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--mtf-ff-display);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

p, li {
	max-width: 70ch;
}

a {
	text-underline-offset: 0.15em;
}

:focus-visible {
	outline: 3px solid var(--mtf-c-navy);
	outline-offset: 3px;
	border-radius: 2px;
}

.mtf-on-dark :focus-visible,
.mtf-section--navy :focus-visible,
.mtf-hero :focus-visible {
	outline-color: var(--mtf-c-gold);
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

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

.wp-block-button__link {
	font-family: var(--mtf-ff-body);
	font-weight: 600;
	letter-spacing: 0.02em;
	border-radius: var(--mtf-radius);
	padding: 0.9rem 1.6rem;
	min-height: 44px;
	transition: background-color 180ms var(--mtf-ease), color 180ms var(--mtf-ease), transform 180ms var(--mtf-ease);
}

.wp-block-button__link:hover {
	background-color: #b08f1f; /* darker gold; 7.3:1 with navy-deep text */
	color: var(--mtf-c-navy-deep);
}

.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
	color: var(--mtf-c-navy);
}

.is-style-outline .wp-block-button__link:hover {
	background: var(--mtf-c-navy);
	color: var(--mtf-c-off-white);
}

.mtf-on-dark .is-style-outline .wp-block-button__link,
.mtf-hero .is-style-outline .wp-block-button__link {
	color: var(--mtf-c-off-white);
}

.mtf-on-dark .is-style-outline .wp-block-button__link:hover,
.mtf-hero .is-style-outline .wp-block-button__link:hover {
	background: var(--mtf-c-off-white);
	color: var(--mtf-c-navy-deep);
}

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

.mtf-section {
	padding-block: clamp(3rem, 8vw, 6rem);
	padding-inline: var(--mtf-gutter);
}

.mtf-section--tight {
	padding-block: clamp(2rem, 5vw, 3.5rem);
}

.mtf-section--navy {
	background: var(--mtf-c-navy);
	color: var(--mtf-c-off-white);
}

.mtf-section--navy a:not(.wp-block-button__link) {
	color: var(--mtf-c-off-white);
}

.mtf-section--navy h2,
.mtf-section--navy h3 {
	color: var(--mtf-c-off-white);
}

.mtf-section--sand {
	background: #f1ede4;
}

.mtf-eyebrow {
	font-family: var(--mtf-ff-body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mtf-c-slate);
	margin-bottom: 0.75rem;
}

.mtf-section--navy .mtf-eyebrow,
.mtf-hero .mtf-eyebrow {
	color: var(--mtf-c-gold);
}

.mtf-lede {
	font-size: var(--mtf-fs-large);
	line-height: 1.5;
	font-weight: 400;
}

.mtf-center {
	text-align: center;
	margin-inline: auto;
}

.mtf-center > * {
	margin-inline: auto;
}

/* A centered list keeps its bullets aligned by centering the block, not the text. */
ul.mtf-center,
ol.mtf-center {
	display: table;
	text-align: left;
	margin-inline: auto;
}

.mtf-cinematic__content > .alignfull {
	margin-inline: 0;
	width: 100%;
	max-width: none;
}

/* Kadence single wrappers are bypassed by the child templates; keep gaps calm. */
.mtf-cinematic__content > * + * {
	margin-top: 0;
}

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

.mtf-hero {
	position: relative;
	isolation: isolate;
	min-height: 78svh;
	display: grid;
	align-items: center;
	color: var(--mtf-c-off-white);
	background: var(--mtf-c-navy-deep);
	overflow: hidden;
}

/* The stage is positioned but has no z-index, so its poster, video and overlay
   (z-index -1) paint behind the content while its play/pause button (z-index 2)
   stays clickable above it. isolation:isolate on .mtf-hero keeps -1 inside. */
.mtf-hero__media {
	position: absolute;
	inset: 0;
	/* The hero group is a constrained layout, which caps every direct child at
	   the content width with !important margins; the media layer must escape. */
	max-width: none !important;
	margin: 0 !important;
}

.mtf-hero__poster,
.mtf-hero__video {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mtf-hero__video {
	opacity: 0;
	transition: opacity 900ms var(--mtf-ease);
}

.mtf-hero__media.is-playing .mtf-hero__video {
	opacity: 1;
}

.mtf-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	/* Guarantees AA contrast for off-white text over any footage. */
	background: linear-gradient(180deg, rgba(11, 20, 38, 0.35) 0%, rgba(11, 20, 38, 0.55) 55%, rgba(11, 20, 38, 0.8) 100%);
}

.mtf-hero__content {
	position: relative;
	padding: clamp(5rem, 14vw, 9rem) var(--mtf-gutter) clamp(4rem, 10vw, 7rem);
	text-align: center;
}

.mtf-hero .mtf-hero__content h1,
.mtf-hero h1 {
	color: var(--mtf-c-off-white);
	font-size: var(--mtf-fs-display);
	line-height: 1.05;
	font-weight: 500;
	margin: 0 auto 1rem;
	max-width: 18ch;
}

.mtf-hero .mtf-hero__content .mtf-lede,
.mtf-hero .mtf-lede,
.mtf-hero .mtf-hero__content p {
	color: var(--mtf-c-off-white);
	max-width: 48ch;
	margin-inline: auto;
}

.mtf-hero__toggle {
	position: absolute;
	right: var(--mtf-gutter);
	bottom: 1rem;
	z-index: 2;
	min-height: 44px;
	min-width: 44px;
	padding: 0.6rem 1rem;
	border: 1px solid rgba(248, 246, 241, 0.6);
	border-radius: 999px;
	background: rgba(11, 20, 38, 0.7);
	color: var(--mtf-c-off-white);
	font: 600 0.875rem/1 var(--mtf-ff-body);
	cursor: pointer;
}

.mtf-hero__toggle:hover {
	background: var(--mtf-c-off-white);
	color: var(--mtf-c-navy-deep);
}

.mtf-hero__toggle[hidden] {
	display: none;
}

.mtf-hero__credit {
	position: absolute;
	left: var(--mtf-gutter);
	bottom: 1.25rem;
	z-index: 2;
	font-size: 0.75rem;
	color: rgba(248, 246, 241, 0.85);
}

.mtf-hero--compact {
	min-height: 56svh;
}

/* Small corner label while a placeholder poster is in use. CSS-only, so it also
   works on pages saved from an older version of the pattern (no extra markup). */
.mtf-hero__media:has(img[src*="placeholder"])::before {
	content: "Placeholder: hero poster";
	position: absolute;
	top: 1rem;
	right: var(--mtf-gutter);
	z-index: 2;
	padding: 0.25rem 0.6rem;
	border: 1px dashed rgba(201, 162, 39, 0.7);
	border-radius: 4px;
	background: rgba(11, 20, 38, 0.6);
	color: var(--mtf-c-gold);
	font: 600 0.6875rem/1.2 var(--mtf-ff-body);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	pointer-events: none;
}

/* Keep hero copy readable over any poster or footage. */
.mtf-hero__content h1,
.mtf-hero .mtf-hero__content .mtf-lede,
.mtf-hero .mtf-lede,
.mtf-hero .mtf-hero__content p {
	text-shadow: 0 1px 2px rgba(11, 20, 38, 0.45);
}

/* ---------- Cards / grids ---------- */

/* .mtf-cards is a core group with layout type "grid"; core supplies the
   responsive column template, the theme styles the cards. */
.mtf-cards {
	margin-top: 2rem;
}

.mtf-card {
	background: #fff;
	border: 1px solid rgba(20, 33, 61, 0.1);
	border-radius: var(--mtf-radius);
	overflow: hidden;
	transition: transform 250ms var(--mtf-ease), box-shadow 250ms var(--mtf-ease);
}

.mtf-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(11, 20, 38, 0.12);
}

.mtf-card > :not(figure) {
	padding-inline: 1.25rem;
}

.mtf-card > :last-child {
	padding-bottom: 1.25rem;
}

.mtf-card figure {
	margin: 0;
	aspect-ratio: 4 / 3;
	background: #e6e1d6;
}

.mtf-card figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mtf-card h3 {
	font-size: 1.5rem;
	margin: 1rem 0 0.25rem;
}

.mtf-card h3 a {
	color: var(--mtf-c-navy);
	text-decoration: none;
}

.mtf-card h3 a:hover {
	text-decoration: underline;
}

.mtf-card p {
	color: var(--mtf-c-slate);
	font-size: 0.95rem;
}

/* ---------- Steps ---------- */

.mtf-steps {
	counter-reset: mtf-step;
	list-style: none;
	padding: 0;
	margin: 2rem 0 0;
	display: grid;
	gap: 1.5rem;
}

.mtf-steps > li {
	counter-increment: mtf-step;
	position: relative;
	padding-left: 4rem;
	max-width: none;
}

.mtf-steps > li::before {
	content: counter(mtf-step);
	position: absolute;
	left: 0;
	top: -0.25rem;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-family: var(--mtf-ff-display);
	font-size: 1.5rem;
	background: var(--mtf-c-gold);
	color: var(--mtf-c-navy-deep);
}

.mtf-steps > li > strong {
	display: block;
	margin: 0 0 0.25rem;
	font-family: var(--mtf-ff-display);
	font-weight: 500;
	font-size: 1.5rem;
}

/* ---------- Testimonials ---------- */

.mtf-quotes {
	margin-top: 2rem;
}

.mtf-quote {
	background: #fff;
	border-left: 3px solid var(--mtf-c-gold);
	padding: 1.25rem 1.5rem;
	border-radius: 0 var(--mtf-radius) var(--mtf-radius) 0;
}

/* ---------- Placeholders (visible on staging by design) ---------- */

.mtf-placeholder {
	position: relative;
	border: 2px dashed var(--mtf-c-slate);
	border-radius: var(--mtf-radius);
	background: repeating-linear-gradient(135deg, rgba(90, 100, 114, 0.06) 0 10px, transparent 10px 20px);
	padding: 1.5rem 1.25rem 1.25rem;
	margin: 0.5rem 0;
	color: var(--mtf-c-navy);
}

.mtf-placeholder__tag {
	position: absolute;
	top: -0.7rem;
	left: 1rem;
	background: var(--mtf-c-navy);
	color: var(--mtf-c-off-white);
	font: 700 0.6875rem/1 var(--mtf-ff-body);
	letter-spacing: 0.12em;
	padding: 0.3rem 0.5rem;
	border-radius: 2px;
}

.mtf-placeholder__label {
	font-weight: 600;
	margin: 0 0 0.25rem;
}

.mtf-placeholder__note {
	margin: 0;
	font-size: 0.875rem;
	color: var(--mtf-c-slate);
}

.mtf-placeholder--image,
.mtf-placeholder--video {
	min-height: 12rem;
	display: grid;
	align-content: center;
}

.mtf-form-slot {
	max-width: var(--mtf-content);
	margin-inline: auto;
}

.mtf-form-slot__consent {
	font-size: 0.875rem;
	color: var(--mtf-c-slate);
	margin-top: 1rem;
}

.mtf-section--navy .mtf-form-slot__consent {
	color: var(--mtf-c-off-white);
}

.mtf-section--navy .mtf-placeholder {
	color: var(--mtf-c-navy);
	background-color: var(--mtf-c-off-white);
	border-color: var(--mtf-c-gold);
}

/* Pending approval: never visible on the front end (also removed server-side). */
.mtf-pending-approval {
	display: none !important;
}

/* ---------- Pre-approval link out ---------- */

.mtf-preapproval__link {
	font-weight: 600;
}

.mtf-preapproval__link::after {
	content: " \2197";
}

.mtf-preapproval__note {
	display: block;
	font-size: 0.875rem;
	color: var(--mtf-c-slate);
	margin-top: 0.25rem;
}

/* ---------- Language toggle (in the Kadence menu) ---------- */

.mtf-lang {
	display: inline-block;
}

.mtf-lang__list {
	display: inline-flex;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 999px;
	overflow: hidden;
}

.mtf-lang__item a {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	min-width: 2.75rem;
	min-height: 2.25rem;
	line-height: 1.5rem;
	text-align: center;
	font: 600 0.8125rem var(--mtf-ff-body);
	letter-spacing: 0.08em;
	text-decoration: none;
	color: inherit;
}

.mtf-lang__item.is-current a {
	background: var(--mtf-c-navy);
	color: var(--mtf-c-off-white);
}

.mtf-menu-lang {
	display: flex;
	align-items: center;
}

/* ---------- Disclosures above the footer ---------- */

.mtf-disclosures {
	background: var(--mtf-c-navy-deep);
	color: var(--mtf-c-off-white);
	padding: 2rem var(--mtf-gutter);
	font-size: 0.8125rem;
	line-height: 1.6;
}

.mtf-disclosures__inner {
	max-width: var(--mtf-max);
	margin-inline: auto;
}

.mtf-disclosures__inner p {
	max-width: none;
	margin: 0 0 0.5rem;
	color: inherit;
}

.mtf-disclosures a {
	color: var(--mtf-c-off-white);
}

/* ---------- Draft / editor notes ---------- */

.mtf-draft-banner {
	border: 2px solid #8a6d00;
	background: #fff8dc;
	color: var(--mtf-c-navy);
	padding: 1rem 1.25rem;
	border-radius: var(--mtf-radius);
	font-weight: 600;
	max-width: none;
}

.mtf-editor-note {
	background: #fff8dc;
	border-left: 4px solid #8a6d00;
	padding: 0.75rem 1rem;
	margin: 1rem var(--mtf-gutter);
	font-size: 0.9rem;
	max-width: none;
}

.mtf-meta {
	font-size: 0.875rem;
	color: var(--mtf-c-slate);
}

.mtf-faq .wp-block-details {
	border-top: 1px solid rgba(20, 33, 61, 0.15);
	padding: 1rem 0;
}

.mtf-faq .wp-block-details summary {
	font-family: var(--mtf-ff-display);
	font-size: 1.375rem;
	cursor: pointer;
}

/* ---------- Motion ---------- */

/* Reveals only start hidden once the script has confirmed it is running
   (html.mtf-js), so content is never invisible without JavaScript. */
.mtf-js .mtf-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 700ms var(--mtf-ease), transform 700ms var(--mtf-ease);
}

.mtf-js .mtf-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.mtf-js .mtf-reveal {
		opacity: 1;
		transform: none;
	}

	.mtf-hero__video {
		display: none;
	}

	.mtf-hero__media.is-playing .mtf-hero__video {
		display: block;
	}
}

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

@media (min-width: 640px) {
	.mtf-steps {
		grid-template-columns: repeat(3, 1fr);
	}

	.mtf-steps > li {
		padding-left: 0;
		padding-top: 3.5rem;
	}

	.mtf-steps > li::before {
		top: 0;
	}
}

@media (min-width: 1024px) {
	.mtf-hero {
		min-height: 88svh;
	}
}

@media print {
	.mtf-hero__video,
	.mtf-hero__toggle,
	.mtf-placeholder__tag {
		display: none !important;
	}
}
