/* =============================================================
   Houston Safe & Lock — Locksmith subservice page template

   Visual values supported by WordPress are serialized on blocks. This file
   is limited to responsive structure, component behavior, and interaction
   states that the installed blocks cannot express through Inspector controls.
   ============================================================= */

.hsl-page-full-width-shell {
	margin-block-start: 0 !important;
	overflow: clip;
}

.hsl-page-full-width-shell > *,
.hsl-page-full-width-shell > .wp-block-post-content,
.hsl-page-full-width-shell > .wp-block-post-content > * {
	margin-block-start: 0 !important;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-container {
	box-sizing: border-box;
	margin-inline: auto;
	width: 100%;
}

/* Hero background and content measures. */
:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-hero {
	background:
		radial-gradient(560px 300px at 12% 8%, rgb(23 67 104 / 8%), transparent 60%),
		radial-gradient(520px 320px at 88% 16%, rgb(252 220 105 / 17%), transparent 60%),
		var(--wp--preset--color--base);
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-pill {
	display: inline-flex;
	width: fit-content;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-pill .wp-block-icon,
:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-icon-card > .wp-block-icon,
:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-contact-row > .wp-block-icon,
.hsl-lss-modal__privacy > .wp-block-icon {
	flex: 0 0 auto;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-hero h1 {
	max-width: 18ch;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-lead {
	max-width: 53ch;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-button .wp-block-button__link {
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-button .wp-block-button__link:hover {
	transform: translateY(-2px);
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-button .wp-block-button__link:focus-visible,
.hsl-lss-modal a:focus-visible,
.hsl-lss-modal button:focus-visible,
.hsl-lss-modal input:focus-visible,
.hsl-lss-modal select:focus-visible,
.hsl-lss-modal textarea:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-image {
	margin: 0;
	overflow: hidden;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-image img {
	display: block;
	height: 100%;
	width: 100%;
}

/* Shared icon-card rows. */
:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-icon-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-icon-card {
	align-items: flex-start;
	margin: 0;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-icon-card__content {
	min-width: 0;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-icon-cards--hero {
	min-height: 130.6328px;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-icon-cards--comparison {
	min-height: 138.4922px;
}

/* Section-specific structure. */
:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-definition__inner {
	min-height: 252.5391px;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-text-link a {
	border-bottom: 2px solid var(--wp--preset--color--primary-alt);
	padding-bottom: 2px;
	text-decoration: none;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-section-heading > p:last-child {
	max-width: 62ch;
}

/* Use-case cards retain only their positioning and hover behavior here. */
:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-use-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	width: 100%;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-use-card {
	box-sizing: border-box;
	min-height: 100%;
	overflow: hidden;
	position: relative;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-use-card::after {
	background: var(--wp--preset--color--primary-alt);
	content: "";
	height: 3px;
	inset: 0 0 auto;
	position: absolute;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 220ms ease;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-use-card:hover {
	box-shadow: var(--wp--preset--shadow--locksmith-raised) !important;
	transform: translateY(-4px);
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-use-card:hover::after {
	transform: scaleX(1);
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-use-card__number {
	position: absolute;
	right: 0.9rem;
	top: 0.8rem;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-use-card__icon {
	display: block;
}

/* Alternating comparison sections. */
:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-split {
	width: 100%;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-split__copy a:not(.wp-block-button__link) {
	font-weight: 800;
}

/* FAQ marker and open state are not exposed by the Details Inspector. */
:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-faq__inner {
	min-height: 505.7344px;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .is-style-locksmith-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 17px 2rem 17px 0;
	position: relative;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .is-style-locksmith-faq summary::-webkit-details-marker {
	display: none;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .is-style-locksmith-faq summary::after {
	content: "+";
	font-size: 1.2rem;
	font-weight: 500;
	position: absolute;
	right: 0;
	top: 0.85rem;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .is-style-locksmith-faq[open] summary {
	color: var(--wp--preset--color--primary);
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .is-style-locksmith-faq[open] summary::after {
	content: "−";
}

/* Location cards retain clipping and hover behavior. */
:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-locations__inner {
	min-height: 358.3125px;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-location-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: box-shadow 180ms ease, transform 180ms ease;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-location-card:hover {
	box-shadow: var(--wp--preset--shadow--locksmith-raised) !important;
	transform: translateY(-3px);
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-location-card > figure {
	margin: 0;
	overflow: hidden;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-location-card > figure img {
	display: block;
	height: 100%;
	width: 100%;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-location-card__body {
	flex: 1;
}

:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-contact-row a,
:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-phone-link a {
	color: inherit;
	text-decoration: none;
}

/* Service-request modal behavior. */
body.hsl-lss-modal-open {
	overflow: hidden;
}

.hsl-lss-modal {
	align-items: center;
	background: rgb(8 20 32 / 66%);
	box-sizing: border-box;
	display: none;
	inset: 0;
	justify-content: center;
	margin: 0;
	overflow-y: auto;
	padding: 24px !important;
	position: fixed;
	z-index: 99999;
}

.hsl-lss-modal.is-open {
	animation: hsl-lss-fade-in 180ms ease both;
	backdrop-filter: blur(4px);
	display: flex;
}

.hsl-lss-modal__panel {
	display: grid;
	grid-template-columns: 310px minmax(0, 1fr);
	margin: auto;
	max-width: 880px !important;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.hsl-lss-modal__panel > .hsl-lss-modal__rail,
.hsl-lss-modal__panel > .hsl-lss-modal__main {
	margin-block-start: 0 !important;
}

.hsl-lss-modal__close {
	align-items: center;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 50%;
	color: var(--wp--preset--color--text-muted);
	display: flex;
	font-size: 1.65rem;
	font-weight: 300;
	height: 44px;
	justify-content: center;
	line-height: 1;
	position: absolute;
	right: 12px;
	text-decoration: none;
	top: 12px;
	width: 44px;
	z-index: 5;
}

.hsl-lss-modal__close:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.hsl-lss-modal__rail {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.hsl-lss-modal__benefits {
	display: grid;
	gap: 11px;
	list-style: none;
}

.hsl-lss-modal__benefits li::before {
	color: var(--wp--preset--color--primary-alt) !important;
}

.hsl-lss-modal__phone {
	margin-top: auto !important;
}

.hsl-lss-modal__phone a {
	font-weight: 800;
	white-space: nowrap;
}

.hsl-lss-modal__main {
	box-sizing: border-box;
	max-width: none;
	width: 100%;
}

.hsl-lss-modal .gform_wrapper {
	margin: 0;
}

.hsl-lss-modal .gform_fields {
	display: grid;
	gap: 0.85rem 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hsl-lss-modal .gfield {
	grid-column: span 2;
}

.hsl-lss-modal .gfield.hsl-lss-field--half {
	grid-column: span 1;
}

.hsl-lss-modal textarea {
	block-size: 86px !important;
	height: 86px !important;
	max-block-size: 150px;
	max-height: 150px;
	min-block-size: 86px !important;
	min-height: 86px !important;
	resize: vertical;
}

.hsl-lss-modal .gform_footer {
	margin: 1rem 0 0;
	padding: 0;
}

.hsl-lss-modal .gform_button {
	align-items: center;
	cursor: pointer;
	display: flex !important;
	height: 54px !important;
	justify-content: center;
	min-block-size: 54px !important;
	min-height: 54px;
	width: 100% !important;
}

.hsl-lss-modal .gform_validation_errors {
	background: color-mix(in srgb, var(--wp--preset--color--danger) 6%, var(--wp--preset--color--base));
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--danger) 35%, var(--wp--preset--color--base));
	border-radius: 9px;
	box-shadow: none;
	margin: 0 0 1rem;
	padding: 0.8rem 1rem;
}

.hsl-lss-modal .gform_validation_errors h2,
.hsl-lss-modal .validation_message {
	color: var(--wp--preset--color--danger);
}

.hsl-lss-modal .gfield_error input,
.hsl-lss-modal .gfield_error select,
.hsl-lss-modal .gfield_error textarea {
	border-color: var(--wp--preset--color--danger);
}

.hsl-lss-modal .gform_confirmation_message {
	background: color-mix(in srgb, var(--wp--preset--color--success) 8%, var(--wp--preset--color--base));
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--success) 35%, var(--wp--preset--color--base));
	border-radius: 12px;
	color: var(--wp--preset--color--success);
	line-height: 1.6;
	padding: 2rem;
	text-align: center;
}

.hsl-lss-modal__form-missing {
	background: color-mix(in srgb, var(--wp--preset--color--primary-alt) 22%, var(--wp--preset--color--base));
	border: 1px solid var(--wp--preset--color--primary-alt);
	border-radius: 10px;
	padding: 1rem;
}

.hsl-lss-modal__form-missing p {
	margin: 0;
}

@keyframes hsl-lss-fade-in {

	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (max-width: 900px) {

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-definition__inner,
	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-split,
	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-faq__inner,
	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-locations__inner {
		display: flex !important;
		flex-direction: column;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-split__media {
		order: -1 !important;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-hero__inner {
		display: flex !important;
		flex-direction: column;
		gap: 0 !important;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-hero__copy {
		display: contents;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-pill {
		align-self: flex-start;
		order: 1;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-hero h1 {
		order: 2;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-hero__media {
		margin: 14px 0 28px;
		order: 3 !important;
		width: 100%;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-lead {
		margin-top: 1px !important;
		order: 4;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-actions {
		order: 5;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-image--hero img {
		aspect-ratio: 16 / 9 !important;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-icon-cards,
	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-use-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.hsl-lss-modal {
		align-items: flex-end;
		padding: 0 !important;
	}

	.hsl-lss-modal__panel {
		border-radius: 20px 20px 0 0 !important;
		grid-template-columns: 1fr;
		max-height: 96dvh;
		overflow-y: auto;
	}

	.hsl-lss-modal__rail {
		min-height: auto;
		padding: 1.45rem 1.4rem 1.2rem !important;
	}

	.hsl-lss-modal__benefits {
		display: none;
	}

	.hsl-lss-modal__phone {
		margin-top: 0 !important;
		padding-top: 0.8rem !important;
	}

	.hsl-lss-modal__main {
		padding: 1.4rem 1.4rem 1.5rem !important;
	}
}

@media (max-width: 620px) {

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-container {
		padding-inline: 18px !important;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-icon-cards,
	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-use-grid {
		grid-template-columns: 1fr !important;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-icon-cards {
		gap: 1.2rem !important;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-icon-cards--comparison {
		margin-inline: 0 !important;
		padding-inline: 0 !important;
		width: 100%;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-hero__inner {
		padding-top: 2rem !important;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-hero h1 {
		font-size: clamp(2.15rem, 12vw, 3.15rem) !important;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-actions,
	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-actions .wp-block-button,
	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-actions .wp-block-button__link,
	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-cta-band .wp-block-button,
	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-cta-band .wp-block-button__link {
		width: 100%;
	}

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-location-grid {
		display: flex !important;
		flex-direction: column;
	}

	.hsl-lss-modal .gform_fields {
		grid-template-columns: 1fr;
	}

	.hsl-lss-modal .gfield,
	.hsl-lss-modal .gfield.hsl-lss-field--half {
		grid-column: 1;
	}
}

.editor-styles-wrapper .hsl-lss-modal {
	background: var(--wp--preset--color--border-subtle);
	display: block;
	inset: auto;
	padding: 2rem;
	position: relative;
}

.editor-styles-wrapper .hsl-lss-modal__panel {
	margin: 0 auto;
}

.hsl-lss-modal-dependency-fallback {
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 12px;
	margin: var(--wp--preset--spacing--50) auto;
	max-width: 760px;
	padding: var(--wp--preset--spacing--40);
	text-align: center;
}

.hsl-lss-modal-dependency-fallback p {
	margin: 0;
}

.hsl-lss-modal[data-hsl-lead-modal-ready="true"] ~ .hsl-lss-modal-dependency-fallback {
	display: none;
}

.editor-styles-wrapper .hsl-lss-modal-dependency-fallback {
	display: none;
}

@media (prefers-reduced-motion: reduce) {

	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-button .wp-block-button__link,
	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-use-card,
	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-use-card::after,
	:where(.hsl-page-full-width-shell, .editor-styles-wrapper) .hsl-lss-location-card,
	.hsl-lss-modal.is-open {
		animation: none;
		transition: none;
	}
}
