/**
 * Local Hero Landing Pages — Front-end CSS
 * Minimal, theme-safe block styles. Only loaded if "enable_front_styles" is on.
 * Scoped to .lhlp-page to avoid theme conflicts.
 */

.lhlp-page {
	max-width: 100%;
}

/* Headings */
.lhlp-page .lhlp-heading {
	margin: 0 0 0.6em 0;
	line-height: 1.2;
}

/* Rich text */
.lhlp-page .lhlp-rich-text {
	margin: 0 0 1.5em 0;
	line-height: 1.65;
}
.lhlp-page .lhlp-rich-text p { margin: 0 0 1em 0; }
.lhlp-page .lhlp-rich-text p:last-child { margin-bottom: 0; }
.lhlp-page .lhlp-rich-text ul,
.lhlp-page .lhlp-rich-text ol {
	margin: 0 0 1em 1.5em;
	padding: 0;
}

/* Image */
.lhlp-page .lhlp-image {
	margin: 0 0 1.5em 0;
}
.lhlp-page .lhlp-image img {
	max-width: 100%;
	height: auto;
	display: inline-block;
}

/* Buttons */
.lhlp-page {
	/* Default button colors. Overridden per-site by an inline <style> block
	   emitted from PHP based on the user's settings. The CSS custom property
	   pattern means a single override flips all matching button instances. */
	--lhlp-btn-primary-bg:    #1e4192;
	--lhlp-btn-primary-text:  #ffffff;
	--lhlp-btn-accent-bg:     #ff1c1c;
	--lhlp-btn-accent-text:   #ffffff;
	--lhlp-btn-outline-color: #1e4192;
}
.lhlp-page .lhlp-button-wrap {
	margin: 0 0 1.5em 0;
}
.lhlp-page .lhlp-button {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
	cursor: pointer;
	border: 2px solid transparent;
	font-size: 16px;
	line-height: 1.2;
}
.lhlp-page .lhlp-button:hover { opacity: 0.9; transform: translateY(-1px); }
.lhlp-page .lhlp-button--primary {
	background: var(--lhlp-btn-primary-bg);
	color: var(--lhlp-btn-primary-text);
}
.lhlp-page .lhlp-button--accent {
	background: var(--lhlp-btn-accent-bg);
	color: var(--lhlp-btn-accent-text);
}
.lhlp-page .lhlp-button--outline {
	background: transparent;
	color: var(--lhlp-btn-outline-color);
	border-color: var(--lhlp-btn-outline-color);
}

/* Divider */
.lhlp-page .lhlp-divider {
	width: 100%;
}
.lhlp-page .lhlp-divider--line {
	border-top: 1px solid rgba(0,0,0,0.1);
}
.lhlp-page .lhlp-divider--dots {
	border-top: 2px dotted rgba(0,0,0,0.2);
}
.lhlp-page .lhlp-divider--space {
	border: none;
}

/* Columns */
.lhlp-page .lhlp-columns {
	display: grid;
	gap: 24px;
	margin: 0 0 1.5em 0;
}
.lhlp-page .lhlp-columns-2 { grid-template-columns: repeat(2, 1fr); }
.lhlp-page .lhlp-columns-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
	.lhlp-page .lhlp-columns-2,
	.lhlp-page .lhlp-columns-3 { grid-template-columns: 1fr; }
}

/* Testimonial */
.lhlp-page .lhlp-testimonial {
	background: rgba(0,0,0,0.03);
	border-radius: 12px;
	padding: 24px;
	margin: 0 0 1.5em 0;
}
.lhlp-page .lhlp-testimonial__stars {
	color: #f59e0b;
	font-size: 18px;
	margin-bottom: 8px;
	letter-spacing: 2px;
}
.lhlp-page .lhlp-testimonial__quote {
	margin: 0 0 12px 0;
	font-size: 1.05em;
	line-height: 1.5;
	font-style: italic;
}
.lhlp-page .lhlp-testimonial__caption {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.9em;
}
.lhlp-page .lhlp-testimonial__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

/* FAQ */
.lhlp-page .lhlp-faq {
	margin: 0 0 1.5em 0;
}
.lhlp-page .lhlp-faq__item {
	border-bottom: 1px solid rgba(0,0,0,0.1);
	overflow: hidden;
}
.lhlp-page .lhlp-faq__item:first-child {
	border-top: 1px solid rgba(0,0,0,0.1);
}
.lhlp-page .lhlp-faq__q {
	font-weight: 600;
	cursor: pointer;
	padding: 16px 36px 16px 0;
	list-style: none;
	position: relative;
	user-select: none;
	transition: color 0.2s ease;
}
.lhlp-page .lhlp-faq__q::-webkit-details-marker { display: none; }
.lhlp-page .lhlp-faq__q::after {
	content: '';
	position: absolute;
	right: 4px;
	top: 50%;
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-75%) rotate(45deg);
	transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
	opacity: 0.6;
}
.lhlp-page .lhlp-faq__item[open] .lhlp-faq__q::after {
	transform: translateY(-25%) rotate(-135deg);
}
.lhlp-page .lhlp-faq__q:hover {
	color: var(--lh-primary, #1e4192);
}
.lhlp-page .lhlp-faq__q:hover::after {
	opacity: 1;
}
.lhlp-page .lhlp-faq__a {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition:
		max-height 0.35s cubic-bezier(0.4, 0.0, 0.2, 1),
		opacity 0.25s ease-in-out;
	line-height: 1.6;
}
.lhlp-page .lhlp-faq__item[open] .lhlp-faq__a {
	/* JS sets explicit max-height for animation; this fallback handles
	   no-JS scenarios where <details> still toggles natively. */
	max-height: none;
	opacity: 1;
	padding-bottom: 16px;
}
/* When JS controls it, padding stays consistent during animation */
.lhlp-page .lhlp-faq__a {
	padding-bottom: 0;
}
.lhlp-page .lhlp-faq__item[open] .lhlp-faq__a {
	padding-bottom: 16px;
}

/* Alignment helpers */
.lhlp-page .lhlp-align-left { text-align: left; }
.lhlp-page .lhlp-align-center { text-align: center; }
.lhlp-page .lhlp-align-right { text-align: right; }

/* Hub page location list */
.lhlp-location-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.lhlp-location-list li {
	margin: 0;
	padding: 0;
}
.lhlp-location-list li a {
	display: block;
	padding: 10px 14px;
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.15s ease;
}
.lhlp-location-list li a:hover {
	border-color: #1e4192;
	background: rgba(30, 65, 146, 0.05);
}

/* Nearby Locations block */
.lhlp-page .lhlp-nearby {
	margin: 0 0 1.5em 0;
}
.lhlp-page .lhlp-nearby__heading {
	margin: 0 0 0.6em 0;
	font-size: 1.05em;
	font-weight: 600;
}
.lhlp-page .lhlp-nearby__list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.lhlp-page .lhlp-nearby__list--grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 8px;
}
.lhlp-page .lhlp-nearby__list--grid .lhlp-nearby__item a {
	display: block;
	padding: 8px 12px;
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 6px;
	text-decoration: none;
	font-size: 0.95em;
	transition: all 0.15s ease;
}
.lhlp-page .lhlp-nearby__list--grid .lhlp-nearby__item a:hover {
	border-color: #1e4192;
	background: rgba(30, 65, 146, 0.05);
}
.lhlp-page .lhlp-nearby__list--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
}
.lhlp-page .lhlp-nearby__list--inline .lhlp-nearby__item {
	display: inline;
}
.lhlp-page .lhlp-nearby__list--inline .lhlp-nearby__item:not(:last-child)::after {
	content: '·';
	margin-left: 12px;
	opacity: 0.4;
}
