/*
Theme Name: Xelze
Theme URI: https://xelze.ge
Description: Thème « bloc » pour un annuaire d'artisans à Tbilissi (en géorgien). Tout se modifie dans Apparence › Éditeur. À utiliser avec l'extension Xelze Core.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Author: Xelze
License: GPL-2.0-or-later
Text Domain: xelze
Tags: block-patterns, full-site-editing, directory
*/

/* Accessibility -------------------------------------------------------- */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* Header --------------------------------------------------------------- */
.xz-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.xz-header .wp-block-site-title a { text-decoration: none; }
.xz-logo-mark img { display: block; border-radius: 10px; }
@media (max-width: 600px) { .xz-header .wp-block-buttons { display: none; } }

/* Card group & generic boxes ------------------------------------------ */
.wp-block-group.is-style-card,
.xz-box {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	padding: clamp(20px, 3vw, 28px);
	box-sizing: border-box;
}
.xz-box--shadow { box-shadow: 0 10px 30px rgba(16, 33, 58, .08); }

/* Buttons --------------------------------------------------------------- */
.wp-block-button.is-style-accent .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
}
.wp-block-button.is-style-accent .wp-block-button__link:hover { filter: brightness(1.06); }
.wp-block-button.is-style-whatsapp .wp-block-button__link { background: var(--wp--preset--color--whatsapp); color: #fff; }
.wp-block-button.is-style-chip .wp-block-button__link {
	background: transparent;
	color: inherit;
	border: 1px solid currentColor;
	border-color: color-mix(in srgb, currentColor 35%, transparent);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 500;
}
.wp-block-button.is-style-chip .wp-block-button__link:hover { border-color: currentColor; background: rgba(255, 255, 255, .06); }
.wp-block-button__link { min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; }

/* Lists & paragraphs with checks --------------------------------------- */
.wp-block-list.is-style-check,
.is-style-check.wp-block-list { list-style: none; padding-left: 0; }
.wp-block-list.is-style-check li,
p.is-style-check { position: relative; padding-left: 32px; }
.wp-block-list.is-style-check li { margin-bottom: 10px; }
.wp-block-list.is-style-check li::before,
p.is-style-check::before {
	content: "";
	position: absolute; left: 0; top: .2em;
	width: 22px; height: 22px;
	background: var(--wp--preset--color--whatsapp);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-block-list.is-style-check li strong { display: block; }

p.is-style-pill {
	display: inline-flex; align-items: center; gap: 8px; width: fit-content;
	background: rgba(255, 255, 255, .1); padding: 6px 14px; border-radius: 999px;
	font-size: 14px; font-weight: 500;
}
p.is-style-eyebrow { text-transform: uppercase; letter-spacing: .04em; font-weight: 700; font-size: 15px; }
p.is-style-step {
	width: 44px; height: 44px; border-radius: 999px;
	background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink);
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 20px; margin: 0;
}

/* FAQ -------------------------------------------------------------------- */
.wp-block-details summary { font-weight: 700; font-size: 18px; cursor: pointer; }
.wp-block-details summary::marker { color: var(--wp--preset--color--muted); }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--muted); margin-top: 10px; }

/* Footer ---------------------------------------------------------------- */
.xz-footer a { color: var(--wp--preset--color--on-dark); text-decoration: none; }
.xz-footer a:hover { color: #fff; text-decoration: underline; }
.xz-footer .xelze-links ul { gap: 8px; }
.xz-footer h2, .xz-footer h3 { color: #fff; }
.xz-plain-list { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 8px; }

/* Hero ------------------------------------------------------------------- */
.xz-hero .xelze-search { margin-top: 8px; }

/* Listing / artisan layouts ---------------------------------------------- */
.xz-sticky-col { position: sticky; top: 24px; }
@media (max-width: 781px) { .xz-sticky-col { position: static; } }

.xz-dark-card { border-radius: 16px; }
.xz-dark-card .wp-block-button { width: 100%; }
.xz-dark-card .wp-block-button__link { width: 100%; }

/* Plugin blocks used as boxes inside templates (className "xz-box"). */
.xelze-pro-header.xz-box .xelze-breadcrumb { margin-bottom: 18px; }
