/* ============================================================================
   corporate.css — SkyCity group landing site (skycity.co.nz)
   Minimal-chrome pages only: logo-only header + full-viewport property tiles.
   STATIC FILE — plain @media only (never @@media). Uses design tokens from
   site.css :root; no hardcoded brand hexes.
   Scoped entirely to .sc-body--minimal / .sc-minhead / .sc-ptiles, so loading
   this sheet on standard pages is inert.
   ============================================================================ */

/* --- Body: kill the fixed-nav padding-top (the minimal header is static) ---- */
.sc-body--minimal { padding-top: 0 !important; }

/* --- Logo-only header ------------------------------------------------------- */
.sc-minhead {
	background: var(--sc-white);
	padding: 1.5rem 1.25rem;
	border: 0;
}

.sc-minhead__inner {
	max-width: var(--sc-max-width);
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
}

.sc-minhead__logo {
	display: inline-flex;
	line-height: 0;
}

.sc-minhead__logo img {
	display: block;
	width: auto;
	height: 42px;
	max-width: 100%;
}

/* --- Property tiles: 4-up, fills the viewport below the header -------------- */
.sc-ptiles {
	background: var(--sc-plum);
}

.sc-ptiles__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	min-height: calc(100vh - 92px);
	gap: 0;
}

.sc-ptiles__tile {
	position: relative;
	overflow: hidden;
	min-height: 62vh;
	background: var(--sc-plum);
}

.sc-ptiles__link {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	padding: 2.5rem 2rem 3rem;
	overflow: hidden;
	color: var(--sc-white);
	text-decoration: none;
}

/* Image layer — separate element so it can scale on hover without moving text */
.sc-ptiles__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: var(--tile-img);
	background-size: cover;
	background-position: var(--tile-pos, 50% 50%);
	background-repeat: no-repeat;
	transition: transform .6s ease, filter .6s ease;
}

/* Dark scrim over the image for label legibility (bottom-weighted) */
.sc-ptiles__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, .72) 0%,
		rgba(0, 0, 0, .38) 34%,
		rgba(0, 0, 0, .05) 62%,
		rgba(0, 0, 0, 0) 100%
	);
}

.sc-ptiles__body {
	position: relative;
	z-index: 2;
	display: block;
}

.sc-ptiles__label {
	margin: 0 0 .6rem;
	font-family: var(--sc-font-display);
	font-weight: 800;
	font-size: clamp(1.5rem, 1.1rem + 1vw, 2.25rem);
	line-height: 1.1;
	color: var(--sc-white);
	text-wrap: balance;
}

.sc-ptiles__more {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-family: var(--sc-font);
	font-weight: 700;
	font-size: .8125rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sc-gold);
}

.sc-ptiles__more .material-symbols-outlined {
	font-size: 1.25rem;
	transition: transform .3s ease;
}

/* Hover — arrow nudge only.
   🔴 The tile-image `transform: scale(1.05)` + `filter: brightness(1.08)`
   were DELETED 2026-08-07 (Adam): image hover effects are removed site-wide,
   and these two were survivors only because no override block ever reached
   corporate.css. The arrow nudge is not an image effect and stays. */
.sc-ptiles__link:hover .sc-ptiles__more .material-symbols-outlined,
.sc-ptiles__link:focus-visible .sc-ptiles__more .material-symbols-outlined {
	transform: translateX(4px);
}

.sc-ptiles__link:focus-visible {
	outline: 3px solid var(--sc-gold);
	outline-offset: -3px;
}

/* --- Responsive: 2-up on tablet, stacked on mobile ------------------------- */
@media (max-width: 960px) {
	.sc-ptiles__grid {
		grid-template-columns: repeat(2, 1fr);
		min-height: 0;
	}
	.sc-ptiles__tile { min-height: 50vh; }
}

@media (max-width: 560px) {
	.sc-ptiles__grid { grid-template-columns: 1fr; }
	.sc-ptiles__tile { min-height: 56vw; }
	.sc-ptiles__link { padding: 2rem 1.5rem 2.25rem; }
}

/* --- Reduced motion: no scale/brightness/nudge transitions ------------------ */
@media (prefers-reduced-motion: reduce) {
	.sc-ptiles__link::before,
	.sc-ptiles__more .material-symbols-outlined {
		transition: none;
	}
	/* The ::before hover overrides that used to sit here were deleted with the
	   effect itself 2026-08-07 — left in place they would have ADDED a
	   brightness hover for reduced-motion users only. */
	.sc-ptiles__link:hover .sc-ptiles__more .material-symbols-outlined,
	.sc-ptiles__link:focus-visible .sc-ptiles__more .material-symbols-outlined {
		transform: none;
	}
}
