/* Qur'an Cures Clinic — small supporting styles not easily expressed in theme.json */

/* Subtle geometric divider used between sections (inline SVG data-uri, no external image dependency) */
.has-geo-divider {
	position: relative;
}
.has-geo-divider::before {
	content: "";
	display: block;
	height: 14px;
	width: 100%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='14' viewBox='0 0 56 14'%3E%3Cg fill='none' stroke='%23b8914a' stroke-width='1'%3E%3Cpath d='M0 7 L7 0 L14 7 L7 14 Z'/%3E%3Cpath d='M14 7 L21 0 L28 7 L21 14 Z'/%3E%3Cpath d='M28 7 L35 0 L42 7 L35 14 Z'/%3E%3Cpath d='M42 7 L49 0 L56 7 L49 14 Z'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: repeat-x;
	background-position: center;
	opacity: 0.6;
}

/* Service / product card lift */
.is-style-clinic-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	background: var(--wp--preset--color--white);
}
.is-style-clinic-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--lift);
}

/* Placeholder image blocks so the theme never depends on broken external URLs */
.wp-block-image.is-placeholder-visual img,
img.is-placeholder-visual {
	background: linear-gradient(135deg, var(--wp--preset--color--sand) 0%, var(--wp--preset--color--gold-light) 100%);
}

/* Visible keyboard focus states (accessibility) */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}

/* Skip link */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--wp--preset--color--emerald-deep);
	color: var(--wp--preset--color--white);
	padding: 0.75rem 1.25rem;
	z-index: 100000;
	border-radius: 0 0 8px 0;
}
.skip-link:focus {
	left: 0;
}

/* Sticky header shadow once scrolled (progressive enhancement, no JS required to look fine without it) */
.wp-block-template-part[data-area="header"] {
	position: sticky;
	top: 0;
	z-index: 999;
	box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* Simple accessible form styling used on Contact / Book an Appointment pages */
.clinic-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
	color: var(--wp--preset--color--emerald-deep);
}
.clinic-form input,
.clinic-form select,
.clinic-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--wp--preset--color--sand);
	border-radius: 10px;
	background: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
}
.clinic-form .form-row {
	margin-bottom: 1.25rem;
}

/* FAQ accordion (core Details block) polish */
details.wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--sand);
	padding: 0.75rem 0;
}
details.wp-block-details summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--wp--preset--color--emerald-deep);
}

/* WooCommerce: nudge the default block-template product grid/cards and
   cart/checkout blocks toward the same card look as the rest of the
   site (rounded corners, soft lift on hover, emerald/gold accents),
   without overriding WooCommerce's own block templates — those keep
   working on their own and already inherit this theme's colors,
   fonts and spacing from theme.json since they're built from core
   and WooCommerce blocks. */
.wc-block-product-template .wc-block-product,
ul.products li.product {
	border-radius: 14px;
	background: var(--wp--preset--color--white);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wc-block-product-template .wc-block-product:hover,
ul.products li.product:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--lift);
}
.wc-block-components-product-price,
.price {
	color: var(--wp--preset--color--gold);
	font-weight: 600;
}
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
	--wc-blocks-brand-accent: var(--wp--preset--color--emerald);
}
.wc-block-components-button:not(.is-link),
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {
	border-radius: 999px !important;
	background: var(--wp--preset--color--emerald) !important;
}
.wc-block-components-button:not(.is-link):hover {
	background: var(--wp--preset--color--gold) !important;
	color: var(--wp--preset--color--emerald-deep) !important;
}

@media (max-width: 599px) {
	.wp-block-template-part[data-area="header"] .wp-block-navigation {
		width: 100%;
	}
}

/* Appointment type cards remain visibly selected even if scripts load late. */
.qc-type-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
}
.qc-type-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.25rem;
	border: 2px solid var(--wp--preset--color--sand, #f1ead9);
	border-radius: 14px;
	background: var(--wp--preset--color--white, #fff);
	cursor: pointer;
}
.qc-type-card:has(input[type="radio"]:checked) {
	border-color: var(--wp--preset--color--emerald, #13503f);
	box-shadow: 0 0 0 2px var(--wp--preset--color--emerald, #13503f) inset;
}
.qc-type-card input[type="radio"] {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 1.15rem;
	height: 1.15rem;
	margin: 0;
	accent-color: var(--wp--preset--color--emerald, #13503f);
	opacity: 1;
	pointer-events: auto;
}
.qc-type-card:focus-within {
	outline: 3px solid var(--wp--preset--color--gold, #b8914a);
	outline-offset: 2px;
}
