/* 
   FinLectura - Styles
   Color Palette:
   - Main Background: #FDF6F0 (warm peach-beige)
   - Accents: #D93A3A (crimson)
   - Text: #222222 (dark gray)
   - Secondary background/buttons: #FFC857 (bright yellow)
   - Shades for smooth contrast: #F7D6BF, #F3EAE3
*/

/* Reset & Base Styles */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Arial", sans-serif;
	line-height: 1.6;
	color: #222222;
	background-color: #fdf6f0;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: #d93a3a;
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: #b02020;
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2rem;
	position: relative;
	padding-bottom: 10px;
}

h2:after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 3px;
	background-color: #d93a3a;
}

h3 {
	font-size: 1.5rem;
}

p {
	margin-bottom: 1.5rem;
}

section {
	padding: 4rem 0;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 12px 25px;
	border-radius: 30px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
	text-align: center;
}

.btn-primary {
	background-color: #d93a3a;
	color: white;
}

.btn-primary:hover {
	background-color: #b02020;
	color: white;
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(217, 58, 58, 0.3);
}

.btn-secondary {
	background-color: #ffc857;
	color: #222222;
}

.btn-secondary:hover {
	background-color: #e5b44e;
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(255, 200, 87, 0.3);
}

/* Header & Navigation */
.site-header {
	padding: 1rem 0;
	background: linear-gradient(135deg, #fdf6f0 0%, #f7d6bf 100%);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.site-header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	z-index: 1001;
}

.nav-toggle {
	display: none;
}

.nav-toggle-label {
	display: none;
}

.main-nav ul {
	display: flex;
	list-style: none;
}

.main-nav li {
	margin-left: 1.5rem;
}

.main-nav a {
	font-weight: 600;
	color: #222222;
	padding: 5px 0;
	position: relative;
}

.main-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background-color: #d93a3a;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease;
}

.main-nav a:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
	.nav-toggle-label {
		display: block;
		cursor: pointer;
		z-index: 1001;
	}

	.nav-toggle-label span,
	.nav-toggle-label span::before,
	.nav-toggle-label span::after {
		display: block;
		background: #222222;
		height: 2px;
		width: 25px;
		position: relative;
		transition: transform 0.3s ease;
	}

	.nav-toggle-label span::before,
	.nav-toggle-label span::after {
		content: "";
		position: absolute;
	}

	.nav-toggle-label span::before {
		bottom: 8px;
	}

	.nav-toggle-label span::after {
		top: 8px;
	}

	.main-nav {
		position: absolute;
		top: 0;
		left: 0;
		background: rgba(253, 246, 240, 0.95);
		width: 100%;
		height: 100vh;
		display: flex;
		align-items: center;
		justify-content: center;
		transform: scale(0);
		transform-origin: top right;
		transition: transform 0.3s ease;
		z-index: 1000;
	}

	.main-nav ul {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.main-nav li {
		margin: 1rem 0;
	}

	.nav-toggle:checked ~ .main-nav {
		transform: scale(1);
	}

	.nav-toggle:checked ~ .nav-toggle-label span {
		transform: rotate(45deg);
	}

	.nav-toggle:checked ~ .nav-toggle-label span::before {
		transform: rotate(90deg);
		bottom: 0;
	}

	.nav-toggle:checked ~ .nav-toggle-label span::after {
		transform: rotate(90deg);
		top: 0;
	}
}

/* Hero Banner */
.hero {
	height: 80vh;
	min-height: 500px;
	background: linear-gradient(135deg, rgba(247, 214, 191, 0.5) 0%, rgba(243, 234, 227, 0.5) 100%);
	display: flex;
	align-items: center;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero-content {
	max-width: 800px;
	margin: 0 auto;
	z-index: 1;
}

.hero h1 {
	font-size: 3.5rem;
	margin-bottom: 1.5rem;
	animation: fadeInUp 1s ease;
}

.hero p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	animation: fadeInUp 1s ease 0.2s;
	animation-fill-mode: both;
}

.hero .btn {
	animation: fadeInUp 1s ease 0.4s;
	animation-fill-mode: both;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* About Section */
.about {
	background-color: #f3eae3;
	border-radius: 10px;
	margin: 2rem 0;
	padding: 3rem;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	position: relative;
	overflow: hidden;
}

.about::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(247, 214, 191, 0.3) 0%, rgba(243, 234, 227, 0.3) 100%);
	z-index: 0;
}

.about-content {
	position: relative;
	z-index: 1;
}

/* Book Sections */
.books {
	padding: 4rem 0;
}

.book-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.book-card {
	background-color: white;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.book-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.book-image {
	height: 250px;
	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-info {
	padding: 1.5rem;
}

.book-info h3 {
	margin-bottom: 0.5rem;
}

.book-info p {
	margin-bottom: 1rem;
}

.book-price {
	font-size: 1.25rem;
	font-weight: 700;
	color: #d93a3a;
	margin-bottom: 1rem;
	display: block;
}

/* Features Section */
.features {
	background-color: #f7d6bf;
	padding: 4rem 0;
}

.feature-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.feature-card {
	background-color: white;
	padding: 2rem;
	border-radius: 10px;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease;
}

.feature-card:hover {
	transform: translateY(-5px);
}

.feature-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.feature-icon img {
	max-width: 60px;
	max-height: 60px;
}

/* Testimonials */
.testimonials {
	padding: 4rem 0;
}

.testimonial-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.testimonial-card {
	background-color: white;
	border-radius: 15px;
	padding: 2rem;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	position: relative;
}

.testimonial-card::before {
	content: '"';
	position: absolute;
	top: 10px;
	left: 15px;
	font-size: 4rem;
	color: #f7d6bf;
	line-height: 1;
	z-index: 0;
}

.testimonial-content {
	position: relative;
	z-index: 1;
}

.testimonial-image {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 1rem;
}

.testimonial-name {
	font-weight: 700;
	margin-bottom: 0.25rem;
}

.testimonial-title {
	color: #666;
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

/* Order Form Section */
.order-form-section {
	background: linear-gradient(135deg, #f7d6bf 0%, #f3eae3 100%);
	padding: 4rem 0;
	border-radius: 10px;
	margin: 2rem 0;
}

.order-form {
	background-color: white;
	max-width: 600px;
	margin: 0 auto;
	padding: 3rem;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	position: relative;
	z-index: 1;
}

.order-form::before {
	content: "";
	position: absolute;
	top: -10px;
	left: -10px;
	right: -10px;
	bottom: -10px;
	background: linear-gradient(135deg, #d93a3a 0%, #ffc857 100%);
	border-radius: 20px;
	z-index: -1;
	opacity: 0.1;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.form-group input,
.form-group select {
	width: 100%;
	padding: 12px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background-color: #f9f9f9;
	transition:
		border-color 0.3s ease,
		box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
	border-color: #d93a3a;
	box-shadow: 0 0 0 2px rgba(217, 58, 58, 0.1);
	outline: none;
}

.checkbox-group {
	display: flex;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.checkbox-group input {
	margin-right: 10px;
	margin-top: 5px;
}

.form-submit {
	margin-top: 2rem;
	text-align: center;
}

/* Blog Section */
.blog {
	padding: 4rem 0;
}

.blog-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.blog-card {
	background-color: white;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease;
}

.blog-card:hover {
	transform: translateY(-5px);
}

.blog-image {
	height: 200px;
	overflow: hidden;
}

.blog-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
	transform: scale(1.05);
}

.blog-info {
	padding: 1.5rem;
}

.blog-date {
	color: #666;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}

.blog-info h3 {
	margin-bottom: 0.5rem;
}

.blog-info p {
	margin-bottom: 1rem;
}

/* FAQ Section */
.faq {
	padding: 4rem 0;
	background-color: #f3eae3;
}

.accordion {
	margin-top: 2rem;
}

.accordion-item {
	margin-bottom: 1rem;
	border-radius: 10px;
	overflow: hidden;
}

.accordion-title {
	background-color: white;
	padding: 1rem;
	cursor: pointer;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background-color 0.3s ease;
}

.accordion-title:hover {
	background-color: #f9f9f9;
}

.accordion-title:after {
	content: "+";
	font-size: 1.5rem;
	color: #d93a3a;
}

.accordion-content {
	background-color: white;
	padding: 0 1rem;
	max-height: 0;
	overflow: hidden;
	transition:
		max-height 0.3s ease,
		padding 0.3s ease;
}

.accordion-item:target .accordion-content {
	max-height: 500px;
	padding: 1rem;
}

.accordion-item:target .accordion-title:after {
	content: "-";
}

/* Footer */
.site-footer {
	background-color: #222222;
	color: white;
	padding: 4rem 0 2rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	margin-bottom: 3rem;
}

.footer-info p {
	margin-top: 1rem;
	color: #ccc;
}

.footer-contact address {
	font-style: normal;
	color: #ccc;
}

.footer-contact a,
.footer-links a,
.footer-legal a {
	color: #ffc857;
}

.footer-contact a:hover,
.footer-links a:hover,
.footer-legal a:hover {
	color: #e5b44e;
}

.footer-links ul,
.footer-legal ul {
	list-style: none;
}

.footer-links li,
.footer-legal li {
	margin-bottom: 0.5rem;
}

.copyright {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: #ccc;
}

/* Cookie Banner */
.cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(34, 34, 34, 0.9);
	color: white;
	padding: 1rem;
	z-index: 2000;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cookie-banner p {
	margin: 0;
	padding-right: 1rem;
}

.cookie-banner a {
	color: #ffc857;
}

/* Legal Pages */
.legal-page {
	padding: 4rem 0;
}

.legal-content {
	background-color: white;
	padding: 3rem;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legal-content h2 {
	margin-bottom: 2rem;
}

.legal-content h3 {
	margin-top: 2rem;
	margin-bottom: 1rem;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
	h1 {
		font-size: 2rem;
	}

	h2 {
		font-size: 1.75rem;
	}

	.hero {
		height: 70vh;
	}

	.hero h1 {
		font-size: 2.5rem;
	}

	.order-form {
		padding: 2rem;
	}

	.cookie-banner {
		flex-direction: column;
		text-align: center;
	}

	.cookie-banner p {
		margin-bottom: 1rem;
		padding-right: 0;
	}
}

@media screen and (max-width: 480px) {
	.hero h1 {
		font-size: 2rem;
	}

	.hero p {
		font-size: 1rem;
	}

	section {
		padding: 3rem 0;
	}

	.about,
	.order-form {
		padding: 1.5rem;
	}
}

/* Animations and transitions */
.animate-fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity 0.5s ease,
		transform 0.5s ease;
}

.animate-fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Thanks page styles */
.thanks-page {
	height: 80vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	width: 100%;
	margin: 0 auto;
	padding: 20px;
}

.thanks-content {
	max-width: 600px;
	width: 100%;
	padding: 3rem;
	background-color: white;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	animation: fadeInUp 1s ease;
	margin: 0 auto;
	text-align: center;
}

.thanks-icon {
	color: #d93a3a;
	font-size: 4rem;
	margin-bottom: 1rem;
	margin: 0 auto 1rem;
	text-align: center;
	display: flex;
	justify-content: center;
}

.thanks-content h1 {
	margin-bottom: 1rem;
	text-align: center;
}

.thanks-content p {
	margin-bottom: 1.5rem;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.contact-info {
	margin-bottom: 2rem;
}

.contact-info p {
	margin-bottom: 0.5rem;
}

.button-container {
	text-align: center;
	margin: 2rem auto 0;
}

.thanks-content .btn {
	display: inline-block;
	margin: 0 auto;
}

/* Simple CSS Accordion without JS */
.css-accordion {
	width: 100%;
}

.css-accordion-item input[type="radio"] {
	display: none;
}

.css-accordion-item {
	margin-bottom: 10px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.css-accordion-title {
	padding: 15px;
	background-color: white;
	display: block;
	cursor: pointer;
	font-weight: 600;
	position: relative;
}

.css-accordion-title::after {
	content: "+";
	position: absolute;
	right: 15px;
	font-size: 1.5rem;
	color: #d93a3a;
	transition: transform 0.3s ease;
}

.css-accordion-content {
	background-color: white;
	padding: 0 15px;
	max-height: 0;
	overflow: hidden;
	transition:
		max-height 0.3s ease,
		padding 0.3s ease;
}

.css-accordion-item input[type="radio"]:checked ~ .css-accordion-content {
	max-height: 500px;
	padding: 15px;
}

.css-accordion-item input[type="radio"]:checked ~ .css-accordion-title::after {
	content: "-";
	transform: rotate(180deg);
}
