/* ==========================================================================
   Rose Lab — block styles (loaded on the site and inside the editor)
   ========================================================================== */

/* Paragraph styles */
.is-style-rl-eyebrow {
	display: flex;
	align-items: center;
	gap: .7em;
	margin-bottom: 1.1rem;
	font-family: var(--sans, "Inter", sans-serif);
	font-size: .75rem !important;
	font-weight: 600;
	letter-spacing: .14em;
	line-height: 1.4;
	text-transform: uppercase;
	color: #b01e35;
}
.is-style-rl-eyebrow::before {
	content: "";
	width: 24px;
	height: 1px;
	background: currentColor;
	flex: none;
}
.is-style-rl-lead {
	font-size: clamp(1.1rem, 1.5vw, 1.25rem);
	line-height: 1.6;
	color: #131a2e;
}

/* Numbered cards (list) */
ol.is-style-rl-numbered,
ul.is-style-rl-numbered {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: rl-card;
}
/* Four cards on a mid-size screen: 2 × 2 rather than 3 + 1. */
@media (min-width: 601px) and (max-width: 1023px) {
	.is-style-rl-numbered:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.is-style-rl-numbered > li {
	position: relative;
	counter-increment: rl-card;
	padding: 24px 24px 28px;
	border: 1px solid #e1ddd3;
	border-radius: 14px;
	background: #fff;
	font-family: var(--serif, "Newsreader", serif);
	font-size: 1.17rem;
	line-height: 1.35;
	color: #050f33;
	transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.is-style-rl-numbered > li::before {
	content: counter(rl-card, decimal-leading-zero);
	display: block;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e1ddd3;
	font-family: var(--sans, "Inter", sans-serif);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .12em;
	color: #b01e35;
}
.is-style-rl-numbered > li:hover { border-color: rgba(1, 25, 87, .25); transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(5, 15, 51, .22); }
.is-style-rl-numbered a { color: inherit; text-decoration: none; }
.is-style-rl-numbered a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.is-style-rl-numbered a:hover { color: #8f1026; }

/* Panel (group) */
.wp-block-group.is-style-rl-panel {
	padding: clamp(28px, 4.5vw, 56px);
	border: 1px solid #e1ddd3;
	border-radius: 22px;
	background: #fff;
}
.wp-block-group.is-style-rl-panel > :last-child { margin-bottom: 0; }

/* Images */
.wp-block-image.is-style-rl-framed img {
	padding: clamp(12px, 2vw, 24px);
	border: 1px solid #e1ddd3;
	border-radius: 14px;
	background: #fff;
}
.wp-block-image.is-style-rl-rounded img { border-radius: 22px; }
.wp-block-image figcaption,
.wp-element-caption {
	margin-top: 12px;
	font-size: .85rem;
	color: #666d82;
	text-align: left;
}

/* Logo grid (gallery) */
.wp-block-gallery.has-nested-images.is-style-rl-logos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
	gap: 14px;
}
.wp-block-gallery.has-nested-images.is-style-rl-logos figure.wp-block-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto !important;
	height: 116px;
	margin: 0 !important;
	padding: 18px 22px;
	border: 1px solid #e1ddd3;
	border-radius: 14px;
	background: #fff;
}
.wp-block-gallery.has-nested-images.is-style-rl-logos figure.wp-block-image img {
	width: auto !important;
	height: auto !important;
	max-width: 100%;
	max-height: 72px;
	object-fit: contain !important;
}
@media (max-width: 600px) {
	.wp-block-gallery.has-nested-images.is-style-rl-logos { gap: 10px; }
	.wp-block-gallery.has-nested-images.is-style-rl-logos figure.wp-block-image { height: 92px; padding: 12px 14px; }
	.wp-block-gallery.has-nested-images.is-style-rl-logos figure.wp-block-image img { max-height: 54px; }
}

/* Columns */
.wp-block-columns.rl-split { gap: clamp(32px, 6vw, 88px); }

/* Buttons */
.wp-block-buttons { gap: 12px; }
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .9em 1.4em;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #011957;
	color: #fff;
	font: 600 .95rem/1.1 var(--sans, "Inter", sans-serif);
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.wp-block-button__link:hover { background: #0b2a74; color: #fff; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1px solid rgba(1, 25, 87, .22);
	background: transparent;
	color: #011957;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: #011957; }

/* Contact Form 7 */
.wpcf7 form > p { margin: 0 0 16px; }
.wpcf7 label { display: block; font-size: .85rem; font-weight: 600; color: #464e65; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
	width: 100%;
	padding: .85em 1em;
	border: 1px solid #e1ddd3;
	border-radius: 10px;
	background: #fbfaf7;
	font: inherit;
	font-size: 1rem;
	font-weight: 400;
	color: #131a2e;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.wpcf7 textarea { height: 200px; min-height: 140px; resize: vertical; }
.wpcf7 input:focus,
.wpcf7 textarea:focus { outline: none; border-color: #0b2a74; background: #fff; box-shadow: 0 0 0 4px #e5e9f4; }
.wpcf7 input[type="submit"] {
	padding: .95em 1.8em;
	border: 0;
	border-radius: 999px;
	background: #011957;
	color: #fff;
	font: 600 .95rem/1 var(--sans, "Inter", sans-serif);
	cursor: pointer;
	transition: background-color .2s ease;
}
.wpcf7 input[type="submit"]:hover { background: #0b2a74; }
.wpcf7 .wpcf7-not-valid-tip { margin-top: 6px; font-size: .8rem; font-weight: 500; color: #b01e35; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-size: .9rem; }
