/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: 219 234% 54%; /* #3b82f6 */
    --primary-dark: 221 83% 53%; /* #2563eb */
    --secondary: 210 11% 98%; /* #f8fafc */
    --accent: 142 76% 36%; /* #059669 */
    --text: 222 84% 5%; /* #0f172a */
    --text-light: 215 20% 65%; /* #64748b */
    --background: 210 11% 98%; /* #f8fafc */
    --white: 0 0% 100%; /* #ffffff */
    --border: 214 32% 91%; /* #e2e8f0 */
    --success: 142 76% 36%; /* #059669 */
    --warning: 32 95% 44%; /* #d97706 */
    --error: 0 84% 60%; /* #ef4444 */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: hsl(var(--text));
    background-color: hsl(var(--background));
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--white));
}

.btn-primary:hover {
    background-color: hsl(var(--primary-dark));
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: hsl(var(--text-light));
    color: hsl(var(--white));
}

.btn-secondary:hover {
    background-color: hsl(var(--text));
}

.btn-outline {
    background-color: transparent;
    color: hsl(var(--primary));
    border: 2px solid hsl(var(--primary));
}

.btn-outline:hover {
    background-color: hsl(var(--primary));
    color: hsl(var(--white));
}

/* Header Styles */
.header {
    background-color: hsl(var(--white));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: hsl(var(--text));
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: hsl(var(--text));
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: hsl(var(--primary));
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: hsl(var(--text));
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, hsl(var(--secondary)), hsl(var(--primary) / 0.1));
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: hsl(var(--text));
}

.hero-content p {
    font-size: 1.2rem;
    color: hsl(var(--text-light));
    margin-bottom: 2rem;
}

.hero-graphic {
    display: flex;
    justify-content: center;
}

/* Section Styles */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: hsl(var(--text));
}

/* About Section */
.about {
    background-color: hsl(var(--white));
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: hsl(var(--text-light));
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background-color: hsl(var(--secondary));
    border-radius: 12px;
}

.stat h3 {
    font-size: 2.5rem;
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
}

.stat p {
    color: hsl(var(--text-light));
    font-weight: 500;
}

/* Services Section */
.services {
    background-color: hsl(var(--secondary));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: hsl(var(--white));
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: hsl(var(--text));
}

.service-card p {
    color: hsl(var(--text-light));
    line-height: 1.7;
}

/* Featured Books Section */
.featured-books {
    background-color: hsl(var(--white));
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.book-card {
    background-color: hsl(var(--secondary));
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-cover {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.book-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--text));
}

.book-card .author {
    font-style: italic;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
    font-weight: 600;
}

.book-card p {
    color: hsl(var(--text-light));
    line-height: 1.6;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    color: hsl(var(--white));
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    color: hsl(var(--white));
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Reviews Section */
.reviews {
    background-color: hsl(var(--secondary));
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background-color: hsl(var(--white));
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-card p {
    color: hsl(var(--text-light));
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.reviewer strong {
    color: hsl(var(--text));
    display: block;
}

.reviewer span {
    color: hsl(var(--text-light));
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background-color: hsl(var(--white));
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item h3 {
    color: hsl(var(--text));
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: hsl(var(--text-light));
    line-height: 1.6;
}

.social-media h3 {
    color: hsl(var(--text));
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: hsl(var(--text-light));
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: hsl(var(--secondary));
    color: hsl(var(--primary));
}

/* Footer */
.footer {
    background-color: hsl(var(--text));
    color: hsl(var(--white));
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: hsl(var(--white));
}

.footer-section p {
    color: hsl(var(--text-light));
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: hsl(var(--text-light));
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: hsl(var(--primary));
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--text));
    color: hsl(var(--white));
    padding: 1.5rem;
    z-index: 1001;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-banner.hidden {
    display: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: hsl(var(--white));
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: hsl(var(--text-light));
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: hsl(var(--text));
}

.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid hsl(var(--border));
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category div {
    flex: 1;
}

.cookie-category h3 {
    margin-bottom: 0.5rem;
    color: hsl(var(--text));
}

.cookie-category p {
    color: hsl(var(--text-light));
    font-size: 0.9rem;
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsl(var(--text-light));
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: hsl(var(--white));
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: hsl(var(--primary));
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: hsl(var(--white));
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .cookie-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .toggle {
        align-self: flex-end;
    }

    .modal-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .service-card,
    .review-card {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: hsl(var(--white));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-content {
    padding: 2rem;
}

.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: hsl(var(--text));
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: hsl(var(--text-light));
}

.blog-card p {
    color: hsl(var(--text-light));
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: hsl(var(--primary-dark));
}

/* Article Styles */
.article-header {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, hsl(var(--secondary)), hsl(var(--primary) / 0.1));
    text-align: center;
}

.article-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: hsl(var(--text));
}

.article-meta {
    font-size: 1.1rem;
    color: hsl(var(--text-light));
    margin-bottom: 2rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
    color: hsl(var(--text));
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: hsl(var(--text));
}

.article-content p {
    margin-bottom: 1.5rem;
    color: hsl(var(--text-light));
    font-size: 1.1rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: hsl(var(--text-light));
}

.article-content blockquote {
    border-left: 4px solid hsl(var(--primary));
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: hsl(var(--secondary));
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Legal Pages Styles */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: hsl(var(--text));
}

.legal-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
    color: hsl(var(--text));
}

.legal-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: hsl(var(--text));
}

.legal-content p {
    margin-bottom: 1.5rem;
    color: hsl(var(--text-light));
    line-height: 1.7;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.8rem;
    color: hsl(var(--text-light));
}
