/**
 * LosaLaw Theme - Enhanced Header & Footer Styles
 * Senior Level Professional Design
 * 
 * @package LosaLaw
 * @since 1.0.0
 */

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
	background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
	color: var(--color-background);
	padding: 10px 0;
	font-size: 14px;
	font-weight: 500;
	position: relative;
	overflow: hidden;
	animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
	from {
		transform: translateY(-100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.announcement-bar .container {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.announcement-content {
	display: flex;
	align-items: center;
	gap: 12px;
}

.announcement-icon {
	flex-shrink: 0;
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.6; }
}

.announcement-link,
.announcement-text {
	color: var(--color-background);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s ease;
}

.announcement-link:hover {
	text-decoration: none;
	transform: translateX(4px);
}

.arrow-icon {
	transition: transform 0.3s ease;
}

.announcement-link:hover .arrow-icon {
	transform: translateX(4px);
}

.announcement-close {
	position: absolute;
	right: 0;
	background: none;
	border: none;
	color: var(--color-background);
	cursor: pointer;
	padding: 8px;
	opacity: 0.8;
	transition: all 0.3s ease;
	border-radius: 4px;
}

.announcement-close:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   ENHANCED TOP BAR
   ============================================ */
.header-top-bar {
	position: relative;
	overflow: hidden;
}

.header-top-bar::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	animation: shimmer 3s infinite;
}

@keyframes shimmer {
	0% { left: -100%; }
	100% { left: 100%; }
}

.header-top-left,
.header-top-right {
	display: flex;
	align-items: center;
	gap: var(--space-lg);
}

.header-contact-info {
	display: flex;
	align-items: center;
	gap: var(--space-lg);
	flex-wrap: wrap;
}

.contact-link,
.office-hours {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.3px;
}

.contact-link .icon,
.office-hours .icon {
	flex-shrink: 0;
	opacity: 0.9;
}

.contact-text {
	white-space: nowrap;
}

.social-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	opacity: 0.9;
}

.header-social .social-links {
	gap: 8px;
}

.header-social .social-link {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-social .social-link:hover {
	background: var(--color-accent);
	transform: translateY(-2px) scale(1.1);
	box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* ============================================
   ENHANCED LOGO
   ============================================ */
.site-logo-link {
	display: block;
	transition: transform 0.3s ease;
}

.site-logo-link:hover {
	transform: scale(1.05);
}

.logo-acronym {
	position: relative;
}

.logo-letter {
	display: inline-block;
	transition: all 0.3s ease;
	position: relative;
}

.site-logo-link:hover .logo-letter {
	animation: letterBounce 0.6s ease;
}

@keyframes letterBounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}

.site-logo-link:hover .logo-l { animation-delay: 0s; }
.site-logo-link:hover .logo-o { animation-delay: 0.1s; }
.site-logo-link:hover .logo-s { animation-delay: 0.2s; }
.site-logo-link:hover .logo-a { animation-delay: 0.3s; }

.logo-o {
	position: relative;
}

.logo-o::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.site-logo-link:hover .logo-o::before {
	opacity: 0.3;
	animation: pulse 1s ease-in-out infinite;
}

.logo-tagline {
	font-size: 8px;
	opacity: 0.7;
	display: block;
	margin-top: 2px;
}

/* ============================================
   ENHANCED NAVIGATION
   ============================================ */
.nav-wrapper {
	display: flex;
	align-items: center;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	margin-left: var(--space-lg);
}

.search-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: var(--color-text);
	transition: all 0.3s ease;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.search-toggle::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--color-accent);
	opacity: 0;
	transform: scale(0);
	transition: all 0.3s ease;
}

.search-toggle:hover::before {
	opacity: 0.1;
	transform: scale(1);
}

.search-toggle:hover {
	color: var(--color-accent);
	transform: rotate(90deg);
}

.header-cta-button {
	position: relative;
	overflow: hidden;
	z-index: 1;
}

.header-cta-button::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	transform: translate(-50%, -50%);
	transition: width 0.6s ease, height 0.6s ease;
	z-index: -1;
}

.header-cta-button:hover::before {
	width: 300px;
	height: 300px;
}

.cta-icon {
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.header-cta-button:hover .cta-icon {
	animation: ring 0.6s ease;
}

@keyframes ring {
	0%, 100% { transform: rotate(0deg); }
	10%, 30% { transform: rotate(-10deg); }
	20%, 40% { transform: rotate(10deg); }
}

.menu-toggle {
	position: relative;
}

.menu-line {
	display: block;
	width: 100%;
	height: 2px;
	background-color: var(--color-primary);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 2px;
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
	opacity: 0;
	transform: translateX(-20px);
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -6px);
}

.menu-text {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-left: 8px;
}

/* ============================================
   SEARCH MODAL
   ============================================ */
.search-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(26, 32, 44, 0.95);
	backdrop-filter: blur(10px);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.search-modal.active {
	opacity: 1;
	visibility: visible;
}

.search-modal-content {
	position: relative;
	width: 90%;
	max-width: 600px;
	transform: translateY(-50px);
	transition: transform 0.3s ease;
}

.search-modal.active .search-modal-content {
	transform: translateY(0);
}

.search-close {
	position: absolute;
	top: -50px;
	right: 0;
	background: none;
	border: none;
	color: var(--color-background);
	cursor: pointer;
	padding: 8px;
	opacity: 0.8;
	transition: all 0.3s ease;
	border-radius: 50%;
}

.search-close:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.1);
	transform: rotate(90deg);
}

.search-form-wrapper .search-form {
	display: flex;
	background: var(--color-background);
	border-radius: 50px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.search-form-wrapper .search-form input[type="search"] {
	flex: 1;
	padding: 20px 30px;
	border: none;
	font-size: 18px;
	outline: none;
}

.search-form-wrapper .search-form button {
	padding: 20px 30px;
	background: var(--color-accent);
	border: none;
	color: var(--color-background);
	cursor: pointer;
	transition: all 0.3s ease;
}

.search-form-wrapper .search-form button:hover {
	background: var(--color-accent-light);
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.reading-progress-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
	width: 0%;
	transition: width 0.1s ease;
	box-shadow: 0 0 10px var(--color-accent);
}

/* ============================================
   PRE-FOOTER CTA
   ============================================ */
.pre-footer-cta {
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
	color: var(--color-background);
	padding: var(--space-3xl) 0;
	position: relative;
	overflow: hidden;
}

.pre-footer-cta::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
	animation: float 6s ease-in-out infinite;
}

@keyframes float {
	0%, 100% { transform: translate(0, 0); }
	50% { transform: translate(-20px, -20px); }
}

.cta-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2xl);
	position: relative;
	z-index: 1;
}

.cta-title {
	font-size: 36px;
	font-weight: 700;
	color: var(--color-background);
	margin-bottom: var(--space-sm);
	line-height: 1.2;
}

.cta-description {
	font-size: 18px;
	opacity: 0.9;
	margin: 0;
	max-width: 600px;
}

.cta-actions {
	display: flex;
	gap: var(--space-md);
	flex-shrink: 0;
}

.cta-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 32px;
	border-radius: 50px;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.cta-button.primary {
	background: var(--color-accent);
	color: var(--color-background);
	box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.cta-button.primary:hover {
	background: var(--color-accent-light);
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

.cta-button.secondary {
	background: var(--color-background);
	color: var(--color-primary);
	box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.cta-button.secondary:hover {
	background: var(--color-light);
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.button-icon {
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.cta-button:hover .button-icon {
	transform: scale(1.2);
}

@media (max-width: 992px) {
	.cta-content {
		flex-direction: column;
		text-align: center;
	}

	.cta-actions {
		flex-wrap: wrap;
		justify-content: center;
	}

	.cta-title {
		font-size: 28px;
	}

	.cta-description {
		font-size: 16px;
	}
}

/* ============================================
   ENHANCED FOOTER
   ============================================ */
.footer-widget .widget-title {
	position: relative;
	padding-bottom: var(--space-sm);
}

.footer-widget .widget-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
}

.trust-badges {
	margin-top: var(--space-md);
}

.badge-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
}

.badge-item {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	font-size: 13px;
	opacity: 0.9;
}

.badge-icon {
	flex-shrink: 0;
	color: var(--color-accent);
}

.social-title {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: var(--space-sm);
	color: rgba(255, 255, 255, 0.9);
}

.footer-social .social-links {
	gap: var(--space-sm);
}

.footer-social .social-link {
	position: relative;
	overflow: hidden;
}

.footer-social .social-link::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--color-accent);
	transform: scale(0);
	transition: transform 0.3s ease;
	border-radius: 50%;
}

.footer-social .social-link:hover::before {
	transform: scale(1);
}

.footer-social .social-link svg {
	position: relative;
	z-index: 1;
}

.footer-menu .menu-icon {
	flex-shrink: 0;
	opacity: 0;
	transform: translateX(-10px);
	transition: all 0.3s ease;
	color: var(--color-accent);
}

.footer-menu a:hover .menu-icon {
	opacity: 1;
	transform: translateX(0);
}

.footer-contact-info .contact-item {
	padding: var(--space-sm);
	background: rgba(255, 255, 255, 0.03);
	border-radius: 8px;
	transition: all 0.3s ease;
	border-left: 3px solid transparent;
}

.footer-contact-info .contact-item:hover {
	background: rgba(255, 255, 255, 0.05);
	border-left-color: var(--color-accent);
	transform: translateX(5px);
}

.contact-icon {
	flex-shrink: 0;
	color: var(--color-accent);
	margin-top: 2px;
}

.contact-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.contact-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: rgba(255, 255, 255, 0.7);
}

.contact-link {
	font-size: 14px;
	transition: color 0.3s ease;
}

.contact-link:hover {
	color: var(--color-accent);
}

/* Newsletter */
.newsletter-signup {
	margin-top: var(--space-lg);
	padding: var(--space-md);
	background: rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: var(--space-xs);
	color: var(--color-background);
}

.newsletter-description {
	font-size: 13px;
	opacity: 0.8;
	margin-bottom: var(--space-md);
}

.newsletter-form .form-group {
	display: flex;
	gap: 8px;
}

.newsletter-form input {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.1);
	color: var(--color-background);
	border-radius: 8px;
	font-size: 14px;
	transition: all 0.3s ease;
}

.newsletter-form input:focus {
	outline: none;
	border-color: var(--color-accent);
	background: rgba(255, 255, 255, 0.15);
}

.newsletter-form input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
	padding: 12px 16px;
	background: var(--color-accent);
	border: none;
	border-radius: 8px;
	color: var(--color-background);
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.newsletter-form button:hover {
	background: var(--color-accent-light);
	transform: translateX(4px);
}

/* Footer Bottom */
.footer-bottom {
	position: relative;
}

.footer-bottom::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-bottom-content {
	padding: var(--space-lg) 0;
}

.footer-credits {
	font-size: 13px;
	opacity: 0.7;
}

.footer-credits a {
	color: var(--color-accent);
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.footer-credits a:hover {
	opacity: 0.8;
}

/* Back to Top */
.back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	background: var(--color-accent);
	color: var(--color-background);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 999;
	box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.back-to-top:hover {
	background: var(--color-accent-light);
	transform: translateY(-5px);
	box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

.back-to-top:active {
	transform: translateY(-2px) scale(0.95);
}

@media (max-width: 768px) {
	.back-to-top {
		bottom: 20px;
		right: 20px;
		width: 45px;
		height: 45px;
	}
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */
@media (max-width: 992px) {
	.header-top-bar {
		font-size: 12px;
	}

	.header-top-left,
	.header-top-right {
		gap: var(--space-sm);
	}

	.contact-text {
		font-size: 12px;
	}

	.social-label {
		display: none;
	}
}

@media (max-width: 768px) {
	.announcement-bar {
		font-size: 12px;
		padding: 8px 0;
	}

	.announcement-content {
		gap: 8px;
	}

	.header-top-left {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-xs);
	}

	.header-contact-info {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-xs);
	}

	.office-hours {
		display: none;
	}

	.header-top-right {
		display: none;
	}

	.cta-button {
		padding: 12px 24px;
		font-size: 14px;
	}

	.footer-widgets {
		grid-template-columns: 1fr !important;
	}

	.newsletter-form .form-group {
		flex-direction: column;
	}

	.newsletter-form button {
		width: 100%;
	}
}

