/* Presentation helpers for a Saudi roof-insulation service site. Logical properties for RTL. */

body {
	text-rendering: optimizeLegibility;
}

.wp-site-blocks {
	padding-inline: 0;
}

a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible,
.wp-block-navigation-item a:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

.wp-block-button__link {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease;
}

.wp-block-button__link:hover {
	background-color: var(--wp--preset--color--accent-dark) !important;
	color: #fff !important;
}

.my-wp-theme-page-hero .wp-block-post-date,
.my-wp-theme-page-hero .wp-block-post-author-name,
.my-wp-theme-page-hero .wp-block-post-terms,
.my-wp-theme-page-hero .wp-block-post-terms a,
.my-wp-theme-page-hero .wp-block-term-description,
.my-wp-theme-page-hero .wp-block-term-description p {
	color: rgba(255, 255, 255, 0.88) !important;
}

.my-wp-theme-page-hero .wp-block-search__input {
	background: #fff;
	color: #122033;
}

.my-wp-theme-hero,
.my-wp-theme-page-hero {
	background:
		radial-gradient(900px 420px at 90% 10%, rgba(194, 65, 12, 0.28), transparent 50%),
		radial-gradient(800px 400px at 0% 80%, rgba(14, 116, 144, 0.28), transparent 52%),
		linear-gradient(165deg, #0f2744 0%, #163a5f 58%, #0e4a5c 100%);
}

.wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	object-fit: cover;
}

.my-wp-theme-post-card {
	overflow: hidden;
	height: 100%;
	background: var(--wp--preset--color--surface);
}

.my-wp-theme-post-card .wp-block-post-featured-image {
	margin-bottom: 0;
}

.my-wp-theme-post-card .wp-block-post-featured-image img {
	border-radius: 0;
	aspect-ratio: 16 / 10;
}

.my-wp-theme-content-panel {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: 20px;
}

.wp-block-post-content > p:first-child {
	font-size: 1.2rem;
}

.wp-block-query-pagination {
	margin-block-start: 2rem;
	gap: 1rem;
}

.wp-block-post-comments-form input,
.wp-block-post-comments-form textarea,
.wp-block-search__input {
	min-height: 44px;
	border-radius: 12px;
	border: 1px solid var(--wp--preset--color--muted);
}

.wp-block-post-comments-form .form-submit input {
	background: var(--wp--preset--color--accent);
	color: #fff;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.my-wp-theme-card {
	height: 100%;
	border: 1px solid var(--wp--preset--color--muted);
}

.my-wp-theme-stat {
	border-inline-start: 4px solid var(--wp--preset--color--accent);
}

.my-wp-theme-sticky-cta {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 100;
	display: flex;
	gap: 8px;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	background: #122033;
}

.my-wp-theme-sticky-cta a {
	flex: 1;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	color: #fff;
}

.my-wp-theme-sticky-cta a.is-call {
	background: var(--wp--preset--color--accent);
}

.my-wp-theme-sticky-cta a.is-whatsapp {
	background: #128c7e;
}

@media (min-width: 782px) {
	.my-wp-theme-sticky-cta {
		display: none;
	}
}

@media (max-width: 781px) {
	body {
		padding-bottom: 76px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link {
		transition: none;
	}
}
