/* Base Styles */
:root {
    --primary: #5d4e75;
    --secondary: #85677b;
    --accent: #adadc9;
    --light: #d6d6f5;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-main: #fafafa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Roboto, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-main);
    overflow-x: hidden;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    z-index: 1000;
    transition: all 0.4s ease;
    border-radius: 0 24px 24px 0;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 32px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-nav {
    padding: 24px 0;
}

.sidebar-nav a {
    display: block;
    padding: 16px 24px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0 20px 20px 0;
    margin: 4px 0;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(8px);
}

.menu-toggle {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(93, 78, 117, 0.3);
}

.menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(93, 78, 117, 0.4);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.main-content {
    margin-left: 0;
    transition: all 0.4s ease;
}

/* Hero Section with Diagonal Cut */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--light), var(--accent));
    position: relative;
    display: flex;
    align-items: center;
    padding: 80px 0 0 80px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--primary);
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.hero-image {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

/* Organic Buttons */
.btn-organic {
    display: inline-block;
    padding: 16px 32px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 20px 8px 16px 12px;
    transition: all 0.4s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn-organic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.btn-organic:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(133, 103, 123, 0.3);
    border-radius: 8px 20px 12px 16px;
}

.btn-organic:hover::before {
    left: 100%;
}

/* Masonry Layout */
.masonry-container {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    grid-auto-rows: masonry;
}

.masonry-item {
    background: white;
    padding: 32px;
    border-radius: 16px 8px 20px 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    break-inside: avoid;
}

.masonry-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border-radius: 8px 16px 12px 20px;
}

.masonry-item h3 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.3rem;
    font-weight: 500;
}

.masonry-item.tall {
    grid-row: span 2;
}

.masonry-item.wide {
    grid-column: span 2;
}

.masonry-item img {
    width: 100%;
    height: auto;
    border-radius: 12px 4px 8px 16px;
    margin-bottom: 16px;
}

/* Service Cards */
.service-icon {
    width: 60px;
    height: 60px;
    background: var(--light);
    border-radius: 50% 30% 50% 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.4s ease;
}

.service-icon i {
    color: var(--primary);
    font-size: 1.5rem;
}

.masonry-item:hover .service-icon {
    border-radius: 30% 50% 30% 50%;
    transform: rotate(5deg);
}

/* About Section */
.about-section {
    background: linear-gradient(45deg, var(--light), white);
    padding: 80px 24px;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 85%);
    margin: 40px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 300;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--secondary);
    display: block;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Section */
.contact-section {
    padding: 80px 24px;
    background: var(--primary);
    color: white;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    font-weight: 300;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-input {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px 4px 8px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.9);
}

.form-input:focus {
    outline: none;
    border-radius: 4px 12px 16px 8px;
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(255,255,255,0.3);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 40px 24px;
}

/* WordPress Specific Styles */
/* Post List */
.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}

.post-item {
    background: white;
    border-radius: 16px 8px 20px 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border-radius: 8px 16px 12px 20px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-item h3 {
    padding: 24px 24px 12px;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.4;
}

.post-item h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-item h3 a:hover {
    color: var(--secondary);
}

.post-item p {
    padding: 0 24px 24px;
    color: var(--text-light);
    flex: 1 0 auto;
}

.post-item > a:last-of-type {
    align-self: flex-start;
    margin: 0 24px 24px;
    padding: 12px 24px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 20px 8px 16px 12px;
    transition: all 0.4s ease;
    font-weight: 500;
}

.post-item > a:last-of-type:hover {
    background: var(--primary);
    border-radius: 8px 20px 12px 16px;
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0 80px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 4px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-numbers.current {
    background: var(--primary);
    color: white;
}

.page-numbers:hover:not(.current) {
    background: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.next.page-numbers,
.prev.page-numbers {
    width: auto;
    padding: 0 16px;
    border-radius: 20px;
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 24px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-dark);
}

/* Single Post and Page */
.page-content {
    max-width: 800px;
    margin: 40px auto 80px;
    padding: 0;
    background: white;
    border-radius: 16px 8px 20px 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    overflow: hidden;
}

.page-content .post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-content h1 {
    padding: 32px 32px 16px;
    font-size: 2rem;
    color: var(--primary);
    font-weight: 400;
    line-height: 1.3;
}

.page-content .content {
    padding: 0 32px 32px;
    color: var(--text-dark);
}

.page-content .content p {
    margin-bottom: 16px;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 80px 24px;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 300;
}

.error-404 p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* Homepage Styles */
.homepage {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 80vh;
    min-height: 500px;
    background: linear-gradient(135deg, var(--light), var(--accent));
    position: relative;
    display: flex;
    align-items: center;
    padding: 80px 0 0 80px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    overflow: hidden;
}

.hero-section .hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--primary);
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.hero-section .hero-image {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 60%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-section .hero-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 20px 8px 16px 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

/* Random Posts Section */
.random-posts {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.random-posts h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 300;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.post-grid .post-item {
    background: white;
    border-radius: 16px 8px 20px 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    overflow: hidden;
}

.post-grid .post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border-radius: 8px 16px 12px 20px;
}

.post-grid .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-grid h3 {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
}

.post-grid h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-grid h3 a:hover {
    color: var(--secondary);
}

.blog-link-container {
    text-align: center;
    margin-top: 40px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 24px;
        clip-path: none;
        height: 80vh;
    }
    
    .hero-image {
        display: none;
    }
    
    .masonry-grid {
        grid-template-columns: 1fr;
    }
    
    .masonry-item.wide {
        grid-column: span 1;
    }
    
    .about-section {
        clip-path: none;
        margin: 0;
    }
    
    .menu-toggle {
        top: 16px;
        left: 16px;
    }
    
    .post-list {
        grid-template-columns: 1fr;
    }
    
    .page-content h1 {
        font-size: 1.5rem;
        padding: 24px 24px 12px;
    }
    
    .page-content .content {
        padding: 0 24px 24px;
    }
    
    /* Homepage Mobile Styles */
    .hero-section {
        padding: 60px 24px;
        clip-path: none;
        height: auto;
        min-height: 400px;
    }
    
    .hero-section .hero-image {
        display: none;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Animations Enhancement */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}