/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://webagent18.com/
Description: WebAgents child theme for Twenty Twenty-Five. Hosts the Elementor-free pages, header and footer built with plain HTML, CSS and JavaScript.
Author: Blue Cloud
Author URI: https://webagent18.com/
Template: twentytwentyfive
Version: 1.2.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-child
*/

/* -------------------------------------------------------------------------
 * Design tokens.
 *
 * The brand palette is unchanged from the Elementor kit - deep teal #053f48,
 * cyan #2edaf1, near-black #000c14 - but the ground is now light: deep teal
 * carries headings and links, cyan is the accent, and near-black is kept for
 * the one dark band per page and the footer.
 * ---------------------------------------------------------------------- */
:root {
	--bb-bg: #ffffff;
	--bb-surface: #f2fafc;
	--bb-surface-2: #e6f6f9;
	--bb-text: #0a1c24;
	--bb-muted: #4f626b;
	--bb-primary: #053f48;
	--bb-neon: #2edaf1;
	--bb-neon-ink: #00121a;
	--bb-ink: #000c14;
	--bb-border: #dbe8ec;
	--bb-border-strong: #a8d6df;
	--bb-neon-wash: rgba( 46, 218, 241, 0.12 );
	--bb-neon-wash-soft: rgba( 46, 218, 241, 0.06 );
	--bb-shadow: 0 10px 30px rgba( 5, 63, 72, 0.08 );
	--bb-shadow-lift: 0 18px 44px rgba( 5, 63, 72, 0.14 );
	--bb-glow: 0 12px 30px rgba( 46, 218, 241, 0.36 );

	/* Kept as aliases so older markup and Design Mode overrides that name
	   them still resolve: secondary was the cyan, accent the page ground. */
	--bb-secondary: var( --bb-neon );
	--bb-accent: var( --bb-ink );

	--bb-font-heading: "Exo 2", "Trebuchet MS", sans-serif;
	--bb-font-body: "Rajdhani", "Trebuchet MS", sans-serif;

	--bb-h1: 56px;
	--bb-h1-sm: 42px;
	--bb-h2: 38px;
	--bb-h3: 23px;
	--bb-body: 20px;

	--bb-container: 1160px;
	--bb-section-y: 84px;
	--bb-gutter: 20px;
	--bb-radius: 14px;
	--bb-header-h: 80px;
}

/* -------------------------------------------------------------------------
 * Base
 * ---------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	/* Keep anchor targets clear of the sticky header. */
	scroll-padding-top: calc( var( --bb-header-h ) + 16px );
}

body.bb-site {
	margin: 0;
	background-color: var( --bb-bg );
	color: var( --bb-text );
	font-family: var( --bb-font-body );
	font-size: var( --bb-body );
	font-weight: 500;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.bb-site img {
	max-width: 100%;
	height: auto;
	display: block;
}

.bb-site a {
	color: var( --bb-primary );
	text-decoration: none;
}

/* :where() keeps this at one class of specificity, so component rules such as
   .bb-hero__title and .bb-section__title (loaded later, in site.css) can set
   their own margins instead of being flattened to zero. */
.bb-site :where( h1, h2, h3, h4 ) {
	font-family: var( --bb-font-heading );
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0;
	color: var( --bb-text );
}

.bb-site :focus-visible {
	outline: 2px solid var( --bb-primary );
	outline-offset: 2px;
}

.bb-container {
	width: 100%;
	max-width: var( --bb-container );
	margin-inline: auto;
	padding-inline: var( --bb-gutter );
}

/* Small uppercase label above a heading. */
.bb-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	padding: 6px 14px 6px 10px;
	border: 1px solid var( --bb-border-strong );
	border-radius: 50px;
	background: var( --bb-bg );
	color: var( --bb-primary );
	font-family: var( --bb-font-heading );
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.bb-eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var( --bb-neon );
	box-shadow: 0 0 0 4px var( --bb-neon-wash );
}

/* Visible only to screen readers, and to keyboard users when focused. */
.bb-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 12px 20px;
	background: var( --bb-neon );
	color: var( --bb-neon-ink );
	font-family: var( --bb-font-heading );
}

.bb-skip-link:focus {
	left: 0;
}

/* -------------------------------------------------------------------------
 * Brand - typeset wordmark, replaces the old BlueBot image logo
 * ---------------------------------------------------------------------- */
.bb-site .bb-brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: var( --bb-text );
	font-family: var( --bb-font-heading );
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
}

/* Deep-teal tile with a cyan "live agent" dot in its corner. */
.bb-brand__mark {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 11px 11px 11px 3px;
	background: linear-gradient( 145deg, #0a5965 0%, var( --bb-primary ) 100% );
	box-shadow: 0 6px 16px rgba( 5, 63, 72, 0.28 );
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
}

.bb-brand__mark::after {
	content: "";
	position: absolute;
	top: -3px;
	right: -3px;
	width: 12px;
	height: 12px;
	border: 2px solid var( --bb-bg );
	border-radius: 50%;
	background: var( --bb-neon );
	animation: bb-pulse 2.4s ease-in-out infinite;
}

.bb-brand__name b {
	color: var( --bb-primary );
	font-weight: 700;
}

.bb-brand__name sup {
	margin-left: 2px;
	color: #0aa3b8;
	font-size: 0.5em;
	font-weight: 700;
	vertical-align: super;
}

.bb-footer .bb-brand__name sup {
	color: var( --bb-neon );
}

@keyframes bb-pulse {
	0%,
	100% { box-shadow: 0 0 0 0 rgba( 46, 218, 241, 0.55 ); }
	50%  { box-shadow: 0 0 0 6px rgba( 46, 218, 241, 0 ); }
}

/* -------------------------------------------------------------------------
 * Site header
 * ---------------------------------------------------------------------- */
.bb-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: rgba( 255, 255, 255, 0.86 );
	backdrop-filter: blur( 12px );
	-webkit-backdrop-filter: blur( 12px );
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.bb-header.is-stuck {
	background-color: rgba( 255, 255, 255, 0.96 );
	border-bottom-color: var( --bb-border );
	box-shadow: 0 1px 14px rgba( 5, 63, 72, 0.07 );
}

.bb-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var( --bb-header-h );
}

.bb-nav ul {
	display: flex;
	align-items: center;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bb-site .bb-nav a {
	position: relative;
	display: inline-block;
	padding: 6px 0;
	color: var( --bb-text );
	font-family: var( --bb-font-heading );
	font-size: 17px;
	font-weight: 600;
	transition: color 0.25s ease;
}

.bb-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 3px;
	border-radius: 2px;
	background: var( --bb-neon );
	transition: width 0.25s ease;
}

.bb-site .bb-nav a:hover,
.bb-site .bb-nav .current-menu-item > a {
	color: var( --bb-primary );
}

.bb-nav a:hover::after,
.bb-nav .current-menu-item > a::after {
	width: 100%;
}

/* Burger toggle - hidden until the tablet breakpoint. */
.bb-nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var( --bb-border-strong );
	border-radius: 10px;
	background: transparent;
	cursor: pointer;
}

.bb-nav-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 4px auto;
	background: var( --bb-text );
	transition: transform 0.3s ease, opacity 0.2s ease;
}

.bb-nav-toggle[aria-expanded="true"] span:nth-child( 1 ) {
	transform: translateY( 6px ) rotate( 45deg );
}

.bb-nav-toggle[aria-expanded="true"] span:nth-child( 2 ) {
	opacity: 0;
}

.bb-nav-toggle[aria-expanded="true"] span:nth-child( 3 ) {
	transform: translateY( -6px ) rotate( -45deg );
}

/* -------------------------------------------------------------------------
 * Site footer
 * ---------------------------------------------------------------------- */
.bb-footer {
	position: relative;
	padding: 56px 0 34px;
	background-color: var( --bb-ink );
	color: rgba( 255, 255, 255, 0.72 );
}

.bb-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
}

/* The wordmark flips to white on the dark footer. */
.bb-site .bb-footer .bb-brand {
	color: #ffffff;
}

.bb-footer .bb-brand__name b {
	color: var( --bb-neon );
}

.bb-footer .bb-brand__mark::after {
	border-color: var( --bb-ink );
}

.bb-footer__tagline {
	max-width: 620px;
	margin: 0;
	color: rgba( 255, 255, 255, 0.62 );
	font-size: 17px;
}

.bb-footer__nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-site .bb-footer__nav a {
	color: rgba( 255, 255, 255, 0.8 );
	font-family: var( --bb-font-heading );
	font-size: 16px;
	font-weight: 600;
	transition: color 0.25s ease;
}

.bb-site .bb-footer__nav a:hover {
	color: var( --bb-neon );
}

.bb-footer__legal {
	margin: 6px 0 0;
	padding-top: 20px;
	width: 100%;
	border-top: 1px solid rgba( 255, 255, 255, 0.1 );
	color: rgba( 255, 255, 255, 0.45 );
	font-size: 15px;
}

.bb-site .bb-footer__legal a {
	color: rgba( 255, 255, 255, 0.62 );
	transition: color 0.25s ease;
}

.bb-site .bb-footer__legal a:hover {
	color: var( --bb-neon );
}

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */
@media ( max-width: 1024px ) {
	:root {
		--bb-h1: 44px;
		--bb-h1-sm: 34px;
		--bb-h2: 32px;
		--bb-h3: 21px;
		--bb-section-y: 66px;
	}

	.bb-nav-toggle {
		display: block;
	}

	.bb-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: rgba( 255, 255, 255, 0.98 );
		border-top: 0 solid var( --bb-border );
		border-bottom: 0 solid var( --bb-border );
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.35s ease;
	}

	.bb-nav.is-open {
		max-height: 70vh;
		overflow-y: auto;
		border-top-width: 1px;
		border-bottom-width: 1px;
		box-shadow: 0 14px 30px rgba( 5, 63, 72, 0.1 );
	}

	.bb-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px var( --bb-gutter ) 16px;
	}

	.bb-nav li + li {
		border-top: 1px solid var( --bb-border );
	}

	.bb-site .bb-nav a {
		display: block;
		padding: 15px 0;
		font-size: 18px;
	}

	.bb-nav a::after {
		display: none;
	}

	.bb-header__inner {
		position: relative;
	}
}

@media ( max-width: 767px ) {
	:root {
		--bb-h1: 35px;
		--bb-h1-sm: 29px;
		--bb-h2: 27px;
		--bb-body: 18px;
		--bb-section-y: 56px;
	}

	.bb-site .bb-brand {
		font-size: 21px;
	}
}

/* Respect the visitor's reduced-motion preference. */
@media ( prefers-reduced-motion: reduce ) {
	html {
		scroll-behavior: auto;
	}

	.bb-site *,
	.bb-site *::before,
	.bb-site *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}
