/*
Theme Name: Hoya Haven
Theme URI: https://your-site.com
Author: Your Name
Author URI: https://your-site.com
Description: A minimalist, warm tropical theme for plant lovers with Scandi-Japandi aesthetics. Perfect for hoyas, tropicals, and plant care content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: hoya-haven
Tags: blog, e-commerce, minimalist, custom-colors, custom-header, custom-menu, featured-images, threaded-comments, translation-ready, two-columns
*/

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #f7f4f0;
    --color-bg-light: #fcfaf7;
    --color-text: #2d2a24;
    --color-text-light: #6b6560;
    --color-accent: #4d7a6b;
    --color-accent-light: #7a9e8f;
    --color-accent-warm: #c4a88c;
    --color-border: #e5dfd8;
    --color-white: #ffffff;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'EB Garamond', 'Times New Roman', serif;
    --shadow-soft: 0 2px 8px rgba(45, 42, 36, 0.06);
    --shadow-medium: 0 4px 20px rgba(45, 42, 36, 0.08);
    --radius: 12px;
    --radius-sm: 6px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.6rem; margin-bottom: 0.3rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: 1.2rem;
    color: var(--color-text);
}

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

a:hover {
    color: var(--color-accent-light);
}

/* ===== LAYOUT ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    padding: 32px 0 20px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-light);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 0.02em;
}

.site-logo small {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    color: var(--color-text-light);
    display: block;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: -4px;
}

.site-logo .logo-icon {
    font-size: 2rem;
    line-height: 1;
}

/* ===== NAVIGATION ===== */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.main-navigation a {
    font-size: 0.9rem;
    font-weight: 450;
    color: var(--color-text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--color-text);
    cursor: pointer;
    padding: 4px 8px;
}

/* ===== HERO ===== */
.hero {
    padding: 60px 0 48px;
    background: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-text h1 .highlight {
    color: var(--color-accent);
    font-style: italic;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--color-text-light);
    max-width: 480px;
}

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

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-medium);
}

/* ===== BLOG / POSTS ===== */
.content-area {
    padding: 48px 0 64px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.post-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.post-card .post-thumbnail {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--color-border);
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.03);
}

.post-card .post-content {
    padding: 24px 28px 28px;
}

.post-card .post-meta {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    display: flex;
    gap: 16px;
}

.post-card .post-title {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.post-card .post-title a {
    color: var(--color-text);
}

.post-card .post-title a:hover {
    color: var(--color-accent);
}

.post-card .post-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.post-card .read-more {
    display: inline-block;
    margin-top: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-accent);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.post-card .read-more:hover {
    border-bottom-color: var(--color-accent);
}

/* ===== SINGLE POST ===== */
.single-post .entry-header {
    padding: 40px 0 24px;
    border-bottom: 1px solid var(--color-border);
}

.single-post .entry-title {
    font-size: 2.8rem;
    max-width: 800px;
}

.single-post .entry-meta {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 8px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.single-post .entry-content {
    max-width: 720px;
    margin: 32px auto;
    padding: 0 20px;
}

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 24px 0;
}

.single-post .entry-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: 24px;
    margin: 24px 0;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* ===== SIDEBAR ===== */
.sidebar {
    padding: 0 0 40px;
}

.sidebar .widget {
    background: var(--color-bg-light);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 28px;
    border: 1px solid var(--color-border);
}

.sidebar .widget-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent-warm);
}

.sidebar .widget ul {
    list-style: none;
}

.sidebar .widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border);
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget ul li a {
    color: var(--color-text);
}

.sidebar .widget ul li a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-text);
    color: var(--color-bg-light);
    padding: 48px 0 32px;
    margin-top: 24px;
}

.site-footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.site-footer h4 {
    color: var(--color-bg-light);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.site-footer a:hover {
    color: var(--color-accent-warm);
}

.site-footer .footer-socials {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.site-footer .footer-socials a {
    font-size: 1.4rem;
}

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    margin-top: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== WOOCOMMERCE (Shop) ===== */
.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
}

.woocommerce .product {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.woocommerce .product:hover {
    box-shadow: var(--shadow-medium);
}

.woocommerce .product .price {
    color: var(--color-accent);
    font-weight: 500;
    font-size: 1.1rem;
}

.woocommerce .button {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.woocommerce .button:hover {
    background: var(--color-accent-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto;
    }

    .site-footer .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 16px 0;
        gap: 12px;
    }

    .main-navigation ul.show {
        display: flex;
    }

    .site-header .container {
        flex-wrap: wrap;
    }

    .site-logo {
        font-size: 1.4rem;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero-text h1 { font-size: 2.4rem; }

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

    .site-footer .container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .single-post .entry-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 32px 0 24px; }
    .content-area { padding: 24px 0; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 32px; }
.mb-1 { margin-bottom: 16px; }
.mb-2 { margin-bottom: 32px; }

/* Leaf icon accent */
.leaf-accent {
    display: inline-block;
    color: var(--color-accent);
    font-size: 0.8em;
    margin-right: 4px;
}
