/*
Theme Name: AgencyCRMLab
Theme URI: https://agencycrmlab.com
Author: Bipul
Description: Fast, clean block theme for AgencyCRMLab — CRM, automation and AI guides for agency owners.
Version: 1.0.1
Requires at least: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: agencycrmlab
*/

/* Cards */
.acl-card {
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.acl-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .25);
	border-color: var(--wp--preset--color--primary) !important;
}

/* Header */
.acl-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(180%) blur(8px);
	background: color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent) !important;
}
body.admin-bar .acl-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .acl-header { top: 46px; } }
.acl-logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: -.02em;
}

/* Disclosure box */
.acl-disclosure {
	border-left: 4px solid var(--wp--preset--color--accent);
}

/* Post content readability */
.wp-block-post-content a:not(.wp-element-button) {
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.wp-block-post-content :where(h2, h3) { scroll-margin-top: 90px; }
.wp-block-post-content img { border-radius: 10px; }
.wp-block-post-content table { font-size: .95em; }

/* Post grid */
.acl-post-grid .wp-block-post-featured-image img { aspect-ratio: 16/9; object-fit: cover; }
.acl-post-grid .wp-block-post { height: 100%; }

/* Category pill */
.acl-pill a {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary-dark);
	text-decoration: none;
	font-weight: 600;
}

/* Headings & links inside coloured sections follow the section text colour */
.has-text-color :is(h1, h2, h3, h4, h5, h6):not(.has-text-color) { color: inherit; }
.has-contrast-background-color a:not(.wp-element-button) { color: #5EEAD4; }
.has-contrast-background-color a:not(.wp-element-button):hover { color: #99F6E4; }

/* Logo mark */
a.acl-logo-mark, a.acl-logo-mark:hover { text-decoration: none; color: #fff; }

/* Card links */
.acl-card a { text-decoration: none; }
.acl-card a:hover { text-decoration: underline; }
.acl-card p { color: var(--wp--preset--color--muted); }
