/* Additional Styles for Header, Footer, and Reviews */

/* Header Styles */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background-color: transparent;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
	background-color: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 1.5rem;
}

.site-branding {
	z-index: 1001;
	display: flex;
	flex-direction: row;
	align-items: center;
	text-transform: uppercase;
}

.site-logo svg {
    width: 180px;
    height: auto;
    margin-right: 1rem;
}

/* Stack both logos on top of each other */
a[rel="home"] {
    position: relative;
    display: inline-flex;
}

.site-logo {
    transition: opacity 0.3s ease;
}

.site-logo.black {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.site-logo.white {
    opacity: 1;
}

/* Scrolled: fade white out, black in */
.site-header.scrolled .site-logo.white {
    opacity: 0;
}

.site-header.scrolled .site-logo.black {
    opacity: 1;
}

.site-header.scrolled .site-logo.black svg {
    fill: var(--primary) !important;
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
	font-family: Georgia, 'Times New Roman', serif;
}

.site-title a {
	color: white;
	text-decoration: none;
	transition: color 0.3s ease;
}

.site-header.scrolled .site-title a {
	color: var(--foreground);
}

.site-description {
	margin: 0;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.8);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.site-header.scrolled .site-description {
	color: var(--muted-foreground);
}

/* Navigation */
.site-navigation {
	display: flex;
	align-items: center;
}

.nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 2.5rem;
}

.nav-menu li {
	margin: 0;
}

.nav-menu a {
	color: white;
	text-decoration: none;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	transition: opacity 0.3s ease;
	position: relative;
}

.nav-menu a::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 1px;
	background-color: white;
	transition: width 0.3s ease;
}

.nav-menu a:hover::after {
	width: 100%;
}

.site-header.scrolled .nav-menu a {
	color: var(--foreground);
}

.site-header.scrolled .nav-menu a::after {
	background-color: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	z-index: 1001;
}

.menu-icon {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 24px;
}

.menu-icon span {
	width: 100%;
	height: 2px;
	background-color: white;
	transition: all 0.3s ease;
}

.site-header.scrolled .menu-icon span {
	background-color: var(--foreground);
}

.mobile-menu-toggle.active .menu-icon span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .menu-icon span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle.active .menu-icon span:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
@media (max-width: 768px) {
	.mobile-menu-toggle {
		display: block;
	}

	.site-navigation {
		position: fixed;
		top: 0;
		right: -100%;
		width: 50%;
		max-width: 300px;
		height: 100vh;
		background-color: white;
		padding: 5rem 2rem 2rem;
		transition: right 0.3s ease;
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
		display: flex;
		align-items: center;
		flex-direction: column;
		justify-content: center;
	}

	.site-navigation.active {
		right: 0;
	}

	.nav-menu {
		flex-direction: column;
		gap: 1.5rem;
	}

	.nav-menu a {
		color: var(--foreground);
		font-size: 1rem;
	}

	.nav-menu a::after {
		background-color: var(--primary);
	}

	body.menu-open {
		overflow: hidden;
	}

	body.menu-open::before {
		content: '';
		position: fixed;
		inset: 0;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: 999;
	}

	.lang-switch {
		color: #0A0A0A !important;
		border: 1px solid rgb(0 0 0 / 30%) !important;
	}
}

/* Footer Styles */
.site-footer {
	background-color: var(--foreground);
	color: rgba(255, 255, 255, 0.8);
	padding-top: 3rem;
}

.footer-widgets {
	padding: 2rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.footer-widget-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 3rem;
	}
}

.footer-widget-area .widget {
	margin-bottom: 1.5rem;
}

.footer-widget-area .widget-title {
	color: white;
	font-size: 1.125rem;
	margin-bottom: 1rem;
	font-weight: 500;
}

.footer-widget-area ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-widget-area ul li {
	margin-bottom: 0.5rem;
}

.footer-widget-area a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-widget-area a:hover {
	color: white;
}

.site-info {
	padding: 2rem 0;
}

.footer-bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-align: center;
}

@media (min-width: 768px) {
	.footer-bottom {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}

.copyright {
	font-size: 0.875rem;
}

.footer-navigation {
	display: flex;
}

.footer-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 1.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

@media (min-width: 768px) {
	.footer-menu {
		justify-content: flex-start;
	}
}

.footer-menu a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-size: 0.875rem;
	transition: color 0.3s ease;
}

.footer-menu a:hover {
	color: white;
}

/* Reviews Section */
.reviews-section {
	padding: 6rem 0;
	background-color: var(--background);
}

.reviews-header {
	text-align: center;
	max-width: 42rem;
	margin: 0 auto 4rem;
}

.reviews-label {
	color: var(--primary);
	font-size: 0.75rem;
	font-weight: bold;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin-bottom: 1rem;
	display: block;
}

.book-header {
	text-align: center;
	max-width: 42rem;
	margin: 0 auto 4rem;
}

.book-label {
	color: var(--primary);
	font-size: 0.75rem;
	font-weight: bold;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin-bottom: 1rem;
	display: block;
}

.reviews-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.reviews-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.reviews-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.review-card {
	background-color: white;
	padding: 2rem;
	border: 1px solid var(--border);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.review-rating {
	display: flex;
	gap: 0.25rem;
	margin-bottom: 1rem;
}

.star-icon {
	color: var(--border);
}

.star-icon.filled {
	color: var(--primary);
	fill: var(--primary);
	stroke: var(--primary);
}

.review-content {
	color: var(--muted-foreground);
	font-size: 0.9375rem;
	line-height: 1.7;
	margin-bottom: 1.5rem;
	font-style: italic;
}

.review-author {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.author-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	/* overflow: hidden; */
	flex-shrink: 0;
}

.author-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.author-name {
	font-size: 1rem;
	font-weight: 500;
	color: var(--foreground);
	margin: 0;
}

/* Utility Classes */
.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;
	width: 1px;
	word-wrap: normal;
}

.skip-link {
	background-color: var(--primary);
	color: white;
	padding: 0.5rem 1rem;
	text-decoration: none;
	position: absolute;
	top: -100px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10000;
	transition: top 0.3s ease;
}

.skip-link:focus {
	top: 0;
}