@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #558B2F;
    /* Natural Green from Logo */
    --primary-dark: #33691E;
    --sidebar-width: 320px;
    --bg-color: #ffffff;
    --text-color: #222222;
    --heading-color: #000000;
    --footer-bg: #1c1c1c;
    --footer-text: #888888;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Sidebar Navigation */
.sidebar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--primary-color);
    color: #ffffff;
    z-index: 1000;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.logo {
    margin-bottom: 3rem;
    display: block;
    text-align: center;
}

.logo img {
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    display: block;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.main-nav {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.nav-list a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.nav-list a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.lang-switch {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.lang-switch a.active {
    color: #ffffff;
    font-weight: bold;
    text-decoration: underline;
}

.sidebar-footer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: auto;
}

.social-links a {
    color: #ffffff;
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Main Content Wrapper */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    background: var(--primary-color);
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin-bottom: 5px;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #fbfbfb;
    /* Subtle contrast */
    padding: 0 2rem;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-family: var(--font-body);
}

/* Sections */
.section {
    padding: 120px 0;
}

.section-title h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title h2::after {
    content: "✦";
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: sans-serif;
    /* simple symbol */
}

/* About Block */
.about-section .lead-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-align: center;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.card {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.value-item {
    background: transparent;
    padding: 0;
}

.value-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 1rem;
}

/* Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work-card {
    background: #f4f4f4;
    color: var(--text-color);
    padding: 3rem 2rem;
    border-radius: 0;
    /* Sharp edges */
    text-align: center;
    display: block;
    transition: var(--transition);
}

.work-card:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

.work-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.work-card:hover .work-icon {
    color: #fff;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 40px;
    /* margin-left removed as it is inside main-content now */
    width: 100%;
}

.footer-content {
    border-bottom: 1px solid #333;
}

.footer-col h3,
.footer-col h4 {
    color: #fff;
    font-size: 1.5rem;
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 0px;
    }

    .sidebar-wrapper {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar-wrapper.active {
        transform: translateX(0);
    }

    .main-content,
    .site-footer {
        margin-left: 0;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .container {
        padding: 0 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .grid-2,
    .values-grid,
    .work-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Dynamic Pages Styles --- */

/* Right Sidebar Layout */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.main-column {
    /* Takes remaining space */
}

.right-sidebar {
    border-left: 1px solid #eee;
    padding-left: 2rem;
}

.widget {
    margin-bottom: 3rem;
}

.widget h4 {
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.9rem;
}

.post-item {
    margin-bottom: 4rem;
}

.post-thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.post-date {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-content h3 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
}

/* Book Detail */
.book-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
    align-items: start;
}

.book-media img {
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.book-info h1 {
    font-size: 2.5rem;
}

.price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 2rem;
}

.meta-row {
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
}

.btn-buy {
    background: var(--primary-color);
    color: white;
    padding: 1rem 3rem;
    border: none;
    margin-top: 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-buy:hover {
    background: var(--primary-dark);
}

@media (max-width: 900px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .right-sidebar {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #eee;
        padding-top: 2rem;
    }

    .book-detail-wrapper {
        grid-template-columns: 1fr;
    }
}