/* ===================================
   UNBINDING CLASSICS - Main Stylesheet
   Muted Color Palette: Sage Green, Warm Taupe, Cream
   =================================== */

/* CSS Variables */
:root {
    /* Colors */
    --sage-green: #8B9D83;
    --sage-dark: #6B7D63;
    --sage-light: #A8B89F;
    --warm-taupe: #B8A99A;
    --taupe-dark: #9D8E7F;
    --cream: #F5F1E8;
    --cream-dark: #E8E1D3;
    --off-white: #FDFCF9;
    --charcoal: #3D3D3D;
    --text-dark: #2C2C2C;
    --text-medium: #5A5A5A;
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Lato', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-max: 1200px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--off-white);
    line-height: 1.7;
    font-size: 16px;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.3;
    color: var(--charcoal);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--sage-green);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--sage-green);
    cursor: pointer;
    font-size: 15px;
}

.btn-primary:hover {
    background-color: var(--sage-dark);
    border-color: var(--sage-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 157, 131, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    background-color: transparent;
    color: var(--sage-dark);
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--sage-green);
    cursor: pointer;
    font-size: 15px;
}

.btn-secondary:hover {
    background-color: var(--sage-green);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

/* Navigation */
.navbar {
    background-color: var(--cream);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--sage-dark);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-medium);
    font-weight: 400;
    font-size: 15px;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--sage-dark);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--sage-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--sage-light) 0%, transparent 70%);
    opacity: 0.2;
    pointer-events: none;
}

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

.hero-title {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--charcoal);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-medium);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Titles */
.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 16px;
    color: var(--charcoal);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    padding: var(--section-padding);
    background-color: var(--off-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background-color: white;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid var(--cream-dark);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--sage-light);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--sage-dark);
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* Featured Products Section */
.featured-products {
    padding: var(--section-padding);
    background-color: var(--cream);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.product-card {
    background-color: white;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--cream-dark);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--sage-green);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-card h3 {
    font-size: 26px;
    margin-bottom: 16px;
    color: var(--charcoal);
    padding-right: 80px;
}

.product-description {
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.7;
}

.product-features {
    list-style: none;
    margin-bottom: 25px;
}

.product-features li {
    padding: 8px 0;
    color: var(--text-medium);
    position: relative;
    padding-left: 25px;
}

.product-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--sage-green);
    font-weight: bold;
}

/* Recent Discussions Section */
.recent-discussions {
    padding: var(--section-padding);
    background-color: var(--off-white);
}

.discussions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.discussion-card {
    background-color: white;
    padding: 35px;
    border-radius: 8px;
    border-left: 4px solid var(--sage-green);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.discussion-card:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.discussion-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-medium);
}

.discussion-author,
.discussion-date {
    padding: 4px 12px;
    background-color: var(--cream);
    border-radius: 3px;
}

.discussion-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--charcoal);
}

.discussion-card p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 15px;
}

.discussion-link {
    color: var(--sage-dark);
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    transition: var(--transition);
}

.discussion-link:hover {
    color: var(--sage-green);
    transform: translateX(5px);
}

.cta-center {
    text-align: center;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--sage-dark) 100%);
    color: white;
}

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

.newsletter h2 {
    font-size: 38px;
    margin-bottom: 16px;
    color: white;
}

.newsletter p {
    font-size: 17px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    background-color: white;
}

.newsletter-form input:focus {
    outline: 2px solid var(--cream);
}

.newsletter-form button {
    white-space: nowrap;
}

.newsletter-privacy {
    font-size: 13px;
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: var(--charcoal);
    color: var(--cream);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col p {
    line-height: 1.7;
    opacity: 0.9;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--cream);
    opacity: 0.85;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--sage-light);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--cream);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 30px 0;
        gap: 20px;
    }

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

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

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .features-grid,
    .products-grid,
    .discussions-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 34px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn-large {
        width: 100%;
        text-align: center;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--charcoal);
}

.page-header p {
    font-size: 18px;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* Discussion Filters */
.discussion-filters {
    padding: 40px 0;
    background-color: var(--off-white);
    border-bottom: 1px solid var(--cream-dark);
}

.filter-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    background-color: white;
    border: 2px solid var(--cream-dark);
    border-radius: 25px;
    color: var(--text-medium);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.filter-btn:hover {
    border-color: var(--sage-green);
    color: var(--sage-dark);
}

.filter-btn.active {
    background-color: var(--sage-green);
    border-color: var(--sage-green);
    color: white;
}

/* Featured Discussion */
.featured-discussion {
    padding: 60px 0;
    background-color: var(--off-white);
}

.featured-badge {
    display: inline-block;
    background-color: var(--sage-green);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.featured-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
    background-color: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
}

.featured-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--charcoal);
}

.featured-text p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 16px;
}

.featured-cta {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.featured-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--sage-light) 0%, var(--sage-green) 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.placeholder-image span {
    font-size: 72px;
    margin-bottom: 15px;
}

.placeholder-image p {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    font-family: var(--font-serif);
}

/* All Discussions List */
.all-discussions {
    padding: var(--section-padding);
    background-color: var(--cream);
}

.discussions-list {
    display: grid;
    gap: 35px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.discussion-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    background-color: white;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.discussion-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.discussion-image-placeholder {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--warm-taupe) 0%, var(--taupe-dark) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.discussion-image-placeholder span {
    font-size: 64px;
}

.discussion-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--charcoal);
    line-height: 1.4;
}

.discussion-content p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 15px;
}

.discussion-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--cream);
    color: var(--text-medium);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.load-more {
    text-align: center;
    margin-top: 50px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--sage-dark) 100%);
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 16px;
    color: white;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Products Page Styles */
.products-hero {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.products-hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--charcoal);
}

.products-hero p {
    font-size: 18px;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

.products-section {
    padding: var(--section-padding);
    background-color: var(--off-white);
}

.product-detail {
    background-color: white;
    padding: 50px;
    border-radius: 12px;
    margin-bottom: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.product-detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.product-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--charcoal);
}

.product-price {
    font-size: 32px;
    color: var(--sage-green);
    font-weight: 700;
    margin-bottom: 20px;
}

.product-info p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 25px;
}

.product-preview {
    background: linear-gradient(135deg, var(--sage-light) 0%, var(--sage-green) 100%);
    border-radius: 12px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 80px;
}

.product-features-list {
    list-style: none;
    margin-bottom: 30px;
}

.product-features-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-medium);
    line-height: 1.6;
}

.product-features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--sage-green);
    font-weight: bold;
    font-size: 18px;
}

.product-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.about-content {
    padding: var(--section-padding);
    background-color: var(--off-white);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 24px;
    color: var(--charcoal);
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.mission-values {
    padding: var(--section-padding);
    background-color: var(--cream);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.value-card {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.value-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--sage-dark);
}

.value-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Responsive for Discussions Page */
@media (max-width: 968px) {
    .featured-content {
        grid-template-columns: 1fr;
        padding: 35px;
    }

    .discussion-item {
        grid-template-columns: 1fr;
    }

    .discussion-image-placeholder {
        width: 100%;
        height: 200px;
    }

    .product-detail-header {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 36px;
    }

    .featured-text h2 {
        font-size: 28px;
    }

    .product-detail {
        padding: 30px 25px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
