/* ==========================================================================
   Iceberg Theme - Additional Styles
   ========================================================================== */

/* Screen reader text */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* WordPress admin bar fix */
body.admin-bar .sticky {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .sticky {
		top: 46px;
	}
}

/* WooCommerce cart count in header */
.cart-count:empty {
	display: none;
}

/* Footer widget links */
.site-footer a {
	text-decoration: none;
}

/* Header nav menu items - remove default wp list styles */
#masthead .menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 2rem;
}

#masthead .menu li {
	list-style: none;
}

#masthead .menu a {
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	color: #334155;
	transition: color 0.3s;
}

#masthead .menu a:hover,
#masthead .menu .current-menu-item > a {
	color: #3f2d8f;
}

/* Mobile menu */
#mobile-menu .menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

#mobile-menu .menu li a {
	display: block;
	padding: 0.5rem 1rem;
	color: #334155;
	text-decoration: none;
	font-weight: 500;
	border-radius: 0.5rem;
	transition: background 0.2s;
}

#mobile-menu .menu li a:hover {
	background: #f1f5f9;
	color: #3f2d8f;
}

/* Footer menu */
#colophon .menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

#colophon .menu li {
	margin-bottom: 1rem;
}

#colophon .menu a {
	color: #94a3b8;
	text-decoration: none;
	font-size: 0.875rem;
	transition: color 0.2s;
}

#colophon .menu a:hover {
	color: #fff;
}

/* Custom logo sizing */
.custom-logo-link img {
	max-height: 50px;
	width: auto;
}

/* Popup animation */
#quote-popup {
	transition: opacity 0.2s;
}

#quote-popup.flex {
	animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

#quote-popup > div {
	animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
	from { transform: translateY(20px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}
