/**
 * Security & Surveillance page — scoped styles
 *
 * Loaded by hifocus_security_assets() on template-security-surveillance.php
 * only, with hifocus-main as its declared dependency.
 *
 * The page reuses main.css components wholesale — sw-hero, sw-crumbs, sw-band,
 * section-head, sw-module, sw-benefit, product-showcase-grid, marquee,
 * brand-card, sw-faq and cta-panel. This sheet adds only the patterns main.css
 * has no equivalent for:
 *
 *   1. .sec-hero__grid       — faint technology grid over the hero
 *   2. .sec-hero__meta       — the hero trust line
 *   3. .sec-equipment__more  — the centred "browse all" action
 *   4. .sec-gallery/.sec-shot— the installation photo grid
 *   5. .sec-process          — the horizontal five-step timeline
 *   6. .sec-contact          — the contact grid inside the closing CTA
 *
 * The sector cards this page introduced are NOT here: they live in main.css as
 * the shared .venue-grid / .venue component, because the Access Control page
 * needs the same pattern. Do not copy them back.
 *
 * Every rule is scoped under .security-page, so no other page is affected.
 * All colours, radii, spacing and easing come from the existing :root tokens,
 * so nothing here forks the design system.
 *
 * .sec-process and .sec-contact intentionally restate support.css's
 * .sup-process and .sup-contact: those rules are scoped under .support-page
 * and cannot be reached from here without editing that sheet, which would put
 * a second page at risk for no gain.
 */

/* -------------------------------------------------- *
 * 1. Hero — technology graphic overlay
 *
 * A faint cyan grid over .sw-hero__bg, masked to fade out toward the centre
 * and bottom so it never competes with the headline. Decorative only.
 * -------------------------------------------------- */

.security-page .sec-hero__grid {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(34, 211, 238, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(34, 211, 238, 0.07) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(80% 70% at 50% 0%, #000 0%, transparent 75%);
	mask-image: radial-gradient(80% 70% at 50% 0%, #000 0%, transparent 75%);
	pointer-events: none;
}

/* -------------------------------------------------- *
 * 2. Hero trust line — sits under the buttons
 * -------------------------------------------------- */

.security-page .sec-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1.4rem;
	margin: var(--space-lg) 0 0;
	padding: 0;
	list-style: none;
	color: rgba(255, 255, 255, 0.6);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.security-page .sec-hero__meta li {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.security-page .sec-hero__meta svg {
	width: 16px;
	height: 16px;
	color: var(--cyan-400);
}

/* -------------------------------------------------- *
 * 3. Equipment showcase — closing action
 *
 * The product grid itself is .product-showcase-grid from main.css. Only the
 * centred link beneath it needs a rule.
 * -------------------------------------------------- */

.security-page .sec-equipment__more {
	display: flex;
	justify-content: center;
	margin-top: var(--space-lg);
}

/* -------------------------------------------------- *
 * 4. Installation gallery
 *
 * Renders only when real photos exist in
 * assets/images/security-surveillance/ — see the spec comment in
 * template-security-surveillance.php. Fixed 3:2 boxes keep the row heights
 * even regardless of what is supplied.
 * -------------------------------------------------- */

.security-page .sec-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-sm);
	margin-top: var(--space-lg);
}

.security-page .sec-shot {
	position: relative;
	overflow: hidden;
	margin: 0;
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
	background-color: var(--color-surface);
	box-shadow: var(--shadow-sm);
	transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.security-page .sec-shot:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-md);
}

.security-page .sec-shot__img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* -------------------------------------------------- *
 * 5. Installation process — horizontal numbered timeline
 * -------------------------------------------------- */

.security-page .sec-process {
	--pgap: clamp(1rem, 2.5vw, 1.75rem);
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--pgap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.security-page .sec-process__step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 0.5rem;
	text-align: center;
}

/*
 * Connector: a gradient hairline from this step's badge centre to the next.
 * The badge is 52px, so its centre sits 0.5rem + 26px below the step top. The
 * line bridges the column width plus the grid gap to reach the next badge, and
 * the last step drops it.
 */
.security-page .sec-process__step::before {
	content: "";
	position: absolute;
	top: calc(0.5rem + 26px);
	left: 50%;
	z-index: 0;
	width: calc(100% + var(--pgap));
	height: 2px;
	background: linear-gradient(90deg, rgba(34, 211, 238, 0.55), rgba(34, 211, 238, 0.12));
}

.security-page .sec-process__step:last-child::before {
	display: none;
}

.security-page .sec-process__num {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 999px;
	background-image: var(--gradient-brand);
	color: var(--color-inverse);
	font-size: 1rem;
	font-weight: 800;
	box-shadow: 0 8px 24px rgba(22, 102, 232, 0.4);
}

.security-page .sec-process__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: 1rem;
	border-radius: 14px;
	background-color: rgba(34, 211, 238, 0.1);
	color: var(--cyan-400);
}

.security-page .sec-process__icon svg {
	width: 22px;
	height: 22px;
}

.security-page .sec-process__title {
	margin: 0.9rem 0 0;
	color: var(--color-inverse);
	font-size: 1.05rem;
	font-weight: 700;
}

.security-page .sec-process__desc {
	max-width: 22ch;
	margin: 0.4rem 0 0;
	color: rgba(255, 255, 255, 0.62);
	font-size: var(--fs-sm);
	line-height: 1.6;
}

/* -------------------------------------------------- *
 * 6. Contact grid inside the closing CTA
 * -------------------------------------------------- */

.security-page .sec-contact {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-sm);
	margin-top: var(--space-lg);
	text-align: left;
}

.security-page .sec-contact__card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: var(--space-md);
	border-radius: var(--radius-lg);
	border: 1px solid rgba(120, 170, 255, 0.18);
	background-color: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: transform 0.35s var(--ease-out), border-color var(--transition),
		background-color var(--transition);
}

.security-page .sec-contact__card:hover {
	transform: translateY(-6px);
	border-color: rgba(34, 211, 238, 0.5);
	background-color: rgba(255, 255, 255, 0.08);
}

.security-page .sec-contact__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 0.35rem;
	border-radius: 12px;
	background-color: rgba(34, 211, 238, 0.12);
	color: var(--cyan-400);
}

.security-page .sec-contact__icon svg {
	width: 20px;
	height: 20px;
}

.security-page .sec-contact__label {
	margin: 0;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.security-page .sec-contact__value {
	margin: 0;
	color: var(--color-inverse);
	font-size: 0.98rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.security-page .sec-contact__value a {
	color: var(--color-inverse);
}

.security-page .sec-contact__value a:hover,
.security-page .sec-contact__value a:focus-visible {
	color: var(--cyan-300);
}

/* -------------------------------------------------- *
 * Motion + responsive
 * -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.security-page .sec-shot:hover,
	.security-page .sec-contact__card:hover {
		transform: none;
	}
}

/* Laptop: the contact grid halves. */
@media (max-width: 1024px) {
	.security-page .sec-contact {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Tablet: the process timeline goes vertical. */
@media (max-width: 900px) {
	.security-page .sec-process {
		grid-template-columns: 1fr;
		max-width: 30rem;
		margin-inline: auto;
		gap: var(--space-md);
	}

	/* Vertical stack: the horizontal connector no longer applies. */
	.security-page .sec-process__step::before {
		display: none;
	}

	.security-page .sec-process__desc {
		max-width: 40ch;
	}
}

/* Mobile: single column throughout. */
/*
 * .sec-gallery goes three columns straight to one. The two-column step it
 * used to take at 900px orphaned the third photo underneath the first two.
 */
@media (max-width: 620px) {
	.security-page .sec-gallery,
	.security-page .sec-contact {
		grid-template-columns: 1fr;
	}
}
