/*
 * Mat-Hub brand layer — the colour that theme.css deliberately leaves out.
 *
 * theme.css is the engine: structure, spacing, states. It is intentionally
 * quiet so it can be re-skinned. This file is the skin — the hero band, the
 * twelve category colours, the section bands, the card polish. Loading it
 * last means a future re-skin is one file, not a hunt through three.
 *
 * The one rule this file follows throughout: colour comes from --tile, set
 * per element in PHP, or --c-cat, set once per page in wp_head. No component
 * here hard-codes a category colour.
 */

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

/*
 * A 3px band across the top. Cheap, and it stops the sticky white header from
 * dissolving into a white product grid when the page is scrolled.
 */
.site-header::before {
	content: "";
	display: block;
	height: 3px;
	background: linear-gradient( 90deg,
		var(--c-primary) 0%,
		var(--c-gold-bright) 45%,
		var(--c-secondary) 100% );
}

.site-header { background: var(--c-surface); }

.site-brand { color: var(--c-secondary); letter-spacing: -.01em; }
.site-brand:hover { color: var(--c-primary); }

/*
 * A logo replaces the site name in the same slot, so it inherits the same
 * flex behaviour. The height cap is what keeps a tall upload from stretching
 * the sticky header; width: auto alongside it preserves the aspect ratio
 * whatever the file's own dimensions are.
 */
.site-brand--logo { display: flex; align-items: center; }
.site-brand--logo img,
.site-brand--logo .custom-logo {
	height: auto;
	max-height: 46px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
}

@media ( max-width: 600px ) {
	.site-brand--logo img,
	.site-brand--logo .custom-logo { max-height: 38px; max-width: 140px; }
}

/* ------------------------------------------------------ Mega-menu category */

.megamenu__cat-link { display: flex; align-items: center; gap: .6rem; }

.megamenu__cat-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	overflow: hidden;
	color: var(--tile, var(--c-primary));
	background: color-mix( in srgb, var(--tile, var(--c-primary)) 14%, #fff );
}

.megamenu__cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.megamenu__cat-icon svg { width: 19px; height: 19px; stroke-width: 2; }

.megamenu__cat[data-active="true"] .megamenu__cat-icon {
	background: var(--tile, var(--c-primary));
	color: #fff;
}

.site-search input[type="search"]:focus-visible {
	outline: 2px solid var(--c-primary);
	outline-offset: 1px;
	border-color: var(--c-primary);
}

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

/*
 * The hero carries the colour for the whole page, so it is the one place a
 * gradient is worth its weight. The pattern on top is a single inline SVG in
 * a data URI — no request, no image to commission, and it reads as texture
 * rather than as a placeholder for a photo that never arrived.
 *
 * If a header image is set (Appearance → Header), .hero--photo takes over and
 * the same gradient becomes a scrim over it, so text contrast survives any
 * photograph.
 */
/*
 * If a header image is set (Appearance → Header), .hero--photo takes over
 * and the photo renders completely untouched — no scrim, no tint, no
 * pattern. The text moves into an opaque card (.hero__content) instead of
 * washing the whole photo, so legibility doesn't cost the photo its own
 * colour. Any darkening/gradient a photo needs is the owner's to bake into
 * the file itself before uploading.
 */
.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-bottom: 0;
	border-radius: var(--radius-lg);
	margin: 1.25rem 0 0;
	padding: clamp( 2.25rem, 6vw, 4rem ) clamp( 1.25rem, 4vw, 3rem );
	color: #fff;
	background:
		radial-gradient( 120% 140% at 85% 10%, rgba( 31, 111, 118, .35 ) 0%, rgba( 31, 111, 118, 0 ) 55% ),
		linear-gradient( 135deg, var(--c-primary-dark) 0%, var(--c-primary) 38%, var(--c-secondary) 100% );
}

/* Grid pattern decorates the CSS gradient only — never sits on a photo. */
.hero:not(.hero--photo)::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: .16;
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.5'%3E%3Cpath d='M0 60h120M60 0v120'/%3E%3Ccircle cx='60' cy='60' r='28'/%3E%3Cpath d='M32 32h56v56H32z'/%3E%3C/g%3E%3C/svg%3E" );
	background-size: 120px 120px;
}

.hero__kicker {
	color: #d9f0ee;
	background: rgba( 255, 255, 255, .14 );
	padding: .3rem .75rem;
	border-radius: 999px;
	margin-bottom: .9rem;
}

.hero h1 { color: #fff; text-wrap: balance; }
.hero p { color: rgba( 255, 255, 255, .88 ); }

.hero .btn-primary {
	background: #fff;
	color: var(--c-primary-dark);
	border-color: #fff;
}
.hero .btn-primary:hover { background: #d9f0ee; color: var(--c-primary-dark); }

.hero .btn-secondary {
	background: rgba( 255, 255, 255, .1 );
	border-color: rgba( 255, 255, 255, .55 );
	color: #fff;
}
.hero .btn-secondary:hover { background: rgba( 255, 255, 255, .2 ); }

/* Header image set in the Customizer: shown exactly as uploaded, full-bleed. */
.hero--photo {
	display: flex;
	align-items: center;
	aspect-ratio: 20 / 9;
	background: var( --hero-photo );
	background-size: cover;
	background-position: center;
}

/*
 * The text card. Solid, not translucent — it covers its own footprint
 * fully and leaves the rest of the photo alone, instead of a gradient
 * washing over the whole image. inline-block so its width tracks the
 * content rather than stretching across the photo.
 */
.hero--photo .hero__content {
	width: 44%;
	max-width: 34rem;
	padding: 0;
	background: transparent;
	color: var(--c-ink);
	box-shadow: none;
}

.hero--photo .hero__brand { margin-bottom: clamp( .35rem, 1vw, .75rem ); }
.hero--photo .hero__brand--image-baked { height: clamp( 54px, 8vw, 112px ); }
.hero--photo .hero__logo { display: block; width: auto; height: auto; max-width: clamp( 105px, 14vw, 230px ); max-height: clamp( 54px, 8vw, 112px ); object-fit: contain; }
.hero--photo .hero__brand-text { display: block; color: var(--c-ink); font-size: clamp( 1.4rem, 3.5vw, 3.4rem ); line-height: 1; }
.hero--photo .hero__tagline { margin: 0 0 clamp( .55rem, 1.4vw, 1.15rem ); color: var(--c-ink); font-size: clamp( .9rem, 1.65vw, 1.35rem ); font-weight: 650; line-height: 1.3; text-wrap: balance; }
.hero--photo .btn-primary { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; }
.hero--photo .btn-primary:hover { background: var(--c-primary); color: #fff; }
.hero--photo .btn-secondary { background: rgba( 255, 255, 255, .72 ); border-color: var(--c-primary-dark); color: var(--c-primary-dark); }
.hero--photo .btn-secondary:hover { background: #fff; color: var(--c-primary-dark); }

/* --------------------------------------------------------- Category tiles */

.cat-grid { grid-template-columns: repeat( auto-fill, minmax( 150px, 1fr ) ); gap: 1.1rem; }

.cat-tile {
	display: block;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	background: var(--c-surface);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cat-tile:hover,
.cat-tile:focus-visible {
	transform: translateY( -3px );
	box-shadow: var(--shadow-lift);
	border-color: var(--tile, var(--c-primary));
}

.cat-tile__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	/*
	 * colour-mix keeps one hex per category doing the work of three. Browsers
	 * without it fall back to the flat tint on the line above, which is the
	 * same idea a shade lighter — no layout difference either way.
	 */
	background: var(--c-primary-tint);
	background: color-mix( in srgb, var(--tile, var(--c-primary)) 16%, #fff );
	color: var(--tile, var(--c-primary));
	overflow: hidden;
}

.cat-tile__media img { width: 100%; height: 100%; object-fit: cover; }

/*
 * Diagonal hatching behind the icon. It is what stops twelve icon tiles from
 * reading as twelve empty boxes, and it is the layer a real photograph
 * replaces later without touching anything else.
 */
.cat-tile__pattern {
	position: absolute;
	inset: 0;
	opacity: .75;
	background-image: repeating-linear-gradient(
		45deg,
		transparent 0 8px,
		color-mix( in srgb, var(--tile, var(--c-primary)) 22%, transparent ) 8px 10px
	);
}

.cat-tile__icon {
	position: relative;
	width: 46%;
	max-width: 68px;
	height: auto;
	stroke-width: 2;
}

.cat-tile:hover .cat-tile__icon { transform: scale( 1.06 ); transition: transform .18s ease; }

.cat-tile__label {
	display: block;
	padding: .7rem .75rem .85rem;
	text-align: center;
}

.cat-tile__name {
	display: block;
	font-weight: 600;
	font-size: .92rem;
	line-height: 1.3;
	color: var(--c-ink);
}

.cat-tile__count {
	display: block;
	margin-top: .2rem;
	font-size: .74rem;
	color: var(--tile, var(--c-muted));
}

/*
 * Earlier drafts captioned photo tiles directly over the image (magazine
 * contact-sheet style) and this gradient existed to keep that caption
 * readable. The name moved to its own strip below the photo instead
 * (.cat-tile__label) — nothing sits on the photo anymore, so there's
 * nothing left for a scrim to protect. Removed rather than kept "just in
 * case": if a photo-caption layout comes back later, it should get its own
 * rule sized to that text, not this one revived from memory.
 */

.cat-tile--lg .cat-tile__media { aspect-ratio: 1 / 1; }

/* ------------------------------------------------------- Subcategory strip */

.subcat-nav {
	margin: 0 0 2rem;
	padding: 1.1rem 1.25rem 1.25rem;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	background: var(--c-surface);
	border-top: 3px solid var( --c-cat, var(--c-primary) );
}

.subcat-nav__head {
	margin: 0 0 .85rem;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.subcat-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.subcat-chip {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-height: 44px;
	padding: .35rem .9rem .35rem .4rem;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	background: var(--c-surface);
	color: var(--c-ink);
	font-size: .88rem;
	font-weight: 500;
	text-decoration: none;
	transition: border-color .15s ease, background .15s ease;
}

.subcat-chip:hover,
.subcat-chip:focus-visible {
	border-color: var(--tile, var(--c-primary));
	background: color-mix( in srgb, var(--tile, var(--c-primary)) 8%, #fff );
}

.subcat-chip.is-current {
	background: var(--tile, var(--c-primary));
	border-color: var(--tile, var(--c-primary));
	color: #fff;
}

.subcat-chip__media {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	overflow: hidden;
	color: var(--tile, var(--c-primary));
	background: color-mix( in srgb, var(--tile, var(--c-primary)) 14%, #fff );
}

.subcat-chip.is-current .subcat-chip__media {
	color: #fff;
	background: rgba( 255, 255, 255, .22 );
}

.subcat-chip__media img { width: 100%; height: 100%; object-fit: cover; }
.subcat-chip__media svg { width: 20px; height: 20px; stroke-width: 2; }

.subcat-chip__count {
	font-size: .74rem;
	color: var(--c-muted);
	background: var(--c-bg);
	border-radius: 999px;
	padding: .1rem .45rem;
}

.subcat-chip.is-current .subcat-chip__count {
	color: #fff;
	background: rgba( 255, 255, 255, .22 );
}

/* --------------------------------------------------------- Archive heading */

.woocommerce-products-header__title,
.woocommerce-products-header h1 {
	position: relative;
	padding-bottom: .5rem;
}

.woocommerce-products-header__title::after,
.woocommerce-products-header h1::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 4px;
	margin-top: .55rem;
	border-radius: 2px;
	background: var( --c-cat, var(--c-primary) );
}

/* ------------------------------------------------------------ Trust strip */

.trust-strip {
	border: 0;
	border-radius: var(--radius-lg);
	background: var(--c-secondary-tint);
	padding: 1.25rem 1.5rem;
	margin: 2rem 0;
}

.trust-strip li { color: var(--c-secondary-dark); }
.trust-strip strong { color: var(--c-secondary-dark); }

.trust-strip > li > span[aria-hidden] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	color: var(--c-secondary);
	font-size: 1rem;
}

/* ----------------------------------------------------------- Section heads */

.section-head h2 {
	position: relative;
	padding-left: .85rem;
	font-size: clamp( 1.25rem, 2.6vw, 1.6rem );
}

.section-head h2::before {
	content: "";
	position: absolute;
	inset-block: .15em .15em;
	inset-inline-start: 0;
	width: 4px;
	border-radius: 2px;
	background: linear-gradient( var(--c-primary), var(--c-secondary) );
}

.section-head a { font-weight: 600; }
.section-head a:hover { color: var(--c-primary-dark); }

/* ---------------------------------------------------------------- Offers */

.offers {
	margin: 2.5rem 0;
	padding: 1.75rem clamp( 1rem, 3vw, 2rem );
	border-radius: var(--radius-lg);
	background:
		radial-gradient( 90% 120% at 100% 0%, rgba( 31, 111, 118, .18 ) 0%, rgba( 31, 111, 118, 0 ) 60% ),
		var(--c-surface-warm);
	border: 1px solid var(--c-line);
}

.offers__kicker {
	display: inline-block;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--c-sale);
	padding: .22rem .6rem;
	border-radius: 999px;
	margin-bottom: .45rem;
}

.offers__head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.offers__head h2 { margin: 0; font-size: clamp( 1.2rem, 2.4vw, 1.5rem ); }

/* ---------------------------------------------------------- Service cards */

.service-grid {
	display: grid;
	gap: 1.1rem;
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
	grid-template-columns: repeat( auto-fit, minmax( 230px, 1fr ) );
}

.service-card {
	position: relative;
	padding: 0;
	border: 1px solid #cad7e5;
	border-radius: var(--radius-lg);
	background: #e9eff6;
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}

.service-card:nth-child(2) { background: #e6f1ee; border-color: #c9ddd7; }
.service-card:nth-child(3) { background: #eeeaf5; border-color: #d8cfe7; }
.service-card:nth-child(4) { background: #f5ece5; border-color: #e6d2c2; }

.service-card__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	padding: 1.4rem 1.25rem 1.35rem;
	color: inherit;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
}

.service-card__link:focus-visible {
	outline: 3px solid var(--c-primary);
	outline-offset: -5px;
	border-radius: var(--radius-lg);
}

.service-card::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	height: 4px;
	background: linear-gradient( 90deg, var(--c-primary), var(--c-gold-bright) );
}

.service-card:nth-child(2)::before { background: linear-gradient( 90deg, var(--c-secondary), #4e9b7f ); }
.service-card:nth-child(3)::before { background: linear-gradient( 90deg, #4e6f99, #71579a ); }
.service-card:nth-child(4)::before { background: linear-gradient( 90deg, #8f5a20, var(--c-gold-bright) ); }

.service-card:hover { transform: translateY( -3px ); box-shadow: var(--shadow-lift); }

.service-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 108px;
	margin: 0 auto .8rem;
}

.service-card__icon img { width: 108px; height: 108px; object-fit: contain; }

.service-card h3 { margin: 0 0 .35rem; font-size: 1.02rem; }
.service-card h3 { color: var(--c-ink); }
.service-card:hover h3 { color: var(--c-primary-dark); }
.service-card p { margin: 0; max-width: 29ch; font-size: .88rem; color: #58666b; }

/* ----------------------------------------------------------- Product cards */

.dh-card { border-radius: var(--radius-lg); }
.dh-card:hover { box-shadow: var(--shadow-lift); border-color: color-mix( in srgb, var(--c-primary) 35%, var(--c-line) ); }

.dh-card__media { background: var(--c-surface-warm); }

/*
 * Placeholder for a product with no image yet. The catalogue is being filled
 * one photograph at a time, so an unphotographed product should look
 * deliberately unfinished rather than broken.
 */
.dh-card__media:empty::after,
.dh-card__media .woocommerce-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-image: repeating-linear-gradient( 45deg, transparent 0 11px, rgba( 36, 57, 92, .09 ) 11px 12px );
	object-fit: contain;
	opacity: .6;
}

.dh-card__price { color: var(--c-primary-dark); font-size: 1.05rem; }
.dh-card__flag { background: var(--c-sale); font-weight: 600; letter-spacing: .02em; }

.btn-primary { background: var(--c-primary); }
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-secondary:hover { border-color: var(--c-primary); color: var(--c-primary-dark); }

/* WooCommerce's own buttons, which do not use .btn. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	background: var(--c-primary);
	color: #fff;
	border-radius: 8px;
	font-weight: 600;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background: var(--c-primary-dark);
	color: #fff;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background: var(--c-secondary);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: var(--c-secondary-dark);
}

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

.site-footer {
	background: var(--c-secondary-dark);
	color: #d7e5df;
	border-top: 0;
}

.site-footer h3 { color: #fff; }
.site-footer a { color: #b9cfc6; }
.site-footer a:hover { color: var(--c-gold-bright); }
.site-footer__legal { color: #9db6ac; border-top-color: rgba( 255, 255, 255, .14 ); }

.dh-call-fab { background: var(--c-secondary); }
.dh-call-fab:hover { background: var(--c-secondary-dark); }

/* ------------------------------------------------------------------ Mobile */

/*
 * Two columns on a phone, always.
 *
 * The auto-fill grids in theme.css size themselves from a 165px minimum,
 * which is right until a section adds its own padding — inside .offers a
 * 390px phone is down to about 326px of usable width, two 165px columns need
 * 346px, and the grid quietly drops to one. A single column of square product
 * images means roughly one and a half products per screen, which is not a
 * shop, it is a slideshow.
 *
 * An explicit two-column track ignores the arithmetic and is what every
 * marketplace people already shop on does at this width.
 */
@media ( max-width: 600px ) {
	.dh-grid,
	.cat-grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		gap: .7rem;
	}

	.cat-tile__label { padding: .55rem .5rem .7rem; }
	.cat-tile__name { font-size: .82rem; }
	.cat-tile__count { font-size: .68rem; }

	.hero { margin-inline: 0; border-radius: var(--radius); }
	.subcat-nav { padding: .9rem 1rem 1rem; }
	.subcat-chip { font-size: .82rem; padding-inline-end: .7rem; }
}

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

@media ( prefers-reduced-motion: reduce ) {
	.cat-tile:hover,
	.service-card:hover,
	.dh-card:hover { transform: none; }
	.cat-tile:hover .cat-tile__icon { transform: none; }
}

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

/*
 * Multiple Header Images become a lightweight cross-fade slideshow when the
 * core WordPress "Randomize uploaded headers" option is active. The existing
 * --hero-photo background remains underneath as a no-JS / first-paint fallback.
 */
.hero--photo .hero__slides {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.hero--photo .hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	transition: opacity .9s ease;
}

.hero--photo .hero__slide.is-active { opacity: 1; }

.hero--photo .hero__content {
	position: relative;
	z-index: 2;
}

/*
 * Internal pages reuse the active WordPress Header Image set without copying
 * the homepage copy or buttons. A 40:9 frame is exactly half the height of
 * the homepage's 20:9 hero at the same width, and top alignment keeps the
 * upper half of each uploaded image visible.
 */
.inner-hero-wrap { overflow: hidden; }

.inner-hero {
	aspect-ratio: 40 / 9;
	min-height: 90px;
	margin-top: 1.25rem;
	padding: 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
	clip-path: inset( 0 round var(--radius-lg) );
	contain: paint;
	isolation: isolate;
	transform: translateZ( 0 );
	background-position: top center;
}

.inner-hero.hero--photo .hero__slides,
.inner-hero.hero--photo .hero__slide {
	overflow: hidden;
	border-radius: inherit;
	clip-path: inset( 0 round var(--radius-lg) );
	background-position: top center;
}

.hero__controls {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: .55rem;
	padding: .38rem .5rem;
	border: 1px solid rgba( 255, 255, 255, .38 );
	border-radius: 999px;
	background: rgba( 18, 39, 68, .48 );
	backdrop-filter: blur( 8px );
	-webkit-backdrop-filter: blur( 8px );
}

.hero__arrow,
.hero__dot {
	appearance: none;
	border: 0;
	margin: 0;
	padding: 0;
	color: #fff;
	background: transparent;
	cursor: pointer;
}

.hero__arrow {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	font: 600 1.55rem/1 system-ui, sans-serif;
}

.hero__arrow:hover,
.hero__arrow:focus-visible { background: rgba( 255, 255, 255, .16 ); }

.hero__dots { display: flex; align-items: center; gap: .42rem; }

.hero__dot {
	width: .55rem;
	height: .55rem;
	border: 1px solid rgba( 255, 255, 255, .9 );
	border-radius: 50%;
	transition: width .18s ease, background .18s ease;
}

.hero__dot.is-active {
	width: 1.2rem;
	border-radius: 999px;
	background: #fff;
}

.hero__arrow:focus-visible,
.hero__dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.hero--photo {
		aspect-ratio: 20 / 9;
		padding: 3.5%;
		background-color: #edf1ef;
		background-position: center;
		background-repeat: no-repeat;
		background-size: cover;
	}

	.hero--photo .hero__slide {
		background-color: #edf1ef;
		background-position: center;
		background-size: cover;
	}

	.inner-hero {
		aspect-ratio: 40 / 9;
		min-height: 90px;
		padding: 0;
		border-radius: var(--radius);
		clip-path: inset( 0 round var(--radius) );
		background-position: top center;
	}

	.inner-hero.hero--photo .hero__slides,
	.inner-hero.hero--photo .hero__slide {
		overflow: hidden;
		border-radius: inherit;
		clip-path: inset( 0 round var(--radius) );
		background-position: top center;
	}

	.hero--photo .hero__content {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		width: 48%;
		height: 93%;
		margin: 0;
		padding: 0;
	}

	.hero--photo .hero__brand { margin-bottom: .12rem; }
	.hero--photo .hero__brand--image-baked { flex: 0 0 43%; width: 100%; height: auto; }
	.hero--photo .hero__logo { max-width: clamp( 58px, 19vw, 86px ); max-height: clamp( 34px, 10vw, 52px ); }
	.hero--photo .hero__brand-text { font-size: clamp( 1rem, 5vw, 1.4rem ); }
	.hero--photo .hero__tagline { margin: 0; font-size: clamp( .5rem, 2.35vw, .72rem ); line-height: 1.16; }

	.hero--photo .hero__actions { flex-direction: column; align-items: flex-start; gap: .2rem; margin-top: auto; }
	.hero--photo .btn { min-height: 22px; padding: .22rem .44rem; font-size: clamp( .5rem, 2.1vw, .66rem ); border-radius: 5px; }
}

@media (prefers-reduced-motion: reduce) {
	.hero--photo .hero__slide { transition: none; }
}
