/*
 * Ontrack Conversion Kit
 * Inherits the site's typography; only colour, spacing and structure are set
 * here so forms and calls to action sit inside the existing design rather than
 * competing with it.
 */

.ock-form-wrap,
.ock-actions-grid,
.ock-contact-bar,
.ock-projects,
.ock-services {
	--ock-brand: #08aa33;
	--ock-brand-dark: #068029;
	--ock-ink: #1b1d20;
	--ock-body: #4a4f55;
	--ock-line: #dfe3e6;
	--ock-field: #ffffff;
	--ock-surface: #f6f8f9;
	--ock-radius: 6px;
	--ock-focus: #0b6fd0;
	color: var(--ock-body);
	box-sizing: border-box;
}

.ock-form-wrap *,
.ock-actions-grid *,
.ock-contact-bar *,
.ock-projects *,
.ock-services * {
	box-sizing: inherit;
}

/* ---------------------------------------------------------------- Buttons */

.ock-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 52px;
	padding: 14px 28px;
	border: 2px solid transparent;
	border-radius: var(--ock-radius);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .01em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.ock-btn--primary,
.ock-btn--solid {
	background: var(--ock-brand);
	border-color: var(--ock-brand);
	color: #fff;
}

.ock-btn--primary:hover,
.ock-btn--primary:focus,
.ock-btn--solid:hover,
.ock-btn--solid:focus {
	background: var(--ock-brand-dark);
	border-color: var(--ock-brand-dark);
	color: #fff;
}

.ock-btn--ghost {
	background: transparent;
	border-color: var(--ock-line);
	color: var(--ock-ink);
}

.ock-btn--ghost:hover,
.ock-btn--ghost:focus {
	border-color: var(--ock-ink);
	color: var(--ock-ink);
}

.ock-btn--whatsapp {
	background: #25d366;
	border-color: #25d366;
	color: #06331a;
}

.ock-btn--whatsapp:hover,
.ock-btn--whatsapp:focus {
	background: #1eb455;
	border-color: #1eb455;
	color: #06331a;
}

.ock-btn--link {
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ock-brand-dark);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ock-btn--link:hover,
.ock-btn--link:focus {
	color: var(--ock-ink);
}

.ock-btn:focus-visible,
.ock-form input:focus-visible,
.ock-form select:focus-visible,
.ock-form textarea:focus-visible,
.ock-filter:focus-visible {
	outline: 3px solid var(--ock-focus);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ Forms */

.ock-form-wrap {
	max-width: 820px;
}

.ock-form-wrap--compact {
	max-width: 620px;
}

.ock-form__title {
	margin: 0 0 .4em;
	color: var(--ock-ink);
	line-height: 1.2;
}

.ock-form__intro {
	margin: 0 0 32px;
	font-size: 17px;
	line-height: 1.65;
	max-width: 62ch;
}

.ock-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 24px;
}

.ock-field {
	display: flex;
	flex-direction: column;
	grid-column: 1 / -1;
}

.ock-field--half {
	grid-column: span 1;
}

.ock-field label {
	margin-bottom: 8px;
	color: var(--ock-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.ock-req {
	color: #c0392b;
}

.ock-form input[type="text"],
.ock-form input[type="email"],
.ock-form input[type="tel"],
.ock-form input[type="url"],
.ock-form input[type="date"],
.ock-form input[type="number"],
.ock-form select,
.ock-form textarea {
	width: 100%;
	min-height: 52px;
	padding: 13px 16px;
	border: 1px solid var(--ock-line);
	border-radius: var(--ock-radius);
	background: var(--ock-field);
	color: var(--ock-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.45;
	transition: border-color .15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ock-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%234a4f55' d='M1.4 0 7 5.6 12.6 0 14 1.4 7 8.4 0 1.4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 44px;
}

.ock-form textarea {
	min-height: 140px;
	resize: vertical;
}

.ock-form input:hover,
.ock-form select:hover,
.ock-form textarea:hover {
	border-color: #b9c0c6;
}

.ock-form input[type="file"] {
	width: 100%;
	padding: 16px;
	border: 1px dashed var(--ock-line);
	border-radius: var(--ock-radius);
	background: var(--ock-surface);
	font-size: 15px;
}

.ock-help {
	margin: 8px 0 0;
	color: #6b7278;
	font-size: 14px;
	line-height: 1.5;
}

.ock-field--conditional {
	display: none;
}

.ock-field--conditional.is-visible {
	display: flex;
}

.ock-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ock-actions {
	margin-top: 28px;
}

.ock-consent {
	margin: 14px 0 0;
	color: #6b7278;
	font-size: 14px;
}

.ock-errors {
	margin: 0 0 28px;
	padding: 18px 22px;
	border-left: 4px solid #c0392b;
	background: #fdf3f2;
	color: #7d2019;
	border-radius: 0 var(--ock-radius) var(--ock-radius) 0;
}

.ock-errors p,
.ock-errors ul {
	margin: 0;
}

.ock-errors ul {
	margin-top: 8px;
	padding-left: 20px;
}

/* ---------------------------------------------------------------- Success */

.ock-success {
	padding: 40px 36px;
	border: 1px solid var(--ock-line);
	border-top: 4px solid var(--ock-brand);
	border-radius: var(--ock-radius);
	background: var(--ock-surface);
}

.ock-success__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 20px;
	border-radius: 50%;
	background: var(--ock-brand);
	color: #fff;
	font-size: 26px;
	line-height: 1;
}

.ock-success__heading {
	margin: 0 0 12px;
	color: var(--ock-ink);
	line-height: 1.25;
}

.ock-success__body {
	margin: 0 0 24px;
	max-width: 60ch;
	font-size: 17px;
	line-height: 1.65;
}

.ock-success__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

/* ----------------------------------------------------------- Action cards */

.ock-actions-grid__heading {
	margin: 0 0 28px;
	color: var(--ock-ink);
}

.ock-actions-grid__items {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ock-cols-2 .ock-actions-grid__items {
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.ock-cols-4 .ock-actions-grid__items {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ock-action-card {
	display: flex;
	flex-direction: column;
	padding: 28px 26px;
	border: 1px solid var(--ock-line);
	border-radius: var(--ock-radius);
	background: #fff;
	transition: border-color .18s ease, transform .18s ease;
}

.ock-action-card:hover {
	border-color: var(--ock-brand);
	transform: translateY(-2px);
}

.ock-action-card h3 {
	margin: 0 0 10px;
	color: var(--ock-ink);
	font-size: 20px;
	line-height: 1.3;
}

.ock-action-card p {
	margin: 0 0 20px;
	flex: 1 1 auto;
	font-size: 15px;
	line-height: 1.6;
}

/* ----------------------------------------------------------- Contact bar */

.ock-contact-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ------------------------------------------------------------ Mobile bar */

.ock-mobile-bar {
	display: none;
}

@media (max-width: 782px) {
	.ock-mobile-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		display: grid;
		grid-template-columns: 1fr 1fr 1.4fr;
		border-top: 1px solid var(--ock-line);
		background: #fff;
		box-shadow: 0 -2px 12px rgba(0, 0, 0, .08);
	}

	.ock-mobile-bar__item {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		min-height: 58px;
		padding: 8px 6px;
		color: var(--ock-ink);
		font-size: 14px;
		font-weight: 600;
		text-align: center;
		text-decoration: none;
	}

	.ock-mobile-bar__item--wa {
		color: #128c3e;
	}

	.ock-mobile-bar__item--cta {
		background: var(--ock-brand);
		color: #fff;
	}

	body {
		padding-bottom: 58px;
	}
}

/* -------------------------------------------------------------- Projects */

.ock-projects__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}

.ock-filter {
	padding: 10px 18px;
	min-height: 44px;
	border: 1px solid var(--ock-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ock-body);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.ock-filter:hover {
	border-color: var(--ock-ink);
}

.ock-filter.is-active {
	background: var(--ock-ink);
	border-color: var(--ock-ink);
	color: #fff;
}

.ock-projects__grid {
	display: grid;
	gap: 26px;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.ock-project {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ock-line);
	border-radius: var(--ock-radius);
	background: #fff;
}

.ock-project[hidden] {
	display: none;
}

.ock-project__media img {
	display: block;
	width: 100%;
	height: 210px;
	object-fit: cover;
}

.ock-project__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 24px;
}

.ock-project__title {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.3;
}

.ock-project__title a {
	color: var(--ock-ink);
	text-decoration: none;
}

.ock-project__title a:hover {
	color: var(--ock-brand-dark);
}

.ock-project__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 14px;
	font-size: 14px;
	line-height: 1.5;
}

.ock-project__meta strong {
	color: var(--ock-ink);
}

.ock-project__excerpt {
	margin: 0 0 18px;
	flex: 1 1 auto;
	font-size: 15px;
	line-height: 1.6;
}

/* -------------------------------------------------------------- Services */

.ock-services {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.ock-service-card {
	display: flex;
	flex-direction: column;
	padding: 28px 26px;
	border: 1px solid var(--ock-line);
	border-left: 3px solid var(--ock-brand);
	border-radius: var(--ock-radius);
	background: #fff;
	text-decoration: none;
	transition: border-color .18s ease, transform .18s ease;
}

.ock-service-card:hover {
	transform: translateY(-2px);
}

.ock-service-card h3 {
	margin: 0 0 10px;
	color: var(--ock-ink);
	font-size: 20px;
	line-height: 1.3;
}

.ock-service-card p {
	margin: 0 0 18px;
	flex: 1 1 auto;
	color: var(--ock-body);
	font-size: 15px;
	line-height: 1.6;
}

.ock-service-card__go {
	color: var(--ock-brand-dark);
	font-weight: 600;
	font-size: 15px;
}

/* ------------------------------------------------------------- Responsive */

@media (max-width: 640px) {
	.ock-grid {
		grid-template-columns: 1fr;
	}

	.ock-field--half {
		grid-column: 1 / -1;
	}

	.ock-success {
		padding: 30px 22px;
	}

	.ock-btn {
		width: 100%;
	}

	.ock-contact-bar .ock-btn,
	.ock-success__contact .ock-btn {
		width: 100%;
	}

	.ock-btn--link {
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ock-btn,
	.ock-action-card,
	.ock-service-card {
		transition: none;
	}

	.ock-action-card:hover,
	.ock-service-card:hover {
		transform: none;
	}
}

/* ------------------------------------------------- Injected page sections */

.ock-injected,
.ock-routes,
.ock-service-detail {
	--ock-brand: #08aa33;
	--ock-brand-dark: #068029;
	--ock-ink: #1b1d20;
	--ock-body: #4a4f55;
	--ock-line: #dfe3e6;
	--ock-surface: #f6f8f9;
	--ock-radius: 6px;
}

.ock-injected {
	max-width: 1200px;
	margin: 64px auto 0;
	padding: 56px 20px 8px;
	border-top: 1px solid var(--ock-line);
}

.ock-routes__intro {
	margin-bottom: 32px;
	max-width: 62ch;
}

.ock-routes__intro h2 {
	margin: 0 0 10px;
	color: var(--ock-ink);
}

.ock-routes__intro p {
	margin: 0;
	font-size: 17px;
	line-height: 1.65;
}

.ock-routes__direct {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	margin-top: 40px;
	padding-top: 36px;
	border-top: 1px solid var(--ock-line);
}

.ock-routes__block h3 {
	margin: 0 0 10px;
	color: var(--ock-ink);
	font-size: 18px;
}

.ock-routes__block p {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 1.6;
}

/* -------------------------------------------------------- Service detail */

.ock-service-detail {
	margin-top: 40px;
}

.ock-service-detail h2 {
	margin: 36px 0 12px;
	color: var(--ock-ink);
	line-height: 1.25;
}

.ock-service-detail h2:first-child {
	margin-top: 0;
}

.ock-service-detail p {
	margin: 0 0 16px;
	font-size: 17px;
	line-height: 1.7;
	max-width: 68ch;
}

.ock-service-detail__list {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	max-width: 68ch;
}

.ock-service-detail__list li {
	position: relative;
	padding: 0 0 0 26px;
	margin-bottom: 10px;
	font-size: 16px;
	line-height: 1.6;
}

.ock-service-detail__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .62em;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--ock-brand);
}
