/* ==========================================================================
   Footer — Site footer with logo, nav, social, copyright
   --------------------------------------------------------------------------
   Teal background block at the bottom of every page.  All child elements
   are centered.  The custom logo is inverted to white via CSS filter.
   ========================================================================== */

/* ------------------------------------------------------------------
   1. Footer Wrapper
   ---------------------------------------------------------------- */

.site-footer {
	background-color: var(--color-teal);
	color: var(--color-white);
	padding: var(--space-3xl) 0 var(--space-xl);
}

/* ------------------------------------------------------------------
   2. Footer Inner Container
   ---------------------------------------------------------------- */

.footer-inner {
	text-align: center;
}

/* ------------------------------------------------------------------
   3. Footer Logo
   ---------------------------------------------------------------- */

.footer-logo {
	margin-bottom: var(--space-lg);
}

/* Invert a dark logo to white for the teal background. */
.footer-logo img {
	max-height: var(--footer-logo-height, 70px);
	width: auto;
	filter: brightness(0) invert(1);
	margin: 0 auto;
}

/* Custom footer logo — already white, no filter needed. */
.footer-logo__custom {
	filter: none;
	max-height: var(--footer-logo-height, 70px);
	width: auto;
	margin: 0 auto;
	display: block;
}

/* Text fallback when no custom logo is set. */
.footer-logo .footer-site-name {
	color: var(--color-white);
	font-family: var(--font-primary);
	font-size: 1.5rem;
	font-weight: var(--fw-medium);
	text-decoration: none;
	display: inline-block;
}

.footer-logo .footer-site-name:hover {
	opacity: 0.85;
}

/* ------------------------------------------------------------------
   4. Footer Navigation
   ---------------------------------------------------------------- */

.footer-nav {
	margin-bottom: var(--space-lg);
}

.footer-nav .menu {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	list-style: none;
	gap: var(--space-lg);
	padding: 0;
	margin: 0;
}

.footer-nav .menu a {
	color: var(--footer-text-color, var(--color-white));
	text-decoration: none;
	font-family: var(--font-primary);
	font-weight: var(--fw-medium);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: var(--footer-nav-font-size, 0.9rem);
	opacity: 0.9;
	transition: opacity var(--transition-fast);
}

.footer-nav .menu a:hover,
.footer-nav .menu a:focus-visible {
	opacity: 1;
}

/* ------------------------------------------------------------------
   5. Footer Social Icons
   ---------------------------------------------------------------- */

.footer-social {
	margin-bottom: var(--space-lg);
}

.footer-social .social-icons {
	display: flex;
	justify-content: center;
	gap: var(--space-md);
}

.footer-social .social-icons a {
	color: var(--color-white);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	transition: opacity var(--transition-fast);
}

.footer-social .social-icons a:hover,
.footer-social .social-icons a:focus-visible {
	opacity: 0.75;
}

.footer-social .social-icons svg {
	width: 24px;
	height: 24px;
	fill: var(--color-white);
}

/* ------------------------------------------------------------------
   5b. Footer Widgets
   ---------------------------------------------------------------- */

.footer-widgets {
	margin-bottom: var(--space-lg);
}

.footer-widgets .widget {
	color: var(--color-white);
}

.footer-widgets .widget a {
	color: var(--color-white);
	opacity: 0.9;
	transition: opacity var(--transition-fast);
}

.footer-widgets .widget a:hover {
	opacity: 1;
}

/* ------------------------------------------------------------------
   6. Footer Copyright
   ---------------------------------------------------------------- */

.footer-copyright {
	font-size: 0.85rem;
	opacity: 0.7;
}

.footer-copyright p {
	margin: 0;
}

/* ------------------------------------------------------------------
   6b. Footer Bottom Bar — White band with policy links
   ---------------------------------------------------------------- */

.footer-bottom-bar {
	background-color: var(--color-white);
	padding: var(--space-sm) 0;
	text-align: center;
}

.footer-bottom-bar p {
	margin: 0;
	font-size: 0.8rem;
	color: var(--color-gray);
}

.footer-bottom-bar a {
	color: var(--color-gray-dark);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.footer-bottom-bar a:hover,
.footer-bottom-bar a:focus-visible {
	color: var(--color-teal);
}

/* ------------------------------------------------------------------
   7. Floating Buttons (positioned above footer in DOM, styled here
      for co-location of fixed-position elements)
   ---------------------------------------------------------------- */

.floating-buttons {
	position: fixed;
	bottom: var(--space-lg);
	right: var(--space-lg);
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	z-index: 900;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: opacity var(--transition-base),
	            visibility var(--transition-base),
	            transform var(--transition-base);
}

.floating-buttons.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.floating-btn {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-teal);
	color: var(--color-white);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: background-color var(--transition-fast),
	            transform var(--transition-fast);
}

.floating-btn:hover {
	background-color: var(--color-pink);
	transform: scale(1.05);
}

.floating-btn:focus-visible {
	outline: 2px solid var(--color-pink);
	outline-offset: 2px;
}

.floating-btn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--color-white);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
