/* ==========================================================================
   ClientVenue – main stylesheet
   1. Fonts            5. Header             9.  Homepage sections
   2. Design tokens    6. Footer             10. Sign-up modal
   3. Base             7. Buttons            11. Motion
   4. Utilities        8. Homepage shared    12. Responsive
   ========================================================================== */

/* 1. Fonts ------------------------------------------------------------------
   Roboto (body) and Fira Sans (headings) are loaded and assigned by Blocksy:
   Customizer → General → Typography. */

/* 2. Design tokens -------------------------------------------------------- */
:root {
	--cv-dark: var(--theme-palette-color-4, #060f5c);          /* headings, body text */
	--cv-primary: var(--theme-palette-color-1, #0a04ff);       /* brand blue: buttons, links */
	--cv-primary-light: #376dda; /* gradient start */
	--cv-primary-deep: var(--theme-palette-color-2, #0e51da);  /* gradient end */
	--cv-logo-blue: #0754e5;     /* "Client" in the wordmark */
	--cv-logo-navy: #000630;     /* "Venue" in the wordmark */
	--cv-grey-1: var(--theme-palette-color-3, #798099);        /* body copy on light */
	--cv-grey-2: #a9aec3;
	--cv-grey-3: var(--theme-palette-color-5, #e6e8f0);        /* borders, dividers */
	--cv-haze-dark: var(--theme-palette-color-6, #ededff);     /* tinted surfaces, eyebrow pills */
	--cv-white: var(--theme-palette-color-8, #fff);
	--cv-accent-shadow: rgba(145, 101, 247, 0.6);
	--cv-card-shadow: 0 15px 30px rgba(48, 54, 77, 0.1);

	--cv-font-body: var(--theme-font-family, "Roboto", system-ui, sans-serif); /* Customizer → Typography */
	--cv-font-heading: "Fira Sans", "Roboto", system-ui, sans-serif;

	--cv-gradient: linear-gradient(90deg, var(--cv-primary-light), var(--cv-primary-deep));
	--cv-btn-gradient: linear-gradient(90deg, var(--cv-primary), #0a04ff);

	/* Content width = Blocksy's container (Customizer → General → Layout:
	   "Maximum Site Width" + "Content Edge Spacing"), so header, sections and
	   footer share one left/right edge. */
	--cv-container: var(--theme-normal-container-max-width, 1250px);
	--cv-content-w: min(var(--theme-container-edge-spacing, 98vw), var(--cv-container));
	--cv-section-y: 128px;
	--cv-radius: 8px;
	--cv-header-h: 88px;
	--cv-nav-h: 88px;          /* = Customizer → Header → Main Row height (desktop) */
}

/* 3. Base ------------------------------------------------------------------ */
/* Body font, size, line height and colours come from Blocksy
   (Customizer → General → Typography / Colors). */
body.cv-site {
	-webkit-font-smoothing: antialiased;
}
.cv-site :is(h1, h2, h3, h4, h5, h6) { color: inherit; }
.cv-site :focus-visible { outline: 2px solid var(--cv-primary); outline-offset: 3px; }

/* 4. Utilities ------------------------------------------------------------- */
.cv-container {
	width: var(--cv-content-w);
	margin-inline: auto;
}
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}


@media (max-width: 999.98px) { :root { --cv-nav-h: 80px; } } /* tablet row height */
@media (max-width: 689.98px) { :root { --cv-nav-h: 70px; } } /* mobile row height */

/* 5. Header -----------------------------------------------------------------
   Built with Blocksy's Header Builder (Customizer → Header). Logo, menus,
   button, colours, heights, sticky and transparent states are all set there.
   Only what the builder cannot express lives here. */

/* Announcement bar = header "HTML" element in the top row (homepage only,
   as on clientvenue.com). Dismissal is handled in assets/js/main.js. */
body:not(.home) .ct-header [data-row*="top"],
.ct-header [data-row][hidden] { display: none; }
.cv-announce { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 0 48px; color: #fff; }
.cv-announce__text { margin: 0; font-size: 15px; line-height: 1.4; }
.cv-announce__close { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); display: inline-flex; padding: 6px; border: 0; background: none; color: #fff; opacity: .85; cursor: pointer; }
.cv-announce__close:hover { opacity: 1; }

/* "Home" (menu item CSS class cv-only-inner) is shown on inner pages only. */
.home .menu-item.cv-only-inner { display: none; }

/* "Login" = Menu 2 item with CSS class cv-menu-ghost → outline button. */
:is(#header, #offcanvas) .cv-menu-ghost > .ct-menu-link { --menu-item-height: 40px; height: 40px; padding: 0 20px; margin-inline-end: 4px; border: 1px solid currentColor; border-radius: 4px; transition: background-color .2s, color .2s, border-color .2s; }
:is(#header, #offcanvas) .cv-menu-ghost > .ct-menu-link:hover { background: var(--theme-palette-color-1); border-color: var(--theme-palette-color-1); color: #fff; }
#header [data-transparent-row="yes"] .cv-menu-ghost > .ct-menu-link:hover { background: #fff; border-color: #fff; color: var(--theme-palette-color-1); }

@media (max-width: 999.98px) {
	.cv-announce { padding: 6px 40px 6px 12px; gap: 10px; flex-wrap: wrap; }
	.cv-announce__text { font-size: 13px; }
	#offcanvas .cv-menu-ghost > .ct-menu-link { display: inline-flex; width: auto; justify-content: center; }
	/* Menu 2 (Login) placed in the off-canvas panel: size to content. */
	#offcanvas .header-menu-2, #offcanvas .header-menu-2 > ul { height: auto; }
	#offcanvas .header-menu-2 { margin: 24px 0 16px; }
}

/* 6. Footer -----------------------------------------------------------------
   Built with Blocksy's Footer Builder (Customizer → Footer): logo, tagline and
   link columns are widgets (Appearance → Widgets → Footer Widget Area 1–5),
   social links come from Customizer → General → Social Network Accounts. */
.ct-footer .cv-footer-logo { margin: 0; }
.ct-footer .cv-footer-tagline { margin: 0; font-size: 14px; color: var(--cv-grey-1); }

/* Contact Form 7 (Contact page form) – styled like clientvenue.com. */
.wpcf7 .cv-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wpcf7 .cv-form__field { margin: 0; }
.wpcf7 .cv-form__field--full { grid-column: 1 / -1; }
.wpcf7 .cv-form label { display: block; margin: 0 0 8px; font-size: 10px; font-weight: 500; line-height: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cv-grey-1); }
.wpcf7 .cv-form :is(input[type="text"], input[type="email"], textarea) { width: 100%; min-height: 40px; padding: 8px 24px; border: 1px solid #ccc; border-radius: 4px; background: #fff; color: #333; font-size: 14px; }
.wpcf7 .cv-form textarea { min-height: 224px; padding: 20px 24px; }
.wpcf7 .cv-form .wpcf7-submit { width: 100%; min-height: 40px; padding: 8px 24px; border: 0; border-radius: 4px; background: var(--cv-btn-gradient); color: #fff; font-size: 14px; font-weight: 500; text-transform: uppercase; cursor: pointer; }
.wpcf7 .cv-form .wpcf7-submit:hover { filter: brightness(1.08); }
.wpcf7 .cv-form .wpcf7-spinner { position: absolute; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: 4px; font-size: 14px; }
@media (max-width: 689.98px) { .wpcf7 .cv-form { grid-template-columns: 1fr; } }

/* 7. Buttons --------------------------------------------------------------- */
.cv-btn,
.cv-home .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 8px 24px;
	border: 1px solid transparent;
	border-radius: 4px;
	background: var(--cv-btn-gradient);
	color: var(--cv-white);
	font-family: var(--cv-font-body);
	font-size: 14px;
	font-weight: 500;
	line-height: 24px;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	box-sizing: border-box;
	transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}
.cv-btn:hover,
.cv-home .wp-block-button__link:hover {
	color: var(--cv-white);
	transform: translateY(-3px);
	box-shadow: 0 6px 12px -2px var(--cv-accent-shadow);
}
.cv-btn--small { padding-inline: 20px; font-size: 13px; line-height: 20px; }
.cv-btn--tiny { height: 32px; padding: 8px 12px; font-size: 12px; line-height: 16px; }
.cv-btn--ghost { background: transparent; border-color: var(--cv-primary); color: var(--cv-primary); }
.cv-btn--ghost:hover { color: var(--cv-primary); box-shadow: none; }
.cv-btn--white,
.cv-home .is-style-cv-white .wp-block-button__link { background: var(--cv-white); color: var(--cv-primary); }
.cv-btn--white:hover,
.cv-home .is-style-cv-white .wp-block-button__link:hover { color: var(--cv-primary); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16); }
.cv-btn--block { width: 100%; height: 44px; }

/* 8. Homepage shared ------------------------------------------------------- */
.cv-home { overflow-x: clip; }
.cv-home :is(h1, h2, h3, h4, h5, h6, p, figure, ul, ol, blockquote) { margin-top: 0; }
.cv-home :is(.wp-block-group, .wp-block-column, .wp-block-columns) > * { margin-block-start: 0; }
.cv-home .wp-block-columns { margin-bottom: 0; }
.cv-home img { max-width: 100%; height: auto; }
.cv-home figure.wp-block-image { margin: 0; }

.cv-section { position: relative; padding-block: var(--cv-section-y); background: var(--cv-white); }
/* Block-editor sections are ONE Group block (class cv-section) holding their
   content directly – no inner "container" group. Side padding centres the
   content at the container width while the background stays full-bleed.
   (PHP templates keep their own .cv-container wrapper, hence .wp-block-group.) */
.wp-block-group.cv-section {
	padding-inline: calc((100% - var(--cv-content-w)) / 2);
}
.cv-intro { max-width: 570px; margin: 0 auto 80px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cv-eyebrow {
	display: inline-block;
	margin: 0 0 16px;
	padding: 4px 7px 4px 8px;
	border-radius: 4px;
	background: var(--cv-haze-dark);
	color: var(--cv-primary);
	font-size: 11px;
	font-weight: 500;
	line-height: 16px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.cv-home h2,
.cv-home .cv-h2 { margin-bottom: 16px; font-size: 32px; font-weight: 500; line-height: 40px; color: var(--cv-dark); }
.cv-subtitle,
.cv-home .cv-muted { color: var(--cv-grey-1); letter-spacing: 0.4px; }
.cv-subtitle { margin: 0; }
.cv-lead { font-size: 17px; line-height: 28px; color: var(--cv-grey-1); letter-spacing: 0.4px; }
.cv-home .wp-block-buttons { display: flex; gap: 16px; margin: 0; }
.cv-home .wp-block-button { margin: 0; }

/* Two-column feature row (image + copy). */
.cv-split {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 64px 30px;
	padding: 20px 15px;
}
.cv-split + .cv-split { margin-top: 60px; }
.cv-split > .wp-block-column { flex-basis: auto !important; min-width: 0; }
.cv-split--reverse > .cv-split__media { order: 2; }
.cv-split > .wp-block-column,
.cv-hero__grid > .wp-block-column,
.cv-quote__grid > .wp-block-column { align-self: center; }
.cv-role > .wp-block-column { align-self: start; }
.cv-split__body { display: flex; flex-direction: column; align-items: flex-start; max-width: 520px; justify-self: center; }
.cv-split__body h3 { margin-bottom: 16px; font-size: 32px; font-weight: 500; line-height: 40px; color: var(--cv-dark); }
.cv-split__body p:not(.cv-eyebrow) { margin-bottom: 24px; font-size: 17px; line-height: 28px; color: var(--cv-grey-1); letter-spacing: 0.4px; }
.cv-split__body .wp-block-buttons { margin-top: 16px; }
.cv-shot img { border: 1px solid var(--cv-grey-3); border-radius: 5px; }

/* Tabs (progressively enhanced by main.js; without JS every panel shows). */
.cv-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0 15px 60px;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--cv-grey-3);
}
.cv-tabs__nav li { margin: 0; }
.cv-tabs__nav a {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: -1px;
	padding: 32px 24px;
	color: var(--cv-grey-1);
	text-decoration: none;
	transition: color 0.4s;
}
.cv-tabs__nav a:hover { color: var(--cv-primary); }
.cv-tabs__nav a[aria-selected="true"] { color: var(--cv-primary); }
.cv-tabs__nav a[aria-selected="true"]::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: var(--cv-primary);
}
.cv-tabs__nav--boxed { margin-inline: 0; }
.cv-tabs__nav--boxed li { flex: 1 1 0; }
.cv-tabs__nav--boxed a { box-shadow: 1px 0 0 0 var(--cv-grey-3); padding-inline: 15px; }
.cv-tabs__nav--boxed li:last-child a { box-shadow: none; }
.cv-tabs__panel[hidden] { display: none !important; }
.cv-tabs__panel-title { text-align: center; }

/* 9. Homepage sections ----------------------------------------------------- */

/* Hero ------------------------------------------------------------------------
   Mirrors clientvenue.com (.hero-v2): the section slides up under the
   transparent header nav row (margin-top = -nav height) and carries three
   decorative shapes placed exactly like the reference .bg-elements:
     ::before          large ring   (left 23%, top -36%, 23vw)
     ::after           small ring   (right 7%, top 12%, 8vw)
     background-image  dot pattern  (left 2%, bottom 21%, 297×118)
   Shapes are inline SVG data URIs (no extra HTTP requests), decorative only.
   Background offsets add "% × image size" so they equal the reference's
   box-relative percentages. */
.cv-hero {
	--cv-ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 350 350'%3E%3Cpath fill='%239165F7' fill-rule='evenodd' d='M175 0a175 175 0 1 0 0 350a175 175 0 1 0 0-350zm0 48a127 127 0 1 1 0 254a127 127 0 1 1 0-254z'/%3E%3C/svg%3E");
	--cv-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='297' height='118'%3E%3Cdefs%3E%3Cpattern id='d' width='12' height='12' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='3' cy='3' r='3' fill='%239165F7' fill-opacity='.12'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23d)'/%3E%3C/svg%3E");
	--cv-hero-pt: 112px;
	position: relative;
	min-height: 640px;
	margin-top: calc(-1 * var(--cv-nav-h));
	padding-block: calc(var(--cv-nav-h) + var(--cv-hero-pt)) 128px;
	overflow: hidden;
	background-color: var(--cv-white);
	background-image: var(--cv-dots);
	background-repeat: no-repeat;
	background-size: 297px 118px;
	background-position: left calc(2% + 5.94px) bottom calc(21% + 24.78px);
}
.cv-hero::before,
.cv-hero::after {
	content: "";
	position: absolute;
	aspect-ratio: 1;
	background: var(--cv-ring) center / contain no-repeat;
	opacity: 0.08;
	pointer-events: none;
}
.cv-hero::before { width: min(23vw, 480px); top: -36%; left: 23%; }
.cv-hero::after  { width: 8vw; top: 12%; right: 7%; }
.cv-hero > * { position: relative; z-index: 1; }
@media (max-width: 991px) {
	.cv-hero {
		--cv-hero-pt: 80px;
		padding-bottom: 80px;
		background-size: 297px 96px;
		background-position: left calc(-14% - 41.58px) bottom calc(-10% - 9.6px);
	}
	.cv-hero::before { width: 38vw; }
	.cv-hero::after  { width: 10vw; top: 20%; right: 4%; }
}
@media (max-width: 767px) {
	.cv-hero {
		background-size: 231px 96px;
		background-position: left calc(-14% - 32.34px) bottom calc(-10% - 9.6px);
	}
	.cv-hero::before { width: 50vw; }
	.cv-hero::after  { width: 15vw; top: 17%; }
}
@media (max-width: 479px) {
	.cv-hero::after  { width: 17vw; top: 22%; right: 6%; }
}
.cv-hero__grid { position: relative; z-index: 1; display: grid !important; /* 12-column grid with a 15px inset, as clientvenue.com's .main-grid:
	   copy spans columns 1–5, image 7–12. */
	grid-template-columns: repeat(12, minmax(0, 1fr));
	padding-inline: 15px; align-items: center; gap: 30px; }
.cv-hero__grid > .wp-block-column { flex-basis: auto !important; }
.cv-hero__grid > .wp-block-column:first-child { grid-column: 1 / span 5; }
.cv-hero__grid > .wp-block-column:last-child { grid-column: 7 / span 6; }
.cv-hero__copy h1 { margin-bottom: 16px; font-size: 54px; font-weight: 600; line-height: 63px; color: var(--cv-dark); }
.cv-hero__copy .cv-lead { margin-bottom: 24px; }

/* Logo strip */
.cv-logos { padding-block: 10px; }
.cv-home .cv-logos__title { margin: 0; text-align: center; font-size: 18px; font-weight: 500; line-height: 24px; color: var(--cv-dark); }
.cv-logos__row {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: center;
	padding-block: 48px;
	gap: 0;
	padding-inline: 15px; /* .main-grid inset */
}
.cv-logos__row .wp-block-image { margin: 20px 12px; padding-inline: 8px; }
.cv-logos__row img { width: auto; height: 32px; object-fit: contain; }

/* Agency tabs */
.cv-agency .cv-tabs__panel-title { margin-bottom: 16px; }

/* Add-ons accordion with image on the right */
.cv-addons { padding-block: 10px 64px; }
.cv-addons .cv-intro { margin-bottom: 80px; }
.cv-addons__list { --cv-addons-inset: 10px; position: relative; padding: 0 var(--cv-addons-inset) 32px; min-height: 520px; } /* inset as clientvenue.com */
.cv-acc {
	width: 45%;
	margin: 0 0 20px;
	padding: 12px 10px 5px;
	border: 1px solid #e6e8f0;
	border-radius: var(--cv-radius);
	background: var(--cv-white);
	box-sizing: border-box;
	transition: box-shadow 0.3s;
}
.cv-acc[open] { box-shadow: 0 6px 12px rgba(48, 54, 77, 0.16); }
.cv-acc > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 10px 0;
	font-family: var(--cv-font-heading);
	font-size: 14px;
	line-height: 25px;
	color: var(--cv-dark);
	cursor: pointer;
	list-style: none;
}
.cv-acc > summary::-webkit-details-marker { display: none; }
.cv-acc > summary::after {
	content: "";
	flex: 0 0 12px;
	width: 12px; height: 12px;
	margin-right: 6px;
	border-right: 2px solid var(--cv-dark);
	border-bottom: 2px solid var(--cv-dark);
	transform: translateY(-3px) rotate(45deg);
	transition: transform 0.3s;
}
.cv-acc[open] > summary::after { transform: translateY(3px) rotate(-135deg); }
.cv-acc p { margin: 0 0 8px; font-size: 11px; line-height: 17px; color: #666; letter-spacing: 0.33px; }
.cv-acc .wp-block-image {
	position: absolute;
	top: 0; right: var(--cv-addons-inset, 0);
	width: calc(50% - var(--cv-addons-inset, 0px));
	display: flex;
	justify-content: center;
}
.cv-acc .wp-block-image img { width: auto; max-height: 520px; object-fit: contain; }

/* Roles (key benefits) tabs */
.cv-roles { padding-top: 64px; }
.cv-roles .cv-intro { margin-bottom: 50px; }
.cv-role { position: relative; display: grid !important; grid-template-columns: minmax(0, 450px) minmax(0, 700px); justify-content: end; align-items: start; padding: 10px 15px; gap: 0 !important; }
.cv-role > .wp-block-column { flex-basis: auto !important; }
.cv-role__card {
	position: relative;
	z-index: 1;
	top: 60px;
	right: -80px;
	padding: 30px 20px 20px;
	background: var(--cv-white);
	box-shadow: var(--cv-card-shadow);
	overflow: hidden;
}
.cv-role__card::after { /* corner ring */
	content: "";
	position: absolute;
	top: -37%; right: -11%;
	width: 160px; aspect-ratio: 1;
	border-radius: 50%;
	border: 22px solid var(--cv-primary);
	opacity: 0.06;
}
.cv-role__card .cv-eyebrow { margin-left: 0; }
.cv-home .cv-role__name { margin-bottom: 8px; font-size: 40px; font-weight: 500; line-height: 48px; text-align: left; }
.cv-checklist { margin: 16px 0 0 !important; padding: 0 !important; list-style: none; text-align: left; }
.cv-checklist li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-block: 8px;
	border-top: 1px solid var(--cv-grey-3);
	font-size: 13px;
	line-height: 20px;
	color: var(--cv-dark);
}
.cv-checklist li:last-child { border-bottom: 1px solid var(--cv-grey-3); }
.cv-checklist li::before {
	content: "";
	flex: 0 0 20px;
	height: 20px;
	background: var(--cv-primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 16px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 16px no-repeat;
	opacity: 0.7;
}
.cv-role__media img { display: block; width: 100%; max-width: 700px; margin-left: auto; }

/* Founder quote */
.cv-quote { padding-block: 0; }
.cv-quote__grid { display: grid !important; grid-template-columns: 5fr 1fr 6fr; align-items: center; gap: 30px; padding-inline: 15px; }
.cv-quote__grid > .wp-block-column { flex-basis: auto !important; }
.cv-quote__grid > .wp-block-column:last-child { grid-column: 3; }
.cv-quote__text { margin-bottom: 40px !important; font-family: var(--cv-font-heading); font-size: 24px; font-weight: 500; line-height: 39px; color: var(--cv-dark); }
.cv-person { display: flex !important; align-items: center; gap: 16px; }
.cv-person .wp-block-image img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.cv-person__name { margin: 0 0 4px; font-family: var(--cv-font-heading); font-size: 15px; font-weight: 500; line-height: 20px; }
.cv-person__role { margin: 0; font-size: 8px; line-height: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cv-grey-1); }
.cv-quote__media img { border-radius: 5px; }

/* Feature grid with icons */
.cv-features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px 30px; padding-inline: 15px; }
.cv-feature { display: flex !important; align-items: flex-start; padding-right: 4%; gap: 0; }
.cv-feature > .wp-block-image { flex: 0 0 48px; width: 48px; height: 48px; padding: 12px; box-sizing: border-box; }
.cv-feature > .wp-block-image img { width: 24px; height: 24px; }
.cv-feature__body { flex: 1 1 0; padding-left: 24px; }
.cv-feature h3 { margin-bottom: 8px; font-size: 18px; font-weight: 500; line-height: 24px; color: var(--cv-dark); }
.cv-feature p { margin: 0; color: var(--cv-grey-1); letter-spacing: 0.4px; }

/* Integrations */
.cv-integrations { padding-block: 10px 64px; }
.cv-integrations__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 30px; padding-inline: 15px; }
.cv-card {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	padding: 12%;
	border-radius: var(--cv-radius);
	background: var(--cv-white);
	box-shadow: var(--cv-card-shadow);
	text-align: center;
	color: var(--cv-dark);
}
.cv-card .wp-block-image img { width: auto; height: 144px; margin-bottom: 24px; object-fit: contain; }
.cv-card h3 { margin-bottom: 8px; font-size: 18px; font-weight: 500; line-height: 24px; }
.cv-card p { margin: 0; font-size: 13px; line-height: 20px; color: var(--cv-grey-1); letter-spacing: 0.4px; }

/* Templates */
.cv-templates { padding-block: 64px; }
.cv-templates__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-inline: 15px; }
.cv-template {
	padding: 5%;
	border: 0.4px solid rgba(55, 109, 218, 0.47);
	border-radius: var(--cv-radius);
	background: var(--cv-haze-dark);
	box-shadow: var(--cv-card-shadow);
	font-size: 12px;
	line-height: 20px;
}
.cv-template h3 { margin-bottom: 12px; font-size: 20px; font-weight: 500; line-height: 28px; color: var(--cv-dark); }
.cv-template p { margin: 0; color: var(--cv-grey-1); letter-spacing: 0.4px; }

/* Testimonials */
.cv-testimonials { padding-block: 72px 96px; overflow: hidden; }
.cv-testimonials::before { /* blue band behind the first half of the cards */
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 48%;
	background: linear-gradient(90deg, var(--cv-primary-light), var(--cv-primary-deep));
}
.cv-testimonials::after { /* gentle wave into white */
	content: "";
	position: absolute;
	left: 0; right: 0;
	top: calc(48% - 3vw);
	height: 4vw;
	background: var(--cv-white);
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.cv-testimonials > * { position: relative; z-index: 1; }
.cv-testimonials .cv-intro { margin-bottom: 48px; }
.cv-testimonials .cv-eyebrow { background: rgba(255, 255, 255, 0.32); color: var(--cv-white); }
.cv-testimonials h2 { color: var(--cv-white) !important; }
.cv-testimonials__grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 30px !important; margin-inline: 15px; align-items: start; }
.cv-testimonials__grid > .wp-block-column { display: grid; gap: 32px; flex-basis: auto !important; }
.cv-review { display: flex !important; flex-direction: column; border-radius: var(--cv-radius); background: var(--cv-white); box-shadow: var(--cv-card-shadow); }
.cv-review__text { margin: 32px !important; color: var(--cv-grey-1); }
.cv-review__text a { color: var(--cv-primary); }
.cv-review__meta { display: flex !important; align-items: center; gap: 0 !important; padding: 24px 32px; border-top: 1px solid var(--cv-grey-3); }
.cv-review__meta .wp-block-image { flex: 0 0 44px; }
.cv-review__meta .wp-block-image img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.cv-review__who { flex: 1 1 0; padding-inline: 16px; }
.cv-review__name { margin: 0; font-weight: 500; line-height: 20px; color: var(--cv-dark); }
.cv-review__company { margin: 4px 0 0; font-size: 10px; font-weight: 500; line-height: 20px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cv-grey-2); }
.cv-stars { flex: 0 0 auto; margin: 0; padding: 8px; }
.cv-stars::before {
	content: "";
	display: block;
	width: 88px; height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffb543' d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") 0 0 / 18px 16px repeat-x;
}

/* Closing CTA */
.cv-cta { overflow: hidden; background: linear-gradient(90deg, var(--cv-primary-light), var(--cv-primary-deep)); color: var(--cv-white); }
.cv-cta::before { /* dot grid */
	content: "";
	position: absolute;
	top: 25%; left: 3%;
	width: 297px; height: 118px;
	background-image: radial-gradient(circle, #fff 1.5px, transparent 1.6px);
	background-size: 12px 12px;
	opacity: 0.12;
}
.cv-cta::after { /* ring */
	content: "";
	position: absolute;
	right: 24%; bottom: -25%;
	width: min(26vw, 480px); aspect-ratio: 1;
	border-radius: 50%;
	border: clamp(24px, 3.6vw, 66px) solid #fff;
	opacity: 0.08;
}
.cv-cta .cv-intro { position: relative; z-index: 1; margin-bottom: 0; }
.cv-cta .cv-eyebrow { background: rgba(255, 255, 255, 0.32); color: var(--cv-white); }
.cv-cta h2 { color: var(--cv-white) !important; }
.cv-cta p:not(.cv-eyebrow) { color: var(--cv-white); }
.cv-cta .wp-block-buttons { justify-content: center; }

/* 10. Sign-up modal ------------------------------------------------------- */
.cv-modal {
	width: min(1110px, calc(100% - 32px));
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	border-radius: var(--cv-radius);
	background: transparent;
	overflow: auto;
}
.cv-modal::backdrop { background: rgba(6, 15, 92, 0.6); }
.cv-modal__card { display: grid; grid-template-columns: 35% 65%; min-height: 600px; background: var(--cv-white); border-radius: var(--cv-radius); overflow: hidden; }
.cv-modal__aside { display: flex; flex-direction: column; justify-content: center; padding: 48px 40px; background: #232323; color: var(--cv-white); }
.cv-modal__quote { margin: 0; padding: 0; border: 0; }
.cv-modal__quote p { margin: 0 0 24px; font-size: 13px; line-height: 22px; font-weight: 500; }
.cv-modal__person { display: flex; align-items: center; gap: 14px; }
.cv-modal__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.cv-modal__person strong { display: block; font-size: 14px; }
.cv-modal__person small { display: block; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.7; }
.cv-modal__trust { margin: 32px 0 0; font-family: var(--cv-font-heading); font-size: 14px; font-weight: 600; text-align: center; }
.cv-modal__main { position: relative; padding: 32px 10%; }
.cv-modal__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--cv-dark); cursor: pointer; }
.cv-modal__title { margin: 0 0 8px; text-align: center; font-size: 32px; font-weight: 600; line-height: 40px; color: #333; }
.cv-modal__sub { margin: 0 0 40px; text-align: center; font-size: 14px; color: #333; }
.cv-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.cv-form__field { margin: 0; }
.cv-form__field--full { grid-column: 1 / -1; }
.cv-form label { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 500; line-height: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: #333; }
.cv-form input {
	width: 100%;
	height: 40px;
	padding: 7px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: var(--cv-white);
	font: inherit;
	font-size: 14px;
	color: #333;
	box-sizing: border-box;
}
.cv-form input:focus { border-color: var(--cv-primary); outline: 2px solid rgba(10, 4, 255, 0.15); }
.cv-form small { display: block; margin-top: 4px; font-size: 9px; color: var(--cv-grey-1); }
.cv-form__legal { margin: 16px 0 0; text-align: center; font-size: 10px; color: #333; }
.cv-form__legal a { color: var(--cv-primary); }

/* 11. Motion ---------------------------------------------------------------- */
.cv-js .cv-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.cv-js .cv-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.cv-js .cv-reveal { opacity: 1; transform: none; transition: none; }
	.cv-btn, .cv-home .wp-block-button__link { transition: none; }
	.cv-btn:hover, .cv-home .wp-block-button__link:hover { transform: none; }
}

/* 12. Responsive ------------------------------------------------------------ */
@media (max-width: 991px) {
	:root { --cv-section-y: 80px; --cv-header-h: 64px; }
	.cv-home h2, .cv-home .cv-h2, .cv-split__body h3 { font-size: 26px; line-height: 32px; }
	.cv-hero__copy h1 { font-size: 40px; line-height: 48px; }
	.cv-intro { margin-bottom: 64px; }


	.cv-split { grid-template-columns: 1fr; padding-inline: 8px; }
	.cv-split--reverse > .cv-split__media { order: 0; }
	.cv-split__body { max-width: none; justify-self: stretch; }
	.cv-split + .cv-split { margin-top: 32px; padding-top: 32px; }
	.cv-tabs__nav a { padding: 24px 16px; }

	.cv-addons__list { min-height: 0; }
	.cv-acc { width: 100%; }
	.cv-acc .wp-block-image { position: static; width: 100%; margin-top: 16px; }
	.cv-acc .wp-block-image img { max-height: 450px; }

	.cv-role { grid-template-columns: 1fr; justify-items: center; }
	.cv-role__card { top: 0; right: 0; width: 100%; max-width: 450px; box-sizing: border-box; margin-bottom: 24px; }

	.cv-quote__grid, .cv-hero__grid { grid-template-columns: 1fr; }
	.cv-hero__grid > .wp-block-column:last-child { order: -1; }
	.cv-hero__media img { display: block; max-width: min(100%, 560px); margin-inline: auto; }
	.cv-hero__grid > .wp-block-column:first-child, .cv-quote__grid > .wp-block-column:last-child, .cv-hero__grid > .wp-block-column:last-child { grid-column: auto; }

	.cv-features__grid, .cv-templates__grid { grid-template-columns: repeat(2, 1fr); gap: 48px 16px; }
	.cv-integrations__grid { grid-template-columns: repeat(2, 1fr); }
	.cv-card { padding: 5vw; }
	.cv-card .wp-block-image img { height: 27vw; max-height: 144px; }

	.cv-testimonials__grid { grid-template-columns: repeat(2, 1fr); gap: 16px !important; }
	.cv-testimonials__grid > .wp-block-column:nth-child(3) { display: none; }

	.cv-modal__card { grid-template-columns: 1fr; }
	.cv-modal__aside { display: none; }
}



@media (max-width: 767px) {
	:root { --cv-section-y: 64px; --cv-header-h: 60px; }

	.cv-hero__copy h1 { font-size: 36px; line-height: 44px; }
	.cv-intro { margin-bottom: 48px; }
	.cv-tabs__nav--boxed { width: 83.33%; margin-inline: auto; }
	.cv-tabs__nav--boxed li { flex: 0 1 50%; }
	.cv-tabs__nav--boxed a { box-shadow: 1px 1px 0 0 var(--cv-grey-3); }
	.cv-review__text { margin: 24px !important; }
	.cv-review__meta { flex-wrap: wrap; padding-inline: 24px; }
	.cv-stars { width: 100%; margin-top: 8px; padding-left: 60px; }
}

@media (max-width: 479px) {

	.cv-hero__copy { text-align: center; }
	.cv-hero__copy h1 { font-size: 43px; line-height: 52px; }
	.cv-hero__copy .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.cv-hero__grid > .wp-block-column:last-child { display: none; }
	.cv-btn, .cv-home .wp-block-button__link { font-size: 16px; }

	.cv-tabs__nav { display: block; border-bottom: 0; }
	.cv-tabs__nav--boxed { width: 100%; }
	.cv-tabs__nav a { width: 100%; box-shadow: 0 1px 0 0 var(--cv-grey-3) !important; padding-block: 20px; box-sizing: border-box; }
	.cv-tabs__nav a[aria-selected="true"]::after { display: none; }
	.cv-tabs__nav a[aria-selected="true"] { background: var(--cv-haze-dark); }
	.cv-logos__row { padding-block: 24px; }
	.cv-logos__row .wp-block-image { margin: 0; padding: 8px 12px; }
	.cv-logos__row img { height: 24px; }
	.cv-features__grid, .cv-templates__grid, .cv-integrations__grid { grid-template-columns: 1fr; gap: 40px; }
	.cv-feature { padding-right: 0; }
	.cv-feature__body { padding-left: 20px; }
	.cv-card { padding: 10vw; }
	.cv-card .wp-block-image img { width: 100%; height: auto; max-height: none; }
	.cv-testimonials__grid { grid-template-columns: 1fr; }

	.cv-form { grid-template-columns: 1fr; }
	.cv-modal__main { padding: 40px 8%; }
	.cv-modal__title { font-size: 24px; line-height: 32px; }
}

/* ==========================================================================
   Phase 2 – inner pages, blog, archives, single post
   ========================================================================== */


/* Blue page hero with a soft wave into the page */
.cv-pagehero {
	position: relative;
		padding: 192px 0 144px; /* clientvenue.com .top-section */
	/* two faint white rings (large one meets the wave, small one top right), then the brand gradient */
	background:
		radial-gradient(circle closest-side, transparent 72.5%, rgba(255, 255, 255, .08) 73%, rgba(255, 255, 255, .08) 99%, transparent 100%) calc(50% - 4px) 352px / 344px 344px no-repeat,
		radial-gradient(circle closest-side, transparent 72.5%, rgba(255, 255, 255, .08) 73%, rgba(255, 255, 255, .08) 99%, transparent 100%) calc(50% + 457px) -20px / 106px 106px no-repeat,
		linear-gradient(90deg, var(--cv-primary-light), var(--cv-primary-deep));
	color: var(--cv-white);
	text-align: center;
	overflow: hidden;
}
.cv-pagehero::before { /* dot grid */
	content: "";
	position: absolute;
	top: calc(var(--cv-header-h) - 40px); left: 3%;
	width: 297px; height: 118px;
	background-image: radial-gradient(circle, #fff 1.5px, transparent 1.6px);
	background-size: 12px 12px;
	opacity: 0.15;
}
.cv-pagehero::after { /* wave */
	content: "";
	position: absolute;
	left: -5%; right: -5%; bottom: -1px;
	height: 72px;
	background: var(--cv-white);
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.cv-pagehero__inner { position: relative; z-index: 1; max-width: 720px; display: flex; flex-direction: column; align-items: center; }
.cv-site .cv-pagehero__title { margin: 0 0 16px; font-size: 44px; font-weight: 500; line-height: 56px; color: var(--cv-white); }
.cv-site .cv-pagehero__inner > .cv-pagehero__title:last-child { margin-bottom: 0; }
/* Pricing uses the original's tighter billing-hero spacing */
.cv-page-pricing .cv-pagehero { padding: calc(var(--cv-header-h) + 72px) 0 120px; }
.cv-pagehero__sub { max-width: 570px; margin: 0 auto; font-size: 15px; line-height: 24px; color: rgba(255, 255, 255, 0.9); }
.cv-eyebrow--light { background: rgba(255, 255, 255, 0.32); color: var(--cv-white); }

/* Readable rich text (pages, posts) */
.cv-prose { color: #34495e; font-size: 16px; line-height: 28px; }
.cv-prose > * { margin-top: 0; margin-bottom: 20px; }
.cv-site .cv-prose :is(h2, h3, h4, h5, h6) { color: #2c3e50; font-weight: 600; margin: 36px 0 14px; scroll-margin-top: calc(var(--cv-header-h) + 24px); }
.cv-site .cv-prose h1 { font-size: 36px; line-height: 44px; margin: 36px 0 16px; }
.cv-site .cv-prose h2 { font-size: 30px; line-height: 38px; }
.cv-site .cv-prose h3 { font-size: 22px; line-height: 30px; }
.cv-site .cv-prose h4 { font-size: 18px; line-height: 26px; }
.cv-prose a { color: var(--cv-primary); text-decoration: underline; text-underline-offset: 2px; }
.cv-prose ul, .cv-prose ol { padding-left: 24px; }
.cv-prose li { margin-bottom: 8px; }
.cv-prose img { max-width: 100%; height: auto; border-radius: 6px; }
.cv-prose figure { margin: 28px 0; }
.cv-prose figcaption { margin-top: 8px; font-size: 13px; color: var(--cv-grey-1); text-align: center; }
.cv-prose blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--cv-primary); color: var(--cv-dark); font-size: 18px; }
.cv-prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; display: block; overflow-x: auto; }
.cv-prose th, .cv-prose td { padding: 10px 12px; border: 1px solid var(--cv-grey-3); text-align: left; vertical-align: top; }
.cv-prose th { background: var(--cv-haze-dark); color: var(--cv-dark); }
.cv-prose iframe, .cv-prose video { max-width: 100%; }
.cv-prose .w-embed-youtubevideo, .cv-prose .cv-embed { position: relative; padding-top: 56.25%; }
.cv-prose .w-embed-youtubevideo iframe, .cv-prose .cv-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Generic pages */
.cv-page { padding: 24px 0 96px; }
.cv-page__content { width: var(--cv-content-w); margin-inline: auto; }
.cv-page__content > .cv-section:first-child { padding-top: 32px; }
.cv-page .cv-section { padding-block: 64px; }
.cv-page .alignfull { margin-inline: calc(50% - 50vw); }

/* Blog: category tabs, post cards, pagination.
   One set of rules for the Blog page (Blocksy blocks: .cv-catnav-blocks / .cv-blog-query)
   and the PHP archives (.cv-catnav / .cv-postgrid / .cv-pagination). Values from clientvenue.com. */
.cv-blog { padding-top: 0; }

.cv-catnav-blocks { margin: 0; padding: 0; border: 0; }
.cv-catnav ul,
.cv-catnav-blocks .ct-query-template-flex,
.cv-catnav-blocks .ct-query-template-grid { display: flex !important; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0; margin: 0 0 60px; padding: 0; list-style: none; border-bottom: 1px solid var(--cv-grey-3); }
.cv-catnav li, .cv-catnav-blocks .wp-block-term { margin: 0 !important; }
.cv-catnav-blocks .ct-dynamic-data { margin: 0; }
.cv-catnav a,
.cv-catnav-blocks a { display: flex; align-items: center; margin-bottom: -1px; padding: 32px 24px; color: var(--cv-grey-1); font-size: 15px; line-height: 24px; text-decoration: none; transition: color .4s; }
.cv-catnav a:hover, .cv-catnav-blocks a:hover { color: var(--cv-primary); }
.cv-catnav a[aria-current="page"] { color: var(--cv-primary); box-shadow: inset 0 -2px 0 0 var(--cv-primary); }
.cv-catnav a:focus-visible, .cv-catnav-blocks a:focus-visible { outline: 2px solid var(--cv-primary); outline-offset: -6px; border-radius: 4px; }

.cv-postgrid,
.cv-blog-query .ct-query-template-grid,
.cv-blog-query .wp-block-post-template { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: -24px 0 0; padding: 0; list-style: none; }
.cv-postgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cv-card-post,
.cv-blog-query .wp-block-post { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0 !important; padding: 28px; border-radius: 8px; text-align: center; color: var(--cv-dark); transition: background-color .4s, box-shadow .4s, transform .4s; }
.cv-blog-query .wp-block-post > * { width: 100%; margin-block: 0 !important; }
.cv-card-post:hover, .cv-card-post:focus-within,
.cv-blog-query .wp-block-post:hover, .cv-blog-query .wp-block-post:focus-within { background-color: var(--cv-white); transform: translateY(-6px); box-shadow: 0 12px 24px -6px rgba(48, 54, 77, .16); }

.cv-card-post__media,
.cv-site .cv-qcard__media { display: block; width: 100%; height: 196px; margin: 0 0 24px !important; overflow: hidden; border-radius: 4px; background: var(--cv-haze-dark); }
.cv-card-post__media img,
.cv-site .cv-qcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.cv-card-post__cat,
.cv-site .cv-qcard__cat { position: relative; z-index: 1; min-height: 16px; margin: 0 0 12px !important; color: var(--cv-primary); font-size: 11px; font-weight: 500; line-height: 16px; letter-spacing: 1.6px; text-transform: uppercase; text-decoration: none; }
.cv-site .cv-qcard__cat a { color: inherit; text-decoration: none; }
.cv-site .cv-qcard__cat a:not(:first-child), .cv-site .cv-qcard__cat .ct-term-1 { display: none; }

.cv-site .cv-card-post__title,
.cv-site h3.cv-qcard__title { margin: 0 0 8px !important; font-family: var(--cv-font-heading); font-size: 18px; font-weight: 500; line-height: 24px; text-transform: capitalize; color: var(--cv-dark); }
.cv-card-post__title a,
.cv-site .cv-qcard__title a { color: inherit; text-decoration: none; }
/* the title link covers the whole card, so the full card is clickable with one accessible link */
.cv-card-post__title a::after,
.cv-site .cv-qcard__title a::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.cv-card-post__title a:focus-visible, .cv-site .cv-qcard__title a:focus-visible { outline: none; }
.cv-card-post__title a:focus-visible::after, .cv-site .cv-qcard__title a:focus-visible::after { outline: 2px solid var(--cv-primary); outline-offset: 2px; }

.cv-card-post__meta,
.cv-site .cv-qcard__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px !important; margin: 0 0 8px !important; padding: 8px 0; color: var(--cv-grey-1); font-size: 12px; line-height: 20px; }
.cv-site .cv-qcard__meta > * { margin: 0 !important; color: inherit; }

.cv-pagination,
.cv-blog-query .ct-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 40px; }
.cv-pagination .page-numbers:not(.prev):not(.next),
.cv-blog-query .ct-pagination .ct-hidden-sm,
.cv-blog-query .ct-pagination .page-numbers:not(.prev):not(.next) { display: none; }
.cv-pagination .prev, .cv-pagination .next,
.cv-blog-query .ct-pagination .prev, .cv-blog-query .ct-pagination .next { display: inline-flex; align-items: center; min-width: 0; height: auto; margin: 0; padding: 8px 24px; border: 1px solid var(--cv-primary); border-radius: 4px; background: transparent; color: var(--cv-primary); font-size: 14px; font-weight: 500; line-height: 24px; text-transform: uppercase; text-decoration: none; transition: background-color .3s, color .3s; }
.cv-pagination .prev:hover, .cv-pagination .next:hover,
.cv-blog-query .ct-pagination .prev:hover, .cv-blog-query .ct-pagination .next:hover { background: var(--cv-primary); color: var(--cv-white); }
.cv-pagination a:focus-visible, .cv-blog-query .ct-pagination a:focus-visible { outline: 2px solid var(--cv-primary); outline-offset: 3px; }
.cv-blog-query .ct-pagination svg { display: none; }
/* chevrons like the original's "Next >" button */
.cv-pagination .next::after, .cv-blog-query .ct-pagination .next::after,
.cv-pagination .prev::before, .cv-blog-query .ct-pagination .prev::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 6 6 6-6 6' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%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'%3E%3Cpath d='m9 6 6 6-6 6' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.cv-pagination .next::after, .cv-blog-query .ct-pagination .next::after { margin-left: 8px; }
.cv-pagination .prev::before, .cv-blog-query .ct-pagination .prev::before { margin-right: 8px; transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
	.cv-card-post, .cv-blog-query .wp-block-post, .cv-catnav a, .cv-catnav-blocks a { transition: none; }
	.cv-card-post:hover, .cv-card-post:focus-within, .cv-blog-query .wp-block-post:hover, .cv-blog-query .wp-block-post:focus-within { transform: none; }
}

/* Archives */
.cv-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; color: var(--cv-grey-1); font-size: 12px; }
.cv-breadcrumb a { color: var(--cv-grey-1); text-decoration: none; }
.cv-breadcrumb a:hover { color: var(--cv-primary); }
.cv-archive { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.cv-section.cv-blog--archive { padding-top: 10px; padding-bottom: 10px; }

/* breadcrumb: round home button + faded chevrons (clientvenue.com) */
.cv-crumbs { padding-top: 32px; font-size: 13px; line-height: 16px; color: #a9aec3; text-transform: capitalize; }
.cv-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.cv-crumbs li { display: flex; align-items: center; }
.cv-crumbs li + li::before { content: ""; width: 17px; height: 17px; margin: 10px 4px 9px; opacity: .3; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 6 6 6-6 6' fill='none' stroke='%23060f5c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px auto no-repeat; }
.cv-crumbs a { color: var(--cv-grey-1); text-decoration: none; }
.cv-crumbs a:hover { text-decoration: underline; }
.cv-crumbs__home { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 16px; background: var(--cv-haze-dark); color: var(--cv-primary) !important; transition: background-color .2s; }
.cv-crumbs__home:hover { background: #dcdcff; }
.cv-crumbs__home svg { width: 16px; height: 16px; }
.cv-crumbs a:focus-visible { outline: 2px solid var(--cv-primary); outline-offset: 2px; }
.cv-crumbs + .cv-catnav { margin-top: -28px; }
.cv-side-block { margin-bottom: 24px; padding-bottom: 24px; }
.cv-authorcard { margin-bottom: 48px; }
.cv-site .cv-side-title { margin: 0 0 24px; font-family: var(--cv-font-body); font-size: 12px; font-weight: 500; line-height: 20px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--cv-grey-1); }

/* featured posts: small cards that lift on hover, like the post grid */
.cv-featured { margin: 0 -16px; padding: 0; list-style: none; }
.cv-featured a { display: flex; gap: 20px; align-items: flex-start; padding: 16px; border-radius: 8px; color: var(--cv-dark); text-decoration: none; transition: transform .4s, box-shadow .4s, background-color .4s; }
.cv-featured a:hover, .cv-featured a:focus-visible { position: relative; z-index: 1; background: var(--cv-white); transform: translateY(-4px); box-shadow: 0 16px 30px rgba(48, 54, 77, .1); }
.cv-featured img { flex: 0 0 88px; width: 88px; height: 68px; object-fit: cover; border-radius: 4px; }
.cv-featured span { font-family: var(--cv-font-heading); font-size: 15px; font-weight: 500; line-height: 20px; text-transform: capitalize; }

/* authors: overlapping round photos with a white ring */
.cv-side-authors { display: flex; flex-wrap: wrap; margin: 0; padding: 0 12px 0 0; list-style: none; }
.cv-side-authors li { margin-right: -12px; }
.cv-side-authors a { position: relative; display: block; border-radius: 50%; }
.cv-side-authors a:hover, .cv-side-authors a:focus-visible { z-index: 2; }
.cv-side-authors__photo { display: block; width: 64px; height: 64px; border: 4px solid var(--cv-white); border-radius: 50%; object-fit: cover; box-sizing: border-box; transition: transform .3s; }
.cv-side-authors a:hover .cv-side-authors__photo { transform: translateY(-3px); }

.cv-side-tags { display: flex; flex-wrap: wrap; margin: -4px; padding: 0; list-style: none; }
.cv-side-tags a { display: inline-block; margin: 4px; padding: 6px 7px 6px 8px; border-radius: 4px; background: rgba(145, 101, 247, .1); color: var(--cv-primary); font-size: 9px; font-weight: 500; line-height: 12px; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; }
.cv-side-tags a:hover, .cv-side-tags a[aria-current="page"] { background: var(--cv-primary); color: var(--cv-white); }

/* follow us: brand-coloured icons in outlined circles */
.cv-side-social { display: flex; flex-wrap: wrap; margin: -4px; padding: 0; list-style: none; }
.cv-side-social__link { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 4px; border: 1px solid var(--cv-grey-3); border-radius: 50%; box-sizing: border-box; transition: border-color .2s; }
.cv-side-social__link:hover { border-color: #a9aec3; }
.cv-side-social__link svg { width: 16px; height: 16px; }
.cv-side-social__link--twitter { color: #1da1f2; }
.cv-side-social__link--facebook_f { color: #3b5998; }
.cv-side-social__link--instagram { color: #e4405f; }
.cv-side-social__link--youtube { color: #f00; }

/* promo card */
.cv-side-promo { display: flex; flex-direction: column; align-items: center; padding: 32px; border-radius: 10px; background-image: linear-gradient(to bottom, var(--cv-primary-light), var(--cv-primary)); box-shadow: 0 12px 20px -6px rgba(145, 101, 247, .5); color: var(--cv-white); text-align: center; }
.cv-side-promo__icon { display: flex; margin-bottom: 16px; color: #9165f7; }
.cv-side-promo__icon svg { width: 28px; height: 28px; }
.cv-site .cv-side-promo__title { margin: 0 0 16px; font-size: 24px; font-weight: 500; line-height: 32px; color: var(--cv-white); }
.cv-side-promo__btn { display: block; width: 100%; padding: 8px 24px; border-radius: 4px; background: var(--cv-white); color: var(--cv-primary); font-size: 14px; font-weight: 500; line-height: 24px; text-align: center; text-transform: uppercase; text-decoration: none; box-sizing: border-box; transition: transform .3s, box-shadow .3s; }
.cv-side-promo__btn:hover { color: var(--cv-primary); transform: translateY(-3px); box-shadow: 0 6px 12px -2px rgba(6, 15, 92, .3); }
.cv-side-promo__btn:focus-visible { outline: 2px solid var(--cv-white); outline-offset: 3px; }
.cv-side-social__link:focus-visible { outline: 2px solid var(--cv-primary); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.cv-featured a, .cv-side-authors__photo, .cv-side-promo__btn { transition: none; }
	.cv-featured a:hover, .cv-featured a:focus-visible, .cv-side-authors a:hover .cv-side-authors__photo, .cv-side-promo__btn:hover { transform: none; }
}
.cv-featured a:focus-visible, .cv-side-authors a:focus-visible, .cv-side-tags a:focus-visible { outline: 2px solid var(--cv-primary); outline-offset: 2px; }
.cv-authorcard { padding: 32px 24px; border: 1px solid var(--cv-grey-3); border-radius: var(--cv-radius); text-align: center; }
.cv-authorcard__photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.cv-site .cv-authorcard__name { margin: 16px 0 4px; font-size: 20px; color: var(--cv-dark); }
.cv-authorcard__role { margin: 0; color: var(--cv-grey-1); font-size: 13px; }
.cv-authorcard__bio { margin: 16px 0 0; color: var(--cv-grey-1); font-size: 13px; line-height: 20px; }

/* Single post */
.cv-posthero { position: relative; padding: calc(var(--cv-header-h) + 20px) 0 0; background: linear-gradient(90deg, var(--cv-primary-light), var(--cv-primary-deep)); }
.cv-posthero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: var(--cv-white); }
.cv-posthero__media { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; border-radius: 8px; overflow: hidden; box-shadow: var(--cv-card-shadow); aspect-ratio: 16 / 9; background: var(--cv-haze-dark); }
.cv-posthero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cv-postlayout { display: grid; grid-template-columns: 205px minmax(0, 1fr) 230px; gap: 15px; /* TOC · article · sidebar, as clientvenue.com */ align-items: start; padding-top: 64px; padding-bottom: 64px; }
.cv-post { min-width: 0; }
.cv-post__date { margin: 0 0 12px; color: var(--cv-grey-1); font-size: 13px; }
.cv-site .cv-post__title { margin: 0 0 24px; font-size: 44px; font-weight: 600; line-height: 54px; color: #2c3e50; }
.cv-post__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--cv-grey-3); font-size: 13px; }
.cv-post__tags span { color: var(--cv-grey-1); font-weight: 500; }
.cv-post__tags a { padding: 4px 10px; border-radius: 4px; background: var(--cv-haze-dark); color: var(--cv-primary); text-decoration: none; }
.cv-toc { position: sticky; top: calc(var(--cv-header-h) + 24px); max-height: calc(100vh - var(--cv-header-h) - 48px); overflow-y: auto; }
.cv-toc[hidden] { display: none; }
.cv-toc__title { margin: 0 0 12px; color: var(--cv-grey-2); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.cv-toc__list { margin: 0; padding: 0; list-style: none; font-size: 12px; line-height: 18px; }
.cv-toc__item { margin-bottom: 10px; }
.cv-toc__item--h3 { padding-left: 14px; }
.cv-toc a { color: var(--cv-grey-1); text-decoration: none; }
.cv-toc a:hover, .cv-toc a.is-active { color: var(--cv-primary); }
.cv-postside { position: sticky; top: calc(var(--cv-header-h) + 24px); display: grid; gap: 24px; }
.cv-postside__author { display: flex; gap: 12px; align-items: center; }
.cv-postside__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.cv-postside__name { display: block; color: var(--cv-dark); font-weight: 500; text-decoration: none; }
.cv-postside__role { display: block; color: var(--cv-grey-1); font-size: 12px; line-height: 16px; }
.cv-promo { position: relative; padding: 28px 22px; border-radius: 8px; background: linear-gradient(180deg, #f2416f 0%, #6a24d6 45%, var(--cv-primary) 100%); color: var(--cv-white); text-align: center; overflow: hidden; box-shadow: 0 10px 24px rgba(10, 4, 255, 0.25); }
.cv-promo__title { margin: 0 0 12px; font-family: var(--cv-font-heading); font-size: 22px; font-weight: 600; }
.cv-promo__text { margin: 0 0 12px; font-family: var(--cv-font-heading); font-size: 13px; font-weight: 500; }
.cv-promo .cv-btn { margin-top: 12px; }
.cv-related { background: var(--cv-white); padding-top: 32px; }

/* Team cards ([cv_team]) */
.cv-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-inline: 15px; }
.cv-team__card { display: flex; flex-direction: column; align-items: center; padding: 48px 24px 0; border: 1px solid var(--cv-grey-3); border-radius: var(--cv-radius); text-align: center; background: var(--cv-white); }
.cv-team__photo { width: 156px; height: 156px; border-radius: 50%; object-fit: cover; }
.cv-site .cv-team__name { margin: 24px 0 8px; font-size: 20px; font-weight: 500; line-height: 28px; color: var(--cv-dark); }
.cv-team__role { margin: 0 0 16px; color: var(--cv-grey-1); }

.cv-team__posts { margin-top: auto; padding: 4px 8px; border: 1px solid var(--cv-grey-3); border-bottom: 0; border-radius: 4px 4px 0 0; color: var(--cv-grey-1); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; }

/* About page pieces */
.cv-gallery { display: grid !important; grid-template-columns: 1fr 1fr; gap: 24px; }
.cv-gallery .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: left top; border-radius: 4px; box-shadow: var(--cv-card-shadow); }
.cv-letter { max-width: calc(100% - 2 * (15px + (100% - 360px) / 12 + 30px)); /* columns 2–11 of the 12-col grid */ margin: 0 auto; color: var(--cv-dark); }
.cv-letter p { margin: 0 0 20px; }

/* Pricing */
.cv-pricing { position: relative; margin-top: -40px; }
.cv-tabs__nav--pill { width: max-content; max-width: 100%; margin: 0 auto 12px; padding: 4px; border: 0; border-radius: 999px; background: rgba(6, 15, 92, 0.08); }
.cv-tabs__nav--pill a { padding: 10px 22px; border-radius: 999px; color: var(--cv-dark); font-weight: 500; }
.cv-tabs__nav--pill a[aria-selected="true"] { background: var(--cv-white); color: var(--cv-primary); box-shadow: 0 2px 8px rgba(6, 15, 92, 0.12); }
.cv-tabs__nav--pill a[aria-selected="true"]::after { display: none; }
.cv-pricing__note { margin: 0 0 40px; text-align: center; color: var(--cv-grey-1); font-size: 12px; }
.cv-plans { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 30px !important; align-items: start;
	padding-inline: 15px; /* .main-grid inset, as clientvenue.com */ }
.cv-plans > .wp-block-column { flex-basis: auto !important; }
.cv-plan { display: flex !important; flex-direction: column; align-items: center; padding: 48px 48px 40px; border-radius: var(--cv-radius); background: var(--cv-white); box-shadow: var(--cv-card-shadow); text-align: center; }
.cv-plan__badge { margin: 0 0 12px; padding: 4px 8px; border-radius: 4px; background: var(--cv-primary); color: var(--cv-white); font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }
.cv-plan__badge { min-height: 26px; line-height: 18px; box-sizing: border-box; } /* same height with or without a label, so plan titles line up */
.cv-plan__badge:empty { visibility: hidden; }
.cv-site .cv-plan__name { margin: 0 0 24px; font-size: 24px; font-weight: 500; line-height: 32px; color: var(--cv-dark); }
.cv-plan .cv-checklist { width: 100%; margin: 0 0 24px !important; }
.cv-plan__price { margin: 0; font-family: var(--cv-font-heading); font-size: 40px; font-weight: 600; line-height: 48px; color: var(--cv-dark); }
.cv-plan__per { margin: 4px 0 16px; color: var(--cv-grey-1); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.cv-plan .wp-block-buttons, .cv-plan .wp-block-button, .cv-plan .wp-block-button__link { width: 100%; }
.cv-faq { display: grid !important; grid-template-columns: minmax(0, 2.7fr) minmax(0, 1fr); gap: 30px !important; align-items: start;
	padding-inline: 15px; /* .main-grid inset */ }
.cv-faq > .wp-block-column { flex-basis: auto !important; }
.cv-faq .cv-acc { width: 100%; padding: 28px 32px; }
.cv-faq .cv-acc > summary { font-size: 18px; font-weight: 500; color: #444; }
.cv-faq .cv-acc p { font-size: 14px; line-height: 22px; }
.cv-helpcard { display: flex !important; flex-direction: column; align-items: center; padding: 40px 28px 32px; border-radius: var(--cv-radius); background: linear-gradient(180deg, var(--cv-primary-light), var(--cv-primary)); color: var(--cv-white); text-align: center; }
.cv-site .cv-helpcard h3 { margin: 0 0 20px; font-size: 24px; line-height: 30px; color: var(--cv-white); }

/* Contact */
.cv-contact { max-width: 1170px; margin: -40px auto 0; padding: 64px 9%; border-radius: var(--cv-radius); background: var(--cv-white); box-shadow: var(--cv-card-shadow); position: relative; z-index: 2; box-sizing: border-box; }
.cv-site .cv-contact__title { margin: 0 0 28px; font-size: 26px; font-weight: 500; color: var(--cv-dark); }
.cv-form--contact textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font: inherit; font-size: 14px; box-sizing: border-box; resize: vertical; }
.cv-form--contact textarea:focus { border-color: var(--cv-primary); outline: 2px solid rgba(10, 4, 255, 0.15); }
.cv-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cv-notice { padding: 14px 16px; border-radius: 4px; font-size: 14px; }
.cv-notice--ok { background: #e9f9ef; color: #146c2e; }
.cv-notice--error { background: #ffdede; color: #8a1414; }

/* 404 */
.cv-404 { padding-block: 48px 96px; }

@media (max-width: 991px) {
	.cv-site .cv-pagehero__title, .cv-site .cv-post__title { font-size: 30px; line-height: 40px; }
	.cv-pagehero { padding: 136px 0 104px; }
	.cv-postgrid { grid-template-columns: repeat(2, 1fr); }
	.cv-archive { grid-template-columns: 1fr; }
	.cv-postlayout { grid-template-columns: 1fr; padding-top: 40px; }
	.cv-toc, .cv-postside { position: static; max-height: none; }
	.cv-toc { order: -1; padding: 16px 20px; border: 1px solid var(--cv-grey-3); border-radius: var(--cv-radius); }
	.cv-postside { grid-template-columns: 1fr 1fr; align-items: center; }
	.cv-team, .cv-plans { grid-template-columns: 1fr 1fr; }
	.cv-faq { grid-template-columns: 1fr; }

}
@media (max-width: 767px) {
	.cv-pagehero { padding: 88px 0 80px; }
	.cv-site .cv-pagehero__title, .cv-site .cv-post__title { font-size: 26px; line-height: 32px; }
	.cv-page-pricing .cv-pagehero { padding-bottom: 96px; }
	.cv-postgrid, .cv-postgrid--2, .cv-team, .cv-plans, .cv-gallery { grid-template-columns: 1fr; }
	.cv-postside { grid-template-columns: 1fr; }
	.cv-plan { padding: 40px 24px 32px; }
	.cv-contact { margin-inline: 8px; padding: 40px 20px; }
}

/* =========================================================
   Blocksy blocks – blog query grid, category nav, breadcrumbs, team
   ========================================================= */
.cv-site .cv-breadcrumb.ct-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 24px; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--cv-grey-1); }
.cv-site .cv-breadcrumb.ct-breadcrumbs a { color: var(--cv-grey-1); text-decoration: none; }
.cv-site .cv-breadcrumb.ct-breadcrumbs a:hover { color: var(--cv-primary); }
.cv-site .cv-breadcrumb .ct-separator { width: 8px; height: 8px; opacity: .6; }

/* team cards (Blocksy About Me) */
.cv-team--blocksy.wp-block-columns { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.cv-team--blocksy .cv-team__card { flex-basis: auto !important; margin: 0 !important; padding: 48px 24px 0; }
.cv-team--blocksy .ct-about-me-block { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
.cv-team--blocksy .ct-media-container { width: 156px !important; height: 156px !important; max-width: none; margin: 0 0 24px !important; overflow: hidden; border-radius: 50% !important; }
.cv-team--blocksy .ct-media-container img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 50%; }
.cv-team--blocksy .ct-about-me-name { margin: 0 0 8px; }
.cv-team--blocksy .ct-about-me-name span { font-family: var(--cv-font-heading, "Fira Sans", sans-serif); font-size: 20px; font-weight: 500; line-height: 28px; color: var(--cv-dark); }
.cv-site .cv-team--blocksy .ct-about-me-name a { display: none !important; }
.cv-site .cv-team--blocksy .ct-about-me-block > * { margin-top: 0 !important; }
.cv-team--blocksy .ct-about-me-text { margin: 0 0 16px; font-size: 14px; color: var(--cv-grey-1); }
.cv-team--blocksy .cv-team__social { gap: 12px !important; justify-content: center; margin: 0 0 24px !important; }
.cv-team--blocksy .cv-team__social .wp-social-link { color: var(--cv-grey-1) !important; background: none !important; }
.cv-team--blocksy .cv-team__social .wp-social-link a { padding: 0; color: inherit !important; }
.cv-team--blocksy .cv-team__social svg { width: 16px; height: 16px; fill: currentColor; }
.cv-team--blocksy .cv-team__social .wp-social-link:hover { color: var(--cv-primary) !important; }
.cv-team--blocksy .wp-block-buttons { justify-content: center; margin: auto 0 0 !important; }
.cv-team--blocksy .wp-block-button { margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: none !important; }
.cv-site .cv-team--blocksy .wp-block-button__link { padding: 4px 8px !important; min-height: 0; border: 1px solid var(--cv-grey-3) !important; border-bottom: 0 !important; border-radius: 4px 4px 0 0 !important; background: #fff !important; color: var(--cv-grey-1) !important; font-size: 10px !important; font-weight: 400; line-height: 16px; letter-spacing: 1.5px; text-transform: uppercase; box-shadow: none !important; }
.cv-site .cv-team--blocksy .wp-block-button__link:hover { color: var(--cv-primary) !important; }
.cv-team--blocksy .cv-team__card { display: flex; flex-direction: column; }

@media (max-width: 991px) {
	.cv-postgrid, .cv-blog-query .ct-query-template-grid, .cv-blog-query .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cv-team--blocksy.wp-block-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cv-catnav a, .cv-catnav-blocks a { padding: 24px 16px; }
	.cv-card-post__media, .cv-site .cv-qcard__media { height: 31vw; }
}
@media (max-width: 767px) {
	.cv-postgrid, .cv-postgrid--2, .cv-blog-query .ct-query-template-grid, .cv-blog-query .wp-block-post-template, .cv-team--blocksy.wp-block-columns { grid-template-columns: 1fr; }
	.cv-card-post, .cv-blog-query .wp-block-post { padding: 20px 4px; }
	.cv-catnav a, .cv-catnav-blocks a { padding: 24px 16px; }
	.cv-archive { gap: 56px; }
}
@media (max-width: 479px) {
	/* the original stacks the categories as a full-width list on small phones */
	.cv-catnav ul, .cv-catnav-blocks .ct-query-template-flex, .cv-catnav-blocks .ct-query-template-grid { display: block !important; border-bottom: 0; }
	.cv-catnav a, .cv-catnav-blocks a { width: 100%; padding: 20px 0; justify-content: center; box-shadow: 0 1px 0 0 var(--cv-grey-3); }
	.cv-catnav a[aria-current="page"] { box-shadow: inset 0 -2px 0 0 var(--cv-primary); }
	.cv-crumbs + .cv-catnav { margin-top: 12px; }
	.cv-card-post__media, .cv-site .cv-qcard__media { height: 58vw; }
}

/* pricing pill toggle stays on one row on all screens */
.cv-site .cv-tabs__nav.cv-tabs__nav--pill { display: flex !important; flex-wrap: nowrap; overflow: visible; }
.cv-site .cv-tabs__nav--pill li { flex: 0 0 auto; }
@media (max-width: 767px) { .cv-site .cv-tabs__nav--pill a { padding: 9px 16px; font-size: 14px; white-space: nowrap; } }

/* 13. Reference grid alignment ------------------------------------------------
   clientvenue.com lays sections out on a 12-column grid (30px gaps) with a
   15px inset inside the 1250px wrapper. Layouts that place content on
   specific columns are mapped here. */
/* Blog: post grids and the archive main/sidebar layout sit inside the
   same 15px inset as the reference (.posts-3-cols / .sidebar-grid). */
.cv-blog-query > .ct-query-template-grid,
.cv-archive { padding-inline: 15px; }

@media (min-width: 992px) {
	/* About → "Our mission": images on columns 1–6, copy on columns 8–12. */
	.cv-mission .cv-split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 30px; }
	.cv-mission .cv-split__media { grid-column: 1 / span 6; }
	.cv-mission .cv-split__body  { grid-column: 8 / span 5; }
}
@media (max-width: 767px) {
	.cv-letter { max-width: none; }
}







/* ==========================================================
   CV alignment fixes — matched against clientvenue.com
   (12-col grid with 15px inset on desktop, 8-col centred
   column on tablet/landscape, 16px gutters on phones)
   ========================================================== */

/* ---- Feature rows (image + copy): copy spans 5 of 12 cols ---- */
@media (min-width: 992px) {
  .cv-split > .cv-split__body { width: calc(83.333% - 5px); max-width: none; justify-self: end; }
  .cv-split--reverse > .cv-split__body { justify-self: start; }
}

/* ---- Tablet & below: 8px grid inset like the reference ---- */
@media (max-width: 991px) {
  .cv-intro { padding-inline: 8px; box-sizing: border-box; }
  .cv-hero__grid, .cv-quote__grid, .cv-features__grid, .cv-integrations__grid, .cv-templates__grid { padding-inline: 8px; }
  /* template cards follow the reference reading order when stacked */
  .cv-templates__grid > * { order: 5; }
  .cv-templates__grid > :nth-child(1) { order: 1; }
  .cv-templates__grid > :nth-child(2) { order: 2; }
  .cv-templates__grid > :nth-child(4) { order: 3; }
  .cv-templates__grid > :nth-child(3) { order: 4; }
}

/* ---- Tablet: stacked content sits in a centred column ---- */
@media (min-width: 768px) and (max-width: 991px) {
  .cv-hero__grid > .cv-hero__copy,
  .cv-quote__grid > .wp-block-column,
  .cv-split > .wp-block-column,
  .cv-split > .cv-split__body { width: 75.25%; max-width: none; justify-self: center; }
  .cv-hero__media img { max-width: 50%; }
}
@media (min-width: 480px) and (max-width: 767px) {
  .cv-hero__grid > .wp-block-column,
  .cv-quote__grid > .wp-block-column,
  .cv-split > .wp-block-column,
  .cv-split > .cv-split__body { width: 73.8%; max-width: none; justify-self: center; }
  .cv-hero__media img { max-width: 100%; }
}

/* ---- Phones ---- */
@media (max-width: 479px) {
  .cv-split__body p:not(.cv-eyebrow) { text-align: center; }
  .cv-split__body .wp-block-buttons { align-self: center; justify-content: center; }
  .cv-announce { flex-wrap: nowrap; justify-content: flex-start; padding: 8px 48px 8px 16px; min-height: 56px; box-sizing: border-box; }
  .cv-announce__text { flex: 0 1 200px; margin: 0; font-size: 12px; line-height: 20px; text-align: left; }
  .cv-announce .cv-btn--tiny { flex: none; margin-left: 12px; padding: 8px 12px; font-size: 10px; white-space: nowrap; }
}

/* ---- About: founder block next to avatar ---- */
.cv-split__body .cv-person { align-items: center; }
.cv-split__body .cv-person p.cv-person__name { margin: 0 0 12px; font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: normal; color: var(--cv-dark); }
.cv-split__body .cv-person p.cv-person__role { margin: -8px 0 0; font-size: 8px; line-height: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cv-grey-1); }

/* ---- Pricing: hero title wraps like the reference ---- */
.cv-page-pricing .cv-pagehero__title { max-width: 570px; margin-inline: auto; }

/* ---- Header & footer: 15px grid inset ---- */
#header [data-row] > .ct-container, #footer [data-row] > .ct-container { padding-inline: 15px; }
#footer [data-row="middle"] > .ct-container { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 30px; }
#footer [data-row="middle"] [data-column="widget-area-2"] { grid-column: span 4; }
#footer [data-row="middle"] [data-column="widget-area-3"] { grid-column: 5 / span 2; }
#footer [data-row="middle"] [data-column="widget-area-4"] { grid-column: 7 / span 2; }
#footer [data-row="middle"] [data-column="widget-area-5"] { grid-column: 9 / span 2; }
#footer .widget-title { margin-bottom: 20px; font-size: 18px; line-height: 24px; }
#footer .widget-menu a { display: inline-block; padding: 6px 0; font-size: 15px; line-height: 24px; }
#footer .cv-footer-tagline { font-size: 15px; line-height: 24px; }
#footer .ct-social-box { gap: 6px; }
#footer .ct-social-box a { width: 30px; height: 30px; border: 1px solid #e6e8f0; }
@media (max-width: 991px) {
  #header [data-row] > .ct-container, #footer [data-row] > .ct-container { padding-inline: 8px; }
  #footer [data-row="middle"] > .ct-container { grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 0; }
  #footer [data-row="middle"] [data-column="widget-area-2"] { grid-column: 1 / -1; margin-bottom: 40px; }
  #footer [data-row="middle"] [data-column="widget-area-3"] { grid-column: 1; }
  #footer [data-row="middle"] [data-column="widget-area-4"] { grid-column: 2; }
  #footer [data-row="middle"] [data-column="widget-area-5"] { grid-column: 1; }
  #footer .widget-menu a { padding: 4px 0; }
}


/* ==========================================================
   Trial sign-up popup (Popup Maker #4673 + CF7 "Signup – Full-featured trial")
   ========================================================== */
#pum-4673.pum-overlay { background-color: rgba(6, 15, 92, 0.6) !important; }
#popmake-4673.pum-container { padding: 0 !important; border: 0 !important; border-radius: var(--cv-radius, 8px) !important; background: transparent !important; box-shadow: none !important; max-height: calc(100dvh - 32px); overflow: auto; }
#popmake-4673 .pum-content { padding: 0; }
#popmake-4673 .pum-content > :last-child { margin-bottom: 0; }
#popmake-4673 .cv-modal__card { position: relative; }
#popmake-4673 .cv-modal__main { position: relative; }
#popmake-4673 .cv-modal__title { color: var(--cv-dark); }
#popmake-4673 .cv-modal__sub { color: var(--cv-dark); }
#popmake-4673 > .pum-close { top: 16px !important; right: 16px !important; left: auto !important; bottom: auto !important; width: 32px !important; height: 32px !important; min-width: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: transparent !important; box-shadow: none !important; color: var(--cv-dark) !important; font-size: 0 !important; line-height: 32px !important; text-shadow: none !important; }
#popmake-4673 > .pum-close::before { content: "\00d7"; font-size: 30px; font-weight: 300; }
#popmake-4673 > .pum-close:hover, #popmake-4673 > .pum-close:focus-visible { background: #f1f2f8 !important; }
.wpcf7 .cv-form input[type="tel"] { width: 100%; min-height: 40px; padding: 8px 24px; border: 1px solid #ccc; border-radius: 4px; background: #fff; color: #333; font-size: 14px; }
.wpcf7 .cv-form .cv-form__hint { display: block; margin-top: 4px; font-size: 10px; line-height: 16px; color: var(--cv-grey-1); }
.wpcf7 .cv-form .cv-form__legal { margin: 0; font-size: 11px; text-align: center; color: var(--cv-grey-1); }
#popmake-4673.pum-container { position: fixed !important; top: 50% !important; left: 50% !important; width: min(1110px, calc(100% - 32px)) !important; height: auto !important; transform: translate(-50%, -50%) !important; }


/* About page: hide theme-template CTA (Gutenberg CTA block is used instead) */
.page-id-198 main.site-main > section.cv-cta { display: none !important; }

/* Announcement bar – close icon */
.cv-announce__close {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: block;
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 0;
  line-height: 0;
  opacity: .9;
  cursor: pointer;
  box-sizing: border-box;
}
.cv-announce__close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, .15);
}
.cv-announce__close::before,
.cv-announce__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
}
.cv-announce__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.cv-announce__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

