/*
 * Supplementary styles for the handful of effects theme.json / core block supports
 * can't express natively: sticky header blur, floating action buttons, asymmetric
 * card radius, and a small "eyebrow" label utility reused across page patterns.
 */

/* Sticky, blurred header */
.htm-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: oklch(98% 0.015 75 / 0.97);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

/* Header logo: image only, fixed height, matching the design's actual lockup */
.htm-header-logo.wp-block-site-logo {
	flex-shrink: 0;
}
.htm-header-logo.wp-block-site-logo img {
	height: 56px;
	width: auto;
	max-width: none;
}

/* Footer logo: white rounded box with a sage-tinted border, per the design */
.htm-footer-logo-box {
	display: inline-flex;
	background: #fff;
	border-radius: 16px;
	padding: 14px 20px;
	border: 2.5px solid oklch(63% 0.13 150 / 0.5);
	margin-bottom: 16px;
}
.htm-footer-logo-box .wp-block-site-logo img {
	height: 76px;
	width: auto;
	max-width: none;
	display: block;
}

/* Eyebrow labels ("About Haattimaateam", "Our Services", ...) */
.htm-eyebrow {
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.htm-eyebrow.has-terracotta-deep-color {
	color: var(--wp--preset--color--terracotta-deep);
}
.htm-eyebrow.has-sage-color {
	color: var(--wp--preset--color--sage);
}

/* Hard-offset button style (header/hero CTAs). Applied to the inner link,
 * not the .wp-block-button wrapper div — the wrapper has no border-radius of
 * its own, so a border/shadow on it renders as a square box around the pill. */
.htm-hard-shadow .wp-block-button__link {
	box-shadow: 3px 3px 0 var(--wp--preset--color--ink);
	border: 2px solid var(--wp--preset--color--ink);
}

/* Testimonial card's asymmetric corner */
.htm-testimonial-card {
	border-radius: 26px 26px 26px 6px !important;
}
/* "— " prefix on the author line — added via CSS since Block Bindings replaces
 * the entire paragraph's inner content, so a static prefix can't live inline. */
.htm-testimonial-author::before {
	content: "\2014\00a0";
}

/* Floating action buttons */
.htm-floating-actions {
	position: fixed;
	inset: auto 26px 26px auto;
	z-index: 60;
	display: flex;
	justify-content: space-between;
	pointer-events: none;
	left: 0;
	right: 0;
	bottom: 26px;
	padding: 0 26px;
}
.htm-floating-actions > * {
	pointer-events: auto;
}
.htm-whatsapp-button {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--wp--preset--color--sage);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 12px 28px -8px oklch(20% 0.05 150 / 0.6);
	border: 3px solid #fff;
	text-decoration: none;
}
.htm-apply-button {
	background: var(--wp--preset--color--terracotta);
	color: #fff;
	padding: 14px 26px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14.5px;
	box-shadow: 0 12px 28px -8px oklch(30% 0.1 35 / 0.6);
	border: 3px solid #fff;
	text-decoration: none;
	white-space: nowrap;
}

/* Embedded Google Map showing the actual business location — fixed height,
 * same on every page it appears (not stretched to match a sibling column). */
.htm-map-embed {
	border-radius: 20px;
	overflow: hidden;
	height: 520px;
}
.htm-map-embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Contact page only: the map sits below a stack of address/phone/email text
 * that the Home page's map doesn't have next to it, so instead of a fixed
 * height (which would either overshoot or fall short of the form card next
 * to it), let it flex to exactly fill the remaining space in its column —
 * always bottom-aligned with the form card, regardless of text length. */
.htm-contact-left-col {
	display: flex;
	flex-direction: column;
}
.htm-contact-left-col .htm-map-embed {
	flex: 1 1 auto;
	height: auto;
	min-height: 220px;
}

@media (max-width: 782px) {
	.htm-floating-actions {
		bottom: 16px;
		padding: 0 16px;
	}
}

/* ------------------------------------------------------------------ */
/* Shared building blocks for the custom repeater-driven blocks        */
/* ------------------------------------------------------------------ */

.htm-grid {
	display: grid;
	gap: 32px;
}
.htm-grid-2 { grid-template-columns: repeat(2, 1fr); }
.htm-grid-3 { grid-template-columns: repeat(3, 1fr); }
.htm-grid-4 { grid-template-columns: repeat(4, 1fr); }
.htm-grid-6 { grid-template-columns: repeat(6, 1fr); gap: 14px; }

@media (max-width: 782px) {
	.htm-grid-3, .htm-grid-4, .htm-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.htm-grid-2, .htm-grid-3, .htm-grid-4, .htm-grid-6 { grid-template-columns: 1fr; }
}

.htm-card {
	background: var(--wp--preset--color--cream);
	border-radius: 24px;
	padding: 34px 30px;
	box-shadow: var(--wp--preset--shadow--card);
	border: 2.5px solid var(--wp--preset--color--line);
}
.htm-card--white { background: #fff; }
.htm-card--center { text-align: center; }
.htm-card--flat {
	border: none;
	box-shadow: none;
	border-radius: 18px;
	background: var(--wp--preset--color--sand);
	padding: 28px;
}
.htm-card--shadow-white {
	background: #fff;
	border: none;
	border-radius: 18px;
	box-shadow: var(--wp--preset--shadow--card-sm);
	padding: 28px;
}

.htm-mark {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 20px;
}
.htm-mark--sm {
	width: 44px;
	height: 44px;
	font-size: 15px;
	border-radius: 14px;
	margin: 0 auto 16px;
}
.htm-mark--xs {
	width: 40px;
	height: 40px;
	font-size: 15px;
	border-radius: 12px;
}
.htm-mark.is-terracotta { background: var(--wp--preset--color--terracotta); }
.htm-mark.is-sage { background: var(--wp--preset--color--sage); }

.htm-bullet-list { display: flex; flex-direction: column; gap: 14px; list-style: none; margin: 0; padding: 0; }
.htm-bullet-list li { display: flex; gap: 14px; align-items: center; }
.htm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--terracotta); flex-shrink: 0; }

.htm-timeline { display: flex; flex-direction: column; gap: 16px; }
.htm-timeline-row { display: flex; gap: 18px; align-items: baseline; }
.htm-timeline-time {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	color: var(--wp--preset--color--terracotta-deep);
	font-size: 15px;
	min-width: 110px;
}

.htm-steps { display: flex; flex-direction: column; }
.htm-step { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.htm-step-num {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--wp--preset--color--terracotta);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	flex-shrink: 0;
}

.htm-doc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.htm-doc-item { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 14px; padding: 18px 22px; box-shadow: var(--wp--preset--shadow--card-sm); }

.htm-chips { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.htm-chip {
	background: oklch(35% 0.03 50);
	border: 2px solid oklch(58% 0.13 150 / 0.6);
	padding: 12px 22px;
	border-radius: 999px;
	font-size: 15px;
	color: oklch(94% 0.01 70);
}

.htm-gallery-item { border-radius: 18px; overflow: hidden; aspect-ratio: 1; border: 2.5px solid #fff; box-shadow: var(--wp--preset--shadow--card-sm); }
.htm-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.htm-service-teaser {
	border-radius: 28px;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--wp--preset--shadow--card);
	border: 3px solid var(--wp--preset--color--line);
}
.htm-service-teaser.is-terracotta { border-color: oklch(70% 0.14 35 / 0.35); }
.htm-service-teaser.is-sage { border-color: oklch(63% 0.13 150 / 0.35); }
.htm-service-teaser img { width: 100%; height: 260px; object-fit: cover; display: block; }
.htm-service-teaser__body { padding: 32px; }
.htm-service-teaser__subtitle { font-size: 13.5px; font-weight: 600; color: var(--wp--preset--color--terracotta-deep); }

/* Activities page — alternating image/text rows (core Query Loop can't express
 * per-row order alternation on its own, so this is one small CSS assist). */
li:nth-child(even) > .htm-activity-row {
	flex-direction: row-reverse;
}
.htm-activity-row > * {
	flex: 1 1 0;
	min-width: 0;
}

.htm-team-card {
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--card);
}
.htm-team-card img { object-fit: cover; }

.htm-hero-banner {
	position: relative;
	width: 100%;
	aspect-ratio: 3089 / 1356;
	overflow: hidden;
}
/* Contact form */
.htm-cf-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}
.htm-cf-row .wpcf7-form-control-wrap { display: block; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 16px;
	border-radius: 10px;
	border: 1px solid var(--wp--preset--color--line);
	font-size: 15px;
	font-family: var(--wp--preset--font-family--body);
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--ink);
	margin-bottom: 16px;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--terracotta);
	outline-offset: 1px;
}
.wpcf7-form .wpcf7-submit {
	background: var(--wp--preset--color--terracotta);
	color: #fff;
	border: none;
	padding: 15px;
	width: 100%;
	border-radius: 10px;
	font-weight: 700;
	font-size: 15.5px;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--body);
}
.htm-hp-field-wrap {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	overflow: hidden;
}
.htm-consent-row {
	font-size: 13.5px;
	line-height: 1.5;
}
.htm-consent-link {
	display: inline-block;
	margin-left: 24px;
	font-size: 12.5px;
	font-weight: 600;
}

/* Click-to-call phone numbers: a core/button block (needed for its bindable
 * "url" attribute) stripped back down to look like plain inline text/a link,
 * not a pill button. */
.htm-tel-link.wp-block-button {
	display: inline-block;
}
.htm-tel-link .wp-block-button__link {
	background: none;
	color: inherit;
	font: inherit;
	font-weight: inherit;
	padding: 0;
	border: 0;
	border-radius: 0;
	text-decoration: none;
}
.htm-tel-link .wp-block-button__link:hover {
	color: var(--wp--preset--color--terracotta);
}

.htm-hero-banner img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.htm-safety-card { background: oklch(32% 0.03 50); border-radius: 20px; padding: 32px; }
.htm-age-card { background: var(--wp--preset--color--sand); border-radius: 20px; padding: 34px; text-align: center; }
.htm-age-range {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 26px;
	font-weight: 600;
	color: var(--wp--preset--color--terracotta-deep);
	margin-bottom: 12px;
}
