/*
Theme Name: Insure Car Insurance
Theme URI: https://insure.co.il
Author: insure.co.il
Description: ערכת עיצוב בלוקים מהירה וממוקדת המרות לביטוח רכב. RTL מלא, פלטת כחול-כתום, טופס לידים, כפתורי וואטסאפ וחיוג צפים.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: insure-car-insurance
Tags: rtl-language-support, block-patterns, full-site-editing, one-column, custom-colors
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { direction: rtl; text-align: right; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.insure-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
}
.insure-header {
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(180%) blur(8px);
	box-shadow: 0 1px 0 var(--wp--preset--color--border);
}
.admin-bar .insure-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .insure-site-header { top: 46px; } }
.wp-site-blocks > .insure-site-header + * { margin-block-start: 0; }
.insure-main { margin-block-start: 0; }
.wp-site-blocks > .insure-site-footer { margin-block-start: 0; }

/* ---------- Generic sections (inner templates) ---------- */
.insure-section { padding-block: var(--wp--preset--spacing--60); }
.insure-section--alt { background: var(--wp--preset--color--surface); }
.insure-posts .wp-block-post-template { gap: var(--wp--preset--spacing--40); }
.insure-posts .wp-block-query-pagination { margin-top: var(--wp--preset--spacing--50); gap: .5rem; }
.wp-block-query-pagination-numbers .page-numbers { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; border-radius: 8px; text-decoration: none; }
.wp-block-query-pagination-numbers .page-numbers.current { background: var(--wp--preset--color--primary); color: #fff; }
@media (max-width: 900px) { .insure-posts .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); } }
.insure-single .wp-block-post-featured-image img { border-radius: 16px; }
.insure-inline-cta {
	margin-block: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--40);
	border-radius: 16px;
	background: var(--wp--preset--color--primary-light);
	border-inline-start: 6px solid var(--wp--preset--color--accent);
}
.insure-inline-cta h3 { margin-top: 0; }

/* ---------- How it works ---------- */
.insure-steps { counter-reset: insure-step; gap: var(--wp--preset--spacing--40); margin-top: var(--wp--preset--spacing--50); }
.insure-step {
	position: relative;
	padding: var(--wp--preset--spacing--40);
	padding-top: calc(var(--wp--preset--spacing--40) + 3.5rem);
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
}
.insure-step::before {
	counter-increment: insure-step;
	content: counter(insure-step);
	position: absolute;
	inset-block-start: var(--wp--preset--spacing--40);
	inset-inline-start: var(--wp--preset--spacing--40);
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: #fff;
	font-weight: 800;
	font-size: 1.25rem;
}
.insure-step h3 { margin: 0 0 .4rem; }
.insure-step p { margin: 0; color: var(--wp--preset--color--muted); }
.insure-header .wp-block-site-title a { text-decoration: none; }
.insure-header .wp-block-navigation a { text-decoration: none; font-weight: 500; }
.insure-header .wp-block-navigation a:hover { color: var(--wp--preset--color--primary); }
.insure-main-nav .wp-block-navigation-item { position: relative; }
.insure-main-nav .current-menu-item > a,
.insure-main-nav a[aria-current="page"] { color: var(--wp--preset--color--primary); }
@media (min-width: 600px) {
	.insure-main-nav .current-menu-item > a::after,
	.insure-main-nav a[aria-current="page"]::after {
		content: "";
		position: absolute;
		inset-inline: 0;
		bottom: -6px;
		height: 3px;
		border-radius: 3px;
		background: var(--wp--preset--color--accent);
	}
}
/* Mobile overlay menu */
.insure-main-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem clamp(1rem, 5vw, 2rem);
	background: #fff;
	color: var(--wp--preset--color--contrast);
}
.insure-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch;
	padding-top: 3rem;
}
.insure-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: stretch;
	gap: 0;
	width: 100%;
}
.insure-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	padding: 1rem .25rem;
	font-size: 1.25rem;
	font-weight: 700;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
/* Larger tap targets; display is left to core so the hamburger still hides on desktop */
.insure-main-nav .wp-block-navigation__responsive-container-open,
.insure-main-nav .wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
	align-items: center;
}
@media (max-width: 600px) {
	.insure-header .wp-block-buttons .wp-block-button__link { padding: .55rem .9rem !important; font-size: .95rem; }
}

/* ---------- Buttons ---------- */
.wp-element-button,
.wp-block-button__link { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.wp-element-button:hover,
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 122, 0, .35); }
.wp-block-button.is-style-outline > .wp-block-button__link { border-width: 2px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { box-shadow: none; }

/* ---------- Hero ---------- */
.insure-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--wp--preset--color--primary-dark) 0%, var(--wp--preset--color--primary) 60%, #1E6FD9 100%);
}
.insure-hero::before {
	content: "";
	position: absolute;
	inset-block-start: -30%;
	inset-inline-end: -10%;
	width: 55vw;
	height: 55vw;
	max-width: 760px;
	max-height: 760px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 122, 0, .25) 0%, rgba(255, 122, 0, 0) 70%);
	pointer-events: none;
}
.insure-hero > * { position: relative; }
.insure-hero h1 { text-wrap: balance; }
.insure-hero h1 mark { background: none; color: var(--wp--preset--color--accent); }
.insure-hero__checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.insure-hero__checks li { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.insure-hero__checks li::before {
	content: "✓";
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: #fff;
	font-weight: 800;
	font-size: .9rem;
}

/* ---------- Lead form ---------- */
.insure-form-card {
	background: #fff;
	color: var(--wp--preset--color--contrast);
	border-radius: 20px;
	padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: 0 24px 60px rgba(7, 47, 102, .35);
	border-top: 6px solid var(--wp--preset--color--accent);
}
.insure-form-card h2,
.insure-form-card h3 { margin-top: 0; }
.insure-lead-form { display: grid; gap: .9rem; }
.insure-lead-form .insure-field { display: grid; gap: .35rem; }
.insure-lead-form label { font-weight: 600; font-size: .95rem; }
.insure-lead-form input[type="text"],
.insure-lead-form input[type="tel"],
.insure-lead-form select {
	width: 100%;
	box-sizing: border-box;
	padding: .85rem 1rem;
	font: inherit;
	font-size: 1rem;
	color: inherit;
	background: var(--wp--preset--color--surface);
	border: 1.5px solid var(--wp--preset--color--border);
	border-radius: 10px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.insure-lead-form input[type="tel"] { direction: ltr; text-align: right; }
.insure-lead-form input:focus,
.insure-lead-form select:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 4px rgba(11, 77, 162, .15);
	background: #fff;
}
.insure-lead-form .insure-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 480px) { .insure-lead-form .insure-row { grid-template-columns: 1fr; } }
.insure-lead-form .insure-req { color: #B42318; }
.insure-lead-form .insure-optional { font-weight: 400; font-size: .85rem; color: var(--wp--preset--color--muted); }
.insure-lead-form .insure-agree { display: flex; gap: .6rem; align-items: flex-start; }
.insure-lead-form .insure-agree input[type="checkbox"] {
	-webkit-appearance: auto;
	appearance: auto;
	position: static;
	opacity: 1;
	flex: none;
	width: 22px;
	height: 22px;
	margin: .1rem 0 0;
	cursor: pointer;
	accent-color: var(--wp--preset--color--accent);
}
.insure-lead-form .insure-agree input[type="checkbox"]:focus-visible { outline: 3px solid var(--wp--preset--color--primary); outline-offset: 2px; }
.insure-lead-form .insure-agree input[aria-invalid="true"] { outline: 2px solid #B42318; outline-offset: 2px; }
.insure-lead-form .insure-agree label { font-size: .85rem; font-weight: 400; line-height: 1.5; color: var(--wp--preset--color--contrast); cursor: pointer; }
.insure-lead-form input[aria-invalid="true"]:not([type="checkbox"]) { border-color: #B42318; background: #FFF6F5; }
.insure-lead-form .insure-field-error { margin: 0; font-size: .85rem; font-weight: 600; color: #B42318; }
.insure-lead-form .insure-field-error::before { content: "⚠ "; }
.insure-lead-form .insure-field-error[hidden] { display: none; }
.insure-lead-form button:disabled { opacity: .7; cursor: wait; transform: none; }
.insure-lead-form .insure-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.insure-lead-form button {
	width: 100%;
	border: 0;
	cursor: pointer;
	padding: 1rem 1.25rem;
	font: inherit;
	font-size: 1.15rem;
	font-weight: 800;
	color: #fff;
	background: var(--wp--preset--color--accent);
	border-radius: 12px;
	transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.insure-lead-form button:hover { background: var(--wp--preset--color--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 122, 0, .4); }
.insure-form-note { margin: 0; text-align: center; font-size: .85rem; color: var(--wp--preset--color--muted); }
.insure-alert { padding: .9rem 1rem; border-radius: 10px; font-weight: 600; margin-bottom: .5rem; }
.insure-alert--success { background: #E7F7EE; color: #126B3A; border: 1px solid #A8DDBE; }
.insure-alert--error { background: #FDECEC; color: #9B1C1C; border: 1px solid #F3B4B4; }

/* ---------- Cards (benefits / coverage / posts) ---------- */
.insure-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	height: 100%;
	box-sizing: border-box;
}
.insure-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 27, 45, .1); border-color: transparent; }
.insure-card h3 { margin-block: .75rem .4rem; }
.insure-card p { margin: 0; color: var(--wp--preset--color--muted); }
.insure-icon {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary);
}
.insure-icon svg { width: 28px; height: 28px; }
.insure-icon--accent { background: #FFF1E3; color: var(--wp--preset--color--accent-dark); }

.insure-coverage .insure-card { position: relative; overflow: hidden; }
.insure-coverage .insure-card::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--wp--preset--color--accent), var(--wp--preset--color--primary));
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .3s ease;
}
.insure-coverage .insure-card:hover::after { transform: scaleX(1); }
.insure-card .insure-card__link a { font-weight: 700; text-decoration: none; color: var(--wp--preset--color--accent-dark); }
.insure-card.is-featured { border: 2px solid var(--wp--preset--color--accent); }
.insure-badge {
	display: inline-block;
	padding: .2rem .7rem;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: #fff;
	font-size: .8rem;
	font-weight: 700;
}

/* ---------- Section eyebrow ---------- */
.insure-eyebrow {
	display: inline-block;
	padding: .3rem .9rem;
	border-radius: 999px;
	background: #FFF1E3;
	color: var(--wp--preset--color--accent-dark);
	font-weight: 700;
	font-size: .9rem;
}

/* ---------- Blog ---------- */
.insure-post-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	overflow: hidden;
	height: 100%;
	transition: transform .2s ease, box-shadow .2s ease;
}
.insure-post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 27, 45, .1); }
.insure-post-card .wp-block-post-featured-image { margin: 0; }
.insure-post-card .wp-block-post-featured-image img { border-radius: 0; }
.insure-post-card__body { padding: 1.25rem 1.5rem 1.5rem; }
.insure-post-card .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.insure-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--primary); }
.insure-post-card .wp-block-post-excerpt__more-link { font-weight: 700; text-decoration: none; color: var(--wp--preset--color--accent-dark); }
.insure-post-card .wp-block-post-featured-image:empty,
.insure-post-card .wp-block-post-featured-image:not(:has(img)) { display: none; }

/* ---------- CTA band ---------- */
.insure-cta { background: linear-gradient(135deg, var(--wp--preset--color--accent) 0%, var(--wp--preset--color--accent-dark) 100%); }
.insure-cta .wp-block-button__link { background: #fff !important; color: var(--wp--preset--color--accent-dark) !important; }

/* ---------- Footer ---------- */
.insure-footer a { color: #fff; text-decoration: none; opacity: .85; }
.insure-footer a:hover { opacity: 1; text-decoration: underline; }
.insure-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }

/* ---------- Floating contact buttons ---------- */
.insure-float {
	position: fixed;
	inset-inline-end: 18px; /* = left side in RTL */
	inset-block-end: 18px;
	z-index: 999;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.insure-float a {
	position: relative;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
	transition: transform .2s ease;
}
.insure-float a:hover { transform: scale(1.08); }
.insure-float svg { width: 30px; height: 30px; }
.insure-float__wa { background: #25D366; }
.insure-float__wa::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #25D366;
	z-index: -1;
	animation: insure-pulse 2s ease-out infinite;
}
.insure-float__call { background: var(--wp--preset--color--accent); }
.insure-float__label {
	position: absolute;
	inset-inline-start: calc(100% + 10px);
	white-space: nowrap;
	padding: .35rem .7rem;
	border-radius: 8px;
	background: var(--wp--preset--color--contrast);
	color: #fff;
	font-size: .85rem;
	font-weight: 600;
	opacity: 0;
	transform: translateX(-6px);
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}
.insure-float a:hover .insure-float__label,
.insure-float a:focus-visible .insure-float__label { opacity: 1; transform: none; }
@keyframes insure-pulse {
	0% { transform: scale(1); opacity: .6; }
	100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 600px) {
	.insure-float a { width: 52px; height: 52px; }
	.insure-float__label { display: none; }
}

/* ---------- Campaign landing page ---------- */
.insure-lp-contact { display: flex; gap: .5rem; flex-wrap: nowrap; }
.insure-lp-contact a {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .55rem 1rem;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	color: #fff;
}
.insure-lp-contact__wa { background: #25D366; }
.insure-lp-contact__call { background: var(--wp--preset--color--accent); }
.insure-lp-contact a:hover { color: #fff; filter: brightness(.95); }
.insure-lp-header .wp-block-site-logo img { max-height: 48px; width: auto; }

.insure-lp-hero h1 { max-width: 18ch; margin-inline: auto; }
.insure-lp-form { max-width: 560px; margin-inline: auto !important; margin-top: var(--wp--preset--spacing--50) !important; }

.insure-lp-trust__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: 1rem;
	text-align: center;
}
.insure-lp-trust__list li { display: grid; gap: .15rem; }
.insure-lp-trust__list strong { color: var(--wp--preset--color--primary); font-size: 1.1rem; }
.insure-lp-trust__list span { color: var(--wp--preset--color--muted); font-size: .95rem; }

.insure-testimonials { padding-block: var(--wp--preset--spacing--60); }
.insure-testimonial { background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: 16px; }
.insure-testimonial .insure-stars { color: #F5A400; letter-spacing: 2px; margin: 0; }
.insure-testimonial cite { font-style: normal; font-weight: 700; color: var(--wp--preset--color--contrast); }

@media (max-width: 600px) {
	/* Header: icons only, keep it on one line */
	.insure-lp-contact a { padding: .55rem .75rem; }
	.insure-lp-contact__call span[dir],
	.insure-lp-header .wp-block-site-title { font-size: 1.05rem; }
	/* Floating buttons become a full-width bottom bar on the landing page */
	.page-template-page-landing .insure-float {
		inset-inline: 0;
		inset-block-end: 0;
		flex-direction: row;
		gap: 0;
		box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
	}
	.page-template-page-landing .insure-float a {
		flex: 1;
		width: auto;
		height: 56px;
		border-radius: 0;
		box-shadow: none;
		display: flex;
		gap: .5rem;
		justify-content: center;
	}
	.page-template-page-landing .insure-float a:hover { transform: none; }
	.page-template-page-landing .insure-float__wa::before { display: none; }
	.page-template-page-landing .insure-float__label {
		display: inline;
		position: static;
		opacity: 1;
		transform: none;
		padding: 0;
		background: none;
		font-size: 1rem;
	}
	.page-template-page-landing .insure-float__call .insure-float__label::before { content: "חייגו "; }
	.page-template-page-landing { padding-bottom: 56px; }
}

/* ---------- Cookie & privacy modal (bottom-anchored card) ---------- */
.insure-consent {
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 1000;
	display: flex;
	justify-content: center;
	padding: 0 16px 16px;
	pointer-events: none;
}
.insure-consent[hidden] { display: none; }
.insure-consent__card {
	pointer-events: auto;
	width: 100%;
	max-width: 620px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	box-sizing: border-box;
	padding: 1.5rem;
	background: #fff;
	color: var(--wp--preset--color--contrast);
	border-radius: 20px;
	border-top: 5px solid var(--wp--preset--color--accent);
	box-shadow: 0 24px 60px rgba(7, 47, 102, .35);
	animation: insure-slide-up .35s ease-out;
}
@keyframes insure-slide-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.insure-consent__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.insure-consent__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #FFF1E3;
	color: var(--wp--preset--color--accent-dark);
}
.insure-consent__icon svg { width: 26px; height: 26px; }
.insure-consent__title { margin: 0; font-size: 1.2rem; }
.insure-consent__text { margin: 0 0 1rem; font-size: .98rem; line-height: 1.65; }
.insure-consent__text a { color: var(--wp--preset--color--primary); font-weight: 700; }
.insure-consent__prefs fieldset { border: 0; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.insure-consent__prefs legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.insure-consent__opt {
	display: flex;
	gap: .65rem;
	align-items: flex-start;
	padding: .75rem .9rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: var(--wp--preset--color--surface);
	font-size: .92rem;
	line-height: 1.5;
	cursor: pointer;
}
.insure-consent__opt input { width: 20px; height: 20px; margin-top: .1rem; flex: none; accent-color: var(--wp--preset--color--primary); }
.insure-consent__opt input:disabled { cursor: not-allowed; }
.insure-consent__actions { display: flex; gap: .75rem; }
.insure-consent__actions[hidden] { display: none; }
.insure-consent__btn {
	flex: 1;
	min-height: 48px;
	padding: .75rem 1.25rem;
	border-radius: 12px;
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.insure-consent__btn--primary { border: 2px solid var(--wp--preset--color--accent); background: var(--wp--preset--color--accent); color: #fff; }
.insure-consent__btn--primary:hover { background: var(--wp--preset--color--accent-dark); border-color: var(--wp--preset--color--accent-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 122, 0, .35); }
.insure-consent__btn--secondary { border: 2px solid var(--wp--preset--color--primary); background: #fff; color: var(--wp--preset--color--primary); }
.insure-consent__btn--secondary:hover { background: var(--wp--preset--color--primary-light); }
@media (max-width: 480px) {
	.insure-consent { padding: 0 8px 8px; }
	.insure-consent__card { padding: 1.15rem; }
	.insure-consent__actions { flex-direction: column; }
}
/* Keep floating buttons clear of the open modal */
.insure-consent-open .insure-float { display: none; }

.insure-legal-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; font-size: .9rem; }
.insure-legal-links a,
.insure-cookie-settings { color: #fff; opacity: .85; }
.insure-cookie-settings {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}
.insure-cookie-settings:hover { opacity: 1; }
/* ---------- Accessibility widget ---------- */
.insure-a11y__trigger {
	position: fixed;
	right: 0;
	top: 50%;
	z-index: 1001;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	padding: 0;
	border: 3px solid #fff;
	border-right: 0;
	border-radius: 14px 0 0 14px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(7, 47, 102, .4);
	transition: width .15s ease, background-color .15s ease;
}
.insure-a11y__trigger:hover,
.insure-a11y__trigger[aria-expanded="true"] { width: 62px; background: var(--wp--preset--color--primary-dark); }
/* Phones: mid-screen on the right edge it covers form fields (RTL puts
   checkboxes on the right), so dock it in the bottom-right corner instead. */
@media (max-width: 600px) {
	.insure-a11y__trigger {
		top: auto;
		bottom: 18px;
		transform: none;
		width: 46px;
		height: 46px;
	}
	.insure-a11y__trigger:hover,
	.insure-a11y__trigger[aria-expanded="true"] { width: 50px; }
	.insure-a11y__trigger svg { width: 28px; height: 28px; }
	.page-template-page-landing .insure-a11y__trigger { bottom: 72px; } /* above the landing call/WhatsApp bar */
	.insure-consent-open .insure-a11y__trigger { top: 90px; bottom: auto; } /* cookie card fills the bottom */
}
.insure-a11y__trigger svg { width: 34px; height: 34px; }
.insure-a11y__trigger:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }

.insure-a11y__panel {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 1002;
	width: min(360px, 92vw);
	height: 100%;
	overflow-y: auto;
	box-sizing: border-box;
	background: #fff;
	color: var(--wp--preset--color--contrast);
	box-shadow: -12px 0 40px rgba(7, 47, 102, .3);
	animation: insure-slide-in .25s ease-out;
	font-size: 16px; /* keep the panel itself stable when page text is enlarged */
}
.insure-a11y__panel[hidden] { display: none; }
@keyframes insure-slide-in { from { transform: translateX(100%); } to { transform: none; } }
.insure-a11y__head {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--primary);
	color: #fff;
}
.insure-a11y__head h2 { margin: 0; font-size: 1.2rem; color: #fff; }
.insure-a11y__close {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, .6);
	border-radius: 10px;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.insure-a11y__close svg { width: 22px; height: 22px; }
.insure-a11y__body { padding: 1.25rem; display: grid; gap: 1rem; }
.insure-a11y__size {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: .75rem 1rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: var(--wp--preset--color--surface);
}
.insure-a11y__size-label { font-weight: 700; }
.insure-a11y__stepper { display: flex; align-items: center; gap: .5rem; }
.insure-a11y__stepper button {
	width: 44px;
	height: 44px;
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 10px;
	background: #fff;
	color: var(--wp--preset--color--primary);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}
.insure-a11y__stepper button:disabled { opacity: .35; cursor: not-allowed; }
.insure-a11y__stepper output { min-width: 3.5rem; text-align: center; font-weight: 700; }
.insure-a11y__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.insure-a11y__toggle {
	display: grid;
	justify-items: center;
	gap: .4rem;
	min-height: 96px;
	padding: .85rem .5rem;
	border: 2px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: #fff;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: .92rem;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.insure-a11y__toggle svg { width: 28px; height: 28px; color: var(--wp--preset--color--primary); }
.insure-a11y__toggle:hover { border-color: var(--wp--preset--color--primary); }
.insure-a11y__toggle[aria-pressed="true"] { border-color: var(--wp--preset--color--primary); background: var(--wp--preset--color--primary); color: #fff; }
.insure-a11y__toggle[aria-pressed="true"] svg { color: #fff; }
.insure-a11y__reset {
	min-height: 44px;
	border: 2px solid var(--wp--preset--color--contrast);
	border-radius: 10px;
	background: #fff;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.insure-a11y__statement {
	display: block;
	padding: .75rem;
	border-radius: 10px;
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	text-align: center;
}
.insure-a11y__panel button:focus-visible,
.insure-a11y__panel a:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }

/* Mode: high contrast */
.insure-a11y-contrast .wp-site-blocks,
.insure-a11y-contrast .wp-site-blocks *:not(svg):not(svg *):not(img) {
	background-color: #000 !important;
	background-image: none !important;
	color: #fff !important;
	border-color: #fff !important;
	box-shadow: none !important;
	text-shadow: none !important;
}
.insure-a11y-contrast .wp-site-blocks a,
.insure-a11y-contrast .wp-site-blocks a *,
.insure-a11y-contrast .wp-site-blocks mark { color: #ff0 !important; }
.insure-a11y-contrast .wp-site-blocks .wp-element-button,
.insure-a11y-contrast .wp-site-blocks button,
.insure-a11y-contrast .wp-site-blocks input,
.insure-a11y-contrast .wp-site-blocks select { border: 2px solid #ff0 !important; }
.insure-a11y-contrast .wp-site-blocks .wp-element-button,
.insure-a11y-contrast .wp-site-blocks button { color: #ff0 !important; }
.insure-a11y-contrast .insure-hero::before { display: none; }
.insure-a11y-contrast body { background: #000; }

/* Mode: grayscale (applied to page content, not to fixed UI, so positioning is kept) */
.insure-a11y-grayscale .wp-site-blocks,
.insure-a11y-grayscale .insure-float,
.insure-a11y-grayscale .insure-consent { filter: grayscale(1); }

/* Mode: readable / dyslexia-friendly text (WCAG 1.4.12 spacing) */
.insure-a11y-readable .wp-site-blocks :is(p, li, a, label, span, h1, h2, h3, h4, h5, h6, button, input, select, cite, time) {
	font-family: Arial, "Segoe UI", Tahoma, sans-serif !important;
	letter-spacing: .06em !important;
	word-spacing: .16em !important;
	line-height: 1.9 !important;
}
.insure-a11y-readable .wp-site-blocks p { margin-block-end: 1.2em; }

/* Mode: highlight links */
.insure-a11y-links .wp-site-blocks a {
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 3px;
	outline: 2px dashed var(--wp--preset--color--accent);
	outline-offset: 2px;
}
.insure-a11y-links:not(.insure-a11y-contrast) .wp-site-blocks a:not(.wp-element-button) { background: #FFF3A8 !important; color: #000 !important; }

.insure-lead-form .insure-privacy-note { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--wp--preset--color--muted); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
