/**
 * Support landing page sections (hero, form card, contact strip, icon block styles).
 *
 * Loaded on the "Support Landing" template, on pages using these patterns, and in the
 * block editor (via add_editor_style). Form field styles live in
 * blocks/support-form/style.css.
 *
 * Breakpoints: 1050px, 820px, 540px (mobile-first fallbacks below).
 */

/* ---------- Tokens (accent colours can be changed in the Customizer) ---------- */
:root {
	--shure-accent: #b5ff00;
	--shure-accent-hover: #9de000;
	--shure-black: #080a0b;
	--shure-strip-bg: #17191b;
	--shure-strip-line: #3a3d40;
	--shure-muted-on-dark: #d5d8db;
	/* Inner content width follows Kadence's Content Width setting so sections align with the header. */
	--shure-container: calc(var(--global-content-width, 1290px) - (var(--global-content-edge-padding, 1.5rem) * 2));
	--shure-gutter: var(--global-content-edge-padding, 24px);
	--shure-radius-card: 16px;
}

/* ---------- Landing canvas ---------- */
.shure-landing .shure-landing__content > *,
.shure-landing .shure-landing__content > .alignfull {
	margin-top: 0;
	margin-bottom: 0;
}

.shure-landing .alignfull,
.shure-hero.alignfull,
.shure-help-strip.alignfull {
	max-width: none;
}

.shure-landing .shure-landing__content > .alignfull {
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/* ---------- Header (replaces Kadence header on Support Landing pages) ---------- */
.shure-header {
	height: 70px;
	background: #050505;
	border-bottom: 1px solid #333;
	color: #fff;
}

.shure-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	width: min(100% - (var(--shure-gutter) * 2), var(--shure-container));
	margin: 0 auto;
}

.shure-header .shure-header__brand,
.shure-header .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.shure-header .custom-logo {
	width: auto;
	max-height: 40px;
}

.shure-header__nav {
	height: 100%;
}

.shure-header__menu {
	display: flex;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.shure-header__menu li {
	display: flex;
	margin: 0;
}

.shure-header__menu a {
	display: flex;
	align-items: center;
	padding: 0 16px;
	border-bottom: 4px solid transparent;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.shure-header__menu .current-menu-item > a,
.shure-header__menu a[aria-current="page"],
.shure-header__menu a:hover {
	border-bottom-color: var(--shure-accent);
}

.shure-header a:focus-visible {
	outline: 2px solid var(--shure-accent);
	outline-offset: -2px;
}

.shure-header .shure-wordmark {
	font-size: 35px;
}

/* ---------- Hero ---------- */
.shure-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: #fff;
	background: radial-gradient(ellipse at 52% 45%, #1a3631 0%, #0a1616 38%, #060809 75%);
	padding: clamp(36px, 4vw, 64px) 0;
}

/* Decorative accent lines. */
.shure-hero::before,
.shure-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: 180px;
	height: 5px;
	background: var(--shure-accent);
	transform: rotate(48deg);
	pointer-events: none;
}

.shure-hero::before {
	left: -75px;
	bottom: 20px;
}

.shure-hero::after {
	left: 53%;
	top: 25%;
}

/* Background product image (replace via the Image block). */
.shure-hero .shure-hero__art {
	position: absolute;
	z-index: -1;
	inset: 0 28% 0 27%;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.8;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 67%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 67%, transparent 100%);
}

.shure-hero .shure-hero__art img {
	width: auto;
	max-width: none;
	height: 78%;
	object-fit: contain;
}

.wp-block-columns.shure-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 88px);
	align-items: start;
	width: min(100% - (var(--shure-gutter) * 2), var(--shure-container));
	margin: 0 auto;
	padding: 0;
}

.wp-block-columns.shure-hero__grid > .wp-block-column {
	min-width: 0;
	margin: 0;
	flex-basis: auto;
	align-self: start;
}

.shure-hero__copy {
	max-width: 600px;
	padding-block: 20px;
}

.is-style-shure-eyebrow {
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 4px;
	font-size: 15px;
	line-height: 1.3;
	margin: 0 0 35px;
}

.is-style-shure-eyebrow::after {
	content: "";
	display: block;
	width: 74px;
	height: 5px;
	background: var(--shure-accent);
	margin-top: 15px;
}

.shure-hero .shure-hero__title,
.shure-hero h1 {
	color: inherit;
	font-size: clamp(42px, 4.8vw, 72px);
	letter-spacing: -2px;
	line-height: 1.04;
	font-weight: 900;
	margin: 0 0 22px;
}

.shure-hero .shure-hero__lede {
	font-size: clamp(16px, 1.5vw, 20px);
	line-height: 1.55;
	max-width: 530px;
	margin: 0;
	color: inherit;
}

/* ---------- Form card ---------- */
.shure-form-card {
	position: relative;
	z-index: 1;
	min-width: 0;
	background: #fff;
	color: #080808;
	border-radius: var(--shure-radius-card);
	padding: clamp(22px, 2.3vw, 36px);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.33);
	scroll-margin-top: 90px;
}

.shure-form-card > * {
	margin-top: 0;
}

.shure-form-card .shure-form-card__title,
.shure-form-card h2 {
	color: inherit;
	font-size: clamp(23px, 2.1vw, 31px);
	letter-spacing: -0.7px;
	line-height: 1.15;
	margin: 0 0 10px;
}

.shure-form-card .shure-form-card__intro {
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 18px;
}

/* Raw Zoho / third-party embeds pasted into a Custom HTML block inside the card. */
.shure-form-card iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
}

/* ---------- Contact strip ---------- */
.shure-help-strip {
	background: var(--shure-strip-bg);
	border-top: 1px solid var(--shure-strip-line);
	color: #fff;
	padding: 24px 0;
}

.wp-block-columns.shure-help-strip__grid {
	display: grid;
	grid-template-columns: 0.8fr repeat(3, minmax(0, 1fr));
	align-items: center;
	gap: 24px;
	width: min(100% - (var(--shure-gutter) * 2), var(--shure-container));
	margin: 0 auto;
	padding: 0;
}

.wp-block-columns.shure-help-strip__grid > .wp-block-column {
	min-width: 0;
	margin: 0;
	flex-basis: auto;
}

.shure-help-strip__grid > .wp-block-column:not(.shure-help-strip__brand) {
	border-left: 1px solid #666;
	padding-left: 24px;
	min-height: 56px;
}

.shure-help-strip p {
	margin: 0;
}

.shure-wordmark {
	font-style: italic;
	font-weight: 900;
	letter-spacing: -3px;
	font-size: 32px;
	line-height: 1;
}

.shure-wordmark,
.shure-wordmark a,
.shure-help-strip .shure-wordmark a {
	color: var(--shure-accent);
	text-decoration: none;
}

.shure-wordmark sup {
	font-size: 9px;
	letter-spacing: 0;
	vertical-align: top;
}

.shure-help-strip .shure-help-item__title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.shure-help-strip a {
	color: #fff;
	text-decoration: none;
}

.shure-help-strip .shure-help-item__title a:hover,
.shure-help-strip .shure-help-item__title a:focus-visible {
	text-decoration: underline;
	text-decoration-color: var(--shure-accent);
	text-underline-offset: 3px;
}

.shure-help-strip a:focus-visible {
	outline: 2px solid var(--shure-accent);
	outline-offset: 3px;
}

.shure-help-strip .shure-help-item__text {
	font-size: 11px;
	line-height: 1.5;
	color: var(--shure-muted-on-dark);
	margin-top: 4px;
}

/* ---------- Icon block styles (Column / Group > Styles > Icon: …) ---------- */
[class*="is-style-shure-icon-"] {
	display: grid;
	grid-template-columns: 27px minmax(0, 1fr);
	column-gap: 13px;
	align-content: start;
}

[class*="is-style-shure-icon-"] > * {
	grid-column: 2;
}

[class*="is-style-shure-icon-"]::before {
	content: "";
	grid-column: 1;
	grid-row: 1 / span 3;
	width: 27px;
	height: 27px;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.is-style-shure-icon-chat::before { -webkit-mask-image: url(../icons/chat.svg); mask-image: url(../icons/chat.svg); }
.is-style-shure-icon-mail::before { -webkit-mask-image: url(../icons/mail.svg); mask-image: url(../icons/mail.svg); }
.is-style-shure-icon-phone::before { -webkit-mask-image: url(../icons/phone.svg); mask-image: url(../icons/phone.svg); }
.is-style-shure-icon-help::before { -webkit-mask-image: url(../icons/help.svg); mask-image: url(../icons/help.svg); }
.is-style-shure-icon-mic::before { -webkit-mask-image: url(../icons/mic.svg); mask-image: url(../icons/mic.svg); }
.is-style-shure-icon-headphones::before { -webkit-mask-image: url(../icons/headphones.svg); mask-image: url(../icons/headphones.svg); }
.is-style-shure-icon-monitor::before { -webkit-mask-image: url(../icons/monitor.svg); mask-image: url(../icons/monitor.svg); }
.is-style-shure-icon-book::before { -webkit-mask-image: url(../icons/book.svg); mask-image: url(../icons/book.svg); }
.is-style-shure-icon-download::before { -webkit-mask-image: url(../icons/download.svg); mask-image: url(../icons/download.svg); }
.is-style-shure-icon-tools::before { -webkit-mask-image: url(../icons/tools.svg); mask-image: url(../icons/tools.svg); }
.is-style-shure-icon-shield::before { -webkit-mask-image: url(../icons/shield.svg); mask-image: url(../icons/shield.svg); }

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
	.wp-block-columns.shure-hero__grid {
		gap: 28px;
	}

	.shure-hero .shure-hero__title,
	.shure-hero h1 {
		font-size: clamp(40px, 5vw, 58px);
	}

	.wp-block-columns.shure-help-strip__grid {
		gap: 12px;
	}

	.shure-help-strip__grid > .wp-block-column:not(.shure-help-strip__brand) {
		padding-left: 12px;
	}
}

@media (max-width: 820px) {
	.wp-block-columns.shure-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 25px;
	}

	.shure-hero {
		padding-block: 40px;
	}

	.shure-hero__copy {
		max-width: 620px;
	}

	.shure-hero .shure-hero__art {
		inset: 0 0 38% 28%;
		opacity: 0.45;
	}

	.shure-hero .shure-hero__art img {
		height: 95%;
	}

	.shure-form-card {
		width: 100%;
		max-width: 720px;
		margin-inline: auto;
	}

	.wp-block-columns.shure-help-strip__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 24px;
	}

	/* Two columns: items that start a row (1st, 3rd, ...) need no divider. */
	.shure-help-strip__grid > .wp-block-column:nth-child(odd) {
		border-left: 0;
		padding-left: 0;
	}
}

@media (max-width: 540px) {
	:root {
		--shure-gutter: 15px;
	}

	.shure-header {
		height: 62px;
	}

	.shure-header .shure-wordmark {
		font-size: 30px;
	}

	.shure-hero {
		padding-block: 30px;
	}

	.shure-hero .shure-hero__title,
	.shure-hero h1 {
		font-size: clamp(38px, 10vw, 50px);
		letter-spacing: -1px;
	}

	.shure-hero .shure-hero__lede {
		font-size: 16px;
	}

	.is-style-shure-eyebrow {
		font-size: 12px;
		margin-bottom: 25px;
	}

	.shure-form-card {
		padding: 22px 17px;
	}

	.shure-hero .shure-hero__art {
		inset: 0 0 55% 15%;
		opacity: 0.25;
	}

	.wp-block-columns.shure-help-strip__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.shure-help-strip__grid > .wp-block-column:not(.shure-help-strip__brand) {
		border-left: 0;
		padding-left: 0;
		min-height: 0;
	}

	.shure-help-strip__brand {
		margin-bottom: 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shure-landing * {
		scroll-behavior: auto;
		transition: none;
	}
}

/* Contact items: linked detail lines (email / phone) read as body text, not titles. */
.shure-help-strip .shure-help-item__link a {
	color: #fff;
	text-decoration: none;
}

.shure-help-strip .shure-help-item__link a:hover,
.shure-help-strip .shure-help-item__link a:focus-visible {
	text-decoration: underline;
	text-decoration-color: var(--shure-accent);
	text-underline-offset: 3px;
}

.shure-wordmark:hover,
.shure-wordmark:focus-visible {
	color: var(--shure-accent);
}

/* Avoid a white band below the contact strip on tall viewports. */
body.shure-support-landing,
.shure-support-landing #wrapper {
	background: var(--shure-strip-bg);
}

/* Hero microphone background image removed; keep the background colour. Also hides
   copies of the image block already saved in existing pages. */
.shure-hero .shure-hero__art {
	display: none;
}
