/*
 * Innoseis theme: base layer (from the homepage mockup)
 * ---------------------------
 * Reproduces the class names and layout behaviour of WordPress core blocks
 * (Group, Columns, Cover, Buttons, Image, Media & Text, Query Loop, Navigation…)
 * so the mockup HTML is close to what the block theme will render. Direction
 * stylesheets only add look & feel on top (is-style-* variations, colours, type).
 * Kept from the mockup so the theme renders exactly like it; WordPress ships most of these
 * rules itself, and wordpress.css resolves the few places where the two differ.
 */

/* ---- Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--wp--custom--header--height) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--wp--preset--font-family--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 0.5rem; left: 0.5rem; z-index: 1000; width: auto; height: auto; clip: auto; padding: 0.75rem 1rem; background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); }

/* ---- Global layout: constrained / wide / full ------------------------ */
.has-global-padding { padding-left: var(--wp--style--root--padding-left); padding-right: var(--wp--style--root--padding-right); }
.is-layout-constrained > :where(:not(.alignwide):not(.alignfull)) { max-width: var(--wp--style--global--content-size); margin-left: auto !important; margin-right: auto !important; }
.is-layout-constrained > .alignwide { max-width: var(--wp--style--global--wide-size); margin-left: auto !important; margin-right: auto !important; }
.is-layout-constrained > .alignfull { max-width: none; }
.has-global-padding > .alignfull { margin-left: calc(var(--wp--style--root--padding-left) * -1); margin-right: calc(var(--wp--style--root--padding-right) * -1); }
.is-layout-flow > * + *, .is-layout-constrained > * + * { margin-block-start: var(--wp--style--block-gap); }
.is-layout-flow > *, .is-layout-constrained > * { margin-block-end: 0; }
.is-layout-flex { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wp--style--block-gap); }
.is-layout-flex > * { margin: 0; }
.is-layout-flex.is-vertical { flex-direction: column; align-items: flex-start; }
.is-layout-flex.is-nowrap { flex-wrap: nowrap; }
.is-layout-flex.is-content-justification-space-between { justify-content: space-between; }
.is-layout-flex.is-content-justification-center { justify-content: center; }
.is-layout-flex.is-content-justification-right { justify-content: flex-end; }
.is-layout-flex.is-vertically-aligned-top, .are-vertically-aligned-top { align-items: flex-start; }
.is-layout-flex.is-vertically-aligned-bottom { align-items: flex-end; }
.is-layout-flex.is-vertically-aligned-stretch { align-items: stretch; }
/* Grid layout: WordPress writes grid-template-columns inline, from "minimum column width" */
.is-layout-grid { display: grid; gap: var(--wp--style--block-gap); grid-template-columns: repeat(auto-fill, minmax(min(var(--grid-min, 16rem), 100%), 1fr)); }
.is-layout-grid > * { margin: 0; }

/* ---- Core blocks ----------------------------------------------------- */
.wp-block-group { box-sizing: border-box; }
.wp-block-group.has-background { padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40); }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--50); align-items: normal; }
.wp-block-columns > .wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-columns.are-vertically-aligned-center { align-items: center; }
@media (max-width: 781px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) { flex-direction: column; }
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 100% !important; }
}
.wp-block-column[style*="flex-basis"] { flex-grow: 0; }

.wp-block-cover { position: relative; display: flex; align-items: center; justify-content: center; min-height: 430px; padding: var(--wp--preset--spacing--50) var(--wp--style--root--padding-right) var(--wp--preset--spacing--50) var(--wp--style--root--padding-left); overflow: hidden; isolation: isolate; }
.wp-block-cover.is-position-bottom-left { align-items: flex-end; justify-content: flex-start; }
.wp-block-cover.is-position-bottom-center { align-items: flex-end; }
.wp-block-cover__image-background, .wp-block-cover__video-background { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -2; }
.wp-block-cover__background { position: absolute; inset: 0; z-index: -1; }
.wp-block-cover__inner-container { position: relative; width: 100%; }

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.wp-block-button__link, .wp-element-button {
	display: inline-flex; align-items: center; gap: 0.6em;
	padding: 0.9em 1.4em; border: 1px solid transparent; border-radius: var(--wp--custom--radius--small);
	font-family: var(--wp--preset--font-family--body); font-size: var(--wp--preset--font-size--small); font-weight: 500; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color 250ms var(--wp--custom--motion--ease), color 250ms var(--wp--custom--motion--ease), border-color 250ms var(--wp--custom--motion--ease);
}
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border-color: currentColor; }
/* Arrow glyph appended by a button block style ("arrow"); pure CSS */
.is-style-arrow .wp-block-button__link::after, .wp-block-button__link.has-arrow::after { content: "→"; display: inline-block; transition: transform 250ms var(--wp--custom--motion--ease); }
.is-style-arrow .wp-block-button__link:hover::after, .wp-block-button__link.has-arrow:hover::after { transform: translateX(4px); }

.wp-block-image img { width: 100%; height: auto; }
.wp-block-image.is-resized img, .wp-block-image img[style*="aspect-ratio"] { object-fit: cover; }
.wp-element-caption { margin-top: 0.5rem; font-size: var(--wp--preset--font-size--x-small); opacity: 0.8; }

.wp-block-media-text { display: grid; grid-template-columns: 50% 1fr; align-items: center; }
.wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr 50%; }
.wp-block-media-text.has-media-on-the-right > .wp-block-media-text__media { grid-column: 2; grid-row: 1; }
.wp-block-media-text.has-media-on-the-right > .wp-block-media-text__content { grid-column: 1; grid-row: 1; }
.wp-block-media-text__media img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-media-text__content { padding: 0 8%; }
@media (max-width: 600px) {
	.wp-block-media-text.is-stacked-on-mobile { grid-template-columns: 100% !important; }
	.wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__media { grid-column: 1; grid-row: 1; }
	.wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__content { grid-column: 1; grid-row: 2; padding: var(--wp--preset--spacing--40) 0 0; }
}

.wp-block-separator { border: 0; border-top: 1px solid currentColor; opacity: 0.2; margin: 0; }
.wp-block-list { padding-left: 1.2em; }
.wp-block-details summary { cursor: pointer; }
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table td, .wp-block-table th { padding: 0.6em 0.8em; border-bottom: 1px solid var(--wp--custom--line--light); text-align: left; }

.wp-block-query .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.wp-block-post-date { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--x-small); letter-spacing: 0.06em; }
.wp-block-post-title a { text-decoration: none; }
.wp-block-post-featured-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.wp-block-navigation__container { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.wp-block-navigation-item__content { text-decoration: none; }
.wp-block-site-logo img { height: auto; }
.wp-block-social-links { display: flex; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }

/* ---- Colour + type utility classes (WordPress generates these) ------- */
.has-navy-950-background-color { background-color: var(--wp--preset--color--navy-950) !important; }
.has-navy-900-background-color { background-color: var(--wp--preset--color--navy-900) !important; }
.has-navy-800-background-color { background-color: var(--wp--preset--color--navy-800) !important; }
.has-navy-background-color { background-color: var(--wp--preset--color--navy) !important; }
.has-ice-background-color { background-color: var(--wp--preset--color--ice) !important; }
.has-paper-background-color { background-color: var(--wp--preset--color--paper) !important; }
.has-frost-background-color { background-color: var(--wp--preset--color--frost) !important; }
.has-white-background-color { background-color: var(--wp--preset--color--white) !important; }
.has-signal-deep-background-color { background-color: var(--wp--preset--color--signal-deep) !important; }
.has-white-color { color: var(--wp--preset--color--white) !important; }
.has-frost-color { color: var(--wp--preset--color--frost) !important; }
.has-mist-color { color: var(--wp--preset--color--mist) !important; }
.has-ink-color { color: var(--wp--preset--color--ink) !important; }
.has-navy-color { color: var(--wp--preset--color--navy) !important; }
.has-slate-color { color: var(--wp--preset--color--slate) !important; }
.has-signal-deep-color { color: var(--wp--preset--color--signal-deep) !important; }
.has-signal-bright-color { color: var(--wp--preset--color--signal-bright) !important; }
.has-x-small-font-size { font-size: var(--wp--preset--font-size--x-small) !important; }
.has-small-font-size { font-size: var(--wp--preset--font-size--small) !important; }
.has-medium-font-size { font-size: var(--wp--preset--font-size--medium) !important; }
.has-large-font-size { font-size: var(--wp--preset--font-size--large) !important; }
.has-x-large-font-size { font-size: var(--wp--preset--font-size--x-large) !important; }
.has-xx-large-font-size { font-size: var(--wp--preset--font-size--xx-large) !important; }
.has-huge-font-size { font-size: var(--wp--preset--font-size--huge) !important; }
.has-stat-font-size { font-size: var(--wp--preset--font-size--stat) !important; }
.has-display-font-family { font-family: var(--wp--preset--font-family--display) !important; }
.has-body-font-family { font-family: var(--wp--preset--font-family--body) !important; }
.has-mono-font-family { font-family: var(--wp--preset--font-family--mono) !important; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* ---- Shared block style variations ----------------------------------- */
/* Paragraph "eyebrow": mono label, uppercase (theme.json: core/paragraph variation) */
.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4;
	display: inline-flex; align-items: center; gap: 0.6em;
}
.is-style-eyebrow::before { content: ""; width: 0.5em; height: 0.5em; background: var(--eyebrow-dot, var(--wp--preset--color--signal)); flex: none; }
/* Paragraph "index": chapter number "[ 01 ]" */
.is-style-index { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--x-small); letter-spacing: 0.08em; }

/* ---- Motion: reveal on scroll (mockup.js adds .is-visible) ----------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--wp--custom--motion--duration) var(--wp--custom--motion--ease), transform var(--wp--custom--motion--duration) var(--wp--custom--motion--ease); transition-delay: calc(var(--reveal-i, 0) * var(--wp--custom--motion--stagger)); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---- Hero video pause control (WCAG 2.2.2) --------------------------- */
.video-toggle {
	position: absolute; z-index: 3; right: var(--wp--style--root--padding-right); bottom: var(--wp--preset--spacing--40);
	display: inline-flex; align-items: center; gap: 0.5em; padding: 0.5em 0.8em;
	border: 1px solid currentColor; border-radius: var(--wp--custom--radius--pill); background: transparent; cursor: pointer;
	font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.video-toggle .icon-play { display: none; }
.video-toggle[aria-pressed="true"] .icon-play { display: inline; }
.video-toggle[aria-pressed="true"] .icon-pause { display: none; }
