/*
Theme Name: AIBiz
Theme URI: https://tenfoldthemes.example/aibiz
Author: Tenfold Themes
Author URI: https://tenfoldthemes.example
Description: A high-conversion Chinese-language business theme for AI website-building and digital marketing agencies. Ships with 19 hand-crafted patterns, four full-page layouts, a Deep Space dark style, locally hosted variable fonts and original vector artwork — everything editable in the Site Editor.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aibiz
Tags: block-theme, full-site-editing, block-patterns, block-styles, custom-colors, editor-style, featured-images, threaded-comments, translation-ready, wide-blocks, one-column, blog, portfolio
*/

/* ---------------------------------------------------------------------------
 * Palette-slug guard: the standard palette includes a slug named "border".
 * When it is used as a *text* color, WordPress emits `.has-border-color`,
 * which core pairs with `html :where(.has-border-color){border-style:solid}`.
 * With the browser's default medium border-width that paints a stray ~3px box
 * around light-on-dark captions. Zero the width here; genuine borders set an
 * explicit width via inline styles or higher-specificity block-style classes,
 * both of which override this 0-specificity rule.
 * ------------------------------------------------------------------------- */
:where(.has-border-color) {
	border-width: 0;
}

/* ---------------------------------------------------------------------------
 * Focus visibility & motion
 * ------------------------------------------------------------------------- */

:where(a, button, input, summary, textarea, select, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 2px;
}

::selection {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

a,
.wp-block-button__link,
.wp-element-button {
	transition: var(--wp--custom--transition);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------------------------------------------------------------------------
 * Block styles: Group — Card / Card (hover lift)
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-card,
.wp-block-group.is-style-card-hover {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--m);
	box-shadow: var(--wp--preset--shadow--card);
	padding: var(--wp--preset--spacing--40);
}

.wp-block-group.is-style-card-hover {
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.wp-block-group.is-style-card-hover:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--lift);
	border-color: var(--wp--preset--color--primary);
}

/* ---------------------------------------------------------------------------
 * Block styles: Group — Glass card (for dark / gradient sections)
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-glass-card {
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--wp--custom--radius--m);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	padding: var(--wp--preset--spacing--40);
}

/* ---------------------------------------------------------------------------
 * Block styles: Group — Pill (small tag chip)
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-pill {
	display: inline-flex;
	background: var(--wp--preset--color--tint);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--full);
	padding: 0.375rem 1rem;
}

/* ---------------------------------------------------------------------------
 * Theme helpers: hero chip & pricing badge
 * ------------------------------------------------------------------------- */

.wp-block-group.aibiz-chip {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--wp--custom--radius--full);
	padding: 0.5rem 1.125rem;
}

p.aibiz-badge {
	display: inline-block;
	background: var(--wp--preset--color--accent);
	color: #0A1128;
	border-radius: var(--wp--custom--radius--full);
	padding: 0.25rem 0.875rem;
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------------------
 * Block styles: List — Checkmarks
 * ------------------------------------------------------------------------- */

ul.is-style-checkmarks {
	list-style: none;
	padding-left: 0;
}

ul.is-style-checkmarks > li {
	padding-left: 1.75em;
	position: relative;
	margin-bottom: 0.5em;
}

ul.is-style-checkmarks > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.28em;
	width: 1.1em;
	height: 1.1em;
	border-radius: 50%;
	background-color: var(--wp--preset--color--primary);
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M5 12.5l4.5 4.5L19 7.5"/></svg>') center / 70% no-repeat, linear-gradient(#000 0 0);
	-webkit-mask-composite: destination-out;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M5 12.5l4.5 4.5L19 7.5"/></svg>') center / 70% no-repeat, linear-gradient(#000 0 0);
	mask-composite: exclude;
}

/* ---------------------------------------------------------------------------
 * Block styles: Separator — Thin accent
 * ------------------------------------------------------------------------- */

hr.is-style-thin-accent {
	border: none;
	height: 3px;
	width: 64px;
	background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--accent));
	border-radius: 999px;
}

/* ---------------------------------------------------------------------------
 * Details / FAQ affordance
 * ------------------------------------------------------------------------- */

.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 2rem;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.35em;
	font-weight: 500;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
	content: "−";
}

.wp-block-details > :not(summary) {
	font-weight: 400;
	color: var(--wp--preset--color--contrast-2);
}

/* ---------------------------------------------------------------------------
 * Navigation submenu dropdown
 * ------------------------------------------------------------------------- */

.wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--s);
	box-shadow: var(--wp--preset--shadow--card);
	min-width: 10rem;
	padding: 0.375rem;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.4375rem 0.875rem;
	border-radius: 6px;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--tint);
}

/* ---------------------------------------------------------------------------
 * Small refinements
 * ------------------------------------------------------------------------- */

.wp-block-navigation .current-menu-item > a {
	color: var(--wp--preset--color--primary);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 1.5px;
}

.wp-block-image img {
	height: auto;
	max-width: 100%;
}
