/*
Theme Name: Consulting Grove Child
Theme URI: https://civetholdings.com
Description: Child theme for Civet Holdings. Holds all custom styling, template overrides, and custom functionality for civetholdings.com.
Author: Civet Holdings LLC
Template: consultinggrove
Version: 1.1.1
Text Domain: consultinggrove-child
*/

/* Custom styles go below this line. */

/* Responsive: stop hidden off-canvas parts (the WooCommerce mini-cart panel in the header)
   from making the page scroll sideways on phones and tablets. "clip" keeps sticky headers working. */
html,
body {
	overflow-x: clip;
}

/* ---------------------------------------------------------------------------
   About, Real Estate and Intellectual Property pages.
   Text pages without photos; colors come from the site palette
   (blue #3559C7, black #0C0C0C, light gray #F4F4F4, white).
   --------------------------------------------------------------------------- */

/* The banner behind the page title is a plain dark band on these pages (no photo). */
body.civet-text-page main.wp-block-cover {
	background: #0c0c0c;
}

body.civet-text-page main.wp-block-cover .wp-block-cover__image-background {
	display: none;
}

.civet-page {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 24px 0 72px;
	color: #0c0c0c;
}

.civet-page p {
	margin: 0 0 18px;
	font-size: 17px;
	line-height: 1.7;
	max-width: 78ch;
}

.civet-page .civet-h2 {
	margin: 0 0 10px;
	font-size: clamp(26px, 2.4vw, 34px);
	font-weight: 600;
	line-height: 1.2;
	color: #0c0c0c;
}

.civet-section {
	margin-top: 64px;
	padding-top: 40px;
	border-top: 1px solid rgba(12, 12, 12, 0.1);
}

.civet-intro {
	margin-top: 24px;
}

.civet-page .civet-sub {
	margin: 0 0 22px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	color: #3559c7;
}

.civet-page .civet-lead {
	font-size: clamp(19px, 1.6vw, 22px);
	line-height: 1.6;
	max-width: 62ch;
}

.civet-page .civet-label {
	margin: 0 0 12px;
	font-weight: 700;
}

/* Pull-out statements. */
.civet-callout {
	margin: 26px 0 22px;
	padding: 24px 30px;
	border-left: 5px solid #3559c7;
	border-radius: 0 10px 10px 0;
	background: #f4f4f4;
}

.civet-callout p {
	margin: 0;
	font-size: clamp(18px, 1.5vw, 21px);
	font-weight: 600;
	line-height: 1.55;
	max-width: none;
}

.civet-intro + .civet-callout,
.civet-page > .civet-callout {
	margin-top: 32px;
}

/* Short lists shown as tags. */
.civet-page ul.civet-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 4px 0 24px;
	padding: 0;
	list-style: none;
}

.civet-page ul.civet-chips li {
	margin: 0;
	padding: 8px 16px;
	border: 1px solid rgba(53, 89, 199, 0.25);
	border-radius: 999px;
	background: rgba(53, 89, 199, 0.06);
	font-size: 15.5px;
	line-height: 1.4;
	color: #0c0c0c;
}

/* Questions list. */
.civet-page ul.civet-checks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 28px;
	margin: 4px 0 24px;
	padding: 0;
	list-style: none;
}

.civet-page ul.civet-checks li {
	position: relative;
	margin: 0;
	padding: 4px 0 4px 30px;
	font-size: 16.5px;
	line-height: 1.5;
}

.civet-page ul.civet-checks li::before {
	content: "";
	position: absolute;
	top: 9px;
	left: 4px;
	width: 7px;
	height: 12px;
	border-right: 3px solid #3559c7;
	border-bottom: 3px solid #3559c7;
	transform: rotate(40deg);
}

/* Business philosophy and commercialization cards. */
.civet-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 8px 0 24px;
}

.civet-card {
	padding: 26px 24px;
	border: 1px solid rgba(12, 12, 12, 0.1);
	border-top: 4px solid #3559c7;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(12, 12, 12, 0.06);
}

.civet-card h3 {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	color: #0c0c0c;
}

.civet-card p {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.65;
}

/* Numbered process. */
.civet-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 8px 0 24px;
	counter-reset: civet-step;
}

.civet-step {
	position: relative;
	padding: 24px 24px 24px 24px;
	border-radius: 10px;
	background: #f4f4f4;
	counter-increment: civet-step;
}

.civet-step::before {
	content: counter(civet-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: #3559c7;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
}

.civet-step h3 {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 600;
	color: #0c0c0c;
}

.civet-step p {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.6;
}

/* Closing band. */
.civet-cta {
	margin-top: 72px;
	padding: 56px 40px;
	border-radius: 14px;
	background: #0c0c0c;
	color: #fff;
	text-align: center;
}

.civet-cta p {
	margin-right: auto;
	margin-left: auto;
	color: #fff;
}

.civet-page .civet-cta .civet-cta-name {
	margin: 0 0 8px;
	font-size: clamp(26px, 3vw, 38px);
	color: #fff;
}

.civet-page .civet-cta .civet-cta-tag {
	display: inline-block;
	margin: 0 0 22px;
	padding-bottom: 12px;
	border-bottom: 3px solid #3559c7;
	font-size: clamp(17px, 1.6vw, 21px);
	font-weight: 600;
}

.civet-cta .wp-block-buttons {
	justify-content: center;
	margin-top: 10px;
}

.civet-btn .wp-block-button__link {
	padding: 14px 30px;
	border-radius: 6px;
	background: #3559c7;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.civet-btn .wp-block-button__link:hover,
.civet-btn .wp-block-button__link:focus-visible {
	background: #031e6f;
	color: #fff;
}

@media (max-width: 900px) {
	.civet-cards,
	.civet-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.civet-page {
		padding-bottom: 48px;
	}

	.civet-section {
		margin-top: 48px;
		padding-top: 32px;
	}

	.civet-cards,
	.civet-steps,
	.civet-page ul.civet-checks {
		grid-template-columns: minmax(0, 1fr);
	}

	.civet-callout {
		padding: 20px;
	}

	.civet-cta {
		padding: 40px 22px;
	}
}

/* Phones: give the text more room (the page frame has wide side padding). */
@media (max-width: 640px) {
	body.civet-text-page .wp-site-blocks > .wp-block-group.has-global-padding {
		padding-right: 12px;
		padding-left: 12px;
	}

	body.civet-text-page main.wp-block-group {
		padding-right: 18px !important;
		padding-left: 18px !important;
	}
}
