/**
 * css/stitch_home.css — Stitch Botanical Layout & Page Decorator
 * Exact match to stitch_nursery_homepage design reference.
 */

/* --- BOTANICAL CORNER BACKGROUND ILLUSTRATIONS --- */
.stitch-bg-wrapper {
    position: relative;
    background-color: var(--stitch-bg, #EAF0E8);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(124, 139, 110, 0.12), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(196, 164, 104, 0.12), transparent 40%);
    min-height: 100vh;
    padding-bottom: 60px;
    overflow-x: hidden;
}

.botanical-corner-left {
    position: absolute;
    top: 40px;
    left: -20px;
    width: 140px;
    height: 320px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 240' fill='none' stroke='%237C8B6E' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M50 230 Q40 160 50 10 T50 10'/%3E%3Cpath d='M48 180 Q20 160 10 140 Q30 140 48 175' fill='rgba(124,139,110,0.08)'/%3E%3Cpath d='M52 140 Q80 120 90 100 Q70 100 52 135' fill='rgba(124,139,110,0.08)'/%3E%3Cpath d='M48 100 Q15 80 5 60 Q25 60 48 95' fill='rgba(124,139,110,0.08)'/%3E%3Ccircle cx='50' cy='15' r='10' stroke='%23C4A468' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    opacity: 0.45;
    pointer-events: none;
    z-index: 1;
}

.botanical-corner-right {
    position: absolute;
    top: 120px;
    right: -15px;
    width: 130px;
    height: 300px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 240' fill='none' stroke='%237C8B6E' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M50 230 Q60 160 50 10'/%3E%3Cpath d='M52 170 Q80 150 90 130 Q70 130 52 165' fill='rgba(196,164,104,0.1)'/%3E%3Cpath d='M48 120 Q20 100 10 80 Q30 80 48 115' fill='rgba(196,164,104,0.1)'/%3E%3Ccircle cx='50' cy='20' r='12' stroke='%237C8B6E' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    opacity: 0.45;
    pointer-events: none;
    z-index: 1;
}

.botanical-corner-bottom {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 180px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 160' fill='none' stroke='%237C8B6E' stroke-width='1.5'%3E%3Cpath d='M20 150 L20 40 M20 40 L10 10 M20 40 L30 10 M20 80 L5 60 M20 80 L35 60'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    opacity: 0.35;
    pointer-events: none;
}

/* --- STITCH HOMEPAGE TWO-COLUMN SPLIT LAYOUT --- */
.stitch-home-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    max-width: 1380px;
    margin: 30px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

@media (max-width: 992px) {
    .stitch-home-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- STITCH FEATURED CARD (LEFT COLUMN TOP) --- */
.stitch-featured-post-card {
    position: relative;
    background: #FFFFFF;
    border: 2px solid #C4A468;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 14px 36px rgba(45, 58, 47, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .stitch-featured-post-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

.stitch-featured-post-card .stitch-washi-tape-top {
    position: absolute;
    top: -12px;
    left: 40px;
    width: 90px;
    height: 24px;
    background: rgba(196, 164, 104, 0.45);
    border: 1px dashed rgba(255, 255, 255, 0.7);
    transform: rotate(-2deg);
    z-index: 10;
}

.stitch-featured-tag {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #A88B52;
    margin-bottom: 8px;
    display: block;
}

.stitch-featured-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #1C2B1E;
    line-height: 1.15;
    margin-bottom: 14px;
}

.stitch-featured-desc {
    font-size: 0.95rem;
    color: #4A5B4C;
    line-height: 1.55;
    margin-bottom: 24px;
}

.stitch-featured-img-wrap {
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5 solid #C4A468;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.stitch-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.stitch-featured-post-card:hover .stitch-featured-img {
    transform: scale(1.05);
}

/* --- STITCH CARD GRID --- */
.stitch-section-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stitch-section-title {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1C2B1E;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.stitch-view-all {
    font-size: 0.85rem;
    font-weight: 700;
    color: #7C8B6E;
    text-decoration: underline;
    transition: color 0.2s;
}

.stitch-view-all:hover {
    color: #A88B52;
}

.stitch-cards-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

/* --- STITCH PAPERCLIP CARD COMPONENT --- */
.stitch-article-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #D8E2D6;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(45, 58, 47, 0.07);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.stitch-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(45, 58, 47, 0.12);
}

/* Metallic Brass Paperclip SVG */
.stitch-article-card::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 16px;
    width: 22px;
    height: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 38' fill='none'%3E%3Cpath d='M18 10V27C18 30.3137 15.3137 33 12 33C8.68629 33 6 30.3137 6 27V7C6 4.79086 7.79086 3 10 3C12.2091 3 14 4.79086 14 7V26C14 27.1046 13.1046 28 12 28C10.8954 28 10 27.1046 10 26V10' stroke='%23B89753' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 10;
    pointer-events: none;
}

.stitch-card-img-wrap {
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
}

.stitch-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.stitch-article-card:hover .stitch-card-img {
    transform: scale(1.06);
}

.stitch-chip {
    display: inline-block;
    background: #7C8B6E;
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.stitch-chip.chip-seasonal { background: #BD6B5B; }
.stitch-chip.chip-livestock { background: #A88B52; }
.stitch-chip.chip-bakery { background: #6E7B62; }

.stitch-card-title {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1C2B1E;
    line-height: 1.25;
    margin: 0 0 8px 0;
}

.stitch-card-excerpt {
    font-size: 0.85rem;
    color: #5A6B5C;
    line-height: 1.45;
    margin-bottom: 14px;
}

.stitch-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    border-top: 1px solid #EAF0E8;
    padding-top: 10px;
    margin-top: auto;
}

.stitch-read-time {
    color: #7C8B6E;
    font-weight: 600;
}

.stitch-read-btn {
    color: #1C2B1E;
    font-weight: 700;
    text-decoration: underline;

}

.stitch-read-btn:hover {
    color: #A88B52;
}
