/*
 * FUBU Africa – custom components & overrides
 * Loaded after the Porto theme, the Business Consulting 2 demo CSS and the
 * FUBU Africa skin. Colours come from the CSS variables defined in
 * css/skins/skin-fubu-africa.css – change brand colours there, not here.
 */

/* ---------------------------------------------------------------
 * Base / accessibility
 * ------------------------------------------------------------- */
body {
	color: var(--default);
	background-color: #fff;
}

/* The template's angled section decorations are 200% wide; clip them so no
   horizontal scrolling is possible on touch devices. */
.body {
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--secondary);
}

/* Porto sets h3 to uppercase; FUBU content headings use sentence/title case */
main h3,
main .card-title {
	text-transform: none;
	letter-spacing: -0.2px;
}

a {
	color: var(--primary);
}

a:hover,
a:focus {
	color: var(--primary-200);
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 100000;
	padding: 12px 20px;
	background: var(--secondary);
	color: #fff !important;
	font-weight: 600;
	border-radius: 0 0 4px 4px;
	text-decoration: none;
	transition: top .15s ease;
}

.skip-link:focus {
	top: 0;
}

main:focus {
	outline: none;
}

:focus-visible {
	outline: 3px solid var(--secondary) !important;
	outline-offset: 2px;
}

.bg-color-secondary :focus-visible,
.bg-color-primary :focus-visible,
.are-you-looking-for :focus-visible,
.btn-primary:focus-visible,
.custom-button-header-top:focus-visible {
	outline-color: #fff !important;
	box-shadow: 0 0 0 6px var(--secondary) !important;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
	box-shadow: 0 0 0 3px var(--primary-rgba-30) !important;
	outline: 2px solid var(--primary) !important;
	outline-offset: 0;
}

abbr[title] {
	text-decoration: none;
	cursor: help;
}

/* Icon circles in header/footer/CTA (template used a grey #dde2ea) */
.header-top .header-top-phone > span,
.header-top .header-top-email > span,
.header-top .header-top-opening-hours > span,
.are-you-looking-for .are-you-looking-for-phone > span {
	background-color: var(--quaternary-100);
}

.are-you-looking-for .are-you-looking-for-phone > span {
	background-color: #fff;
}

/* Template backgrounds that were neutral greys → brand-tinted surfaces */
.custom-bg-color-lighter-grey {
	background: #F7FAFD !important;
}

.custom-form-style-1 .form-control {
	background: #F3F7FB !important;
	border: 1px solid var(--quaternary-200) !important;
	color: var(--tertiary);
}

/* ---------------------------------------------------------------
 * Logo lock-up (symbol image + text). Replace with the official
 * horizontal logo when available – see README.
 * ------------------------------------------------------------- */
.fubu-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none !important;
}

.fubu-logo img {
	width: 46px;
	height: 46px;
	object-fit: contain;
}

.fubu-logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.fubu-logo-name {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: 1.3rem;
	letter-spacing: -0.3px;
	color: var(--secondary);
}

.fubu-logo-sub {
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .5px;
	color: var(--primary);
}

#header .header-logo {
	margin: 12px 0;
}

/* ---------------------------------------------------------------
 * Header / navigation
 * ------------------------------------------------------------- */
#header .header-nav-main nav > ul > li > a.active,
#header .header-nav-main nav > ul > li > a[aria-current="page"] {
	color: var(--primary) !important;
}

#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a.active {
	color: var(--primary);
}

@media (min-width: 992px) {
	#header .header-nav-main nav > ul > li.dropdown:focus-within > .dropdown-menu {
		opacity: 1;
		visibility: visible;
		top: 100%;
		transform: translate3d(0, 0, 0);
	}
}

.header-top .header-top-button-make-as-appoitment a:hover {
	background-color: var(--primary-200) !important;
}

/* ---------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------- */
.fubu-hero .fubu-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	/* Keeps the dark headline readable on any photograph you add */
	background: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .80) 45%, rgba(255, 255, 255, .15) 75%, rgba(255, 255, 255, 0) 100%);
}

@media (max-width: 991px) {
	.fubu-hero .fubu-hero-overlay {
		background: rgba(255, 255, 255, .82);
	}
}

.fubu-hero h1,
.fubu-hero .h1 {
	color: var(--secondary) !important;
}

.fubu-btn-outline {
	background: transparent !important;
	color: var(--secondary) !important;
	border: 2px solid var(--secondary) !important;
}

.fubu-btn-outline:hover,
.fubu-btn-outline:focus {
	background: var(--secondary) !important;
	color: #fff !important;
}

/* Template slider decorations used #fafafc – match the light surfaces */
.custom-slider-container:before,
.custom-slider-container:after,
.col-img-our-services:before,
.col-img-our-services:after,
.real-word-stories:before,
.custom-page-header:before,
.custom-page-header:after,
#footer:before {
	background-color: #F7FAFD;
}

/* ---------------------------------------------------------------
 * Cards & icons
 * ------------------------------------------------------------- */
.fubu-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin-bottom: 30px;
	border-radius: 50%;
	background: var(--quaternary-100);
	color: var(--primary);
	font-size: 30px;
	position: relative;
}

.fubu-card-icon:after {
	content: "";
	position: absolute;
	right: -4px;
	bottom: 4px;
	width: 16px;
	height: 16px;
	border-radius: 3px;
	background: var(--fubu-accent);
	transform: rotate(20deg);
	opacity: .85;
}

.fubu-card-icon-sm {
	width: 56px;
	height: 56px;
	font-size: 22px;
	margin-bottom: 0;
}

.fubu-card-icon-sm:after {
	width: 12px;
	height: 12px;
}

.custom-cards .cards-container .card .card-body .card-title {
	font-size: 22px;
}

.fubu-value-card,
.fubu-region-card,
.fubu-cap-card {
	background: #fff;
	border: 1px solid var(--quaternary-100);
	border-top: 3px solid var(--primary);
	padding: 28px 24px;
	transition: box-shadow .25s ease, transform .25s ease;
}

.fubu-value-card:hover,
.fubu-region-card:hover,
.fubu-cap-card:hover {
	box-shadow: 0 12px 30px rgba(11, 60, 97, .10);
	transform: translateY(-3px);
}

.fubu-value-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--quaternary-100);
	color: var(--primary);
	font-size: 20px;
}

.fubu-cap-card {
	position: relative;
	padding-left: 60px;
}

.fubu-cap-card > i {
	position: absolute;
	left: 22px;
	top: 31px;
	color: var(--primary);
	font-size: 22px;
}

/* Project cards */
.fubu-project-card {
	transition: box-shadow .25s ease, transform .25s ease;
}

.fubu-project-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 36px rgba(11, 60, 97, .14) !important;
}

.fubu-project-card .card-img-top {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	width: 100%;
	height: auto;
}

.fubu-meta {
	color: var(--grey-1000);
	letter-spacing: .3px;
}

.fubu-clamp-3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fubu-value {
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--secondary);
}

.fubu-value-lg {
	font-weight: 800;
	font-size: 2rem;
	line-height: 1.1;
	color: var(--primary);
	margin-bottom: 4px;
}

.fubu-card-badges .fubu-badge:first-child { margin-left: 0 !important; }

.fubu-badge {
	background: var(--quaternary-100);
	color: var(--secondary);
	font-weight: 600;
	font-size: .65rem;
	letter-spacing: .4px;
	text-transform: uppercase;
	vertical-align: middle;
	border-radius: 3px;
}

.fubu-badge-live {
	background: var(--primary);
	color: #fff;
}

.fubu-client-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	flex: 0 0 56px;
	border-radius: 50%;
	background: var(--quaternary-100);
	color: var(--primary);
	font-size: 22px;
}

.real-word-stories .custom-testimonial-container .custom-testimonial .custom-testimonial-right {
	height: 190px;
	padding-bottom: 24px;
}

.fubu-project-slide h3 {
	line-height: 1.3;
}

/* Team cards */
.fubu-team-card img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
	height: auto;
}

.fubu-team-lines li {
	font-size: .9rem;
	line-height: 1.5;
	margin-bottom: 2px;
}

.fubu-reg {
	font-size: .8em;
	font-weight: 600;
	color: var(--primary);
	white-space: nowrap;
}

/* Side boxes, facts, pager */
.fubu-side-box {
	background: #F7FAFD;
	border: 1px solid var(--quaternary-100);
	border-left: 4px solid var(--primary);
	padding: 28px;
}

.fubu-side-link {
	display: flex;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--quaternary-100);
	color: var(--secondary);
	font-weight: 600;
	text-decoration: none;
}

.fubu-side-link:hover {
	color: var(--primary);
}

.fubu-facts {
	border-top: 1px solid var(--quaternary-100);
}

.fubu-fact {
	display: flex;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--quaternary-100);
}

.fubu-fact dt {
	flex: 0 0 110px;
	color: var(--secondary);
	font-weight: 700;
}

.fubu-fact dd {
	margin: 0;
	color: var(--tertiary);
}

.fubu-pager {
	border-top: 1px solid var(--quaternary-100);
	padding-top: 24px;
}

.fubu-pager-link {
	display: inline-flex;
	align-items: center;
	max-width: 48%;
	color: var(--secondary);
	font-weight: 600;
	text-decoration: none;
}

.fubu-pager-link:hover {
	color: var(--primary);
}

.fubu-pager-link .text-1 {
	color: var(--grey-1000);
	font-weight: 500;
}

@media (max-width: 575px) {
	.fubu-pager-link {
		max-width: 100%;
	}
}

/* Quote band */
.fubu-quote blockquote p {
	font-size: clamp(1.6rem, 3.2vw, 2.6rem);
	line-height: 1.2;
	letter-spacing: -.5px;
}

.fubu-quote blockquote {
	border: 0;
	padding: 0;
}

/* Two-column list */
@media (min-width: 768px) {
	.fubu-two-col {
		column-count: 2;
		column-gap: 40px;
	}
	.fubu-two-col li {
		break-inside: avoid;
	}
}

/* Projects filter */
.fubu-filter {
	gap: 8px;
}

.fubu-filter .nav-link {
	border: 1px solid var(--quaternary-200);
	background: #fff;
	color: var(--secondary) !important;
	border-radius: 30px !important;
	padding: 8px 18px;
	font-weight: 600;
}

.fubu-filter .nav-link:hover,
.fubu-filter .nav-item.active .nav-link,
.fubu-filter .nav-link.active {
	background: var(--primary) !important;
	border-color: var(--primary);
	color: #fff !important;
}

.fubu-filter-label,
.fubu-note {
	color: var(--grey-1000);
}

/* Counters – the template sized these for short numbers */
.custom-counters .counter strong {
	color: var(--primary);
}

/* ---------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------- */
#footer .custom-row-footer .custom-footer-column-logo img {
	margin-bottom: 20px;
	height: auto;
}

#footer p,
#footer address {
	color: var(--default);
}

.fubu-footer-title,
#footer h2.fubu-footer-title {
	color: var(--secondary) !important;
	font-size: .95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--secondary);
	margin-bottom: 16px;
}

.fubu-footer-links li {
	margin-bottom: 8px;
}

.fubu-footer-links a,
.fubu-footer-contact a {
	color: var(--secondary);
	text-decoration: none;
	font-weight: 500;
}

.fubu-footer-links a:hover,
.fubu-footer-contact a:hover {
	color: var(--primary);
	text-decoration: underline;
}

.fubu-footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 10px;
	line-height: 1.5;
}

.fubu-footer-contact i {
	color: var(--primary);
	width: 16px;
	margin-top: 5px;
}

#footer .footer-copyright {
	padding: 30px 0;
}

#footer .footer-copyright p {
	color: var(--grey-1000) !important;
	font-size: .85rem;
}

/* ---------------------------------------------------------------
 * Forms
 * ------------------------------------------------------------- */
.fubu-form .form-label {
	font-weight: 600;
	color: var(--secondary);
	margin-bottom: 6px;
}

.fubu-form label.error {
	display: block;
	margin-top: 6px;
	color: #B42318;
	font-size: .85rem;
	font-weight: 500;
}

.fubu-form .form-control.error {
	border-color: #B42318 !important;
}

.fubu-form select.form-control {
	padding: 1.2rem;
	height: auto;
}

.fubu-form .form-check-input {
	width: 1.2em;
	height: 1.2em;
	margin-top: .2em;
}

.fubu-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* 404 */
.fubu-404 {
	font-size: clamp(5rem, 14vw, 9rem);
	line-height: 1;
}

/* ---------------------------------------------------------------
 * Responsive fixes
 * ------------------------------------------------------------- */
@media (max-width: 991px) {
	.coaching-consulting .col-coaching-consulting-imgs .card {
		max-width: 30%;
	}
	.custom-counters .counter:first-child {
		margin-right: 40px !important;
	}
}

@media (max-width: 575px) {
	.custom-text-1 {
		font-size: 26px !important;
	}
	.fubu-hero .text-10 {
		font-size: 2rem !important;
	}
	.header-top .header-top-phone {
		font-size: 14px !important;
	}
	.fubu-logo-name {
		font-size: 1.1rem;
	}
	.custom-btn {
		height: auto;
		line-height: 1.4;
		padding-top: 16px !important;
		padding-bottom: 16px !important;
	}
}

/* ---------------------------------------------------------------
 * Reduced motion
 * ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*:before,
	*:after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
	.appear-animation {
		opacity: 1 !important;
	}
	.fubu-value-card:hover,
	.fubu-region-card:hover,
	.fubu-cap-card:hover,
	.fubu-project-card:hover {
		transform: none;
	}
}

/* Project card headings (h2 on the Projects page) – tighter leading */
.fubu-project-card .card-title {
	line-height: 1.35;
	font-size: 1.15rem !important;
}

/* Long page titles (project pages) on small screens */
@media (max-width: 575px) {
	.custom-page-header h1 {
		font-size: 1.9rem !important;
		line-height: 1.2;
	}
	.custom-page-header .breadcrumb {
		font-size: .7rem;
	}
}

/* ---------------------------------------------------------------
 * Client logos (black and white) & project logo panels
 * ------------------------------------------------------------- */
.fubu-client-logo {
	display: block;
	max-width: 100%;
	height: auto;
	max-height: 110px;
	width: auto;
	margin: 0 auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .85;
	transition: opacity .2s ease;
}

.fubu-client-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
	padding: 0;
}

.fubu-client {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--quaternary-100);
}

.fubu-client:hover .fubu-client-logo {
	opacity: 1;
}

@media (max-width: 991px) {
	.fubu-client-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.fubu-client-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.fubu-client {
		min-height: 120px;
	}
}

.fubu-logo-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 3 / 2;
	padding: 28px;
	background: #F7FAFD;
	border: 1px solid var(--quaternary-100);
}

.fubu-logo-panel .fubu-client-logo {
	max-height: 120px;
}

.fubu-logo-panel-sm {
	aspect-ratio: auto;
	height: 140px;
	justify-content: flex-start;
}

.fubu-logo-panel-sm .fubu-client-logo {
	max-height: 96px;
	margin: 0;
}

.fubu-carousel-logo {
	height: 70px !important;
	max-width: 75% !important;
	width: auto !important;
	object-fit: contain;
	filter: grayscale(1);
	margin-bottom: 10px;
}

.real-word-stories .custom-testimonial-container .custom-testimonial .custom-testimonial-right {
	height: 230px;
}

/* All photography is black and white (files are greyscale; this is a safety net) */
main img[src*="img/fubu/photos/"],
.background-image-wrapper {
	filter: grayscale(1);
}

/* Footer legal line */
.fubu-footer-legal a {
	color: var(--secondary);
	font-weight: 600;
}

.fubu-credit {
	letter-spacing: .5px;
	color: var(--secondary);
}

/* Privacy policy */
.fubu-policy-section {
	margin-bottom: 40px;
	scroll-margin-top: 120px;
}

@media (min-width: 992px) {
	.fubu-sticky {
		position: sticky;
		top: 120px;
	}
}

/* Links inside running text are underlined so they don't rely on colour alone */
.fubu-policy p a,
.fubu-policy li a,
.form-check-label a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

a.fubu-credit {
	font-weight: 700;
	text-decoration: none;
}

a.fubu-credit:hover,
a.fubu-credit:focus {
	color: var(--primary);
	text-decoration: underline;
}
