/*
 * Instahouse 2: site styles.
 * Colours, fonts, sizes and buttons live in theme.json; this file adds the
 * block styles (picked from the Styles panel), the picture layers and the
 * theme's own blocks. Also loaded in the editor.
 */

:root {
	--ih2-green: #80d400;
	--ih2-green-hover: #6cb800;
	--ih2-green-dark: #3a7000;
	--ih2-ink: #111111;
	--ih2-ink-2: #50555a;
	--ih2-stone: #f3f4f2;
	--ih2-line: #e3e5e1;
	--ih2-charcoal: #1c1e20;
	--ih2-mist: #c9cdc6;
	--ih2-tint: #f7fbef;
	--ih2-error: #b3261e;
	--ih2-r: 20px;
	--ih2-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
	--ih2-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--ih2-truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v9H3zM14 10h4l3 3v3h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17.5' cy='17.5' r='1.8'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }
:root :where(.wp-site-blocks) > * { margin-block-start: 0; }
body { overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--ih2-green-dark);
	outline-offset: 2px;
}

/* ---------- Page frame ---------- */

.ih2-sections > * { margin-block: 0 !important; }
.ih2-sections figure.wp-block-image,
.ih2-sections .wp-block-table { margin-bottom: 0; }
.ih2-sections h1, .ih2-sections h2, .ih2-sections h3 { text-wrap: balance; }
.ih2-sections p { text-wrap: pretty; }

/* Section heading row: heading on the left, intro on the right. */
.ih2-head { margin-block: 0; }
.wp-block-columns.ih2-head { gap: 16px 64px; margin-bottom: 0; }
.ih2-head .wp-block-column > * { margin-block: 0; }
.ih2-head .is-style-eyebrow { margin-bottom: 12px !important; }
.ih2-head h2 { margin: 0; }
.ih2-head p:not(.is-style-eyebrow) { margin: 0; }
.ih2-head + * { margin-top: 40px !important; }

/* ---------- Header ---------- */

.ih2-topbar p { margin: 0; }
.ih2-topbar .wp-block-group { gap: 8px 28px; align-items: center; }
.ih2-delivery { display: inline-flex; align-items: center; gap: 8px; }
.ih2-delivery::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: var(--ih2-green);
	-webkit-mask: var(--ih2-truck) center / contain no-repeat;
	mask: var(--ih2-truck) center / contain no-repeat;
}
.ih2-contact { white-space: pre-wrap; }
.ih2-contact a { color: inherit; text-decoration: none; }
.ih2-contact a:hover { color: #fff; }

.ih2-bar { position: relative; z-index: 5; border-bottom: 1px solid var(--ih2-line); }
.ih2-bar-in { gap: 14px 30px; align-items: center; }
.ih2-bar-in > * { margin: 0; }
.ih2-logo, .ih2-logo a { display: block; line-height: 0; }
.ih2-logo img { width: 200px; height: auto; }

.ih2-nav .wp-block-navigation__container { gap: 4px 24px; }
.ih2-nav .wp-block-navigation-item__content {
	padding: 10px 0;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}
.ih2-nav .wp-block-navigation-item__content:hover { color: var(--ih2-green-dark); }
body.home .ih2-nav .wp-block-navigation__container > li:first-child > .wp-block-navigation-item__content,
.ih2-nav .current-menu-item > .wp-block-navigation-item__content {
	border-bottom-color: var(--ih2-green);
}
.ih2-nav .wp-block-navigation__responsive-container-open,
.ih2-nav .wp-block-navigation__responsive-container-close {
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
}
.ih2-nav .wp-block-navigation__responsive-container-open svg,
.ih2-nav .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }
.ih2-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 20px clamp(16px, 4vw, 40px) 32px;
	background: #fff;
}
.ih2-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 64px; }
.ih2-nav .is-menu-open .wp-block-navigation__container { gap: 4px; }
.ih2-nav .is-menu-open .wp-block-navigation-item__content {
	font-size: 26px;
	font-weight: 600;
	padding: 8px 0;
}
.ih2-bar-cta { gap: 10px; }
.ih2-bar-cta .wp-block-button__link { padding: 11px 24px; }

/* ---------- Footer ---------- */

.ih2-foot a { color: var(--ih2-mist); text-decoration: none; }
.ih2-foot a:hover { color: #fff; }
.ih2-foot-cols { gap: 36px 48px; margin-bottom: 0; }
.ih2-foot-cols .wp-block-column > * { margin-block: 0; }
.ih2-foot-cols .wp-block-column > * + * { margin-top: 14px; }
.ih2-foot-h {
	font-size: 15.5px;
	letter-spacing: 0;
	color: #fff;
	margin: 0 0 12px !important;
}
.ih2-foot-links {
	list-style: none;
	padding: 0;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ih2-foot-links li { margin: 0; }
.ih2-brand { line-height: 0; }
.ih2-brand img { width: 260px; max-width: 100%; height: auto; display: block; }
.ih2-foot .ih2-brand + p { max-width: 34ch; }
.ih2-legal {
	border-top: 1px solid #3a3d40;
	gap: 8px 24px;
	font-size: 13.5px;
	color: #a6aba3;
}
.ih2-legal p { margin: 0; }

/* ---------- Text styles ---------- */

.is-style-eyebrow {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ih2-green-dark);
	line-height: 1.4;
}
.has-ink-background-color .is-style-eyebrow,
.has-charcoal-background-color .is-style-eyebrow,
.is-style-dark .is-style-eyebrow { color: var(--ih2-green); }
.is-style-lead { font-size: 19px; color: var(--ih2-ink-2); }
.is-style-price { font-weight: 600; color: var(--ih2-green-dark); margin: 0; }
.is-style-stat { font-size: 34px; font-weight: 600; line-height: 1; }
.is-style-label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ih2-ink-2);
	line-height: 1.4;
}
.is-style-arrow { font-weight: 600; }
.is-style-arrow a { text-decoration: none; }
.is-style-arrow a::after { content: " \2192"; }

.is-style-checks,
.is-style-checks-inline { list-style: none; padding: 0; }
.is-style-checks { display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; }
.is-style-checks-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	font-size: 15.5px;
	font-weight: 500;
	margin-top: 20px;
}
.is-style-checks li,
.is-style-checks-inline li { position: relative; padding-left: 30px; margin: 0; }
.is-style-checks li::before,
.is-style-checks-inline li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 20px;
	height: 20px;
	background: var(--ih2-green-dark);
	-webkit-mask: var(--ih2-tick) center / contain no-repeat;
	mask: var(--ih2-tick) center / contain no-repeat;
}
.has-ink-background-color .is-style-checks li::before { background: var(--ih2-green); }

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

.wp-block-button.is-style-accent .wp-block-button__link,
.ih2-btn-accent {
	background: var(--ih2-green);
	border-color: var(--ih2-green);
	color: var(--ih2-ink);
}
.wp-block-button.is-style-accent .wp-block-button__link:hover,
.wp-block-button.is-style-accent .wp-block-button__link:focus-visible {
	background: var(--ih2-green-hover);
	border-color: var(--ih2-green-hover);
	color: var(--ih2-ink);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--ih2-ink);
	border-color: var(--ih2-ink);
	color: #fff;
}
.wp-block-buttons { gap: 12px; }
.wp-block-button__link { text-decoration: none; }

/* ---------- Pictures ---------- */

.wp-block-image.is-style-corners img,
.wp-block-image.is-style-corners { border-radius: var(--ih2-r); }
.wp-block-image.is-style-corners { overflow: hidden; }
.wp-block-image.is-style-corners img { display: block; width: 100%; object-fit: cover; }

.wp-block-image.is-style-framed {
	border: 1px solid var(--ih2-line);
	border-radius: var(--ih2-r);
	padding: 20px;
	background: #fff;
}
.wp-block-image.is-style-framed img { display: block; width: 100%; height: auto; }
.wp-block-image.is-style-framed figcaption {
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--ih2-ink-2);
	text-align: left;
}

/* Hero */
.ih2-hero-top { gap: 24px 64px; margin-bottom: 0; }
.ih2-hero-top .wp-block-column > * { margin-block: 0; }
.ih2-hero-top .is-style-eyebrow { margin-bottom: 14px !important; }
.ih2-hero-top .wp-block-column:last-child { display: flex; flex-direction: column; gap: 22px; }
.ih2-hero-top .is-style-lead { margin: 0; }
.ih2-gallery { gap: 16px; margin-top: clamp(32px, 4vw, 48px) !important; margin-bottom: 0; }
.ih2-gallery figure { margin: 0 !important; }
.ih2-gallery-main img { height: clamp(300px, 38vw, 520px); }
.ih2-gallery-side { display: flex; flex-direction: column; gap: 16px; }
.ih2-gallery-side img { height: clamp(140px, 12vw, 162px); }
.ih2-hero .is-style-checks-inline { margin-bottom: 0; }

/* ---------- Key facts ---------- */

.ih2-sections .is-layout-grid.is-style-facts,
.is-layout-grid.is-style-facts {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
	gap: 1px;
	background: var(--ih2-line);
	border: 1px solid var(--ih2-line);
	border-radius: var(--ih2-r);
	overflow: hidden;
}
.is-style-facts > * { background: var(--ih2-stone); padding: 22px 24px; margin: 0 !important; }
.is-style-facts > * > * { margin: 0 !important; }
.ih2-fact-value { margin-top: 4px !important; font-size: 26px; font-weight: 600; line-height: 1.3; }

/* ---------- Grids, cards and tiles ---------- */

.ih2-sections .is-layout-grid { gap: 20px; }
.ih2-sections .ih2-cards { gap: 24px; }

.is-style-card {
	border: 1px solid var(--ih2-line);
	border-radius: var(--ih2-r);
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}
.is-style-card > * { margin: 0 !important; }
.ih2-card-img img { display: block; width: 100%; height: 240px; object-fit: cover; }
.ih2-card-body {
	padding: 26px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1 1 auto;
}
.ih2-card-body > * { margin: 0 !important; max-width: none !important; }
.ih2-card-top { flex-direction: column; align-items: flex-start !important; gap: 2px; }
.ih2-card-top h3 { font-size: 24px; margin: 0; }
.ih2-card-acts { margin-top: auto !important; padding-top: 8px; gap: 10px; }
.ih2-card-acts .wp-block-button__link { padding: 11px 22px; }
.is-style-card.ih2-pad { padding: 30px; gap: 12px; }
.is-style-card.ih2-pad > .is-style-eyebrow { font-size: 13px; letter-spacing: 0.12em; }
.ih2-card-title { font-size: 22px; font-weight: 600; line-height: 1.25; }

.is-style-tile,
.is-style-tile-white {
	background: var(--ih2-stone);
	border-radius: var(--ih2-r);
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.is-style-tile-white { background: #fff; }
.is-style-tile > *,
.is-style-tile-white > * { margin: 0 !important; max-width: none !important; }
.is-style-tile h3 { font-size: 20px; margin-top: 6px !important; }
.is-style-tile-white h3 { font-size: 19px; margin-top: 4px !important; }
.is-style-tile-white { gap: 10px; }

.ih2-icon { line-height: 0; }
.ih2-icon.is-tile {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--ih2-ink);
	color: var(--ih2-green);
	display: grid;
	place-items: center;
}
.ih2-icon.is-plain svg { width: 56px; height: 56px; }

/* Difficulty meter */
.ih2-difficulty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ih2-meter { display: flex; gap: 6px; }
.ih2-meter i { width: 34px; height: 10px; border-radius: 5px; background: #d9dcd6; }
.ih2-meter i.on { background: var(--ih2-green); }
.ih2-difficulty-text { font-weight: 600; }

/* ---------- Picture layers ----------
 * A Cover block in the "Picture layer" style stays put while the section
 * after it (in the "Slides over" style) scrolls up over it. */

.wp-block-cover.is-style-layer {
	position: sticky;
	top: 0;
	z-index: 1;
	height: min(100vh, 860px);
	min-height: 0 !important;
	overflow: hidden;
	background: var(--ih2-ink);
	padding: 0 0 clamp(24px, 5vw, 64px);
	align-items: flex-end;
}
.wp-block-cover.is-style-layer.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,
.wp-block-cover.is-style-layer .wp-block-cover__inner-container {
	width: 100%;
	max-width: none;
	margin: 0;
	padding-left: var(--wp--style--root--padding-left, 20px);
	padding-right: var(--wp--style--root--padding-right, 20px);
}
.wp-block-cover.is-style-layer .wp-block-cover__inner-container > .is-style-float {
	width: auto;
	max-width: 560px !important;
}
.is-position-bottom-left .is-style-float,
.is-position-center-left .is-style-float,
.is-position-top-left .is-style-float {
	margin-left: max(0px, calc((100% - 1160px) / 2)) !important;
	margin-right: auto !important;
}
.is-position-bottom-right .is-style-float,
.is-position-center-right .is-style-float,
.is-position-top-right .is-style-float {
	margin-left: auto !important;
	margin-right: max(0px, calc((100% - 1160px) / 2)) !important;
}

.is-style-float {
	background: #fff;
	color: var(--ih2-ink);
	border-radius: var(--ih2-r);
	padding: clamp(24px, 3vw, 36px);
	box-shadow: var(--ih2-shadow);
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.is-style-float > * { margin: 0 !important; max-width: none !important; }
.is-style-float h2 { font-size: clamp(28px, 3vw, 40px); }

.is-style-slide {
	position: relative;
	z-index: 2;
	border-radius: 32px 32px 0 0;
	box-shadow: 0 -24px 48px rgba(0, 0, 0, 0.18);
}
/* Everything after a picture layer must sit above it and hide it. */
.ih2-sections > .is-style-layer ~ :not(.is-style-layer) { position: relative; z-index: 2; }
.ih2-sections > .is-style-layer ~ :not(.is-style-layer):not(.has-background) { background-color: #fff; }

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.is-style-layer .wp-block-cover__image-background {
			animation: ih2-settle linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 100%;
		}
		@keyframes ih2-settle {
			from { transform: scale(1.14); }
			to { transform: scale(1); }
		}
	}
}

/* ---------- Speed split ---------- */

.ih2-split { gap: 40px 64px; margin-top: clamp(64px, 8vw, 112px) !important; margin-bottom: 0; }
.ih2-split .wp-block-column { display: flex; flex-direction: column; gap: 18px; }
.ih2-split .wp-block-column > * { margin: 0 !important; }
.ih2-split-img img { height: clamp(320px, 34vw, 460px); }

/* ---------- Comparison and specification tables ---------- */

.ih2-compare-box { padding: clamp(24px, 3.4vw, 44px) !important; margin-top: clamp(56px, 7vw, 88px) !important; }
.ih2-compare-box .wp-block-columns { gap: 28px 56px; margin: 0; }
.ih2-compare-box .wp-block-column:first-child { display: flex; flex-direction: column; gap: 14px; }
.ih2-compare-box .wp-block-column > * { margin: 0 !important; }
.ih2-h-small { font-size: clamp(26px, 2.6vw, 34px) !important; line-height: 1.15; }

.wp-block-table.is-style-compare { overflow-x: auto; margin: 0; }
.wp-block-table.is-style-compare table {
	width: 100%;
	min-width: 460px;
	border-collapse: collapse;
	border: 0;
	font-size: 16px;
}
.wp-block-table.is-style-compare thead { border: 0; }
.wp-block-table.is-style-compare th,
.wp-block-table.is-style-compare td {
	border: 0;
	border-top: 1px solid var(--ih2-line);
	padding: 12px;
	text-align: left;
	vertical-align: top;
}
.wp-block-table.is-style-compare thead th {
	border-top: 0;
	padding: 10px 12px;
	font-weight: 600;
	color: var(--ih2-ink-2);
}
.wp-block-table.is-style-compare thead th:first-child { color: transparent; padding-left: 0; }
.wp-block-table.is-style-compare thead th:nth-child(2) {
	background: var(--ih2-ink);
	color: #fff;
	border-radius: 10px 10px 0 0;
}
.wp-block-table.is-style-compare tbody td:first-child { padding-left: 0; font-weight: 500; }
.wp-block-table.is-style-compare tbody td:nth-child(2) { background: var(--ih2-tint); font-weight: 600; }
.wp-block-table.is-style-compare tbody td:nth-child(3) { color: var(--ih2-ink-2); }
.wp-block-table.is-style-compare tbody tr:last-child td { border-bottom: 1px solid var(--ih2-line); }

.wp-block-table.is-style-pairs { display: flex; flex-direction: column; margin: 0; }
.wp-block-table.is-style-pairs table { width: 100%; border-collapse: collapse; border: 0; font-size: 16px; }
.wp-block-table.is-style-pairs figcaption {
	order: -1;
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ih2-ink-2);
	text-align: left;
}
.wp-block-table.is-style-pairs td,
.wp-block-table.is-style-pairs th {
	border: 0;
	border-top: 1px solid var(--ih2-line);
	padding: 11px 0;
	vertical-align: top;
}
.wp-block-table.is-style-pairs td:first-child { color: var(--ih2-ink-2); font-weight: 500; padding-right: 16px; }
.wp-block-table.is-style-pairs td:last-child { text-align: right; font-weight: 600; }
.wp-block-table.is-style-pairs tr:last-child td { border-bottom: 1px solid var(--ih2-line); }

/* ---------- Annexe layout and 3D card ---------- */

#explore-3d > .wp-block-columns { gap: 32px; margin-bottom: 0; }
#explore-3d > .wp-block-columns > .wp-block-column:last-child { display: flex; flex-direction: column; gap: 24px; }
#explore-3d > .wp-block-columns > .wp-block-column > * { margin: 0 !important; }

.is-style-dark {
	background: var(--ih2-ink);
	color: #fff;
	border-radius: var(--ih2-r);
	overflow: hidden;
}
.ih2-model-card > .wp-block-columns { gap: 0; margin: 0; flex-wrap: wrap !important; }
.ih2-model-card .wp-block-column { margin: 0 !important; }
.ih2-model-card .wp-block-column:first-child { flex: 1 1 200px !important; }
.ih2-model-card .wp-block-column:last-child {
	flex: 1 1 220px !important;
	padding: 22px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
}
.ih2-model-card .wp-block-column:last-child > * { margin: 0 !important; }
.ih2-model-img { margin: 0 !important; height: 100%; }
.ih2-model-img img { display: block; width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.ih2-model-title { font-size: 20px; font-weight: 600; }
.ih2-open-3d .wp-block-button__link { padding: 9px 20px; }

/* ---------- Planning ---------- */

#planning > p:last-child { margin-top: 18px !important; }

/* ---------- Delivery band ---------- */

.is-style-band {
	background: var(--ih2-green);
	color: var(--ih2-ink);
	border-radius: var(--ih2-r);
	padding: clamp(28px, 4vw, 52px);
	gap: 24px 56px !important;
}
.is-style-band > * { margin: 0 !important; }
.is-style-band h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; margin: 0; }
.ih2-band-text { flex: 1 1 420px; min-width: 0; }
.ih2-band-text > * { margin: 0 !important; }
.ih2-band-text p { margin-top: 10px !important; font-size: 18px; }

/* ---------- Order and enquiry form ---------- */

.ih2-order > .wp-block-columns { gap: 40px 64px; margin-bottom: 0; }
.ih2-order-text { display: flex; flex-direction: column; gap: 18px; }
.ih2-order-text > * { margin: 0 !important; }
.ih2-order h2 { line-height: 1.1; }
.ih2-contact-lines { font-weight: 500; margin-top: 8px !important; }
.ih2-contact-lines a { color: #fff; text-decoration: none; }

.ih2-enquiry {
	background: #fff;
	color: var(--ih2-ink);
	border-radius: var(--ih2-r);
	padding: clamp(24px, 3vw, 36px);
	scroll-margin-top: 24px;
}
.ih2-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 16px 18px;
	position: relative;
}
.ih2-full { grid-column: 1 / -1; }
.ih2-field { display: flex; flex-direction: column; gap: 6px; }
.ih2-field label { font-size: 14px; font-weight: 600; }
.ih2-field input,
.ih2-field select,
.ih2-field textarea {
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--ih2-mist);
	border-radius: 10px;
	font: inherit;
	font-size: 16px;
	color: var(--ih2-ink);
	background: #fff;
	width: 100%;
	box-sizing: border-box;
}
.ih2-field select { padding: 0 12px; }
.ih2-field textarea { padding: 12px 14px; resize: vertical; min-height: 110px; }
.ih2-field.has-error input { border-color: var(--ih2-error); box-shadow: 0 0 0 1px var(--ih2-error); }
.ih2-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ih2-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	color: var(--ih2-ink-2);
	cursor: pointer;
}
.ih2-check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ih2-green-dark); }
.ih2-check.has-error { color: var(--ih2-error); }
.ih2-form-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ih2-send { cursor: pointer; }
.ih2-send[disabled] { opacity: 0.6; cursor: progress; }
.ih2-form-msg { margin: 0; font-size: 15px; font-weight: 500; }
.ih2-form-msg.is-error { color: var(--ih2-error); }
.ih2-thanks { padding: 8px 0; }
.ih2-thanks h3 { margin: 0 0 8px; font-size: 26px; }
.ih2-thanks p { margin: 0; color: var(--ih2-ink-2); }

/* ---------- 3D model (block and pop-up) ---------- */

.ih2-model { border-radius: var(--ih2-r); overflow: hidden; background: var(--ih2-ink); }
.ih2-model iframe { display: block; width: 100%; height: var(--ih2-model-h, 620px); border: 0; }

.ih2-dialog {
	width: min(1200px, calc(100vw - 32px));
	height: min(860px, calc(100vh - 32px));
	max-width: none;
	max-height: none;
	padding: 0;
	border: 0;
	border-radius: var(--ih2-r);
	background: var(--ih2-ink);
	overflow: hidden;
}
.ih2-dialog[open] { display: flex; flex-direction: column; }
.ih2-dialog::backdrop { background: rgba(17, 17, 17, 0.72); }
.ih2-dialog-bar {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 8px 8px 22px;
	background: var(--ih2-ink);
	color: #fff;
}
.ih2-dialog-title { margin: 0; font-weight: 600; font-size: 16px; }
.ih2-dialog iframe { display: block; flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: #e9eceb; }
.ih2-dialog-close {
	flex: none;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--ih2-ink);
	display: grid;
	place-items: center;
	cursor: pointer;
}
.ih2-dialog-close svg { width: 22px; height: 22px; }
.ih2-dialog-close:hover { background: var(--ih2-green); }
html.ih2-dialog-open { overflow: hidden; }

/* Editor: placeholder for the 3D model, and no sticking inside the editor. */
.ih2-editor-poster { position: relative; border-radius: var(--ih2-r); overflow: hidden; }
.ih2-editor-poster img { display: block; width: 100%; height: auto; }
.ih2-editor-poster-card {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	max-width: 440px;
	background: #fff;
	border-radius: 12px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
}
.editor-styles-wrapper .wp-block-cover.is-style-layer { position: relative; }

/* ---------- Smaller screens ---------- */

@media (max-width: 781px) {
	.ih2-gallery-side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.ih2-gallery-side img { height: clamp(80px, 24vw, 140px); }
	.ih2-gallery { gap: 10px; }
	.wp-block-cover.is-style-layer { height: min(92svh, 760px); }
	.is-style-slide { border-radius: 24px 24px 0 0; }
	.ih2-model-card .wp-block-column:first-child { flex-basis: 100% !important; }
	.ih2-model-img img { height: 200px; min-height: 0; }
}

@media (max-width: 600px) {
	.ih2-bar-in { flex-wrap: nowrap !important; gap: 10px; }
	.ih2-logo img { width: 150px; }
	.ih2-bar-cta { order: 2; margin-left: auto !important; }
	.ih2-nav { order: 3; }
	.ih2-bar-cta .wp-block-button__link { padding: 9px 18px; font-size: 15px; }
	.ih2-topbar .wp-block-group { justify-content: center !important; }
	.ih2-topbar .ih2-contact { display: none; }
	.ih2-card-body { padding: 22px; }
	.is-style-float { padding: 22px; gap: 12px; }
	.ih2-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
