/*
Theme Name: Pantry Petal
Theme URI: https://pantrypetal.com
Author: Pantry Petal Team
Author URI: https://pantrypetal.com
Description: A elegant lifestyle blog theme featuring home decor, food & drink, and fashion content. Designed with a soft, sophisticated aesthetic.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pantrypetal
Tags: blog, lifestyle, food, fashion, two-columns, right-sidebar, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===========================
   CSS Reset & Base Styles
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* ===========================
   Typography
=========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* ===========================
   Header Styles
=========================== */
.site-header {
    background-color: #f5e6e8;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    width: 60px;
    height: 60px;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #a85a70;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
}

.main-navigation a {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

.main-navigation a:hover {
    color: #a85a70;
}

/* ===========================
   Hero Section
=========================== */
.hero-section {
    background-color: #f5e6e8;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: #333;
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.4;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.category-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
}

.category-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===========================
   Content Sections
=========================== */
.content-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background-color: #333;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.post-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.view-all-btn {
    display: inline-block;
    margin: 3rem auto 0;
    padding: 0.75rem 2.5rem;
    background-color: transparent;
    border: 2px solid #a85a70;
    color: #a85a70;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.view-all-btn:hover {
    background-color: #a85a70;
    color: #ffffff;
}

/* ===========================
   About Section
=========================== */
.about-section {
    background-color: #f5e6e8;
    padding: 4rem 2rem;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.about-features {
    list-style: none;
}

.about-features li {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    color: #a85a70;
}

.about-image-box {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-image-box h3 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-illustration {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.about-description {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    line-height: 1.8;
}

/* ===========================
   Newsletter Section
=========================== */
.newsletter-section {
    background-color: #f5e6e8;
    padding: 3rem 2rem;
    text-align: center;
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-icon {
    width: 50px;
    height: 50px;
    background-color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #a85a70;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto 0;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-button {
    padding: 1rem 2rem;
    background-color: #a85a70;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-button:hover {
    background-color: #8d4a5d;
}

/* ===========================
   Footer
=========================== */
.site-footer {
    background-color: #f5e6e8;
    padding: 3rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info {
    margin-bottom: 2rem;
}

.footer-info p {
    margin-bottom: 0.75rem;
    color: #333;
}

.footer-info strong {
    font-weight: 600;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.footer-menu a {
    color: #333;
    font-size: 0.95rem;
}

.footer-menu a:hover {
    color: #a85a70;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: #666;
    font-size: 0.9rem;
}

.disclaimer {
    margin-top: 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.disclaimer a {
    color: #a85a70;
    text-decoration: underline;
}

/* ===========================
   Responsive Design
=========================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .category-cards {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* ===========================
   Utility Classes
=========================== */
.text-center {
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn-center {
    display: block;
    margin: 0 auto;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: #666;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #a85a70;
    transform: translateY(-5px);
}
