/*
 Theme Name:   kavango-25-child
 Theme URI:    http://kavango.eu/kavango-25-child/
 Description:  Twenty Twenty Five Child Theme
 Author:       Jonathan
 Author URI:   https://kavango.nl
 Template:     twentytwentyfive
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  twentytwentyfivechild
*/

/*
 * Table of Contents
 * --------------------------------------------------------------------------
 * 01. Base Elements
 * 02. Gutenberg Components
 * 03. Header
 * 04. Animation Helpers
 * 05. Floating Intake Chat Widget
 * 06. USP Marquee
 * 07. Logo Marquee
 * 08. Feature and Case Study Loops
 * 09. Partners Page
 * 10. Forms and Search
 * 11. Reviews and Utilities
 * 12. Footer
 * 13. Responsive Styles
 * 14. Reduced Motion
 */

/* ==========================================================================
   01. Base Elements
   ========================================================================== */

h1,
h2,
h3,
h4 {
	font-family: "Montserrat", sans-serif;
}



a {
	outline: none;
	appearance: none;
}

button {
	outline: none;
	appearance: none;
}

input {
	outline: none;
}

/* ==========================================================================
   02. Gutenberg Components
   ========================================================================== */

.wp-block-button__link {
	outline: none !important;
	transition:
		background-color 0.3s ease,
		color 0.3s ease;
}

.wp-block-button__link:hover {
	background-color: #ffffff !important;
	color: #e0721b !important;
}

/* ==========================================================================
   03. Header
   ========================================================================== */

.search-icon.wp-block-icon {
	position: relative;
	width: 25px;
	height: 25px;
}

.search-icon.wp-block-icon svg {
	position: absolute;
	left: -30px;
	pointer-events: none;
}

/* ==========================================================================
   04. Animation Helpers
   ========================================================================== */

.gsap-reveal-item {
	will-change: transform, opacity;
}

/* ==========================================================================
   05. Floating Intake Chat Widget
   ========================================================================== */

/* Widget container and Gutenberg column alignment. */
.intake-chat {
	position: relative;
	top: 0;
	right: 0;
	z-index: 9999;
	display: flex;
	justify-content: flex-end;
	width: min(340px, calc(100vw - 32px));
	font-family: inherit;
}

.wp-block-column.banner-chatboat {
	display: flex;
	justify-content: flex-end;
}

/* Launcher button and profile avatar. */
.intake-chat__launcher {
	position: absolute;
	top: -74px;
	right: 0;
	z-index: 3;
	display: block;
	width: 82px;
	height: 82px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	-webkit-tap-highlight-color: transparent;
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease,
		transform 0.3s ease;
}

.intake-chat__avatar {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 5px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 10px 28px rgba(28, 39, 53, 0.2);
}

.intake-chat__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.intake-chat__online-dot {
	position: absolute;
	right: 2px;
	bottom: 8px;
	width: 19px;
	height: 19px;
	border: 3px solid #ffffff;
	border-radius: 50%;
	background: #2eb67d;
	box-sizing: border-box;
}

/* Main widget panel. */
.intake-chat__panel {
	position: relative;
	width: 100%;
	padding: 19px;
	border-radius: 22px;
	background: #ffffff;
	box-shadow: 0 20px 60px rgba(28, 39, 53, 0.24);
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transform-origin: bottom right;
}

.intake-chat__panel::before {
	position: absolute;
	top: -11px;
	right: 49px;
	width: 22px;
	height: 22px;
	background: #ffffff;
	content: "";
	transform: rotate(45deg);
}

.intake-chat__close {
	position: absolute;
	top: 10px;
	left: 12px;
	z-index: 2;
	display: grid;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #8994a3;
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
	place-items: center;
}

.intake-chat__close:hover,
.intake-chat__close:focus-visible {
	background: #f2f4f6;
	color: #1c2735;
}

/* Panel heading and online status. */
.intake-chat__header {
	padding: 0 38px 13px;
	text-align: center;
}

.intake-chat__name {
	display: block;
	margin-bottom: 3px;
	color: #1c2735;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
}

.intake-chat__status {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: #8490a0;
	font-size: 13px;
	line-height: 1.4;
}

.intake-chat__status > span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #2eb67d;
}

/* Animated chatbot conversation. */
.intake-chat__conversation {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 13px;
}

.intake-chat__line {
	position: relative;
	width: 100%;
}

/*
 * Hidden messages remain in the document flow to keep the panel height stable
 * while the conversation animation is running.
 */
.intake-chat__bubble {
	display: inline-block;
	max-width: 90%;
	padding: 9px 11px;
	border-radius: 8px;
	background: #f6f2ed;
	color: #4f5b68;
	font-size: 13px;
	line-height: 1.45;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
}

.intake-chat__bubble--strong {
	color: #263342;
	font-weight: 700;
}

/* Typing indicator overlays the hidden message position. */
.intake-chat__typing {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	gap: 4px;
	width: 46px;
	height: 31px;
	padding: 0 10px;
	border-radius: 8px;
	background: #f6f2ed;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
}

.intake-chat__typing span {
	display: block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #a9a39c;
	animation: intake-chat-dot 0.85s infinite ease-in-out;
}

.intake-chat__typing span:nth-child(2) {
	animation-delay: 0.12s;
}

.intake-chat__typing span:nth-child(3) {
	animation-delay: 0.24s;
}

@keyframes intake-chat-dot {
	0%,
	70%,
	100% {
		opacity: 0.35;
		transform: translateY(0);
	}

	35% {
		opacity: 1;
		transform: translateY(-3px);
	}
}

/* Form submission success state. */
.intake-chat__success {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 30px 24px;
	border-radius: 22px;
	background: #ffffff;
	box-sizing: border-box;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.intake-chat__success-icon {
	display: grid;
	width: 58px;
	height: 58px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: #2eb67d;
	box-shadow: 0 10px 26px rgba(46, 182, 125, 0.25);
	color: #ffffff;
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	place-items: center;
}

.intake-chat__success strong {
	display: block;
	margin-bottom: 7px;
	color: #1c2735;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.intake-chat__success p {
	max-width: 250px;
	margin: 0;
	color: #687484;
	font-size: 14px;
	line-height: 1.55;
}

/* Fluent Forms fields inside the widget. */
.intake-chat__form .ff-el-group {
	margin-bottom: 9px;
}

.intake-chat__form .ff-el-input--label {
	display: none;
}

.intake-chat__form .ff-el-form-control {
	width: 100%;
	min-height: 47px;
	padding: 11px 14px;
	border: 1px solid #dce2e8;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: none;
	color: #263342;
	font: inherit;
	font-size: 14px;
	box-sizing: border-box;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.intake-chat__form .ff-el-form-control::placeholder {
	color: #9aa6b5;
	opacity: 1;
}

.intake-chat__form .ff-el-form-control:focus {
	border-color: #eb8016;
	outline: none;
	box-shadow: 0 0 0 3px rgba(235, 128, 22, 0.14);
}

.intake-chat__form .ff-btn-submit {
	width: 100%;
	min-height: 47px;
	margin: 2px 0 0;
	padding: 11px 18px;
	border: 0;
	border-radius: 12px;
	background: #eb8016;
	box-shadow: 0 10px 24px rgba(235, 128, 22, 0.24);
	color: #ffffff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.intake-chat__form .ff-btn-submit:hover {
	background: #da7110;
	box-shadow: 0 12px 27px rgba(235, 128, 22, 0.3);
	transform: translateY(-1px);
}

.intake-chat__form .ff-btn-submit:active {
	transform: translateY(0);
}

.intake-chat__form .ff-message-success {
	margin: 0;
	padding: 13px;
	border: 1px solid #b8e2d0;
	border-radius: 12px;
	background: #effaf5;
	color: #25684b;
	font-size: 14px;
}

.intake-chat__note {
	margin: 8px 0 0;
	color: #9aa4b0;
	font-size: 11px;
	line-height: 1.4;
	text-align: center;
}

/* Widget state modifiers. */
.intake-chat.is-submitted {
	pointer-events: none;
}

.intake-chat.is-closed .intake-chat__panel {
	display: none;
}

.intake-chat.is-closed .intake-chat__launcher {
	position: relative;
	top: auto;
	right: 0;
	bottom: 0;
}

/* ==========================================================================
   06. USP Marquee
   ========================================================================== */

.single-usp {
	display: flex;
	align-items: center;
	gap: 5px;
}

.usp-marquee {
	position: relative;
	width: 640px;
	max-width: none !important;
	overflow: hidden;
	background: transparent;
}

.usp-marquee__track {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center;
	width: max-content !important;
	max-width: none !important;
	gap: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	will-change: transform;
}

.usp-marquee__set {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	align-items: center;
	gap: 30px;
}

.usp-marquee__item {
	position: relative;
}

.usp-marquee__item p {
	margin: 0;
	color: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.usp-marquee__item img,
.usp-marquee__item svg {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	object-fit: contain;
}

/* Optional separator between USP items. */
.usp-marquee__item::after {
	position: absolute;
	right: 0;
	width: 1px;
	height: 22px;
	background: rgba(255, 255, 255, 0.22);
	content: "";
}

/* ==========================================================================
   07. Logo Marquee
   ========================================================================== */

.logo-marquee {
	--logo-gap: 72px;
	--logo-width: 150px;
	--logo-height: 75px;

	position: relative;
	width: 100%;
	max-width: none !important;
	overflow: hidden;
	padding: 34px 0;
	background: transparent;
}

/* Soft edge fades. */
.logo-marquee::before,
.logo-marquee::after {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 2;
	width: 70px;
	content: "";
	pointer-events: none;
}

.logo-marquee::before {
	left: 0;
	background: linear-gradient(
		to right,
		var(--wp--preset--color--base, #ffffff),
		transparent
	);
}

.logo-marquee::after {
	right: 0;
	background: linear-gradient(
		to left,
		var(--wp--preset--color--base, #ffffff),
		transparent
	);
}

.logo-marquee__track {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center;
	width: max-content !important;
	max-width: none !important;
	gap: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	will-change: transform;
	overflow: hidden;
}

.logo-marquee__set {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: var(--logo-gap);
	padding-right: var(--logo-gap);
	box-sizing: border-box;
}

.logo-marquee__item {
	display: flex !important;
	flex: 0 0 var(--logo-width) !important;
	align-items: center;
	justify-content: center;
	width: var(--logo-width);
	margin: 0 !important;
	padding: 0 !important;
}

/* Gutenberg Image block reset. */
.logo-marquee__item.wp-block-image {
	margin: 0 !important;
}

.logo-marquee__item img {
	display: block;
	width: auto !important;
	max-width: 100%;
	height: var(--logo-height) !important;
	max-height: var(--logo-height);
	margin: 0 auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.48;
	transition:
		filter 0.3s ease,
		opacity 0.3s ease,
		transform 0.3s ease;
}

.logo-marquee__item:hover img {
	filter: grayscale(1);
	opacity: 0.72;
	transform: scale(1.03);
}

/* ==========================================================================
   08. Feature and Case Study Loops
   ========================================================================== */

.feature-loop a {
	position: relative;
	overflow: hidden;
}

.feature-loop a img {
	transform: scale(1);
	transition:
		opacity 0.3s ease,
		transform 0.3s ease;
}

.feature-loop a:hover img {
	opacity: 0.9;
	transform: scale(1.1);
}

.custom-case-loop li {
	position: relative;
}

.custom-case-loop .case-overlay {
	position: absolute;
	bottom: 0;
	width: 100%;
	padding: 20px;
}

.custom-case-loop figure,
.custom-case-loop .wp-block-post-title {
	margin: 0;
}

.custom-case-loop figure a {
	position: relative;
}

.custom-case-loop figure a::before {
	position: absolute;
	width: 100%;
	height: 100%;
	background: #000000;
	content: "";
	opacity: 0.3;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.custom-case-loop li:hover figure a::before {
	opacity: 0;
}

.custom-case-loop li img {
	transition: 0.3s ease;
}

/* ==========================================================================
   09. Partners Page
   ========================================================================== */

.partners-images figure {
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-height: 100px;
}

.custom-accordion button span {
	text-decoration: none !important;
}

.custom-accordion button span:hover {
	color: #ea7411;
}

/* ==========================================================================
   10. Forms and Search
   ========================================================================== */

.contact-form .fluentform {
	width: 100%;
}

.contact-form .fluentform input,
.contact-form .fluentform textarea {
	border: 0;
	border-bottom: 1px solid #567288;
	border-radius: 0;
	color: #567288;
}

.banner-search .wp-block-search__inside-wrapper {
	gap: 0 !important;
	padding: 0;
	border: 0;
}

.banner-search .wp-block-search__inside-wrapper button {
	margin: 0;
	border: 1px solid #f56c6c;
	background: #ea7411;
	color: #ffffff;
}

.banner-search .wp-block-search__inside-wrapper button:hover {
	background: #ea7411;
	opacity: 0.7;
}

/* ==========================================================================
   11. Reviews and Utilities
   ========================================================================== */

.post-social .wp-social-link {
	border-radius: 0;
}

.review-details figure {
	width: 95px !important;
	border-radius: 50%;
	overflow: hidden;
}

.review-details figure img {
	width: 100%;
	height: 100%;
}

.single-review .italic {
	min-height: 120px;
}

.italic {
	font-style: italic;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */

footer {
	margin: 0;
}

/*

/* Hide the Gravity Forms heading */
.intake-chat__panel .gform_heading {
	display: none !important;
}

/* Hide only the main field labels */
.intake-chat__panel .gfield > .gfield_label,
.intake-chat__panel .gfield > legend.gfield_label {
	display: none !important;
}

/* Hide normal field descriptions, but keep validation errors visible */
.intake-chat__panel .gfield_description:not(.validation_message):not(.gfield_validation_message) {
	display: none !important;
}

/* Remove vertical gaps between Gravity Forms fields */
.intake-chat__panel .gform_wrapper .gform_fields {
	gap: 0 !important;
	row-gap: 0 !important;
	grid-row-gap: 0 !important;
}

/* Remove any remaining field spacing */
.intake-chat__panel .gform_wrapper .gfield {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}
==========================================================================
   13. Responsive Styles
   ========================================================================== */

/* Large laptops and smaller desktops. */
@media (max-width: 1350px) {
	.usp-marquee {
		width: 700px;
	}
}

@media (max-width: 1200px) {
	.usp-marquee {
		width: 500px;
	}
}

/* Tablets. */
@media (max-width: 992px) {
	.usp-marquee {
		width: 340px;
	}

	.usp-marquee__item {
		min-width: auto;
		padding: 0;
	}
}

@media (max-width: 900px) {
	.logo-marquee {
		--logo-gap: 54px;
		--logo-width: 130px;
		--logo-height: 42px;

		padding: 29px 0;
	}

	.logo-marquee::before,
	.logo-marquee::after {
		width: 45px;
	}
}

/* Mobile Gutenberg layout adjustments. */
@media (max-width: 767px) {
	.site-header-main button svg {
		width: 39px;
		height: auto;
	}

	.site-header-main .wp-block-group .wp-block-buttons {
		display: none;
	}

	.mobile-small-height {
		height: 20px !important;
		margin: 0 !important;
	}

	.center-in-mobile {
		align-items: center;
		justify-content: center;
		text-align: center;
	}

	.hero .wp-block-columns {
		flex-direction: column-reverse;
	}

	.search-after-text {
		position: relative;
		left: -10px;
		min-width: 75px;
	}

	.hero-after-group .wp-block-columns {
		padding: 7px !important;
	}

	.checkmark-content {
		margin-top: 20px !important;
	}

	.checkmark-content svg {
		max-width: 50px;
	}

	.carousel-section,
	.hover-vide-section {
		padding: 50px 20px !important;
	}

	.banner-chatboat {
		display: none !important;
	}

	/* Mobile section spacing utilities. */
	.mobile-hero-after-padding {
		padding: 30px 15px !important;
	}

	.mobile-section {
		padding: 40px 20px !important;
	}

	.faq-outside-hero {
		padding: 0 0 20px !important;
	}

	.hero-width-after-video {
		padding-bottom: 250px !important;
	}

	.hero-after-video {
		margin-top: -220px !important;
	}

	.highlighted-section,
	.highlighted-section-inner {
		padding: 20px !important;
	}

	.mobile-padding-zero {
		padding: 0 !important;
	}

	.single-review {
		padding: 30px 25px !important;
	}
}

@media (max-width: 600px) {
	.usp-marquee {
		width: 100%;
		margin-bottom: 15px !important;
	}

	.logo-marquee {
		--logo-gap: 38px;
		--logo-width: 110px;
		--logo-height: 35px;

		padding: 25px 0;
	}

	.logo-marquee::before,
	.logo-marquee::after {
		width: 25px;
	}
}

/* Small mobile devices. */
@media (max-width: 480px) {
	.intake-chat {
		right: 0;
		bottom: 16px;
		width: calc(100vw - 40px);
	}

	.intake-chat__launcher {
		top: -62px;
		right: 14px;
		width: 70px;
		height: 70px;
	}

	.intake-chat__panel {
		padding: 16px;
		border-radius: 19px;
	}

	.intake-chat__panel::before {
		right: 38px;
	}

	.intake-chat__success {
		padding: 25px 20px;
		border-radius: 19px;
	}

	.intake-chat__success-icon {
		width: 52px;
		height: 52px;
		font-size: 27px;
	}

	.intake-chat.is-closed .intake-chat__launcher {
		right: 16px;
		bottom: 16px;
	}
}

/* ==========================================================================
   14. Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.gsap-reveal-item {
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
	}

	.intake-chat__typing span {
		animation: none;
	}

	.intake-chat__launcher,
	.intake-chat__panel {
		transform: none !important;
	}

	.usp-marquee__track {
		transform: none !important;
	}

	.logo-marquee {
		overflow-x: hidden;
	}

	.logo-marquee__track {
		
		will-change: auto;
	}
}

/* KAVANGO EDITS */

a:hover {
	text-decoration: none;
}