/* The Fox Web overrides on top of the Seoai template (custom.css stays untouched) */
.navbar-brand img{
	height: 40px;
	width: auto;
}

.footer-logo img{
	width: 100%;
	max-width: 230px;
	height: auto;
}

#loading-icon img{
	width: 50px;
	height: 50px;
	object-fit: contain;
}

/* Client avatars are initials, not stock faces */
.satisfy-client-image .client-initial i{
	font-size: 22px;
}

/* Small badges in the hero pill, matching the template's 20px avatars */
.hero-sub-heading .satisfy-client-image .client-initial{
	width: 24px;
	height: 24px;
}

.hero-sub-heading .satisfy-client-image .client-initial i{
	font-size: 12px;
}

.satisfy-client-image .client-initial{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--accent-color);
	color: var(--white-color);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.02em;
	line-height: 1;
}

.service-item .icon-box i{
	font-size: 54px;
	display: block;
	height: 60px;
	color: var(--accent-color);
	line-height: 1;
}

.process-step-item .icon-box i{
	font-size: 30px;
	color: var(--white-color);
	line-height: 1;
}

.testimonial-item-image .client-initial{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1.1;
	background: var(--accent-color);
	color: var(--white-color);
	font-size: 64px;
	font-weight: 600;
	border-radius: 20px;
}

.project-item-image figure{
	aspect-ratio: 1200 / 760;
}

.pricing-item-content h2 sub{
	font-size: 16px;
}

/* No client photos yet: testimonial cards use a brand gradient in place of the template's portrait */
.testimonial-item-image figure.testimonial-bg{
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(160deg, var(--accent-color) 0%, #4B2BB8 100%);
}

.testimonial-item-image figure.testimonial-bg{
	position: relative;
	overflow: hidden;
}

.testimonial-quote-mark{
	position: absolute;
	top: 10px;
	right: 30px;
	font-size: 200px;
	line-height: 1;
	font-weight: 700;
	color: var(--white-color);
	opacity: 0.18;
}

/* Legal links next to the copyright line */
.footer-copyright-legal{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 30px;
}

.footer-copyright-legal ul{
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-copyright-legal ul a{
	color: var(--white-color);
	opacity: 0.8;
}

.footer-copyright-legal ul a:hover{
	color: var(--accent-color);
	opacity: 1;
}

.page-category-list ul li.active a{
	color: var(--accent-color);
}

/* Portfolio client list and legal pages */
.client-list-group h3{
	font-size: 20px;
	margin-bottom: 15px;
}

.client-list-group ul{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0 0 40px;
}

.client-list-group ul li{
	background: var(--secondary-color);
	border: 1px solid var(--divider-color);
	border-radius: 100px;
	padding: 8px 18px;
	font-size: 15px;
}

.legal-content h2{
	font-size: 26px;
	margin: 40px 0 15px;
}

.legal-content p, .legal-content li{
	margin-bottom: 12px;
}

.post-entry a, .legal-content a, .section-title p a{
	color: var(--accent-color);
	text-decoration: underline;
}

.office-list{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 30px;
}

.office-item{
	background: var(--secondary-color);
	border: 1px solid var(--divider-color);
	border-radius: 20px;
	padding: 30px;
}

.office-item h3{
	font-size: 20px;
	margin-bottom: 10px;
}

.office-item p{
	margin: 0;
}

/* Dropdowns: one line per item, keep brand capitalisation (eBay), open for keyboard users too */
.main-menu ul ul,
.main-menu ul li.submenu:first-child ul{
	width: auto;
	min-width: 235px;
}

.main-menu ul ul li a{
	white-space: nowrap;
	text-transform: none;
}

.main-menu ul li:focus-within > ul{
	visibility: visible;
	opacity: 1;
	transform: scale(1,1);
	padding: 5px 0;
}

/* ---------- Accessibility (WCAG 2.2 AA) ---------- */
:root{
	/* Light purple for text on the dark navy sections: 7.4:1 on #101828 (the brand purple is only 3.6:1 there) */
	--accent-on-dark: #B49BFF;
}

/* 2.4.1 Skip link */
.skip-link{
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 10000;
	background: var(--primary-color);
	color: var(--white-color);
	padding: 12px 20px;
	border-radius: 10px;
	font-weight: 600;
}

.skip-link:focus{
	top: 16px;
	color: var(--white-color);
}

/* 2.4.7 Visible focus everywhere (the template removes outlines) */
:focus-visible{
	outline: 3px solid var(--accent-color) !important;
	outline-offset: 3px;
}

.dark-section :focus-visible,
.main-header :focus-visible,
.main-footer :focus-visible{
	outline-color: var(--accent-on-dark) !important;
}

.form-control:focus{
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(121, 74, 255, 0.35);
}

/* 1.4.3 Contrast of purple text on dark backgrounds */
.dark-section .section-footer-text p a,
.dark-section .section-title p a,
.main-footer a:hover,
.main-footer a:focus,
.footer-copyright-legal ul a:hover{
	color: var(--accent-on-dark);
}

.main-menu ul li a:hover,
.main-menu ul li a:focus,
.main-menu ul li.submenu:hover > a,
.main-menu ul li.submenu:focus-within > a{
	color: var(--accent-on-dark);
}

/* Dropdown items: white on purple (5.1:1), underline marks the hovered item */
.main-menu ul ul li a:hover,
.main-menu ul ul li a:focus{
	color: var(--white-color);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* 2.2.2 Pause control for the looping hero video */
.hero-video-toggle{
	position: absolute;
	right: 24px;
	bottom: 24px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 100px;
	background: rgba(16, 24, 40, 0.75);
	color: var(--white-color);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.hero-video-toggle:hover{
	background: var(--accent-color);
}

/* Slider arrows are real buttons now */
.testimonial-button-prev:focus-visible,
.testimonial-button-next:focus-visible{
	outline-color: var(--accent-on-dark) !important;
}

/* Respect "reduce motion": no entrance animations, no parallax-style movement */
@media (prefers-reduced-motion: reduce){
	*, *::before, *::after{
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.wow{
		visibility: visible !important;
		animation-name: none !important;
	}
}

/* 1.4.3 Project cards: white text sits on website screenshots, so give the text panel a solid-enough
   navy (78%). Worst case over a white screenshot is about 7.7:1. */
.project-item-body{
	background: rgba(16, 24, 40, 0.78);
}

/* Review slider arrows (the theme shipped them unstyled and unconnected) */
.testimonial-btn{
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: 40px;
}

.testimonial-button-prev,
.testimonial-button-next{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1px solid var(--dark-divider-color);
	background: var(--accent-color);
	color: var(--white-color);
	font-size: 18px;
	cursor: pointer;
	transition: background 0.3s ease-in-out;
}

.testimonial-button-prev:hover,
.testimonial-button-next:hover{
	background: var(--white-color);
	color: var(--primary-color);
}

.testimonial-slider{
	height: auto;
}

/* Service card hover: the theme whitens its image icons; do the same for our icon-font icons */
.service-item .icon-box i{
	transition: color 0.4s ease-in-out;
}

.service-item:hover .icon-box i,
.service-item:focus-within .icon-box i{
	color: var(--white-color);
}

/* The hover fill (::before) covers the icon unless the icon box sits above it */
.service-item .icon-box{
	position: relative;
	z-index: 1;
}

/* Dropdown items: regular weight and roomier spacing */
.main-menu ul ul li a{
	font-weight: 400;
	padding: 11px 28px !important;
}

.main-menu ul ul li a:hover,
.main-menu ul ul li a:focus{
	padding: 11px 28px 11px 31px !important;
}

.main-menu ul li:hover > ul,
.main-menu ul li:focus-within > ul{
	padding: 14px 0;
}
