/* Hank Sites blocks. Colors follow the active theme's presets when it defines
 * "primary" / "base-dark" style slugs, with sensible fallbacks otherwise. */
:root {
	--hs-accent: var(--wp--preset--color--primary, #b82633);
	--hs-accent-dark: var(--wp--preset--color--primary-dark, #951d28);
	--hs-ink: var(--wp--preset--color--ink, #0f172a);
	--hs-muted: var(--wp--preset--color--muted, #64748b);
	--hs-line: var(--wp--preset--color--line, #e2e8f0);
	--hs-surface: var(--wp--preset--color--surface, #ffffff);
	--hs-radius: 10px;
}

/* Grids and cards */
.hs-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hs-grid--1 { grid-template-columns: 1fr; }
.hs-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hs-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .hs-grid--4, .hs-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hs-grid, .hs-grid--2, .hs-grid--3, .hs-grid--4 { grid-template-columns: 1fr; } }

.hs-card {
	background: var(--hs-surface); color: var(--hs-ink);
	border: 1px solid var(--hs-line); border-radius: var(--hs-radius);
	box-shadow: 0 10px 30px -18px rgb(15 23 42 / .35);
	overflow: hidden; display: flex; flex-direction: column; margin: 0;
}
.hs-card__media { margin: 0; }
.hs-card__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; height: auto; }
.hs-card__body { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.hs-card__body p { margin: 0 0 1rem; font-size: .9rem; color: var(--hs-muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hs-card__title { margin: 0 0 .5rem; font-size: 1.05rem; line-height: 1.3; text-transform: none; letter-spacing: 0; }
.hs-card__link { margin-top: auto !important; }
.hs-card__link a { color: var(--hs-accent); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.hs-card__link a::after { content: " →"; }
.hs-card--link { transition: transform .2s ease, box-shadow .2s ease; }
.hs-card--link:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgb(15 23 42 / .45); }

/* Reviews */
.hs-review { padding: 1.5rem; }
.hs-review__stars { color: #f59e0b; letter-spacing: .15em; margin: 0 0 .75rem; }
.hs-review__text { margin: 0 0 1rem; font-size: .92rem; color: #334155; border: 0; padding: 0; }
.hs-review__text p { margin: 0 0 .5rem; }
.hs-reviews--clamp .hs-review__text { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.hs-review figcaption { margin-top: auto; }
.hs-review__name { display: block; font-weight: 700; }
.hs-review__meta { display: block; font-size: .75rem; color: #64748b; }

/* Lists */
.hs-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hs-chips li { background: var(--hs-surface); border: 1px solid var(--hs-line); border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; font-weight: 600; color: var(--hs-ink); }
.hs-chips a { color: inherit; text-decoration: none; }
.hs-chips a:hover { color: var(--hs-accent); }
.hs-link-list { list-style: none; padding: 0; margin: 0; }
.hs-link-list li { margin: 0 0 .55rem; }
.hs-link-list a { text-decoration: none; }

/* Services strip */
.hs-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.hs-strip li { border-right: 1px solid rgb(148 163 184 / .2); }
.hs-strip li:last-child { border-right: 0; }
.hs-strip a {
	display: flex; justify-content: center; align-items: center; gap: .6rem;
	padding: 1.4rem .5rem; color: #e2e8f0; text-decoration: none;
	font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.hs-strip a:hover { color: #fff; background: color-mix(in srgb, var(--hs-accent) 12%, transparent); }
@media (max-width: 700px) { .hs-strip li { border-bottom: 1px solid rgb(148 163 184 / .2); } }

.hs-icon::before {
	content: ""; width: 16px; height: 16px; flex: none; background: var(--hs-accent);
	-webkit-mask: var(--hs-i) center / contain no-repeat; mask: var(--hs-i) center / contain no-repeat;
}
.hs-icon--water { --hs-i: url("icons/water.svg"); }
.hs-icon--sewage { --hs-i: url("icons/alert.svg"); }
.hs-icon--mold { --hs-i: url("icons/shield-check.svg"); }
.hs-icon--fire { --hs-i: url("icons/flame.svg"); }
.hs-icon--vapor { --hs-i: url("icons/droplets.svg"); }
.hs-icon--hazard { --hs-i: url("icons/shield.svg"); }
.hs-icon--roof { --hs-i: url("icons/roof.svg"); }
.hs-icon--storm { --hs-i: url("icons/storm.svg"); }
.hs-icon--asbestos { --hs-i: url("icons/mask.svg"); }
.hs-icon--home { --hs-i: url("icons/home.svg"); }

/* Map */
.hs-map iframe { display: block; width: 100%; border: 0; border-radius: var(--hs-radius); min-height: 240px; }

/* Lead form */
.hs-lead { color: var(--hs-ink); }
.hs-lead--card {
	background: var(--hs-surface); border-radius: 12px; padding: 2rem 1.75rem;
	box-shadow: 0 30px 60px -20px rgb(0 0 0 / .55); max-width: 460px; margin-left: auto; margin-right: auto;
}
.hs-lead__title { font-size: 1.15rem !important; text-align: center; margin: 0; color: var(--hs-ink); letter-spacing: .02em; }
.hs-lead__subtitle { text-align: center; font-size: .8rem; color: var(--hs-muted); margin: .4rem 0 1.25rem; }
.hs-lead--plain .hs-lead__title, .hs-lead--plain .hs-lead__subtitle { text-align: left; }
.hs-lead__form { display: grid; gap: .85rem; }
.hs-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 520px) { .hs-row { grid-template-columns: 1fr; } }
.hs-field { display: block; margin: 0; }
.hs-field > span { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hs-ink); }
.hs-lead input[type=text], .hs-lead input[type=email], .hs-lead input[type=tel], .hs-lead input[type=date], .hs-lead select, .hs-lead textarea {
	width: 100%; box-sizing: border-box; margin-top: .35rem;
	border: 1px solid #cbd5e1; border-radius: 6px; padding: .65rem .75rem;
	font: inherit; font-size: .9rem; color: var(--hs-ink); background: #fff;
}
.hs-lead input:focus, .hs-lead select:focus, .hs-lead textarea:focus { outline: 2px solid color-mix(in srgb, var(--hs-accent) 35%, transparent); border-color: var(--hs-accent); }
.hs-consent { display: flex; gap: .5rem; align-items: flex-start; font-size: .75rem; color: #475569; line-height: 1.5; }
.hs-consent input { margin-top: .2rem; }
.hs-consent-note { font-size: .72rem; color: var(--hs-muted); margin: 0; }
.hs-lead__submit {
	width: 100%; border: 0; cursor: pointer; border-radius: 6px;
	background: var(--hs-accent); color: #fff; padding: 1rem;
	font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	box-shadow: 0 10px 25px -10px color-mix(in srgb, var(--hs-accent) 90%, transparent);
}
.hs-lead__submit:hover { background: var(--hs-accent-dark); }
.hs-lead__submit:disabled { opacity: .6; cursor: wait; }
.hs-lead__status { margin: 0; font-size: .85rem; min-height: 1em; }
.hs-lead__status.is-success { color: #15803d; }
.hs-lead__status.is-error { color: #b91c1c; }
.hs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Social icons (hank/social-links) */
.wp-block-social-links.hs-social { gap: .5rem; margin: 1rem 0 0; padding: 0; }
.wp-block-social-links.hs-social .wp-social-link { margin: 0; background: var(--wp--preset--color--primary, #b82633); color: #fff; }
.wp-block-social-links.hs-social .wp-social-link a { color: #fff; }
.wp-block-social-links.hs-social .wp-social-link:hover { background: var(--wp--preset--color--primary-dark, #951d28); transform: none; }
