/* Main style for Hikutu Bibezo website */

/* Color palette:
 * Primary: #FF5851 - Red coral
 * Accent: #FFA552 - Orange 
 * Background: #FFF9F4 - Creamy white
 * Text: #2B2B2B - Deep graphite
 * Interface elements: #B37BA4 - Purple-pink
 */

/* Reset and base styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: #2b2b2b;
	background-color: #fff9f4;
}

a {
	color: #ff5851;
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: #b37ba4;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin-bottom: 1rem;
	font-weight: 700;
	line-height: 1.2;
}

h1 {
	font-size: 2.5rem;
	margin-bottom: 1.5rem;
}

h2 {
	font-size: 2rem;
	position: relative;
	padding-bottom: 15px;
	margin-bottom: 2rem;
	text-align: center;
}

h2::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background-color: #ffa552;
}

h3 {
	font-size: 1.5rem;
}

p {
	margin-bottom: 1rem;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 12px 25px;
	border-radius: 30px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
}

.btn-primary {
	background-color: #ff5851;
	color: white;
}

.btn-primary:hover {
	background-color: #e04a43;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(255, 88, 81, 0.3);
}

.btn-secondary {
	background-color: #b37ba4;
	color: white;
}

.btn-secondary:hover {
	background-color: #9c6990;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(179, 123, 164, 0.3);
}

/* Header */
header {
	background-color: white;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
}

.logo {
	font-size: 1.5rem;
	font-weight: 700;
	display: flex;
	align-items: center;
}

.logo img {
	height: 40px;
	margin-right: 10px;
}

/* Navigation */
.nav-toggle {
	display: none;
}

.nav-menu {
	list-style: none;
	display: flex;
}

.nav-menu li {
	margin-left: 20px;
}

.nav-menu a {
	padding: 8px 15px;
	border-radius: 20px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.nav-menu a:hover {
	background-color: #fff9f4;
	color: #ff5851;
}

/* Hero Section */
.hero {
	padding: 140px 0 80px;
	text-align: center;
	background-color: #fff9f4;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(255, 88, 81, 0.1), rgba(255, 165, 82, 0.1));
	z-index: 0;
}

.hero .container {
	position: relative;
	z-index: 1;
}

.hero h1 {
	font-size: 3rem;
	margin-bottom: 20px;
	color: #ff5851;
}

.hero p {
	font-size: 1.2rem;
	max-width: 700px;
	margin: 0 auto 30px;
}

/* About Section */
.about {
	padding: 80px 0;
	background-color: white;
}

.about-content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
}

.about-text {
	flex: 1;
	min-width: 300px;
}

.about-image {
	flex: 1;
	min-width: 300px;
	border-radius: 10px;
	overflow: hidden;
}

/* Benefits Section */
.benefits {
	padding: 80px 0;
	background-color: #fff9f4;
}

.benefits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.benefit-card {
	background-color: white;
	border-radius: 10px;
	padding: 30px;
	text-align: center;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease;
}

.benefit-card:hover {
	transform: translateY(-5px);
}

.benefit-icon {
	font-size: 3rem;
	margin-bottom: 20px;
}

/* Books Section */
.books {
	padding: 80px 0;
	background-color: white;
}

.books-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.book-card {
	background-color: #fff9f4;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
}

.book-card:hover {
	transform: translateY(-5px);
}

.book-image {
	height: 200px;
	overflow: hidden;
}

.book-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.book-card:hover .book-image img {
	transform: scale(1.05);
}

.book-card h3,
.book-card p,
.book-price {
	padding: 0 20px;
}

.book-card h3 {
	margin-top: 20px;
	color: #ff5851;
}

.book-price {
	font-size: 1.2rem;
	font-weight: 700;
	color: #b37ba4;
	margin: 10px 0;
}

.book-card .btn {
	margin: 15px 20px 20px;
}

/* Testimonials Section */
.testimonials {
	padding: 80px 0;
	background-color: #fff9f4;
}

.testimonial-slider {
	margin-top: 40px;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.testimonial {
	background-color: white;
	border-radius: 10px;
	padding: 30px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
	position: relative;
}

.testimonial blockquote {
	font-style: italic;
	font-size: 1.1rem;
	margin-bottom: 20px;
	position: relative;
}

.testimonial blockquote::before {
	content: '"';
	font-size: 3rem;
	color: #ffa552;
	opacity: 0.3;
	position: absolute;
	top: -20px;
	left: -15px;
}

.testimonial cite {
	font-style: normal;
	font-weight: 600;
	color: #b37ba4;
}

/* FAQ Section */
.faq {
	padding: 80px 0;
	background-color: white;
}

.faq-container {
	margin-top: 40px;
}

.faq-item {
	margin-bottom: 20px;
	border-bottom: 1px solid #eee;
}

.faq-item h3 {
	padding: 15px 20px;
	background-color: #fff9f4;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.faq-item h3::after {
	content: "+";
	font-size: 1.5rem;
	color: #ff5851;
}

.faq-answer {
	padding: 0 20px 20px;
}

/* Order Section */
.order {
	padding: 80px 0;
	background-color: #fff9f4;
}

.order-form {
	max-width: 600px;
	margin: 40px auto 0;
	background-color: white;
	padding: 30px;
	border-radius: 10px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
}

.form-group input,
.form-group select {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
	outline: none;
	border-color: #ff5851;
}

.form-group.checkbox {
	display: flex;
	align-items: flex-start;
}

.form-group.checkbox input {
	width: auto;
	margin-right: 10px;
	margin-top: 5px;
}

.form-group.checkbox label {
	margin-bottom: 0;
}

/* Contact Section */
.contact {
	padding: 80px 0;
	background-color: white;
}

.contact-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.contact-item {
	text-align: center;
	padding: 30px;
	background-color: #fff9f4;
	border-radius: 10px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-icon {
	font-size: 2rem;
	margin-bottom: 15px;
	color: #ff5851;
}

/* Footer */
footer {
	background-color: #2b2b2b;
	color: white;
	padding: 50px 0 20px;
}

.footer-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.footer-col h3 {
	color: #ffa552;
	margin-bottom: 20px;
	position: relative;
	display: inline-block;
}

.footer-col h3::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -5px;
	width: 40px;
	height: 2px;
	background-color: #ff5851;
}

.footer-col ul {
	list-style: none;
}

.footer-col ul li {
	margin-bottom: 10px;
}

.footer-col ul a {
	color: #ccc;
	transition: color 0.3s ease;
}

.footer-col ul a:hover {
	color: white;
}

.footer-bottom {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid #444;
	font-size: 0.9rem;
	color: #aaa;
}

/* Cookie Consent */
.cookie-consent {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: white;
	padding: 20px;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.cookie-text {
	margin-bottom: 20px;
	text-align: center;
}

.cookie-buttons {
	display: flex;
	gap: 15px;
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
	h1 {
		font-size: 2.2rem;
	}

	h2 {
		font-size: 1.8rem;
	}

	.hero {
		padding: 120px 0 60px;
	}

	.hero h1 {
		font-size: 2.5rem;
	}
}

@media (max-width: 768px) {
	/* Navigation for mobile */
	.nav-toggle {
		display: block;
		background: none;
		border: none;
		font-size: 1.5rem;
		cursor: pointer;
		color: #2b2b2b;
	}

	.nav-menu {
		position: absolute;
		top: 70px;
		left: 0;
		right: 0;
		flex-direction: column;
		background-color: white;
		box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
		padding: 20px 0;
		display: none;
	}

	.nav-menu.active {
		display: flex;
	}

	.nav-menu li {
		margin: 0;
	}

	.nav-menu a {
		display: block;
		padding: 15px 25px;
		border-radius: 0;
	}

	/* Layout adjustments */
	.about-content,
	.benefits-grid,
	.books-grid,
	.contact-info {
		gap: 20px;
	}

	.hero {
		padding: 100px 0 50px;
	}

	.hero h1 {
		font-size: 2rem;
	}

	section {
		padding: 60px 0;
	}
}

@media (max-width: 576px) {
	.hero h1 {
		font-size: 1.8rem;
	}

	h2 {
		font-size: 1.5rem;
	}

	.btn {
		padding: 10px 20px;
	}

	.footer-container {
		gap: 30px;
	}
}

/* CSS-only accordion for FAQ without JavaScript */
.faq-item h3:focus-within::after {
	content: "-";
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.faq-item h3:focus + .faq-answer,
.faq-item h3:active + .faq-answer,
.faq-answer:focus-within {
	max-height: 500px;
}

/* CSS for mobile menu toggle without JavaScript */
#menu-toggle {
	display: none;
}

#menu-toggle:checked ~ .nav-menu {
	display: flex;
}

.menu-icon {
	display: none;
}

@media (max-width: 768px) {
	.menu-icon {
		display: flex;
		flex-direction: column;
		width: 30px;
		cursor: pointer;
	}

	.menu-icon span {
		background: #2b2b2b;
		border-radius: 10px;
		height: 3px;
		margin: 3px 0;
		transition: 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
	}

	.menu-icon span:nth-of-type(1) {
		width: 50%;
	}

	.menu-icon span:nth-of-type(2) {
		width: 100%;
	}

	.menu-icon span:nth-of-type(3) {
		width: 75%;
	}

	#menu-toggle:checked ~ .menu-icon span:nth-of-type(1) {
		transform-origin: bottom;
		transform: rotatez(45deg) translate(5px, 0px);
	}

	#menu-toggle:checked ~ .menu-icon span:nth-of-type(2) {
		transform-origin: top;
		transform: rotatez(-45deg);
	}

	#menu-toggle:checked ~ .menu-icon span:nth-of-type(3) {
		transform-origin: bottom;
		width: 50%;
		transform: translate(12px, -7px) rotatez(45deg);
	}
}

/* CSS-only testimonial slider */
.testimonial-slider {
	position: relative;
	max-width: 800px;
	margin: 40px auto 0;
	overflow: hidden;
}

.testimonial {
	opacity: 0.5;
	transition: opacity 0.3s ease;
	transform: scale(0.9);
}

.testimonial:hover,
.testimonial:focus-within {
	opacity: 1;
	transform: scale(1);
}

.testimonial:nth-child(1) {
	opacity: 1;
	transform: scale(1);
}
