/*
Theme Name: Gindar Studio
Theme URI: https://www.gindarstudio.com
Author: Gindar Studio
Author URI: https://www.gindarstudio.com
Description: Custom block theme for the Gindar Studio website. Presentation only: layouts, templates, template parts and design tokens. Business data (portfolio) lives in the Gindar Core plugin.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.4.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gindar-studio
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, custom-menu, editor-style
*/

/*
 * Most styling lives in theme.json. This file only holds what theme.json
 * cannot express for WordPress 6.6+: focus rings, form controls, the outline
 * button hover state and reduced motion. See docs/DESIGN-SYSTEM.md.
 */

/* ---------- Focus (DESIGN-SYSTEM.md §2.3 rule 5) ----------
 * 2px violet ring with a 2px offset, so the ring sits against the light page
 * background (7.87:1 on white, 7.46:1 on #F7F9FC), never directly on navy.
 */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible,
.wp-block-navigation-item__content:focus-visible,
.wp-block-navigation__responsive-container-open:focus-visible,
.wp-block-navigation__responsive-container-close:focus-visible {
	outline: 2px solid var(--wp--preset--color--tertiary);
	outline-offset: 2px;
}

a:where(:not(.wp-element-button)) {
	text-underline-offset: 0.15em;
	text-decoration-thickness: 1px;
}

a:where(:not(.wp-element-button)):focus-visible {
	color: var(--wp--preset--color--tertiary);
}

/* ---------- Buttons ----------
 * Primary: navy fill, white text; hover inverts (set in theme.json).
 * Outline (secondary): transparent with navy border; hover uses the soft grey
 * section colour. Approved palette colours only, no extra hover shades.
 */
.wp-element-button,
.wp-block-button__link {
	min-height: 44px;
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--contrast);
}

/* ---------- Form controls (DESIGN-SYSTEM.md §5) ----------
 * 1px solid navy boundary (17.9:1), white fill, visible labels expected.
 * Applies to the core Search block and to form plugins added later.
 */
:where(
	input[type="text"],
	input[type="email"],
	input[type="search"],
	input[type="tel"],
	input[type="url"],
	input[type="number"],
	input[type="password"],
	input[type="date"],
	select,
	textarea
) {
	min-height: 44px;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 8px;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.4;
}

:where(textarea) {
	min-height: 8rem;
}

:where(input[type="checkbox"], input[type="radio"]) {
	accent-color: var(--wp--preset--color--contrast);
	width: 1.25rem;
	height: 1.25rem;
}

.wp-block-search__input {
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 8px;
}

/* ---------- Navigation ----------
 * Comfortable touch targets for menu links (at least 24px, aiming for 44px).
 */
.wp-block-navigation .wp-block-navigation-item__content {
	padding-block: 0.5rem;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
}

/* Desktop dropdowns (not the mobile overlay): wide enough for one-line
 * service names, anchored to the parent item's left edge so the panel stays
 * on screen when the header wraps, and never wider than the viewport.
 */
.wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container {
	left: 0;
	right: auto;
	min-width: min(20rem, calc(100vw - 2.5rem));
}

/* Mobile header (below 600px, where the menu collapses to a button): logo on
 * the left, menu button on the right. Request a Quote sits between them when
 * there is room, and takes its own full-width row on narrow phones. The
 * selectors follow the header's block structure, so they also apply to a
 * header saved from the Site Editor.
 */
@media (max-width: 599px) {
	header.wp-block-template-part .wp-block-group:has(> .wp-block-group > .wp-block-navigation) {
		flex-wrap: nowrap;
		align-items: center;
	}

	header.wp-block-template-part .wp-block-group:has(> .wp-block-navigation) {
		display: contents;
	}

	header.wp-block-template-part :is(.wp-block-site-logo, .wp-block-site-title) {
		min-width: 0;
		margin-right: auto;
	}

	header.wp-block-template-part .wp-block-group:has(> .wp-block-navigation) > .wp-block-navigation {
		order: 1;
	}
}

@media (max-width: 479px) {
	header.wp-block-template-part .wp-block-group:has(> .wp-block-group > .wp-block-navigation) {
		flex-wrap: wrap;
		row-gap: var(--wp--preset--spacing--30);
	}

	header.wp-block-template-part .wp-block-group:has(> .wp-block-navigation) > .wp-block-buttons {
		order: 2;
		flex-basis: 100%;
	}

	header.wp-block-template-part .wp-block-group:has(> .wp-block-navigation) > .wp-block-buttons > .wp-block-button,
	header.wp-block-template-part .wp-block-group:has(> .wp-block-navigation) > .wp-block-buttons .wp-block-button__link {
		width: 100%;
	}
}

/* Mobile menu overlay: every item left-aligned (core carries the desktop
 * right alignment into the overlay), Services links indented beneath their
 * parent with a teal guide line, and room for long names to wrap.
 */
.wp-block-navigation__responsive-container.is-menu-open,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-text-align: start;
}

.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
	padding: 0.25rem 0;
	text-align: start;
}

.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
	align-self: stretch;
	min-width: 0;
	margin-top: var(--wp--preset--spacing--30);
	padding: 0 0 0 var(--wp--preset--spacing--40);
	border-left: 2px solid var(--wp--preset--color--primary);
	gap: var(--wp--preset--spacing--30);
}

/* ---------- Footer ----------
 * Four columns on desktop, sized to their content: Services and Legal take
 * the width of their longest link (up to a limit), Brand and Contact share
 * the rest. Two per row on tablets, one on phones. This replaces the grid's
 * equal columns, so the Columns setting in the editor does not change the
 * front end.
 */
.wp-block-group.gindar-footer-columns {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) {
	.wp-block-group.gindar-footer-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.wp-block-group.gindar-footer-columns {
		grid-template-columns: minmax(0, 1.2fr) fit-content(18rem) minmax(0, 1fr) fit-content(12rem);
	}
}

/* Footer link lists: no bullets, a little space between links. */
.gindar-footer-links {
	padding-left: 0;
	list-style: none;
}

.gindar-footer-links > li + li {
	margin-top: var(--wp--preset--spacing--20);
}

/* ---------- Portfolio (Gindar Core) ----------
 * Project fields bound to the gindar/project source are not rendered when
 * empty; hide a field group, or the whole details box, left with nothing.
 */
.gindar-project-field:not(:has(*)),
.gindar-project-details:not(:has(p, .wp-block-button)) {
	display: none;
}

/* ---------- Pattern library (Phase 3) ----------
 * Block style variations live in styles/*.json; only what theme.json cannot
 * express is here. Accent colours are decorative only (never text).
 */

/* Section label: a short teal rule before the navy text. */
.is-style-eyebrow::before {
	content: "";
	display: inline-block;
	width: 1.5rem;
	height: 2px;
	margin-right: 0.75rem;
	vertical-align: middle;
	background-color: var(--wp--preset--color--primary);
}

/* Checklist: a small teal tick replaces the bullet; the list stays a list. */
.is-style-checklist {
	list-style: none;
}

.is-style-checklist > li {
	position: relative;
	padding-left: 1.75rem;
}

.is-style-checklist > li + li {
	margin-top: 0.5rem;
}

.is-style-checklist > li::before {
	content: "";
	position: absolute;
	top: 0.45em;
	left: 0.2rem;
	width: 0.5rem;
	height: 0.85rem;
	border: solid var(--wp--preset--color--primary);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* FAQ: Details blocks with a clear, keyboard-friendly summary row. */
.gindar-faq .wp-block-details {
	padding-block: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--contrast);
}

.gindar-faq .wp-block-details summary {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	cursor: pointer;
	min-height: 44px;
	display: flex;
	align-items: center;
}

.gindar-faq .wp-block-details > :not(summary) {
	margin-top: var(--wp--preset--spacing--30);
}

/* Cards stretch to equal height inside grids. */
.gindar-card-grid > .wp-block-group,
.gindar-card-grid > li > .wp-block-group {
	height: 100%;
}

/* ---------- Gradient hero (redesign phase 1) ----------
 * Pattern: patterns/hero-gradient.php. Rules: DESIGN-SYSTEM.md §2.4
 * (gradients), §5 (gradient hero, mockup frames) and §7 (motion).
 * Text sits on the soft-brand gradient: navy text 14.68:1 or better.
 * Accent colours appear only as decorative frame details, never as text.
 */
.gindar-hero-gradient {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

/* Text first, mockups below; side by side from 1024px. */
.gindar-hero-gradient .gindar-hero-gradient__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--70);
	align-items: center;
}

.gindar-hero-gradient .gindar-hero-gradient__inner > *,
.gindar-hero-gradient .gindar-hero-gradient__visual > * {
	margin-block: 0;
}

.gindar-hero-gradient .gindar-hero-gradient__content {
	max-width: 36rem;
}

@media (min-width: 1024px) {
	.gindar-hero-gradient .gindar-hero-gradient__inner {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
		gap: var(--wp--preset--spacing--60);
	}
}

/* Mockup composition: a browser frame with a branding card overlapping its
 * lower right corner. Both share one grid row; the browser's bottom margin
 * (a share of the composition width) sets how far the card hangs below it.
 */
.gindar-hero-gradient .gindar-hero-gradient__visual {
	position: relative;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	width: 100%;
	max-width: 44rem;
	justify-self: center;
}

/* Soft brand glow behind the mockups only, never behind text (§2.4 rule 3). */
.gindar-hero-gradient .gindar-hero-gradient__visual::before {
	content: "";
	position: absolute;
	inset: -8% -10% -6% -6%;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(closest-side at 35% 40%, color-mix(in srgb, var(--wp--preset--color--tertiary) 20%, transparent), transparent),
		radial-gradient(closest-side at 75% 70%, color-mix(in srgb, var(--wp--preset--color--secondary) 22%, transparent), transparent);
}

.gindar-hero-gradient .gindar-hero-gradient__browser,
.gindar-hero-gradient .gindar-hero-gradient__card {
	position: relative;
	grid-row: 1;
	background-color: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--mockup);
}

.gindar-hero-gradient .gindar-hero-gradient__browser {
	grid-column: 1 / 12;
	margin-bottom: 16%;
	padding-top: 2rem;
	overflow: hidden;
	border-radius: 14px;
}

/* Title bar: base-2, a 3px brand-line accent and three decorative dots. */
.gindar-hero-gradient .gindar-hero-gradient__browser::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 2rem;
	background:
		var(--wp--custom--gradient--brand-line) top / 100% 3px no-repeat,
		var(--wp--preset--color--base-2);
}

.gindar-hero-gradient .gindar-hero-gradient__browser::after {
	content: "";
	position: absolute;
	top: calc(1rem - 2.5px);
	left: 1rem;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--accent-pink);
	box-shadow:
		14px 0 0 var(--wp--preset--color--accent-yellow),
		28px 0 0 var(--wp--preset--color--primary);
}

.gindar-hero-gradient .gindar-hero-gradient__card {
	grid-column: 9 / 13;
	align-self: end;
	padding: 0.5rem;
	border-radius: 12px;
}

.gindar-hero-gradient :is(.gindar-hero-gradient__browser, .gindar-hero-gradient__card) .wp-block-image {
	margin: 0;
}

.gindar-hero-gradient .gindar-hero-gradient__browser img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top center;
}

.gindar-hero-gradient .gindar-hero-gradient__card img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 8px;
}

/* Frames keep their shape while no image is set (an empty Image block
 * renders nothing on the front end and a placeholder in the editor).
 */
.gindar-hero-gradient .gindar-hero-gradient__browser:not(:has(img)) {
	aspect-ratio: 16 / 11;
}

.gindar-hero-gradient .gindar-hero-gradient__card:not(:has(img)) {
	aspect-ratio: 4 / 5;
}

/* Entrance motion (§7): once, on load, front end only (the editor body
 * carries .editor-styles-wrapper), and never for reduced-motion visitors.
 * The H1 starts at 25% opacity so it is painted straight away.
 */
@media (prefers-reduced-motion: no-preference) {
	body:not(.editor-styles-wrapper) .gindar-hero-gradient__content > * {
		animation: gindar-hero-rise var(--wp--custom--motion--duration-entrance) var(--wp--custom--motion--ease-out) both;
	}

	body:not(.editor-styles-wrapper) .gindar-hero-gradient__content > :nth-child(2) {
		animation-name: gindar-hero-heading;
		animation-delay: 90ms;
	}

	body:not(.editor-styles-wrapper) .gindar-hero-gradient__content > :nth-child(3) {
		animation-delay: 180ms;
	}

	body:not(.editor-styles-wrapper) .gindar-hero-gradient__content > :nth-child(4) {
		animation-delay: 270ms;
	}

	body:not(.editor-styles-wrapper) .gindar-hero-gradient__content > :nth-child(n+5) {
		animation-delay: 360ms;
	}

	body:not(.editor-styles-wrapper) :is(.gindar-hero-gradient__browser, .gindar-hero-gradient__card) {
		animation: gindar-hero-frame var(--wp--custom--motion--duration-entrance-slow) var(--wp--custom--motion--ease-out) 200ms both;
	}

	body:not(.editor-styles-wrapper) .gindar-hero-gradient__card {
		animation-delay: 450ms;
	}
}

@keyframes gindar-hero-rise {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes gindar-hero-heading {
	from {
		opacity: 0.25;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes gindar-hero-frame {
	from {
		opacity: 0;
		transform: translateY(24px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Services: premium cards (redesign phase 2) ----------
 * Pattern: patterns/services-premium-cards.php. Rules: DESIGN-SYSTEM.md §2.4
 * (card tints), §5 (service card) and §7 (hover motion). Navy text on every
 * tint (14.68:1 or better). The accent circle and icon are decorative; the
 * heading link carries the meaning.
 */

/* One column on phones; 2 (last card full width) from 600px; 3 + 2 from
 * 900px; five in a row from 1200px.
 */
.gindar-services-premium .gindar-services-premium__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--40);
}

.gindar-services-premium .gindar-services-premium__grid > *,
.gindar-services-premium .gindar-service-card > * {
	margin-block: 0;
}

@media (min-width: 600px) and (max-width: 899px) {
	.gindar-services-premium .gindar-services-premium__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gindar-services-premium .gindar-services-premium__grid > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media (min-width: 900px) and (max-width: 1199px) {
	.gindar-services-premium .gindar-services-premium__grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.gindar-services-premium .gindar-services-premium__grid > * {
		grid-column: span 2;
	}

	.gindar-services-premium .gindar-services-premium__grid > :nth-child(n+4) {
		grid-column: span 3;
	}
}

@media (min-width: 1200px) {
	.gindar-services-premium .gindar-services-premium__grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* Card colours: a 12% tint background and a full-strength accent circle. */
.gindar-service-card {
	--gindar-card-tint: var(--wp--preset--color--base-2);
	--gindar-card-accent: var(--wp--preset--color--primary);
	--gindar-card-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1535' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

.gindar-service-card--teal {
	--gindar-card-tint: var(--wp--custom--tint--teal);
	--gindar-card-accent: var(--wp--preset--color--primary);
}

.gindar-service-card--sky {
	--gindar-card-tint: var(--wp--custom--tint--sky);
	--gindar-card-accent: var(--wp--preset--color--secondary);
}

/* Purple: white arrow (7.87:1); navy would be only 2.27:1. */
.gindar-service-card--purple {
	--gindar-card-tint: var(--wp--custom--tint--purple);
	--gindar-card-accent: var(--wp--preset--color--tertiary);
	--gindar-card-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

.gindar-service-card--yellow {
	--gindar-card-tint: var(--wp--custom--tint--yellow);
	--gindar-card-accent: var(--wp--preset--color--accent-yellow);
}

.gindar-service-card--pink {
	--gindar-card-tint: var(--wp--custom--tint--pink);
	--gindar-card-accent: var(--wp--preset--color--accent-pink);
}

.gindar-services-premium .gindar-service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	height: 100%;
	padding: var(--wp--preset--spacing--50);
	border-radius: 16px;
	background-color: var(--gindar-card-tint);
	color: var(--wp--preset--color--contrast);
}

@media (min-width: 1200px) {
	.gindar-services-premium .gindar-service-card {
		padding: var(--wp--preset--spacing--40);
	}
}

/* Icon: a white tile holding the decorative SVG. */
.gindar-services-premium .gindar-service-card__icon {
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	margin-bottom: var(--wp--preset--spacing--20);
	border-radius: 14px;
	background-color: var(--wp--preset--color--base);
}

.gindar-services-premium .gindar-service-card__icon img {
	width: 2rem;
	height: 2rem;
}

.gindar-services-premium .gindar-service-card__title {
	line-height: 1.25;
}

.gindar-services-premium .gindar-service-card__title a {
	color: inherit;
	text-decoration: none;
}

/* Circular arrow, pinned to the bottom so arrows line up across a row. */
.gindar-services-premium .gindar-service-card::after {
	content: "";
	flex: none;
	align-self: flex-start;
	width: 2.5rem;
	height: 2.5rem;
	margin-top: auto;
	border-radius: 50%;
	background: var(--gindar-card-arrow) center / 1.125rem no-repeat, var(--gindar-card-accent);
}

/* Front end only (the editor body carries .editor-styles-wrapper): the
 * heading link covers the whole card, so the card is one link and one tab
 * stop, and the card shows the focus ring. In the editor the card stays
 * editable.
 */
body:not(.editor-styles-wrapper) .gindar-services-premium .gindar-service-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 16px;
}

body:not(.editor-styles-wrapper) .gindar-services-premium .gindar-service-card:hover .gindar-service-card__title a {
	text-decoration: underline;
}

@supports selector(:has(a)) {
	body:not(.editor-styles-wrapper) .gindar-services-premium .gindar-service-card:has(a:focus-visible) {
		outline: 2px solid var(--wp--preset--color--tertiary);
		outline-offset: 2px;
	}

	body:not(.editor-styles-wrapper) .gindar-services-premium .gindar-service-card__title a:focus-visible {
		outline: none;
		text-decoration: underline;
	}
}

body:not(.editor-styles-wrapper) .gindar-services-premium .gindar-service-card:is(:hover, :focus-within) {
	box-shadow: var(--wp--preset--shadow--mockup);
}

/* Lift and arrow movement only for visitors who have not asked for reduced
 * motion. The shadow above still marks hover and focus without them.
 */
@media (prefers-reduced-motion: no-preference) {
	body:not(.editor-styles-wrapper) .gindar-services-premium .gindar-service-card {
		transition:
			transform var(--wp--custom--motion--duration-hover) var(--wp--custom--motion--ease-out),
			box-shadow var(--wp--custom--motion--duration-hover) var(--wp--custom--motion--ease-out);
	}

	body:not(.editor-styles-wrapper) .gindar-services-premium .gindar-service-card::after {
		transition: transform var(--wp--custom--motion--duration-hover) var(--wp--custom--motion--ease-out);
	}

	body:not(.editor-styles-wrapper) .gindar-services-premium .gindar-service-card:is(:hover, :focus-within) {
		transform: translateY(-4px);
	}

	body:not(.editor-styles-wrapper) .gindar-services-premium .gindar-service-card:is(:hover, :focus-within)::after {
		transform: translateX(4px);
	}
}

/* ---------- Creative showcase (redesign phase 3) ----------
 * Pattern: patterns/creative-showcase-premium.php. Rules: DESIGN-SYSTEM.md
 * §5 (showcase card) and §7 (hover motion). White cards on the base-2
 * section, navy text, teal-tint arrow that turns purple on hover/focus.
 */

/* One column on phones; two from 700px with the third card centred at the
 * same width; three in a row from 1024px.
 */
.gindar-showcase .gindar-showcase__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--50);
}

.gindar-showcase .gindar-showcase__grid > *,
.gindar-showcase .gindar-showcase-card > *,
.gindar-showcase .gindar-showcase-card__body > *,
.gindar-showcase .gindar-showcase-card__media > * {
	margin-block: 0;
}

@media (min-width: 700px) and (max-width: 1023px) {
	.gindar-showcase .gindar-showcase__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gindar-showcase .gindar-showcase__grid > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc((100% - var(--wp--preset--spacing--50)) / 2);
	}
}

@media (min-width: 1024px) {
	.gindar-showcase .gindar-showcase__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.gindar-showcase-card {
	--gindar-showcase-arrow-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1535' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--gindar-showcase-arrow-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

.gindar-showcase .gindar-showcase-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 20px;
	background-color: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--card);
	color: var(--wp--preset--color--contrast);
}

/* Image area: a fixed 4:3 frame. Images are cropped from the centre; an empty
 * slot (an empty Image block renders nothing on the front end) shows the soft
 * brand surface instead of a blank gap.
 */
.gindar-showcase .gindar-showcase-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--wp--preset--gradient--soft-brand);
}

/* No image yet: let the frame grow so the editor's upload placeholder is
 * never clipped (on the front end the empty frame keeps its 4:3 shape).
 */
.gindar-showcase .gindar-showcase-card__media:not(:has(img)) {
	overflow: visible;
}

.gindar-showcase .gindar-showcase-card__media .wp-block-image {
	height: 100%;
}

.gindar-showcase .gindar-showcase-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gindar-showcase .gindar-showcase-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--50);
}

.gindar-showcase .gindar-showcase-card__title {
	line-height: 1.25;
}

.gindar-showcase .gindar-showcase-card__title a {
	color: inherit;
	text-decoration: none;
}

/* Arrow: teal tint circle, navy arrow; purple with a white arrow (7.87:1) on
 * hover and focus. Pinned to the bottom so arrows line up across a row.
 */
.gindar-showcase .gindar-showcase-card__body::after {
	content: "";
	flex: none;
	align-self: flex-start;
	width: 2.5rem;
	height: 2.5rem;
	margin-top: auto;
	border-radius: 50%;
	background: var(--gindar-showcase-arrow-navy) center / 1.125rem no-repeat, var(--wp--custom--tint--teal);
}

/* Front end only (the editor body carries .editor-styles-wrapper): the
 * heading link covers the whole card, so each card is one link and one tab
 * stop; the card shows the focus ring. In the editor the card stays editable.
 */
body:not(.editor-styles-wrapper) .gindar-showcase .gindar-showcase-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 20px;
}

body:not(.editor-styles-wrapper) .gindar-showcase .gindar-showcase-card:hover .gindar-showcase-card__title a {
	text-decoration: underline;
}

@supports selector(:has(a)) {
	body:not(.editor-styles-wrapper) .gindar-showcase .gindar-showcase-card:has(a:focus-visible) {
		outline: 2px solid var(--wp--preset--color--tertiary);
		outline-offset: 2px;
	}

	body:not(.editor-styles-wrapper) .gindar-showcase .gindar-showcase-card__title a:focus-visible {
		outline: none;
		text-decoration: underline;
	}
}

body:not(.editor-styles-wrapper) .gindar-showcase .gindar-showcase-card:is(:hover, :focus-within) {
	box-shadow: var(--wp--preset--shadow--mockup);
}

body:not(.editor-styles-wrapper) .gindar-showcase .gindar-showcase-card:is(:hover, :focus-within) .gindar-showcase-card__body::after {
	background: var(--gindar-showcase-arrow-white) center / 1.125rem no-repeat, var(--wp--preset--color--tertiary);
}

/* Lift, image zoom and arrow movement only when motion is allowed. Colour and
 * shadow changes above still mark hover and focus without them.
 */
@media (prefers-reduced-motion: no-preference) {
	body:not(.editor-styles-wrapper) .gindar-showcase .gindar-showcase-card {
		transition:
			transform var(--wp--custom--motion--duration-hover) var(--wp--custom--motion--ease-out),
			box-shadow var(--wp--custom--motion--duration-hover) var(--wp--custom--motion--ease-out);
	}

	body:not(.editor-styles-wrapper) .gindar-showcase .gindar-showcase-card__media img {
		transition: transform var(--wp--custom--motion--duration-zoom) var(--wp--custom--motion--ease-out);
	}

	body:not(.editor-styles-wrapper) .gindar-showcase .gindar-showcase-card__body::after {
		transition: transform var(--wp--custom--motion--duration-hover) var(--wp--custom--motion--ease-out);
	}

	body:not(.editor-styles-wrapper) .gindar-showcase .gindar-showcase-card:is(:hover, :focus-within) {
		transform: translateY(-4px);
	}

	body:not(.editor-styles-wrapper) .gindar-showcase .gindar-showcase-card:is(:hover, :focus-within) .gindar-showcase-card__media img {
		transform: scale(1.04);
	}

	body:not(.editor-styles-wrapper) .gindar-showcase .gindar-showcase-card:is(:hover, :focus-within) .gindar-showcase-card__body::after {
		transform: translateX(4px);
	}
}

/* ---------- Process steps (redesign phase 4) ----------
 * Pattern: patterns/process-premium-steps.php. Rules: DESIGN-SYSTEM.md §2.5
 * (tints), §5 (process steps) and §7 (motion). Steps are not links; the
 * icons and connecting lines are decorative.
 *
 * Phones: a vertical sequence, icon beside the text, joined by a vertical
 * line. Tablets (600px+): two columns, icon above the text, no lines.
 * Desktop (1024px+): four steps in a row joined by horizontal lines.
 */
.gindar-process .gindar-process__steps {
	--gindar-process-gap: var(--wp--preset--spacing--50);
	--gindar-process-icon: 3.5rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--gindar-process-gap);
}

.gindar-process .gindar-process__steps > *,
.gindar-process .gindar-process-step > *,
.gindar-process .gindar-process-step__text > * {
	margin-block: 0;
}

/* Step colours: accent ring, tint fill, and the next step's accent for the
 * connecting line.
 */
.gindar-process-step,
.gindar-process-step--teal {
	--gindar-step-accent: var(--wp--preset--color--primary);
	--gindar-step-tint: var(--wp--custom--tint--teal);
	--gindar-step-next: var(--wp--preset--color--tertiary);
}

.gindar-process-step--purple {
	--gindar-step-accent: var(--wp--preset--color--tertiary);
	--gindar-step-tint: var(--wp--custom--tint--purple);
	--gindar-step-next: var(--wp--preset--color--secondary);
}

.gindar-process-step--sky {
	--gindar-step-accent: var(--wp--preset--color--secondary);
	--gindar-step-tint: var(--wp--custom--tint--sky);
	--gindar-step-next: var(--wp--preset--color--accent-yellow);
}

.gindar-process-step--yellow {
	--gindar-step-accent: var(--wp--preset--color--accent-yellow);
	--gindar-step-tint: var(--wp--custom--tint--yellow);
	--gindar-step-next: var(--wp--preset--color--accent-yellow);
}

.gindar-process .gindar-process-step {
	position: relative;
	display: grid;
	grid-template-columns: var(--gindar-process-icon) minmax(0, 1fr);
	column-gap: var(--wp--preset--spacing--40);
	row-gap: var(--wp--preset--spacing--40);
	align-items: start;
}

/* Circular icon: tint fill with a 2px accent ring. */
.gindar-process .gindar-process-step__icon {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: var(--gindar-process-icon);
	height: var(--gindar-process-icon);
	border-radius: 50%;
	background-color: var(--gindar-step-tint);
	box-shadow: inset 0 0 0 2px var(--gindar-step-accent);
}

.gindar-process .gindar-process-step__icon img {
	width: calc(var(--gindar-process-icon) * 0.5);
	height: calc(var(--gindar-process-icon) * 0.5);
}

.gindar-process .gindar-process-step__text {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
}

.gindar-process .gindar-process-step__number {
	color: var(--wp--preset--color--tertiary);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.4;
}

/* Connecting line (phones): vertical, from below one icon to the next. */
.gindar-process .gindar-process-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: calc(var(--gindar-process-icon) + 0.5rem);
	bottom: calc(-1 * var(--gindar-process-gap) + 0.5rem);
	left: calc(var(--gindar-process-icon) / 2 - 1px);
	width: 2px;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--gindar-step-accent), var(--gindar-step-next));
	opacity: 0.55;
	pointer-events: none;
}

@media (min-width: 600px) {
	.gindar-process .gindar-process__steps {
		--gindar-process-gap: var(--wp--preset--spacing--60);
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gindar-process .gindar-process-step {
		grid-template-columns: minmax(0, 1fr);
	}

	.gindar-process .gindar-process-step:not(:last-child)::after {
		display: none;
	}
}

/* Connecting line (desktop): horizontal, between neighbouring icons. */
@media (min-width: 1024px) {
	.gindar-process .gindar-process__steps {
		--gindar-process-gap: var(--wp--preset--spacing--50);
		--gindar-process-icon: 4.5rem;
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.gindar-process .gindar-process-step:not(:last-child)::after {
		display: block;
		top: calc(var(--gindar-process-icon) / 2 - 1px);
		right: calc(-1 * var(--gindar-process-gap) + 0.75rem);
		bottom: auto;
		left: calc(var(--gindar-process-icon) + 0.75rem);
		width: auto;
		height: 2px;
		background: linear-gradient(90deg, var(--gindar-step-accent), var(--gindar-step-next));
	}
}

/* Hover: a soft shadow on the icon; a small lift only when motion is
 * allowed. No pointer cursor, because steps are not links.
 */
body:not(.editor-styles-wrapper) .gindar-process .gindar-process-step:hover .gindar-process-step__icon {
	box-shadow: inset 0 0 0 2px var(--gindar-step-accent), var(--wp--preset--shadow--card);
}

@media (prefers-reduced-motion: no-preference) {
	body:not(.editor-styles-wrapper) .gindar-process .gindar-process-step__icon {
		transition:
			transform var(--wp--custom--motion--duration-hover) var(--wp--custom--motion--ease-out),
			box-shadow var(--wp--custom--motion--duration-hover) var(--wp--custom--motion--ease-out);
	}

	body:not(.editor-styles-wrapper) .gindar-process .gindar-process-step:hover .gindar-process-step__icon {
		transform: translateY(-3px) scale(1.05);
	}

	/* Entrance (§7): each step rises 16px into place as it scrolls into view,
	 * staggered by a later start. CSS only, through scroll-driven animation;
	 * browsers that do not support it simply show the steps.
	 *
	 * Movement only, never opacity: a scroll timeline holds a step at its
	 * first keyframe until it is scrolled into view, so anything that renders
	 * the page without scrolling (full-page screenshots, previews, crawlers)
	 * would otherwise show blank space. At worst a step sits 16px low.
	 */
	@supports (animation-timeline: view()) {
		body:not(.editor-styles-wrapper) .gindar-process .gindar-process-step {
			animation: gindar-process-reveal linear both;
			animation-timeline: view();
			animation-range: entry 10% entry 70%;
		}

		body:not(.editor-styles-wrapper) .gindar-process .gindar-process-step:nth-child(2) {
			animation-range: entry 15% entry 80%;
		}

		body:not(.editor-styles-wrapper) .gindar-process .gindar-process-step:nth-child(3) {
			animation-range: entry 20% entry 90%;
		}

		body:not(.editor-styles-wrapper) .gindar-process .gindar-process-step:nth-child(4) {
			animation-range: entry 25% entry 100%;
		}
	}
}

@keyframes gindar-process-reveal {
	from {
		transform: translateY(16px);
	}

	to {
		transform: none;
	}
}

/* ---------- Premium CTA (redesign phase 5) ----------
 * Pattern: patterns/cta-premium-gradient.php. Rules: DESIGN-SYSTEM.md §2.6
 * (navy CTA panel) and §7 (motion). The only dark surface on the site:
 * white heading (17.9:1), base-2 text (16.98:1), still 9.29:1 or better
 * where a glow sits behind it. Focus ring is white here, because purple on
 * navy is only 2.27:1. Shapes are decorative.
 */
.gindar-cta .gindar-cta__panel {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--60);
	align-items: center;
	overflow: hidden;
	padding: var(--wp--preset--spacing--70) clamp(1.5rem, 6vw, 5rem);
	border-radius: 28px;
	background:
		radial-gradient(circle at var(--gindar-cta-dot, 90% 78%), var(--wp--preset--color--accent-yellow) 0 5px, transparent 6px),
		radial-gradient(45% 75% at 88% 8%, color-mix(in srgb, var(--wp--preset--color--tertiary) 35%, transparent), transparent),
		radial-gradient(40% 70% at 100% 100%, color-mix(in srgb, var(--wp--preset--color--secondary) 30%, transparent), transparent),
		var(--wp--preset--color--contrast);
}

.gindar-cta .gindar-cta__panel > *,
.gindar-cta .gindar-cta__content > :first-child {
	margin-block: 0;
}

.gindar-cta .gindar-cta__content {
	max-width: 40rem;
}

/* Curved shapes: a thin teal ring over the top right and a purple-to-sky
 * arc in the lower left. Behind the content, clipped by the panel.
 */
.gindar-cta .gindar-cta__panel::before,
.gindar-cta .gindar-cta__panel::after {
	content: "";
	position: absolute;
	z-index: -1;
	aspect-ratio: 1;
	border-radius: 50%;
	pointer-events: none;
}

.gindar-cta .gindar-cta__panel::before {
	top: -55%;
	right: -10%;
	width: min(32rem, 70%);
	border: 2px solid color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent);
}

.gindar-cta .gindar-cta__panel::after {
	bottom: -70%;
	left: -12%;
	width: min(26rem, 60%);
	border: 2px solid transparent;
	background:
		linear-gradient(var(--wp--preset--color--contrast), var(--wp--preset--color--contrast)) padding-box,
		linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--tertiary) 70%, transparent), color-mix(in srgb, var(--wp--preset--color--secondary) 50%, transparent)) border-box;
	opacity: 0.8;
}

/* Desktop: text left, button right. */
@media (min-width: 1024px) {
	.gindar-cta .gindar-cta__panel {
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: var(--wp--preset--spacing--70);
	}
}

/* Button: white with navy text (17.9:1) and an arrow; teal with navy text
 * (7.19:1) on hover. Styled here, not with colour presets, so hover works.
 */
.gindar-cta .gindar-cta__button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	min-height: 52px;
	padding: 0.875rem 1.75rem;
	border-color: var(--wp--preset--color--base);
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--large);
}

.gindar-cta .gindar-cta__button .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1535' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.gindar-cta .gindar-cta__button .wp-block-button__link:is(:hover, :focus-visible) {
	border-color: var(--wp--preset--color--primary);
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--contrast);
}

/* White focus ring on navy (17.9:1; at least 9.8:1 over the glows). */
.gindar-cta .gindar-cta__panel :is(a, button):focus-visible,
.gindar-cta .gindar-cta__button .wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--base);
	outline-offset: 3px;
}

/* Links added in the panel text stay light, never navy on navy. */
.gindar-cta .gindar-cta__panel a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--base);
}

/* Phones: a full-width, easily tapped button. */
@media (max-width: 599px) {
	.gindar-cta .gindar-cta__panel {
		--gindar-cta-dot: 92% 6%;
		padding-block: var(--wp--preset--spacing--60);
		border-radius: 20px;
	}

	.gindar-cta .gindar-cta__actions,
	.gindar-cta .gindar-cta__button,
	.gindar-cta .gindar-cta__button .wp-block-button__link {
		width: 100%;
	}
}

/* CTA as the last section of a page: it already supplies the space above the
 * footer (its own bottom padding, spacing|70: 64px on phones to 88px on
 * desktop). Remove the space the template adds after the content, which
 * otherwise doubles it: page-landing.html's <main> bottom padding (an inline
 * style, hence !important) and the root block gap before the footer.
 * Scoped to pages whose content ends with this CTA; other pages keep the
 * template spacing.
 */
main:has(> .wp-block-post-content > .gindar-cta:last-child) {
	padding-bottom: 0 !important;
}

.wp-site-blocks > main:has(> .wp-block-post-content > .gindar-cta:last-child) + * {
	margin-block-start: 0;
}

/* Motion (§7): the arrow nudges on hover/focus and the shapes drift a few
 * pixels while the panel is hovered. Transitions only; nothing loops.
 */
@media (prefers-reduced-motion: no-preference) {
	.gindar-cta .gindar-cta__button .wp-block-button__link::after {
		transition: transform var(--wp--custom--motion--duration-hover) var(--wp--custom--motion--ease-out);
	}

	.gindar-cta .gindar-cta__button .wp-block-button__link:is(:hover, :focus-visible)::after {
		transform: translateX(4px);
	}

	body:not(.editor-styles-wrapper) .gindar-cta .gindar-cta__panel::before,
	body:not(.editor-styles-wrapper) .gindar-cta .gindar-cta__panel::after {
		transition: transform 700ms var(--wp--custom--motion--ease-out);
	}

	body:not(.editor-styles-wrapper) .gindar-cta .gindar-cta__panel:hover::before {
		transform: translate(-12px, 8px);
	}

	body:not(.editor-styles-wrapper) .gindar-cta .gindar-cta__panel:hover::after {
		transform: translate(10px, -8px);
	}
}

/* ---------- Service hero (inner pages, phase 1) ----------
 * Pattern: patterns/service-hero-branding-premium.php. Reuses the homepage
 * gradient hero (.gindar-hero-gradient: gradient, two-column grid from
 * 1024px, text styles and entrance motion); only the image frame, the icon
 * tile and the service-coloured glow are added here. Rules: DESIGN-SYSTEM.md
 * §5 (service hero) and §7. The glow sits behind the image only.
 */
.gindar-service-hero,
.gindar-service-hero--teal {
	--gindar-service-accent: var(--wp--preset--color--primary);
	--gindar-service-tint: var(--wp--custom--tint--teal);
}

.gindar-service-hero .gindar-service-hero__visual {
	position: relative;
	width: 100%;
	max-width: 44rem;
	justify-self: center;
	padding: 0 0 1.75rem 1.75rem;
}

.gindar-service-hero .gindar-service-hero__visual > * {
	margin-block: 0;
}

/* Service-coloured glow behind the image (accent ≤ 24%, sky ≤ 16%). */
.gindar-service-hero .gindar-service-hero__visual::before {
	content: "";
	position: absolute;
	inset: -14% -12% -10% -10%;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(closest-side at 40% 42%, color-mix(in srgb, var(--gindar-service-accent) 24%, transparent), transparent),
		radial-gradient(closest-side at 68% 66%, color-mix(in srgb, var(--wp--preset--color--secondary) 16%, transparent), transparent);
}

/* White rounded frame with the mockup shadow; the image is 4:3. */
.gindar-service-hero .gindar-service-hero__frame {
	position: relative;
	padding: 0.625rem;
	border-radius: 20px;
	background-color: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--mockup);
}

.gindar-service-hero .gindar-service-hero__frame .wp-block-image {
	margin: 0;
}

.gindar-service-hero .gindar-service-hero__frame img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
}

/* No image yet (an empty Image block renders nothing on the front end): a
 * 4:3 soft surface in the service tint keeps the frame's shape.
 */
body:not(.editor-styles-wrapper) .gindar-service-hero .gindar-service-hero__frame:not(:has(img))::before {
	content: "";
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--gindar-service-tint), var(--wp--preset--color--base-2));
}

/* Icon tile: the service-card icon style (white tile, 2rem line icon),
 * overlapping the frame's lower-left corner. Decorative (empty alt).
 */
.gindar-service-hero .gindar-service-hero__icon {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 4.5rem;
	height: 4.5rem;
	margin: 0;
	border-radius: 18px;
	background-color: var(--wp--preset--color--base);
	box-shadow: inset 0 0 0 2px var(--gindar-service-tint), var(--wp--preset--shadow--card);
}

.gindar-service-hero .gindar-service-hero__icon img {
	width: 2.25rem;
	height: 2.25rem;
}

@media (max-width: 599px) {
	.gindar-service-hero .gindar-service-hero__visual {
		padding: 0 0 1.25rem 1.25rem;
	}

	.gindar-service-hero .gindar-service-hero__icon {
		width: 3.5rem;
		height: 3.5rem;
		border-radius: 14px;
	}

	.gindar-service-hero .gindar-service-hero__icon img {
		width: 1.75rem;
		height: 1.75rem;
	}
}

/* Entrance (§7): the text uses the homepage hero motion; the frame and icon
 * rise in after it. Front end only, never for reduced-motion visitors.
 */
@media (prefers-reduced-motion: no-preference) {
	body:not(.editor-styles-wrapper) .gindar-service-hero .gindar-service-hero__frame {
		animation: gindar-hero-frame var(--wp--custom--motion--duration-entrance-slow) var(--wp--custom--motion--ease-out) 200ms both;
	}

	body:not(.editor-styles-wrapper) .gindar-service-hero .gindar-service-hero__icon {
		animation: gindar-hero-frame var(--wp--custom--motion--duration-entrance-slow) var(--wp--custom--motion--ease-out) 450ms both;
	}
}

/* ---------- Service offerings (inner pages, phase 2) ----------
 * Pattern: patterns/service-offerings-branding-premium.php. Informational
 * cards (not links) in the homepage service-card style: 12% tint, 16px
 * radius, white 56px icon tile. Rules: DESIGN-SYSTEM.md §2.5, §5 and §7.
 * Navy text on every tint (14.68:1 or better).
 */
.gindar-offerings,
.gindar-offerings--teal {
	--gindar-offer-tint: var(--wp--custom--tint--teal);
}

.gindar-offerings--sky {
	--gindar-offer-tint: var(--wp--custom--tint--sky);
}

/* Website Development: sky accent on the section label rule (decorative;
 * label text stays navy), matching the website service hero.
 */
.gindar-offerings--sky .is-style-eyebrow::before {
	background-color: var(--wp--preset--color--secondary);
}

.gindar-offerings--purple {
	--gindar-offer-tint: var(--wp--custom--tint--purple);
}

/* Inventory Management Systems: purple label rule (decorative; label text
 * stays navy), matching the IMS service hero.
 */
.gindar-offerings--purple .is-style-eyebrow::before {
	background-color: var(--wp--preset--color--tertiary);
}

.gindar-offerings--yellow {
	--gindar-offer-tint: var(--wp--custom--tint--yellow);
}

/* Educational Content Design: yellow label rule (decorative only; label text
 * stays navy), matching the educational service hero.
 */
.gindar-offerings--yellow .is-style-eyebrow::before {
	background-color: var(--wp--preset--color--accent-yellow);
}

.gindar-offerings--pink {
	--gindar-offer-tint: var(--wp--custom--tint--pink);
}

/* Digital Marketing: pink label rule (decorative; label text stays navy),
 * matching the marketing service hero.
 */
.gindar-offerings--pink .is-style-eyebrow::before {
	background-color: var(--wp--preset--color--accent-pink);
}

/* One column on phones, two from 600px, four from 1024px. Gap: 16px on
 * phones, 20px at 800px, 24px from about 1225px.
 */
.gindar-offerings .gindar-offerings__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1rem, 0.779rem + 0.941vw, 1.5rem);
}

.gindar-offerings .gindar-offerings__grid > *,
.gindar-offerings .gindar-offer-card > * {
	margin-block: 0;
}

@media (min-width: 600px) {
	.gindar-offerings .gindar-offerings__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.gindar-offerings .gindar-offerings__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.gindar-offerings .gindar-offer-card {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	height: 100%;
	padding: var(--wp--preset--spacing--50);
	border-radius: 16px;
	background-color: var(--gindar-offer-tint);
	color: var(--wp--preset--color--contrast);
}

.gindar-offerings .gindar-offer-card h3 {
	line-height: 1.25;
}

/* Icon: the service-card tile (white, 56px, 14px radius, 32px icon). */
.gindar-offerings .gindar-offer-card__icon {
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	margin-bottom: var(--wp--preset--spacing--20);
	border-radius: 14px;
	background-color: var(--wp--preset--color--base);
}

.gindar-offerings .gindar-offer-card__icon img {
	width: 2rem;
	height: 2rem;
}

/* Hover: the card shadow; a 4px lift only when motion is allowed. No
 * pointer cursor, because the cards are not links. Front end only.
 */
body:not(.editor-styles-wrapper) .gindar-offerings .gindar-offer-card:hover {
	box-shadow: var(--wp--preset--shadow--card);
}

@media (prefers-reduced-motion: no-preference) {
	body:not(.editor-styles-wrapper) .gindar-offerings .gindar-offer-card {
		transition:
			transform var(--wp--custom--motion--duration-hover) var(--wp--custom--motion--ease-out),
			box-shadow var(--wp--custom--motion--duration-hover) var(--wp--custom--motion--ease-out);
	}

	body:not(.editor-styles-wrapper) .gindar-offerings .gindar-offer-card:hover {
		transform: translateY(-4px);
	}
}

/* ---------- Service deliverables (inner pages, phase 3) ----------
 * Pattern: patterns/service-deliverables-branding-premium.php. base-2
 * section, intro + 4:3 image frame beside a list of white tiles. Tile borders
 * use the service tint (approved token), not the unapproved border-subtle.
 * No motion. Rules: DESIGN-SYSTEM.md §2.5 and §5.
 */
.gindar-deliverables,
.gindar-deliverables--teal {
	--gindar-deliver-tint: var(--wp--custom--tint--teal);
}

.gindar-deliverables--sky {
	--gindar-deliver-tint: var(--wp--custom--tint--sky);
}

.gindar-deliverables--purple {
	--gindar-deliver-tint: var(--wp--custom--tint--purple);
}

.gindar-deliverables--yellow {
	--gindar-deliver-tint: var(--wp--custom--tint--yellow);
}

.gindar-deliverables--pink {
	--gindar-deliver-tint: var(--wp--custom--tint--pink);
}

/* In-page anchor target (#branding-deliverables): a little room above. */
.gindar-deliverables[id] {
	scroll-margin-top: var(--wp--preset--spacing--40);
}

/* Stacked below 1024px; two equal columns above, vertically centred. */
.gindar-deliverables .gindar-deliverables__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--60);
	align-items: center;
}

.gindar-deliverables .gindar-deliverables__inner > *,
.gindar-deliverables .gindar-deliverables__media > * {
	margin-block: 0;
}

@media (min-width: 1024px) {
	.gindar-deliverables .gindar-deliverables__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 4.5rem;
	}
}

/* Image frame: white, 18px radius, card shadow; the image is 4:3. */
.gindar-deliverables .gindar-deliverables__intro .gindar-deliverables__media {
	margin-top: var(--wp--preset--spacing--50);
	padding: 0.5rem;
	border-radius: 18px;
	background-color: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--card);
}

.gindar-deliverables .gindar-deliverables__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
}

/* No image yet (an empty Image block renders nothing on the front end): a
 * 4:3 tint surface with the guidelines icon, so the frame never looks broken.
 */
body:not(.editor-styles-wrapper) .gindar-deliverables .gindar-deliverables__media:not(:has(img))::before {
	content: "";
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	background:
		url("assets/icons/deliver-guidelines.svg") center / 4.5rem no-repeat,
		linear-gradient(135deg, var(--gindar-deliver-tint), var(--wp--preset--color--base-2));
}

/* Deliverables: a real list shown as white tiles with an icon chip. One
 * column on phones and desktop; two on tablets (last tile full width).
 */
.gindar-deliverables .gindar-deliverables__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) and (max-width: 1023px) {
	.gindar-deliverables .gindar-deliverables__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gindar-deliverables .gindar-deliverables__list > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

/* Tile: about 80px tall (76px on phones). border-box, so the minimum height
 * includes padding and border.
 */
.gindar-deliverables .gindar-deliverable {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	min-height: 5rem;
	margin: 0;
	padding: 1rem 1.25rem;
	border: 1px solid var(--gindar-deliver-tint);
	border-radius: 14px;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
	line-height: 1.4;
}

/* Icon chip (decorative): the service tint behind a 28px line icon. */
.gindar-deliverables .gindar-deliverable::before {
	content: "";
	flex: none;
	width: 3rem;
	height: 3rem;
	border-radius: 12px;
	background-color: var(--gindar-deliver-tint);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 1.75rem;
}

@media (max-width: 599px) {
	.gindar-deliverables .gindar-deliverable {
		min-height: 4.75rem;
		padding: 0.875rem 1rem;
	}
}

.gindar-deliverables .gindar-deliverable--logo-set::before {
	background-image: url("assets/icons/deliver-logo-set.svg");
}

.gindar-deliverables .gindar-deliverable--files::before {
	background-image: url("assets/icons/deliver-files.svg");
}

.gindar-deliverables .gindar-deliverable--palette::before {
	background-image: url("assets/icons/deliver-palette.svg");
}

.gindar-deliverables .gindar-deliverable--guidelines::before {
	background-image: url("assets/icons/deliver-guidelines.svg");
}

.gindar-deliverables .gindar-deliverable--materials::before {
	background-image: url("assets/icons/deliver-materials.svg");
}

/* Website Development (sky option): label rule, tile icons, and a
 * responsive-devices icon on the empty image placeholder.
 */
.gindar-deliverables--sky .is-style-eyebrow::before {
	background-color: var(--wp--preset--color--secondary);
}

.gindar-deliverables .gindar-deliverable--web-responsive::before {
	background-image: url("assets/icons/deliver-web-responsive.svg");
}

.gindar-deliverables .gindar-deliverable--web-pages::before {
	background-image: url("assets/icons/deliver-web-pages.svg");
}

.gindar-deliverables .gindar-deliverable--web-cms::before {
	background-image: url("assets/icons/deliver-web-cms.svg");
}

.gindar-deliverables .gindar-deliverable--web-testing::before {
	background-image: url("assets/icons/deliver-web-testing.svg");
}

.gindar-deliverables .gindar-deliverable--web-handover::before {
	background-image: url("assets/icons/deliver-web-handover.svg");
}

body:not(.editor-styles-wrapper) .gindar-deliverables--sky .gindar-deliverables__media:not(:has(img))::before {
	background:
		url("assets/icons/deliver-web-responsive.svg") center / 4.5rem no-repeat,
		linear-gradient(135deg, var(--gindar-deliver-tint), var(--wp--preset--color--base-2));
}

/* Inventory Management Systems (purple option): label rule, tile icons, and
 * the inventory icon on the empty image placeholder.
 */
.gindar-deliverables--purple .is-style-eyebrow::before {
	background-color: var(--wp--preset--color--tertiary);
}

.gindar-deliverables .gindar-deliverable--ims-system::before {
	background-image: url("assets/icons/deliver-ims-system.svg");
}

.gindar-deliverables .gindar-deliverable--ims-products::before {
	background-image: url("assets/icons/deliver-ims-products.svg");
}

.gindar-deliverables .gindar-deliverable--ims-records::before {
	background-image: url("assets/icons/deliver-ims-records.svg");
}

.gindar-deliverables .gindar-deliverable--ims-dashboard::before {
	background-image: url("assets/icons/deliver-ims-dashboard.svg");
}

.gindar-deliverables .gindar-deliverable--ims-handover::before {
	background-image: url("assets/icons/deliver-ims-handover.svg");
}

body:not(.editor-styles-wrapper) .gindar-deliverables--purple .gindar-deliverables__media:not(:has(img))::before {
	background:
		url("assets/icons/service-inventory.svg") center / 4.5rem no-repeat,
		linear-gradient(135deg, var(--gindar-deliver-tint), var(--wp--preset--color--base-2));
}

/* Digital Marketing (pink option): label rule, tile icons, and the marketing
 * icon on the empty image placeholder.
 */
.gindar-deliverables--pink .is-style-eyebrow::before {
	background-color: var(--wp--preset--color--accent-pink);
}

.gindar-deliverables .gindar-deliverable--dm-plan::before {
	background-image: url("assets/icons/deliver-dm-plan.svg");
}

.gindar-deliverables .gindar-deliverable--dm-graphics::before {
	background-image: url("assets/icons/deliver-dm-graphics.svg");
}

.gindar-deliverables .gindar-deliverable--dm-captions::before {
	background-image: url("assets/icons/deliver-dm-captions.svg");
}

.gindar-deliverables .gindar-deliverable--dm-campaign::before {
	background-image: url("assets/icons/deliver-dm-campaign.svg");
}

.gindar-deliverables .gindar-deliverable--dm-files::before {
	background-image: url("assets/icons/deliver-dm-files.svg");
}

body:not(.editor-styles-wrapper) .gindar-deliverables--pink .gindar-deliverables__media:not(:has(img))::before {
	background:
		url("assets/icons/service-marketing-pink.svg") center / 4.5rem no-repeat,
		linear-gradient(135deg, var(--gindar-deliver-tint), var(--wp--preset--color--base-2));
}

/* Educational Content Design (yellow option): label rule (decorative only),
 * tile icons, and the education icon on the empty image placeholder.
 */
.gindar-deliverables--yellow .is-style-eyebrow::before {
	background-color: var(--wp--preset--color--accent-yellow);
}

.gindar-deliverables .gindar-deliverable--edu-worksheets::before {
	background-image: url("assets/icons/deliver-edu-worksheets.svg");
}

.gindar-deliverables .gindar-deliverable--edu-manual::before {
	background-image: url("assets/icons/deliver-edu-manual.svg");
}

.gindar-deliverables .gindar-deliverable--edu-cards::before {
	background-image: url("assets/icons/deliver-edu-cards.svg");
}

.gindar-deliverables .gindar-deliverable--edu-layout::before {
	background-image: url("assets/icons/deliver-edu-layout.svg");
}

.gindar-deliverables .gindar-deliverable--edu-print::before {
	background-image: url("assets/icons/deliver-edu-print.svg");
}

body:not(.editor-styles-wrapper) .gindar-deliverables--yellow .gindar-deliverables__media:not(:has(img))::before {
	background:
		url("assets/icons/service-education-yellow.svg") center / 4.5rem no-repeat,
		linear-gradient(135deg, var(--gindar-deliver-tint), var(--wp--preset--color--base-2));
}

/* ---------- Service applications gallery (inner pages, phase 4) ----------
 * Pattern: patterns/service-applications-branding-premium.php. base-2
 * section; one featured image beside a 2 × 2 grid of smaller ones, all 4:3,
 * in the showcase-card style (16px radius, card shadow, zoom on hover). Each
 * tile has a white label chip naming its image category (navy, 17.9:1).
 * Rules: DESIGN-SYSTEM.md §5 and §7.
 */
.gindar-applications,
.gindar-applications--teal {
	--gindar-app-tint: var(--wp--custom--tint--teal);
}

.gindar-applications--sky {
	--gindar-app-tint: var(--wp--custom--tint--sky);
}

.gindar-applications--purple {
	--gindar-app-tint: var(--wp--custom--tint--purple);
}

/* Inventory Management Systems: purple label rule (decorative; label text
 * stays navy), matching the other IMS sections.
 */
.gindar-applications--purple .is-style-eyebrow::before {
	background-color: var(--wp--preset--color--tertiary);
}

.gindar-applications--yellow {
	--gindar-app-tint: var(--wp--custom--tint--yellow);
}

/* Educational Content Design: yellow label rule (decorative only; label text
 * stays navy), matching the other Educational Content Design sections.
 */
.gindar-applications--yellow .is-style-eyebrow::before {
	background-color: var(--wp--preset--color--accent-yellow);
}

.gindar-applications--pink {
	--gindar-app-tint: var(--wp--custom--tint--pink);
}

/* Digital Marketing: pink label rule (decorative; label text stays navy),
 * matching the other Digital Marketing sections.
 */
.gindar-applications--pink .is-style-eyebrow::before {
	background-color: var(--wp--preset--color--accent-pink);
}

/* Directly after the (also base-2) deliverables section: no block gap, so
 * the page's white background does not show as a stripe between them.
 */
.gindar-deliverables + .gindar-applications {
	margin-block-start: 0;
}

/* Featured image first and full width; beside the 2 × 2 grid from 1024px.
 * The small grid is one column on narrow phones, two from 480px.
 */
.gindar-applications .gindar-applications__grid,
.gindar-applications .gindar-applications__small {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1rem, 0.779rem + 0.941vw, 1.5rem);
}

.gindar-applications .gindar-applications__grid > *,
.gindar-applications .gindar-applications__small > *,
.gindar-applications .gindar-applications__tile > * {
	margin-block: 0;
}

@media (min-width: 480px) {
	.gindar-applications .gindar-applications__small {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.gindar-applications .gindar-applications__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.gindar-applications .gindar-applications__tile {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	background-color: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--card);
}

.gindar-applications .gindar-applications__tile img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Desktop: the featured image fills the height of the 2 × 2 grid beside it
 * (within about 2% of 4:3, cropped from the centre).
 */
@media (min-width: 1024px) {
	.gindar-applications .gindar-applications__tile--featured .wp-block-image {
		height: 100%;
	}

	.gindar-applications .gindar-applications__tile--featured img {
		height: 100%;
		aspect-ratio: auto;
	}
}

/* Empty slot (an empty Image block renders nothing on the front end): a 4:3
 * soft tint surface with a picture icon; the category label stays visible.
 */
body:not(.editor-styles-wrapper) .gindar-applications .gindar-applications__tile:not(:has(img)) {
	aspect-ratio: 4 / 3;
	background:
		url("assets/icons/placeholder-image.svg") center / 3.5rem no-repeat,
		linear-gradient(135deg, var(--gindar-app-tint), var(--wp--preset--color--base-2));
}

@media (min-width: 1024px) {
	body:not(.editor-styles-wrapper) .gindar-applications .gindar-applications__tile--featured:not(:has(img)) {
		aspect-ratio: auto;
		background-size: 5rem, auto;
	}
}

/* Category label: a white chip over the image's lower-left corner on the
 * front end; an ordinary paragraph under the image in the editor.
 */
body:not(.editor-styles-wrapper) .gindar-applications .gindar-applications__label {
	position: absolute;
	bottom: var(--wp--preset--spacing--30);
	left: var(--wp--preset--spacing--30);
	max-width: calc(100% - 2 * var(--wp--preset--spacing--30));
	padding: 0.375rem 0.875rem;
	border-radius: 999px;
	background-color: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--card);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1.3;
}

/* Hover: the mockup shadow; image zoom (1.04, clipped) only when motion is
 * allowed. Tiles are not links: no pointer cursor. Front end only.
 */
body:not(.editor-styles-wrapper) .gindar-applications .gindar-applications__tile:hover {
	box-shadow: var(--wp--preset--shadow--mockup);
}

@media (prefers-reduced-motion: no-preference) {
	body:not(.editor-styles-wrapper) .gindar-applications .gindar-applications__tile {
		transition: box-shadow var(--wp--custom--motion--duration-hover) var(--wp--custom--motion--ease-out);
	}

	body:not(.editor-styles-wrapper) .gindar-applications .gindar-applications__tile img {
		transition: transform var(--wp--custom--motion--duration-zoom) var(--wp--custom--motion--ease-out);
	}

	body:not(.editor-styles-wrapper) .gindar-applications .gindar-applications__tile:hover img {
		transform: scale(1.04);
	}
}

/* IMS gallery ("A Look Inside Our Systems") only: software screenshots are
 * shown whole, never cropped. The image's figure is the 4:3 frame on the
 * pale-purple tint; the image fills it with object-fit: contain, centred, so
 * any unused space shows the tint. Gallery images follow the approved 4:3
 * template (docs/PATTERN-LIBRARY.md, "IMS gallery images": #EBE6F9 canvas,
 * window 78% wide, 6% top margin, at least 24% clear below for the label),
 * so they fill the frame exactly and the label sits on the clear area; no
 * CSS inset is needed. The hover zoom is off so no edge is clipped; the
 * hover shadow stays. Other galleries keep the approved cover crop and zoom.
 */
.gindar-applications--purple .gindar-applications__tile .wp-block-image {
	box-sizing: border-box;
	aspect-ratio: 4 / 3;
	background-color: var(--gindar-app-tint);
}

.gindar-applications--purple .gindar-applications__tile img {
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	object-fit: contain;
	object-position: center;
}

/* Desktop: the featured frame fills the 2 × 2 grid's height, as before. Size
 * containment stops the contained image from making the gallery taller than
 * the grid (for example a portrait upload): the grid alone sets the height.
 */
@media (min-width: 1024px) {
	.gindar-applications--purple .gindar-applications__tile--featured .wp-block-image {
		aspect-ratio: auto;
		contain: size;
	}
}

@media (prefers-reduced-motion: no-preference) {
	body:not(.editor-styles-wrapper) .gindar-applications--purple .gindar-applications__tile:hover img {
		transform: none;
	}
}

/* ---------- Service page spacing (inner pages) ----------
 * Approved rhythm for pages built from the service sections (any page whose
 * content starts with a service hero). Homepage and other pages are not
 * affected. Rules: DESIGN-SYSTEM.md §4.
 *
 * Every section: --wp--custom--spacing--section top and bottom (48px on
 * phones, 60px at 800px, 72px from about 1225px) and no block gap between
 * sections, so content-to-content spacing is 96 / 120 / 144px. The padding is
 * an inline style on each section block, hence !important.
 */
.wp-block-post-content:has(> .gindar-service-hero) > :is(.gindar-service-hero, .gindar-offerings, .gindar-deliverables, .gindar-applications, .gindar-projects, .gindar-process, .gindar-services-premium, .gindar-team, .gindar-cta) {
	padding-top: var(--wp--custom--spacing--section) !important;
	padding-bottom: var(--wp--custom--spacing--section) !important;
}

.wp-block-post-content:has(> .gindar-service-hero) > :is(.gindar-service-hero, .gindar-offerings, .gindar-deliverables, .gindar-applications, .gindar-projects, .gindar-process, .gindar-services-premium, .gindar-team, .gindar-cta) {
	margin-block-start: 0;
}

/* An empty paragraph left between sections by the editor shows nothing but
 * would add a block gap (a white stripe); hide it on service pages.
 */
.wp-block-post-content:has(> .gindar-service-hero) > p:empty {
	display: none;
}

/* Service hero stacked (below 1024px): 48px between text and image, 40px on
 * phones (the homepage hero keeps its own gap).
 */
@media (max-width: 1023px) {
	.gindar-service-hero .gindar-hero-gradient__inner {
		gap: 3rem;
	}
}

@media (max-width: 599px) {
	.gindar-service-hero .gindar-hero-gradient__inner {
		gap: 2.5rem;
	}
}

/* CTA panel on service pages, desktop: 72px inner padding all round. */
@media (min-width: 1024px) {
	.wp-block-post-content:has(> .gindar-service-hero) > .gindar-cta .gindar-cta__panel {
		padding: 4.5rem;
	}
}

/* ---------- Website service hero (Website Development, phase 1) ----------
 * Pattern: patterns/service-hero-website-premium.php. Reuses the service
 * hero (gradient, grid, text, motion, service-page spacing) and the homepage
 * hero's device composition (.gindar-hero-gradient__visual: browser frame
 * with title bar, overlapping element, glow, entrance). Only the sky colour
 * treatment, the smartphone frame and the empty-screen placeholders are
 * added, all scoped to .gindar-service-hero--sky. Rules: DESIGN-SYSTEM.md §5.
 */
.gindar-service-hero--sky {
	--gindar-service-accent: var(--wp--preset--color--secondary);
	--gindar-service-tint: var(--wp--custom--tint--sky);
}

/* Sky accent on the section label rule (decorative; label text stays navy). */
.gindar-service-hero--sky .is-style-eyebrow::before {
	background-color: var(--wp--preset--color--secondary);
}

/* Smartphone frame: navy bezel, rounded screen, camera pill. It takes the
 * place of the homepage hero's card, overlapping the browser's lower right.
 * The screen is 9:19.5 (390 × 844, a 780 × 1688 screenshot at 2×).
 */
.gindar-service-hero--sky .gindar-hero-gradient__card.gindar-device-phone {
	grid-column: 10 / 13;
	padding: 0.375rem;
	border-radius: 1.75rem;
	background-color: var(--wp--preset--color--contrast);
}

.gindar-service-hero--sky .gindar-hero-gradient__card.gindar-device-phone::before {
	content: "";
	position: absolute;
	top: 0.875rem;
	left: 50%;
	z-index: 1;
	width: 30%;
	height: 0.5rem;
	border-radius: 999px;
	background-color: var(--wp--preset--color--contrast);
	transform: translateX(-50%);
}

.gindar-service-hero--sky .gindar-hero-gradient__card.gindar-device-phone img {
	aspect-ratio: 390 / 844;
	object-position: top center;
	border-radius: 1.4rem;
}

/* Empty slots (an empty Image block renders nothing on the front end): a
 * soft sky surface with a picture icon, so neither frame looks broken.
 */
body:not(.editor-styles-wrapper) .gindar-service-hero--sky .gindar-hero-gradient__browser:not(:has(img)) {
	background:
		url("assets/icons/placeholder-image.svg") center calc(50% + 1rem) / 3.5rem no-repeat,
		linear-gradient(135deg, var(--gindar-service-tint), var(--wp--preset--color--base-2));
}

body:not(.editor-styles-wrapper) .gindar-service-hero--sky .gindar-hero-gradient__card.gindar-device-phone:not(:has(img)) {
	aspect-ratio: 402 / 856;
	background:
		url("assets/icons/placeholder-image.svg") center / 1.75rem no-repeat content-box,
		linear-gradient(160deg, var(--gindar-service-tint), var(--wp--preset--color--base-2)) content-box,
		var(--wp--preset--color--contrast);
}

/* ---------- IMS service hero (Inventory Management Systems, phase 1) ----------
 * Pattern: patterns/service-hero-ims-premium.php. Reuses the website hero's
 * browser frame and glow (.gindar-hero-gradient__visual) and the branding
 * hero's icon tile (.gindar-service-hero__icon). Desktop-only presentation:
 * no phone frame, the browser spans the whole composition and the icon tile
 * overlaps its lower-left corner. Scoped to .gindar-service-hero--purple.
 * Rules: DESIGN-SYSTEM.md §5.
 */
.gindar-service-hero--purple {
	--gindar-service-accent: var(--wp--preset--color--tertiary);
	--gindar-service-tint: var(--wp--custom--tint--purple);
}

/* Purple accent on the section label rule (decorative; label text stays navy). */
.gindar-service-hero--purple .is-style-eyebrow::before {
	background-color: var(--wp--preset--color--tertiary);
}

.gindar-service-hero--purple .gindar-device-solo {
	padding: 0 0 1.75rem 1.75rem;
}

.gindar-service-hero--purple .gindar-device-solo .gindar-hero-gradient__browser {
	grid-column: 1 / -1;
	margin-bottom: 0;
}

@media (max-width: 599px) {
	.gindar-service-hero--purple .gindar-device-solo {
		padding: 0 0 1.25rem 1.25rem;
	}
}

/* Empty dashboard slot: a soft purple surface with a picture icon. */
body:not(.editor-styles-wrapper) .gindar-service-hero--purple .gindar-hero-gradient__browser:not(:has(img)) {
	background:
		url("assets/icons/placeholder-image.svg") center calc(50% + 1rem) / 3.5rem no-repeat,
		linear-gradient(135deg, var(--gindar-service-tint), var(--wp--preset--color--base-2));
}

/* ---------- Marketing service hero (Digital Marketing, phase 1) ----------
 * Pattern: patterns/service-hero-marketing-premium.php. The branding hero
 * unchanged (4:3 white frame, icon tile, glow) with a pink accent. Pink
 * (#EE5A93, 3.22:1 on white) stays decorative: label rule, glow and
 * placeholder tint only; all text is navy. Scoped to
 * .gindar-service-hero--pink. Rules: DESIGN-SYSTEM.md §2 and §5.
 */
.gindar-service-hero--pink {
	--gindar-service-accent: var(--wp--preset--color--accent-pink);
	--gindar-service-tint: var(--wp--custom--tint--pink);
}

.gindar-service-hero--pink .is-style-eyebrow::before {
	background-color: var(--wp--preset--color--accent-pink);
}

/* Empty creative slot: the pale-pink 4:3 surface with a picture icon. */
body:not(.editor-styles-wrapper) .gindar-service-hero--pink .gindar-service-hero__frame:not(:has(img))::before {
	background:
		url("assets/icons/placeholder-image.svg") center / 3.5rem no-repeat,
		linear-gradient(135deg, var(--gindar-service-tint), var(--wp--preset--color--base-2));
}

/* ---------- Educational service hero (Educational Content Design, phase 1) ----------
 * Pattern: patterns/service-hero-educational-premium.php. The branding hero
 * unchanged (4:3 white frame, icon tile, glow) with a yellow accent. Yellow
 * (#F8B43C, 1.81:1 on white) is decorative only: label rule, glow and
 * placeholder tint; all text is navy. Scoped to .gindar-service-hero--yellow.
 * Rules: DESIGN-SYSTEM.md §2 and §5.
 */
.gindar-service-hero--yellow {
	--gindar-service-accent: var(--wp--preset--color--accent-yellow);
	--gindar-service-tint: var(--wp--custom--tint--yellow);
}

.gindar-service-hero--yellow .is-style-eyebrow::before {
	background-color: var(--wp--preset--color--accent-yellow);
}

/* Empty materials slot: the pale-yellow 4:3 surface with a picture icon. */
body:not(.editor-styles-wrapper) .gindar-service-hero--yellow .gindar-service-hero__frame:not(:has(img))::before {
	background:
		url("assets/icons/placeholder-image.svg") center / 3.5rem no-repeat,
		linear-gradient(135deg, var(--gindar-service-tint), var(--wp--preset--color--base-2));
}

/* ---------- Service projects showcase (Website Development, phase 4) ----------
 * Pattern: registered in inc/patterns.php (gindar-studio/service-projects-
 * website-premium), a Query Loop of published Portfolio projects in one
 * service. White cards on base-2 in the showcase-card style: 16px radius,
 * card shadow, 16:10 featured image, navy title and excerpt, and one "View
 * Case Study" link (core Read More, which adds the project title for screen
 * readers) stretched over the card. Rules: DESIGN-SYSTEM.md §5 and §7.
 *
 * Service colour (link arrow chip, and the surface and icon of a project
 * without an image): sky by default (Website Development, About), and the
 * service's own colour on the Related Work sections of the other service
 * pages (gindar-projects--teal / --purple / --pink / --yellow).
 */
.gindar-projects {
	--gindar-projects-tint: var(--wp--custom--tint--sky);
	--gindar-projects-icon: url("assets/icons/offer-web-wordpress.svg");
}

.gindar-projects--sky .is-style-eyebrow::before {
	background-color: var(--wp--preset--color--secondary);
}

.gindar-projects--teal {
	--gindar-projects-tint: var(--wp--custom--tint--teal);
	--gindar-projects-icon: url("assets/icons/service-branding.svg");
}

.gindar-projects--purple {
	--gindar-projects-tint: var(--wp--custom--tint--purple);
	--gindar-projects-icon: url("assets/icons/service-inventory.svg");
}

.gindar-projects--purple .is-style-eyebrow::before {
	background-color: var(--wp--preset--color--tertiary);
}

.gindar-projects--pink {
	--gindar-projects-tint: var(--wp--custom--tint--pink);
	--gindar-projects-icon: url("assets/icons/service-marketing-pink.svg");
}

.gindar-projects--pink .is-style-eyebrow::before {
	background-color: var(--wp--preset--color--accent-pink);
}

.gindar-projects--yellow {
	--gindar-projects-tint: var(--wp--custom--tint--yellow);
	--gindar-projects-icon: url("assets/icons/service-education-yellow.svg");
}

.gindar-projects--yellow .is-style-eyebrow::before {
	background-color: var(--wp--preset--color--accent-yellow);
}

.gindar-projects .gindar-projects__head {
	row-gap: var(--wp--preset--spacing--40);
}

.gindar-projects .gindar-projects__all {
	margin: 0;
	font-weight: 500;
}

/* Cards: as many columns as fit at about 22rem each (one on phones, two on
 * tablets, up to three on desktop); a single project fills the row as a
 * wide card with the image beside the text.
 */
.gindar-projects .gindar-projects__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	gap: clamp(1rem, 0.779rem + 0.941vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.gindar-projects .gindar-projects__grid > li {
	margin: 0;
}

.gindar-projects .gindar-project-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 16px;
	background-color: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--card);
	color: var(--wp--preset--color--contrast);
}

.gindar-projects .gindar-project-card > *,
.gindar-projects .gindar-project-card__body > * {
	margin-block: 0;
}

.gindar-projects .gindar-project-card__image {
	overflow: hidden;
}

.gindar-projects .gindar-project-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

/* A project without a featured image: a plain 16:10 surface in the service
 * tint with the service icon keeps the cards aligned (no invented artwork).
 */
.gindar-projects .gindar-project-card:not(:has(.gindar-project-card__image img))::before {
	content: "";
	display: block;
	aspect-ratio: 16 / 10;
	background:
		var(--gindar-projects-icon) center / 3.5rem no-repeat,
		linear-gradient(135deg, var(--gindar-projects-tint), var(--wp--preset--color--base-2));
}

.gindar-projects .gindar-project-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--50);
}

.gindar-projects .gindar-project-card__body .wp-block-post-title {
	line-height: 1.25;
}

/* Services label above the title (Homepage showcase): small navy text, the
 * services as plain words separated by middle dots.
 */
.gindar-projects .gindar-project-card__services {
	margin: 0;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.4;
}

.gindar-projects .gindar-project-card__body .wp-block-post-excerpt__excerpt {
	margin: 0;
}

/* "View Case Study": navy, underlined, with a sky arrow; pinned to the bottom. */
.gindar-projects .gindar-project-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	align-self: flex-start;
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.gindar-projects .gindar-project-card__link::after {
	content: "";
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1535' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 1rem no-repeat, var(--gindar-projects-tint);
}

/* One project: image beside the text on wide screens. */
@media (min-width: 1024px) {
	.gindar-projects .gindar-projects__grid > li:only-child .gindar-project-card {
		display: grid;
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		align-items: center;
	}

	.gindar-projects .gindar-projects__grid > li:only-child .gindar-project-card__body {
		justify-content: center;
		padding: var(--wp--preset--spacing--60);
	}

	.gindar-projects .gindar-projects__grid > li:only-child .gindar-project-card__link {
		margin-top: var(--wp--preset--spacing--30);
	}
}

/* Front end only: the link covers the whole card (one link, one tab stop),
 * the card shows the focus ring, hover adds the mockup shadow.
 */
body:not(.editor-styles-wrapper) .gindar-projects .gindar-project-card__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 16px;
}

@supports selector(:has(a)) {
	body:not(.editor-styles-wrapper) .gindar-projects .gindar-project-card:has(.gindar-project-card__link:focus-visible) {
		outline: 2px solid var(--wp--preset--color--tertiary);
		outline-offset: 2px;
	}

	body:not(.editor-styles-wrapper) .gindar-projects .gindar-project-card__link:focus-visible {
		outline: none;
	}
}

body:not(.editor-styles-wrapper) .gindar-projects .gindar-project-card:is(:hover, :focus-within) {
	box-shadow: var(--wp--preset--shadow--mockup);
}

@media (prefers-reduced-motion: no-preference) {
	body:not(.editor-styles-wrapper) .gindar-projects .gindar-project-card {
		transition:
			transform var(--wp--custom--motion--duration-hover) var(--wp--custom--motion--ease-out),
			box-shadow var(--wp--custom--motion--duration-hover) var(--wp--custom--motion--ease-out);
	}

	body:not(.editor-styles-wrapper) .gindar-projects .gindar-project-card__image img {
		transition: transform var(--wp--custom--motion--duration-zoom) var(--wp--custom--motion--ease-out);
	}

	body:not(.editor-styles-wrapper) .gindar-projects .gindar-project-card__link::after {
		transition: transform var(--wp--custom--motion--duration-hover) var(--wp--custom--motion--ease-out);
	}

	body:not(.editor-styles-wrapper) .gindar-projects .gindar-project-card:is(:hover, :focus-within) {
		transform: translateY(-4px);
	}

	body:not(.editor-styles-wrapper) .gindar-projects .gindar-project-card:is(:hover, :focus-within) .gindar-project-card__image img {
		transform: scale(1.04);
	}

	body:not(.editor-styles-wrapper) .gindar-projects .gindar-project-card:is(:hover, :focus-within) .gindar-project-card__link::after {
		transform: translateX(4px);
	}
}

/* ---------- About page (redesign) ----------
 * Patterns: patterns/about-*.php and gindar-studio/about-projects-premium
 * (inc/patterns.php). The page reuses the service hero, the deliverables
 * layout, the offering cards, the homepage service cards, the projects
 * showcase and the premium CTA, and follows the service-page spacing; only
 * what differs is here, scoped to About classes. Navy text on every tint.
 * Rules: DESIGN-SYSTEM.md §5 (About page).
 */

/* Our Story: each fact tile in its own brand tint (icon chip and border). */
.gindar-about-story .gindar-deliverable--about-company {
	--gindar-deliver-tint: var(--wp--custom--tint--teal);
}

.gindar-about-story .gindar-deliverable--about-office {
	--gindar-deliver-tint: var(--wp--custom--tint--sky);
}

.gindar-about-story .gindar-deliverable--about-services {
	--gindar-deliver-tint: var(--wp--custom--tint--purple);
}

.gindar-about-story .gindar-deliverable--about-clients {
	--gindar-deliver-tint: var(--wp--custom--tint--pink);
}

.gindar-deliverables .gindar-deliverable--about-company::before {
	background-image: url("assets/icons/about-company.svg");
}

.gindar-deliverables .gindar-deliverable--about-office::before {
	background-image: url("assets/icons/about-office.svg");
}

.gindar-deliverables .gindar-deliverable--about-services::before {
	background-image: url("assets/icons/about-services.svg");
}

.gindar-deliverables .gindar-deliverable--about-clients::before {
	background-image: url("assets/icons/about-clients.svg");
}

/* Story image not chosen yet: the studio icon on the teal surface. */
body:not(.editor-styles-wrapper) .gindar-about-story .gindar-deliverables__media:not(:has(img))::before {
	background:
		url("assets/icons/about-studio.svg") center / 4.5rem no-repeat,
		linear-gradient(135deg, var(--gindar-deliver-tint), var(--wp--preset--color--base-2));
}

/* Launch without photos (owner decision, 2026-11-25): on the front end an
 * About image slot with no image is hidden, so visitors never see an empty
 * frame. The Image blocks stay in the page and stay editable; choosing an
 * image brings the frame back with no other change. Without its image the
 * hero is a single text column; the story keeps its facts beside the text.
 */
body:not(.editor-styles-wrapper) .gindar-about-hero .gindar-service-hero__visual:not(:has(.gindar-service-hero__frame img)),
body:not(.editor-styles-wrapper) .gindar-about-story .gindar-deliverables__media:not(:has(img)) {
	display: none;
}

body:not(.editor-styles-wrapper) .gindar-about-hero .gindar-hero-gradient__inner:not(:has(.gindar-service-hero__frame img)) {
	grid-template-columns: minmax(0, 1fr);
}

body:not(.editor-styles-wrapper) .gindar-about-hero .gindar-hero-gradient__inner:not(:has(.gindar-service-hero__frame img)) .gindar-hero-gradient__content {
	max-width: 46rem;
}

/* What We Believe: each principle card in its own brand tint. */
.gindar-about-values .gindar-offer-card--teal {
	--gindar-offer-tint: var(--wp--custom--tint--teal);
}

.gindar-about-values .gindar-offer-card--sky {
	--gindar-offer-tint: var(--wp--custom--tint--sky);
}

.gindar-about-values .gindar-offer-card--purple {
	--gindar-offer-tint: var(--wp--custom--tint--purple);
}

.gindar-about-values .gindar-offer-card--pink {
	--gindar-offer-tint: var(--wp--custom--tint--pink);
}

/* What We Do: in-page anchor target (#what-we-do), a little room above. */
.gindar-services-premium[id] {
	scroll-margin-top: var(--wp--preset--spacing--40);
}

/* Our Team: white cards in the project-card style (16px radius, card
 * shadow), a square photo on top, then name, role and an optional bio. Any
 * number of cards: at most three per row from 1024px, two from 600px, one on
 * phones. Every card is exactly one column wide, and an incomplete last row
 * (one or two cards) is centred. Add a person by duplicating a card in the
 * editor; no theme change is needed. Not links, so no hover motion.
 */
.gindar-team .gindar-team__grid {
	--gindar-team-gap: clamp(1rem, 0.779rem + 0.941vw, 1.5rem);
	--gindar-team-columns: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--gindar-team-gap);
}

@media (min-width: 600px) {
	.gindar-team .gindar-team__grid {
		--gindar-team-columns: 2;
	}
}

@media (min-width: 1024px) {
	.gindar-team .gindar-team__grid {
		--gindar-team-columns: 3;
	}
}

/* One column wide, whatever the number of cards in the row. */
.gindar-team .gindar-team__grid > .gindar-team-card {
	flex: 0 0 calc((100% - (var(--gindar-team-columns) - 1) * var(--gindar-team-gap)) / var(--gindar-team-columns));
	min-width: 0;
}

/* No team cards yet: the empty grid takes no space on the front end (it
 * stays in the page, ready for cards from the "About — Team Member Card"
 * pattern).
 */
body:not(.editor-styles-wrapper) .gindar-team .gindar-team__grid:not(:has(> *)) {
	display: none;
}

.gindar-team .gindar-team__grid > *,
.gindar-team .gindar-team-card > *,
.gindar-team .gindar-team-card__photo > *,
.gindar-team .gindar-team-card__body > * {
	margin-block: 0;
}

.gindar-team .gindar-team-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 16px;
	background-color: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--card);
	color: var(--wp--preset--color--contrast);
}

/* Photos are always square (1:1), cropped from the centre. */
.gindar-team .gindar-team-card__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

/* No photo yet (an empty Image block renders nothing on the front end), or
 * the photo slot was removed: a neutral avatar (a pale-grey circle with the
 * navy person icon, both scaled to the card) on the card's white keeps every
 * card the same shape. White, not grey, so the card edge never merges with
 * the grey section. Approved colours only; decorative.
 */
body:not(.editor-styles-wrapper) .gindar-team .gindar-team-card__photo:not(:has(img))::before,
body:not(.editor-styles-wrapper) .gindar-team .gindar-team-card:not(:has(.gindar-team-card__photo))::before {
	content: "";
	display: block;
	aspect-ratio: 1;
	background:
		url("assets/icons/about-person.svg") center / 20% no-repeat,
		radial-gradient(circle closest-side, var(--wp--preset--color--base-2) 0 62%, transparent calc(62% + 1px)),
		var(--wp--preset--color--base);
}

.gindar-team .gindar-team-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--50);
}

.gindar-team .gindar-team-card__body h3 {
	line-height: 1.25;
}

.gindar-team .gindar-team-card__role {
	margin-top: calc(-1 * var(--wp--preset--spacing--20));
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* ---------- Launch fixes (2026-11-25) ----------
 * Educational Content Design launches without its images: on the front end
 * the empty hero frame and What You Receive image are hidden (the hero
 * becomes one text column) and the gallery is hidden while none of its tiles
 * has an image. The empty Image blocks stay in the page; adding images brings
 * everything back. See docs/POST-LAUNCH-BACKLOG.md.
 */
body:not(.editor-styles-wrapper) .gindar-service-hero--yellow .gindar-service-hero__visual:not(:has(.gindar-service-hero__frame img)),
body:not(.editor-styles-wrapper) .gindar-deliverables--yellow .gindar-deliverables__media:not(:has(img)),
body:not(.editor-styles-wrapper) .gindar-applications--yellow:not(:has(.gindar-applications__tile img)) {
	display: none;
}

body:not(.editor-styles-wrapper) .gindar-service-hero--yellow .gindar-hero-gradient__inner:not(:has(.gindar-service-hero__frame img)) {
	grid-template-columns: minmax(0, 1fr);
}

body:not(.editor-styles-wrapper) .gindar-service-hero--yellow .gindar-hero-gradient__inner:not(:has(.gindar-service-hero__frame img)) .gindar-hero-gradient__content {
	max-width: 46rem;
}

/* Homepage hero browser frame (now the Al Sadat store screenshot, which is
 * wider than 16:10): keep its left edge, so the store's headline is not cut.
 * Service heroes keep the centred crop.
 */
.gindar-hero-gradient:not(.gindar-service-hero) .gindar-hero-gradient__browser img {
	object-position: left top;
}

/* Homepage Creative Showcase: a card whose image was removed (it showed
 * invented contact details) keeps its 4:3 shape as a plain teal surface with
 * the branding icon, so the three cards stay aligned. Decorative.
 */
body:not(.editor-styles-wrapper) .gindar-showcase .gindar-showcase-card__media:not(:has(img))::before {
	content: "";
	display: block;
	aspect-ratio: 4 / 3;
	background:
		url("assets/icons/service-branding.svg") center / 4.5rem no-repeat,
		linear-gradient(135deg, var(--wp--custom--tint--teal), var(--wp--preset--color--base-2));
}

/* ---------- Media ---------- */
img,
video {
	max-width: 100%;
	height: auto;
}

/* ---------- Reduced motion (DESIGN-SYSTEM.md §7) ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
