/*
Theme Name: CRMS Theme
Theme URI: https://crmssolutions.com
Author: CRMS Solutions
Author URI: https://crmssolutions.com
Description: Design/template layer for CRMS Solutions. Ships zero real pages or content — activate CRMS Core to seed real content on top of this theme. Provides page templates, a shared component design system, Polylang-ready language switching, and Elementor (free) widgets via the companion crms-core plugin.
Requires at least: 6.5
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: crms-theme
*/

/* ==========================================================================
   Page transition (original design: fade + blur + slide on internal navigation)
   ========================================================================== */

html {
	scroll-behavior: smooth;
}

.crms-page-fade {
	transition-property: opacity, transform, filter, background;
	transition-timing-function: ease-in-out;
	transition-duration: 500ms;
}

body.page-transition .crms-page-fade {
	opacity: 0;
	background: #ffffff;
	transform: translateY(40px);
	filter: blur(12px);
}

/* Lives as a sibling of .crms-page-fade (not inside it) so it stays
   unaffected by that wrapper's opacity/filter/transform during the
   transition — a fixed-position descendant of a low-opacity or
   filtered/transformed ancestor is composited at that ancestor's
   opacity too, which would otherwise hide this loader entirely. */
.crms-page-transition-loader {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 9999;
	width: 176px;
	height: 176px;
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.85);
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
	filter: invert(48%) sepia(94%) saturate(1938%) hue-rotate(var(--crms-loader-hue-rotate, 190deg)) brightness(101%) contrast(101%);
}

body.page-transition .crms-page-transition-loader {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* ==========================================================================
   Design tokens
   ========================================================================== */

@font-face {
	font-family: 'Lexend';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('assets/fonts/Lexend-variable-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
	font-family: 'Lexend';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('assets/fonts/Lexend-variable-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB;
}

:root {
	--crms-font-sans: 'Lexend', ui-sans-serif, system-ui, -apple-system, sans-serif;

	--crms-background: 0 0% 100%;
	--crms-foreground: 240 10% 3.9%;
	--crms-primary: 209 100% 55%;
	--crms-primary-foreground: 0 0% 98%;
	--crms-secondary: 240 4.8% 95.9%;
	--crms-secondary-foreground: 240 5.9% 10%;
	--crms-muted-foreground: 240 3.8% 46.1%;
	--crms-border: 240 5.9% 90%;
	--crms-border-color: hsl(var(--crms-border));
	--crms-radius: 0.5rem;

	--crms-brand-50: #edfaff;
	--crms-brand-100: #d7f1ff;
	--crms-brand-200: #b9e8ff;
	--crms-brand-300: #88ddff;
	--crms-brand-400: #50c7ff;
	--crms-brand-500: #28a9ff;
	--crms-brand-600: #1890ff;
	--crms-brand-700: #0a73eb;
	--crms-brand-800: #0f5cbe;
	--crms-brand-900: #135095;
	--crms-brand-950: #11315a;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

.crms-body {
	margin: 0;
	position: relative;
	min-height: 100vh;
	font-family: var(--crms-font-sans);
	color: hsl(var(--crms-foreground));
	background: hsl(var(--crms-background));
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
}

.crms-bg-grid {
	position: fixed;
	inset: 0;
	z-index: -10;
	background-image:
		linear-gradient(to right, #f0f0f0 1px, transparent 1px),
		linear-gradient(to bottom, #f0f0f0 1px, transparent 1px);
	background-size: 6rem 4rem;
}

.crms-bg-fade {
	position: fixed;
	inset: 0;
	z-index: -10;
	background: linear-gradient(to top, transparent, var(--crms-brand-50));
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.crms-section__inner {
	max-width: 80rem;
	margin: 0 auto;
	padding: 2rem 1rem;
}

@media (min-width: 1024px) {
	.crms-section__inner {
		padding: 4rem 1.5rem;
	}
}

.crms-section__header {
	max-width: 42rem;
	margin: 0 auto 2.5rem;
	text-align: center;
}

.crms-section__title {
	font-size: 1.875rem;
	font-weight: 800;
	color: var(--crms-brand-950);
	letter-spacing: -0.01em;
	margin: 0;
}

@media (min-width: 1024px) {
	.crms-section__title {
		font-size: 2.25rem;
	}
}

.crms-empty-state {
	text-align: center;
	color: #6b7280;
	padding: 2rem 0;
}

.crms-blog-index__intro-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--crms-brand-950);
	margin: 0;
}

.crms-blog-index__latest {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--crms-brand-950);
	text-align: center;
	margin: 0 0 1.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.crms-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	height: 2.5rem;
	padding: 0.5rem 1rem;
	border-radius: calc(var(--crms-radius) - 2px);
	font-family: inherit;
	font-weight: 500;
	font-size: 0.875rem;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

@media (min-width: 640px) {
	.crms-btn {
		width: auto;
	}
}

.crms-btn--primary {
	background: hsl(var(--crms-primary));
	color: #fff;
}

.crms-btn--primary:hover {
	opacity: 0.9;
}

.crms-btn--secondary {
	background: hsl(var(--crms-secondary));
	color: hsl(var(--crms-secondary-foreground));
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.crms-btn--secondary:hover {
	background: hsl(var(--crms-secondary) / 0.8);
}

.crms-btn--outline {
	background: hsl(var(--crms-background));
	border-color: var(--crms-border-color);
	color: hsl(var(--crms-foreground));
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.crms-btn--outline:hover {
	background: hsl(var(--crms-secondary));
	color: hsl(var(--crms-secondary-foreground));
}

.crms-btn--ghost {
	background: transparent;
	color: hsl(var(--crms-foreground));
}

.crms-btn--ghost:hover {
	background: rgba(0, 0, 0, 0.04);
}

.crms-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	fill: currentColor;
}

.crms-btn .crms-icon {
	width: 16px;
	height: 16px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.crms-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding: 0;
	transition: padding 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.crms-header__bar {
	background: var(--crms-brand-50);
	padding: 0.625rem 1rem;
	border-radius: 0;
	box-shadow: none;
	transition:
		background-color 0.45s ease,
		border-radius 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.45s ease,
		padding 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.crms-header__inner {
	max-width: 80rem;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	transition: gap 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* "Docked" state — added by theme.js once the page scrolls past the top;
   the header shrinks, lifts off the page edges and gains a floating card
   look, animated entirely through the transitions above. */
.crms-header.is-docked {
	padding: 0.625rem 0.75rem 0;
}

.crms-header.is-docked .crms-header__bar {
	max-width: 74rem;
	margin: 0 auto;
	background: hsl(var(--crms-background) / 0.8);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-radius: var(--crms-radius);
	padding: 0.5rem 1.25rem;
	box-shadow:
		0 12px 30px -8px rgba(15, 23, 42, 0.18),
		0 2px 8px -2px rgba(15, 23, 42, 0.08);
}

.crms-header.is-docked .crms-header__inner {
	gap: 0.75rem;
}

.crms-header__logo img {
	transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.crms-header.is-docked .crms-header__logo img {
	width: 84px;
}

.crms-header__logo {
	display: inline-flex;
}

.crms-header__logo img,
.crms-footer__logo img {
	width: 100px;
	height: auto;
}

.crms-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.crms-header__actions-desktop {
	display: none;
	align-items: center;
	gap: 0.5rem;
}

@media (min-width: 1024px) {
	.crms-header__actions-desktop {
		display: flex;
	}
}

.crms-header__burger {
	display: inline-flex;
	background: none;
	border: none;
	padding: 0.5rem;
	cursor: pointer;
	border-radius: var(--crms-radius);
}

.crms-header__burger:hover {
	background: rgba(0, 0, 0, 0.04);
}

.crms-header__burger .crms-icon {
	width: 24px;
	height: 24px;
}

@media (min-width: 1024px) {
	.crms-header__burger {
		display: none;
	}
}

.crms-header__nav {
	display: none;
}

@media (min-width: 1024px) {
	.crms-header__nav {
		display: flex;
		order: 1;
	}

	.crms-header__actions {
		order: 2;
	}
}

.crms-nav__list {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.crms-nav__list a {
	display: block;
	padding: 0.5rem 0.75rem;
	text-decoration: none;
	font-weight: 500;
	border-radius: var(--crms-radius);
}

.crms-nav__list a:hover {
	background: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Mobile drawer menu (bottom sheet, matches the original's Drawer/Sheet)
   ========================================================================== */

.crms-drawer {
	position: fixed;
	inset: auto 0 0 0;
	margin: 0;
	width: 100%;
	max-width: 100%;
	max-height: 85vh;
	border: none;
	border-radius: 1.25rem 1.25rem 0 0;
	padding: 0.75rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
	background: hsl(var(--crms-background));
	box-shadow: 0 -16px 40px rgba(15, 23, 42, 0.18);
	transform: translateY(100%);
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.crms-drawer.is-visible {
	transform: translateY(0);
}

.crms-drawer::backdrop {
	background: rgba(9, 14, 26, 0.6);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.crms-drawer.is-visible::backdrop {
	opacity: 1;
}

@media (min-width: 1024px) {
	.crms-drawer {
		display: none;
	}
}

.crms-drawer__handle {
	width: 2.5rem;
	height: 0.3125rem;
	border-radius: 9999px;
	background: var(--crms-border-color);
	margin: 0 auto 0.875rem;
}

.crms-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 0.25rem;
	margin-bottom: 0.5rem;
}

.crms-drawer__title {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--crms-brand-950);
}

.crms-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	flex-shrink: 0;
	border: none;
	border-radius: 9999px;
	background: var(--crms-brand-50);
	color: var(--crms-brand-950);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.crms-drawer__close:hover {
	background: var(--crms-brand-100);
}

.crms-drawer__close .crms-icon {
	width: 15px;
	height: 15px;
}

.crms-drawer__nav-list {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	list-style: none;
	margin: 0.25rem 0 0;
	padding: 0;
}

.crms-drawer__nav-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.9375rem 0.75rem;
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	color: var(--crms-brand-950);
	border-radius: var(--crms-radius);
	transition: background-color 0.15s ease;
}

.crms-drawer__nav-list a::after {
	content: '';
	width: 7px;
	height: 7px;
	flex-shrink: 0;
	border-right: 2px solid var(--crms-muted-foreground);
	border-bottom: 2px solid var(--crms-muted-foreground);
	transform: rotate(-45deg);
	opacity: 0.55;
}

.crms-drawer__nav-list a:hover,
.crms-drawer__nav-list a:active {
	background: var(--crms-brand-50);
}

.crms-drawer__divider {
	height: 1px;
	background: var(--crms-border-color);
	margin: 1rem 0 0.75rem;
}

.crms-drawer__section-label {
	margin: 0 0 0.375rem;
	padding: 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--crms-muted-foreground);
}

/* Language options shown directly inline in the drawer (not a second,
   stacked dialog — see crms_render_language_switcher_options()) so picking
   a language never has to close the drawer first and open another modal
   after it. */
.crms-drawer__locale-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem;
	padding: 0 0.75rem;
}

/* Same asymmetric layout as the desktop modal's grid: the first (default)
   language gets its own full-width row instead of leaving an empty cell
   next to the last of an odd number of options. */
.crms-drawer__locale-grid > .crms-locale-option:first-child {
	grid-column: 1 / -1;
}

.crms-drawer__locale-grid .crms-locale-option {
	padding: 0.75rem;
	border-radius: var(--crms-radius);
	background: var(--crms-brand-50);
	font-weight: 600;
}

.crms-drawer__locale-grid .crms-locale-option:hover,
.crms-drawer__locale-grid .crms-locale-option.is-current {
	background: var(--crms-brand-100);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.crms-hero {
	padding: 2rem 1rem;
}

@media (min-width: 1024px) {
	.crms-hero {
		min-height: calc(100vh - 3.563rem);
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 4rem 3rem;
	}
}

.crms-hero__inner {
	max-width: 80rem;
	margin: 0 auto;
	text-align: center;
}

.crms-hero__title {
	font-size: 1.875rem;
	font-weight: 800;
	line-height: 1.15;
	color: var(--crms-brand-950);
	margin: 0 0 2rem;
}

@media (min-width: 1024px) {
	.crms-hero__title {
		font-size: 3rem;
	}
}

.crms-hero__description {
	font-size: 1.125rem;
	color: #6b7280;
	max-width: 48rem;
	margin: 0 auto 2rem;
}

@media (min-width: 1024px) {
	.crms-hero__description {
		font-size: 1.25rem;
	}
}

.crms-hero__actions {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	justify-content: center;
}

@media (min-width: 640px) {
	.crms-hero__actions {
		flex-direction: row;
	}
}

/* ==========================================================================
   Feature grid
   ========================================================================== */

.crms-feature-grid {
	display: grid;
	gap: 2rem;
}

.crms-feature-grid--bordered {
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.crms-feature-grid--bordered {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.crms-feature-grid--bordered {
		grid-template-columns: repeat(4, 1fr);
	}
}

.crms-feature-card--bordered {
	background: #fff;
	border: 1px solid var(--crms-border-color);
	border-left: 4px solid hsl(var(--crms-primary));
	border-radius: 0 0.25rem 0.25rem 0;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	padding: 1.25rem;
	transition: transform 0.3s ease;
}

.crms-feature-card--bordered:hover {
	transform: translateY(-0.5rem);
}

.crms-feature-card--bordered .crms-feature-card__title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
}

.crms-feature-card--bordered .crms-feature-card__description {
	font-size: 0.875rem;
	color: #111827;
	margin: 0;
}

.crms-feature-grid--icon-card {
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.crms-feature-grid--icon-card {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.crms-feature-grid--icon-card {
		grid-template-columns: repeat(3, 1fr);
	}
}

.crms-feature-card--icon-card {
	background: #fff;
	border: 1px solid var(--crms-border-color);
	border-radius: var(--crms-radius);
	padding: 1.25rem;
}

.crms-feature-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 9999px;
	background: hsl(var(--crms-primary));
	margin-bottom: 1rem;
}

@media (min-width: 1024px) {
	.crms-feature-card__icon {
		width: 3rem;
		height: 3rem;
	}
}

.crms-feature-card__icon .crms-icon {
	width: 1.25rem;
	height: 1.25rem;
	fill: #fff;
}

.crms-feature-card--icon-card .crms-feature-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
}

.crms-feature-card--icon-card .crms-feature-card__description {
	color: #6b7280;
	margin: 0;
}

/* ==========================================================================
   CTA banner
   ========================================================================== */

.crms-cta {
	position: relative;
	height: 16rem;
	border-radius: var(--crms-radius);
	overflow: hidden;
}

.crms-cta__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: var(--crms-brand-950);
	background-image: radial-gradient(#ffffff33 1px, var(--crms-brand-950) 1px);
	background-size: 20px 20px;
}

.crms-cta__content {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	padding: 2rem;
}

.crms-cta__content h2 {
	margin: 0 0 0.5rem;
}

.crms-cta__content p {
	margin: 0 0 1rem;
	opacity: 0.85;
}

/* ==========================================================================
   Text + image (About)
   ========================================================================== */

.crms-text-image {
	display: grid;
	gap: 3rem;
	align-items: center;
}

@media (min-width: 1024px) {
	.crms-text-image {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
}

.crms-text-image__heading {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--crms-brand-950);
	margin: 0 0 1rem;
	text-align: center;
}

@media (min-width: 1024px) {
	.crms-text-image__heading {
		font-size: 1.875rem;
		text-align: left;
	}
}

.crms-text-image__description {
	color: #6b7280;
	margin: 0 0 1rem;
}

.crms-text-image__gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.crms-text-image__slot {
	border-radius: var(--crms-radius);
	overflow: hidden;
	background: var(--crms-brand-100);
	aspect-ratio: 472 / 655;
}

.crms-text-image__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.crms-text-image__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		45deg,
		var(--crms-brand-100),
		var(--crms-brand-100) 10px,
		var(--crms-brand-50) 10px,
		var(--crms-brand-50) 20px
	);
}

/* ==========================================================================
   Contact info
   ========================================================================== */

.crms-contact-header {
	text-align: center;
	margin-bottom: 2.5rem;
}

.crms-contact-header h1 {
	font-size: 1.5rem;
	font-weight: 600;
	color: #1f2937;
	margin: 0;
}

@media (min-width: 1024px) {
	.crms-contact-header h1 {
		font-size: 1.875rem;
	}
}

.crms-contact-header p {
	color: #6b7280;
	margin: 0.75rem 0 0;
}

.crms-contact-grid {
	display: grid;
	gap: 3rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.crms-contact-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.crms-contact-card {
	background: #fff;
	border: 1px solid var(--crms-brand-100);
	border-radius: var(--crms-radius);
	padding: 1rem;
}

@media (min-width: 768px) {
	.crms-contact-card {
		padding: 1.5rem;
	}
}

.crms-contact-card__icon {
	display: inline-flex;
	padding: 0.75rem;
	border-radius: var(--crms-radius);
	background: rgba(215, 241, 255, 0.8);
	color: hsl(var(--crms-primary));
	margin-bottom: 1rem;
}

.crms-contact-card__icon .crms-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.crms-contact-card__label {
	font-size: 1rem;
	font-weight: 500;
	color: #1f2937;
	margin: 0;
}

.crms-contact-card__value {
	display: block;
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	color: hsl(var(--crms-primary));
	text-decoration: none;
}

/* ==========================================================================
   Blog
   ========================================================================== */

.crms-blog-grid {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
	.crms-blog-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.crms-blog-card {
	display: block;
	background: #fff;
	border: 1px solid var(--crms-border-color);
	border-radius: var(--crms-radius);
	padding: 2rem;
	text-decoration: none;
	color: inherit;
}

.crms-blog-card__image {
	margin: -2rem -2rem 1.25rem;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--crms-radius) var(--crms-radius) 0 0;
	background: var(--crms-brand-50);
}

.crms-blog-card__image-el {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.crms-blog-card__date {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #4b5563;
	margin: 0 0 0.75rem;
}

.crms-blog-card__title {
	font-size: 1.5rem;
	font-weight: 700;
	color: hsl(var(--crms-primary));
	margin: 0 0 0.75rem;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}

.crms-blog-card__summary {
	color: #374151;
	margin: 0 0 1.25rem;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.crms-blog-card__author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.crms-blog-card__author-name {
	font-weight: 600;
	color: #1f2937;
}

.crms-blog-card__author-label {
	font-size: 0.875rem;
	color: #4b5563;
	margin: 0;
}

/* ==========================================================================
   Blog article header
   ========================================================================== */

.crms-blog-article-header {
	margin-bottom: 2.5rem;
}

.crms-blog-article-header__meta {
	text-align: center;
}

.crms-blog-article-header__meta > * + * {
	margin-top: 1rem;
}

.crms-blog-article-header__date {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	color: #4b5563;
	margin: 0;
}

.crms-blog-article-header__title {
	font-size: 1.875rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--crms-brand-950);
	margin: 0;
}

@media (min-width: 768px) {
	.crms-blog-article-header__title {
		font-size: 2.25rem;
	}
}

.crms-blog-article-header__summary {
	max-width: 48rem;
	margin: 0 auto;
	font-size: 1.125rem;
	color: #4b5563;
}

.crms-blog-article-header__author {
	font-size: 0.875rem;
	color: #374151;
	margin: 0;
}

.crms-blog-article-header__author-name {
	font-weight: 600;
	color: #111827;
}

.crms-blog-article-header__author-role {
	color: #4b5563;
}

.crms-blog-article-header__image {
	position: relative;
	margin: 1.5rem auto 0;
	max-width: 56rem;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 0.5rem;
	border: 1px solid #e5e7eb;
	background: #fff;
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.crms-blog-article-header__image-el {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.crms-footer {
	padding: 2.5rem 1rem;
}

.crms-footer__inner {
	max-width: 80rem;
	margin: 0 auto;
	text-align: center;
}

.crms-footer__logo {
	display: inline-flex;
	margin-bottom: 1rem;
}

.crms-footer__description {
	margin: 0 0 1.5rem;
	color: #6b7280;
}

.crms-footer__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
}

.crms-footer__list a {
	text-decoration: none;
	color: #111827;
}

.crms-footer__list a:hover {
	text-decoration: underline;
}

/* LinkedIn footer menu item: the official full-color "LinkedIn" wordmark logo
   (matches the original design's Iconify `logos:linkedin` icon exactly),
   link text kept for screen readers. */
.crms-footer__linkedin-item a {
	display: inline-flex;
	align-items: center;
	width: 4.5rem;
	height: 1.125rem;
	font-size: 0;
	color: transparent;
	background: url('assets/icons/linkedin-wordmark.svg') no-repeat center / contain;
	vertical-align: middle;
}

.crms-footer__copyright {
	font-size: 0.875rem;
	color: #6b7280;
}

.crms-footer__brand {
	color: inherit;
	text-decoration: none;
}

.crms-footer__brand:hover {
	text-decoration: underline;
}

.crms-footer__powered-by {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	margin-top: 0.75rem;
	font-size: 0.875rem;
	color: #6b7280;
	text-decoration: none;
}

.crms-footer__powered-by img {
	height: 20px;
	width: 60px;
}

/* ==========================================================================
   Cookie banner — floating glass card, bottom-right (original design)
   ========================================================================== */

.crms-cookie-banner {
	position: fixed;
	right: 0;
	bottom: 0;
	z-index: 60;
	max-width: 32rem;
	width: 100%;
	padding: 1.25rem;
	box-sizing: border-box;
}

.crms-cookie-banner[hidden] {
	display: none;
}

.crms-cookie-banner__card {
	border-radius: var(--crms-radius);
	background: rgba(255, 255, 255, 0.6);
	padding: 1rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.crms-cookie-banner__title {
	font-size: 1rem;
	font-weight: 600;
	color: #1f2937;
	margin: 0;
}

.crms-cookie-banner__description {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	color: #1f2937;
}

.crms-cookie-banner__description[hidden] {
	display: none;
}

.crms-cookie-banner__manage {
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.crms-cookie-banner__manage[hidden] {
	display: none;
}

.crms-cookie-toggle {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.crms-cookie-toggle__title {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: #111827;
}

.crms-cookie-toggle__description {
	margin: 0.25rem 0 0;
	font-size: 0.75rem;
	color: #4b5563;
}

.crms-switch {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
	width: 2.25rem;
	height: 1.25rem;
	cursor: pointer;
}

.crms-switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.crms-switch__track {
	position: absolute;
	inset: 0;
	border-radius: 9999px;
	background: var(--crms-border-color);
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	transition: background-color 0.15s ease;
}

.crms-switch input:checked ~ .crms-switch__track {
	background: hsl(var(--crms-primary));
}

.crms-switch__thumb {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 1rem;
	height: 1rem;
	border-radius: 9999px;
	background: #fff;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	transition: transform 0.15s ease;
}

.crms-switch input:checked ~ .crms-switch__thumb {
	transform: translateX(1rem);
}

.crms-switch input:disabled ~ .crms-switch__track,
.crms-switch input:disabled ~ .crms-switch__thumb {
	opacity: 0.5;
}

.crms-switch input:disabled {
	cursor: not-allowed;
}

.crms-cookie-banner__actions {
	margin-top: 1.25rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.crms-cookie-banner__actions[hidden] {
	display: none;
}

.crms-cookie-banner__actions .crms-btn--primary,
.crms-cookie-banner__actions .crms-btn--secondary {
	flex: 1 1 auto;
	min-width: 7rem;
	width: auto;
}

.crms-cookie-banner__actions .crms-btn--outline {
	width: 100%;
}

/* ==========================================================================
   Modal (book-a-demo, native <dialog>)
   ========================================================================== */

.crms-modal {
	position: fixed;
	border: none;
	border-radius: var(--crms-radius);
	padding: 0;
	width: 90vw;
	max-width: 640px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.crms-modal.is-visible {
	opacity: 1;
	transform: scale(1);
}

.crms-modal::backdrop {
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.crms-modal.is-visible::backdrop {
	opacity: 1;
}

.crms-modal__iframe {
	width: 100%;
	height: 70vh;
	border: 0;
}

.crms-modal--small {
	padding: 1.5rem;
}

.crms-modal__title {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0 0 1rem;
}

/* ==========================================================================
   Language switcher (trigger button + "Select Language" dialog)
   ========================================================================== */

.crms-locale-trigger {
	width: auto;
	padding: 0.5rem 0.75rem;
}

.crms-icon--flag {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.crms-locale-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

@media (min-width: 640px) {
	.crms-locale-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.crms-locale-option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 0.75rem;
	border-radius: var(--crms-radius);
	text-decoration: none;
	color: hsl(var(--crms-foreground));
}

.crms-locale-option:hover {
	background: rgba(0, 0, 0, 0.04);
}

.crms-locale-option.is-current {
	font-weight: 600;
	background: rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   404
   ========================================================================== */

.crms-404__inner {
	max-width: 80rem;
	min-height: calc(100vh - 3.563rem);
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3rem;
}

@media (min-width: 1024px) {
	.crms-404__inner {
		flex-direction: row;
		gap: 3rem;
	}
}

.crms-404__text {
	width: 100%;
	text-align: center;
}

@media (min-width: 1024px) {
	.crms-404__text {
		width: 50%;
		text-align: left;
	}
}

.crms-404__eyebrow {
	font-size: 0.875rem;
	font-weight: 500;
	color: #3b82f6;
	margin: 0;
}

.crms-404__title {
	margin: 0.75rem 0 0;
	font-size: 1.5rem;
	font-weight: 600;
	color: #1f2937;
}

@media (min-width: 768px) {
	.crms-404__title {
		font-size: 1.875rem;
	}
}

.crms-404__description {
	margin: 1rem 0 0;
	color: #6b7280;
}

.crms-404__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

@media (min-width: 1024px) {
	.crms-404__actions {
		justify-content: flex-start;
	}
}

.crms-404__actions .crms-btn {
	width: auto;
}

.crms-404__illustration-wrap {
	width: 100%;
	display: flex;
	justify-content: center;
}

@media (min-width: 1024px) {
	.crms-404__illustration-wrap {
		width: 50%;
	}
}

.crms-404__illustration {
	max-width: 100%;
	height: auto;
}

/* ==========================================================================
   Prose (privacy policy, blog post body)
   ========================================================================== */

.crms-prose {
	max-width: 48rem;
	margin: 0 auto;
}

.crms-prose h1 {
	font-size: 1.875rem;
	font-weight: 800;
	color: var(--crms-brand-600);
	margin: 0 0 1rem;
}

.crms-prose h2 {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 2rem 0 1rem;
}

.crms-prose p {
	line-height: 1.75;
	color: #374151;
	margin: 0 0 1rem;
}

.crms-prose a {
	color: hsl(var(--crms-primary));
}

.crms-prose h3 {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 1.5rem 0 0.75rem;
}

.crms-prose ul,
.crms-prose ol {
	margin: 0 0 1rem;
	padding-left: 1.5rem;
	color: #374151;
	line-height: 1.75;
}

.crms-prose li {
	margin-bottom: 0.5rem;
}

/* ==========================================================================
   Product / Contact hero (simpler centered hero, no full-viewport height)
   ========================================================================== */

.crms-product-hero,
.crms-contact-hero {
	padding: 3rem 1rem;
}

@media (min-width: 1024px) {
	.crms-product-hero,
	.crms-contact-hero {
		padding: 4rem 1rem;
	}
}

.crms-product-hero__inner,
.crms-contact-hero__inner {
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 2rem;
	text-align: center;
}

.crms-product-hero__title,
.crms-contact-hero__title {
	font-size: 1.875rem;
	font-weight: 800;
	color: var(--crms-brand-950);
	margin: 0 0 1rem;
}

@media (min-width: 1024px) {
	.crms-product-hero__title,
	.crms-contact-hero__title {
		font-size: 2.25rem;
	}
}

.crms-product-hero__subheadline {
	max-width: 48rem;
	margin: 0 auto 1.5rem;
	font-size: 1.25rem;
	font-weight: 500;
	color: hsl(var(--crms-primary));
}

.crms-product-hero__body,
.crms-contact-hero__description {
	max-width: 48rem;
	margin: 0 auto 1rem;
	font-size: 1.125rem;
	color: #6b7280;
}

.crms-product-hero .crms-btn {
	width: auto;
	margin-top: 1rem;
}

/* ==========================================================================
   Hero: trust line, section description
   ========================================================================== */

.crms-hero__trust-line {
	margin: 1.5rem 0 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: #4b5563;
}

.crms-hero__description a,
.crms-section__description a,
.crms-form__privacy-notice a {
	font-weight: 500;
	color: var(--crms-brand-700);
	text-underline-offset: 4px;
}

.crms-hero__description a:hover,
.crms-section__description a:hover,
.crms-form__privacy-notice a:hover {
	text-decoration: underline;
}

.crms-section__description {
	font-size: 1.125rem;
	color: #4b5563;
	margin: 0.5rem 0 0;
}

.crms-section--muted {
	background: #f9fafb;
}

.crms-centered-text {
	max-width: 48rem;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.crms-mb-md {
	margin-bottom: 1.5rem;
}

.crms-mb-lg {
	margin-bottom: 2.5rem;
}

.crms-tagline {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--crms-brand-700);
	margin: 0;
}

.crms-inline-link {
	font-weight: 500;
	color: var(--crms-brand-700);
	text-underline-offset: 4px;
	text-decoration: none;
}

.crms-inline-link:hover {
	text-decoration: underline;
}

.crms-section--tight .crms-section__inner {
	padding-bottom: 2rem;
}

.crms-section__title--compact {
	margin-bottom: 2rem;
	font-size: 1.5rem;
	text-align: center;
}

@media (min-width: 1024px) {
	.crms-section__title--compact {
		font-size: 1.875rem;
	}
}

/* ==========================================================================
   Point grid (problem/solution/audience/benefits/product points/discussion topics)
   ========================================================================== */

.crms-point-grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.crms-point-grid--cols-3,
	.crms-point-grid--cols-4,
	.crms-point-grid--cols-5,
	.crms-point-grid--cols-6 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.crms-point-grid--cols-2 {
		grid-template-columns: repeat(2, 1fr);
	}
	.crms-point-grid--cols-3 {
		grid-template-columns: repeat(3, 1fr);
	}
	.crms-point-grid--cols-4 {
		grid-template-columns: repeat(4, 1fr);
	}
	.crms-point-grid--cols-5,
	.crms-point-grid--cols-6 {
		grid-template-columns: repeat(6, 1fr);
	}
	.crms-point-grid--cols-5 .crms-point-card,
	.crms-point-grid--cols-6 .crms-point-card {
		grid-column: span 2;
	}
	/* Audience section: 5 cards in a 6-col grid, 4th card centered on row 2. */
	.crms-point-grid--audience .crms-point-card:nth-child(4) {
		grid-column: 2 / span 2;
	}
}

.crms-point-card {
	background: #fff;
	border: 1px solid var(--crms-border-color);
	border-left: 4px solid hsl(var(--crms-primary));
	border-radius: 0 0.25rem 0.25rem 0;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	padding: 1.25rem;
	transition: transform 0.3s ease;
}

.crms-point-card:hover {
	transform: translateY(-0.5rem);
}

.crms-point-card__icon {
	display: inline-flex;
	padding: 0.5rem;
	margin-bottom: 0.75rem;
	border-radius: var(--crms-radius);
	background: rgba(215, 241, 255, 0.8);
	color: hsl(var(--crms-primary));
}

.crms-point-card__icon .crms-icon {
	width: 1.125rem;
	height: 1.125rem;
}

.crms-point-card__title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--crms-brand-950);
	margin: 0 0 0.5rem;
}

.crms-point-card__description {
	font-size: 0.875rem;
	color: #4b5563;
	margin: 0;
}

/* ==========================================================================
   Step list (home "workflow" section)
   ========================================================================== */

.crms-step-list {
	max-width: 48rem;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.crms-step-list__item {
	display: flex;
	gap: 1rem;
}

.crms-step-list__number {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 9999px;
	background: var(--crms-brand-100);
	color: var(--crms-brand-950);
	font-size: 0.875rem;
	font-weight: 700;
}

.crms-step-list__title {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--crms-brand-950);
	margin: 0 0 0.5rem;
}

.crms-step-list__description {
	color: #4b5563;
	margin: 0;
}

/* ==========================================================================
   FAQ accordion (native details/summary)
   ========================================================================== */

.crms-faq {
	max-width: 48rem;
	margin: 0 auto;
}

.crms-faq__item {
	border-bottom: 1px solid var(--crms-border-color);
	padding: 1rem 0;
}

.crms-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	cursor: pointer;
	font-weight: 600;
	color: var(--crms-brand-950);
	list-style: none;
}

.crms-faq__question::-webkit-details-marker {
	display: none;
}

.crms-faq__caret {
	flex-shrink: 0;
	width: 0.875rem;
	height: 0.875rem;
	transition: transform 0.2s ease;
}

.crms-faq__item[open] .crms-faq__caret {
	transform: rotate(180deg);
}

.crms-faq__answer {
	margin-top: 0.75rem;
	color: #4b5563;
}

/* ==========================================================================
   CTA band (bg-primary full width band)
   ========================================================================== */

.crms-cta-band {
	background: hsl(var(--crms-primary));
}

.crms-cta-band__inner {
	max-width: 80rem;
	margin: 0 auto;
	padding: 4rem 1.5rem;
	text-align: center;
}

.crms-cta-band__title {
	font-size: 1.875rem;
	font-weight: 800;
	color: #fff;
	margin: 0 0 1rem;
}

@media (min-width: 1024px) {
	.crms-cta-band__title {
		font-size: 2.25rem;
	}
}

.crms-cta-band__description {
	max-width: 42rem;
	margin: 0 auto 2rem;
	font-size: 1.125rem;
	color: #f3f4f6;
}

/* ==========================================================================
   Contact methods
   ========================================================================== */

.crms-contact-methods {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.crms-contact-methods {
		grid-template-columns: repeat(2, 1fr);
	}
}

.crms-contact-method {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.5rem;
	border-radius: var(--crms-radius);
	background: #fff;
	border: 1px solid var(--crms-brand-100);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.15s ease;
}

.crms-contact-method:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.crms-contact-method__icon {
	display: inline-flex;
	width: fit-content;
	padding: 0.75rem;
	margin-bottom: 1rem;
	border-radius: var(--crms-radius);
	background: rgba(215, 241, 255, 0.8);
	color: hsl(var(--crms-primary));
}

.crms-contact-method__title {
	font-size: 1rem;
	font-weight: 600;
	color: #1f2937;
	margin: 0;
}

.crms-contact-method__description {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	color: #6b7280;
	flex: 1;
}

.crms-contact-method__value-wrap {
	margin-top: 0.75rem;
}

.crms-contact-method__label {
	margin: 0;
	font-size: 0.875rem;
	color: #6b7280;
}

.crms-contact-method__value {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: hsl(var(--crms-primary));
}

/* ==========================================================================
   Contact form
   ========================================================================== */

.crms-contact-form-wrap {
	max-width: 48rem;
}

.crms-contact-form-card {
	padding: 1.5rem;
	border-radius: var(--crms-radius);
	background: #fff;
	border: 1px solid var(--crms-brand-100);
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
	.crms-contact-form-card {
		padding: 2rem;
	}
}

.crms-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.crms-form__row {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.crms-form__row--2col {
		grid-template-columns: repeat(2, 1fr);
	}
}

.crms-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.crms-form__field label {
	font-size: 0.875rem;
	font-weight: 500;
	color: hsl(var(--crms-foreground));
}

.crms-form__field input,
.crms-form__field select,
.crms-form__field textarea {
	width: 100%;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	font-family: inherit;
	border: 1px solid var(--crms-border-color);
	border-radius: calc(var(--crms-radius) - 2px);
	background: #fff;
	color: hsl(var(--crms-foreground));
}

.crms-form__field input:focus,
.crms-form__field select:focus,
.crms-form__field textarea:focus {
	outline: 2px solid hsl(var(--crms-primary));
	outline-offset: 1px;
}

.crms-form__field input.is-invalid,
.crms-form__field select.is-invalid,
.crms-form__field textarea.is-invalid {
	border-color: #dc2626;
}

.crms-form__error {
	margin: 0;
	font-size: 0.8125rem;
	color: #dc2626;
	min-height: 1em;
}

.crms-form__privacy-notice {
	margin: 0;
	font-size: 0.875rem;
	color: #4b5563;
}

.crms-form__checkbox-field {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
}

.crms-form__checkbox-field input {
	margin-top: 0.2rem;
}

.crms-form__checkbox-field label {
	font-size: 0.875rem;
	color: #4b5563;
	cursor: pointer;
}

.crms-form__submit {
	width: 100%;
}

@media (min-width: 640px) {
	.crms-form__submit {
		width: auto;
	}
}

.crms-form__status {
	margin: 0;
	font-size: 0.875rem;
	min-height: 1em;
}

.crms-form__status.is-success {
	color: #15803d;
}

.crms-form__status.is-error {
	color: #dc2626;
}
