/*
Theme Name: 만복당 비랜딩 테마
Theme URI: https://blanding.kr
Author: 비랜딩 (blanding.kr)
Author URI: https://blanding.kr
Description: 만복당의 기존 디자인을 비랜딩 기본테마 기반으로 재구축한 경량 워드프레스 테마입니다.
Version: 1.0.11
Text Domain: manbokdang-blanding
*/

:root {
    --mbd-bg: #eef1ee;
    --mbd-paper: #f7f8f6;
    --mbd-ink: #222622;
    --mbd-muted: #666b66;
    --mbd-green: #00a86b;
    --mbd-line: #b1b1b1;
    --mbd-brown: #5c4b3a;
    --mbd-radius: 30px;
    --mbd-container: 1200px;
    --mbd-header-height: 100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--mbd-ink);
    background: #fff;
    font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: -0.012em;
    word-break: keep-all;
}
body.mbd-soft-bg { background: var(--mbd-bg); }
body.menu-open, body.search-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
    z-index: 10000; top: 8px; left: 8px; width: auto; height: auto;
    clip: auto; padding: 10px 14px; margin: 0; background: #fff; color: #111;
}

/* Header */
#manbok-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    min-height: var(--mbd-header-height);
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color .3s ease, border-color .3s ease;
}
#manbok-header.scrolled,
#manbok-header:hover { background: rgba(245, 245, 245, .96); border-bottom-color: #e5e7e5; }
.manbok-header-pc {
    width: min(calc(100% - 40px), var(--mbd-container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
.manbok-logo-link { display: inline-flex; align-items: center; width: fit-content; }
.manbok-logo-img { width: auto; height: 24px; opacity: .6; }
.manbok-nav-pc ul,
.manbok-menu-list { list-style: none; margin: 0; padding: 0; }
.manbok-nav-pc ul { display: flex; align-items: center; gap: 40px; }
.manbok-nav-pc a { position: relative; display: block; padding: 7px 0; color: #555; font-size: 17px; font-weight: 600; }
.manbok-nav-pc a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
    background: var(--mbd-green); transition: right .25s ease;
}
.manbok-nav-pc a:hover::after,
.manbok-nav-pc .current-menu-item a::after { right: 0; }
.manbok-search-toggle { justify-self: end; }
.manbok-icon-button {
    display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
    border: 0; background: transparent; cursor: pointer; border-radius: 999px;
}
.manbok-icon-button:hover { background: rgba(0,0,0,.05); }
.manbok-icon-button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(0,168,107,.4); outline-offset: 3px;
}
.manbok-icon-button svg { width: 23px; height: 23px; fill: none; stroke: #555; stroke-width: 2.3; }
.manbok-header-mobile { display: none; width: 100%; }

/* Search overlay */
.manbok-search-modal {
    position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center;
    padding: 28px; background: rgba(255,255,255,.98);
}
.manbok-search-modal.active { display: flex; }
.manbok-search-close { position: absolute; top: 35px; right: 45px; }
.manbok-search-container { width: min(760px, 100%); }
.manbok-search-form { display: flex; align-items: center; border-bottom: 3px solid #333; }
.manbok-search-input {
    width: 100%; padding: 16px 0; border: 0; outline: 0; background: transparent;
    color: #333; font-size: 32px; font-weight: 500;
}
.manbok-search-input::placeholder { color: #cfd2cf; }
.manbok-search-submit { flex: 0 0 auto; }
.manbok-search-desc { margin: 18px 0 0; color: #8a8e8a; font-size: 14px; }

.site-content { min-height: 60vh; }
.page-shell { width: min(calc(100% - 40px), var(--mbd-container)); margin: 0 auto; }

/* Listing pages */
.collection-page { padding: 140px 0 100px; background: var(--mbd-bg); }
.collection-page__title {
    margin: 0 0 42px; color: #000; font-family: "Noto Sans KR", "Pretendard", "Apple SD Gothic Neo", sans-serif;
    font-size: 35px; font-weight: 600;
    line-height: 1.25; letter-spacing: -.025em;
}
.collection-section { padding: 48px 0 82px; border-bottom: 2px solid var(--mbd-line); }
.collection-section:first-child { padding-top: 0; }
.collection-section:last-child { border-bottom: 0; }
.collection-section__head {
    display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: 30px;
}
.collection-section__title {
    margin: 0; color: #000; font-family: "Noto Sans KR", "Pretendard", "Apple SD Gothic Neo", sans-serif;
    font-size: 35px; font-weight: 600; line-height: 1.25;
}
.collection-section__more {
    padding: 4px 0; color: #000; font-family: "Noto Sans KR", "Pretendard", "Apple SD Gothic Neo", sans-serif;
    font-size: 22px;
}
.collection-section__more:hover { color: var(--mbd-green); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 20px; }
.project-card { min-width: 0; }
.project-card__media {
    position: relative; display: flex; min-height: 550px; align-items: flex-end; overflow: hidden;
    border-radius: var(--mbd-radius); background: #dfe3df center / cover no-repeat;
    isolation: isolate;
}
.project-card__media::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, transparent 48%, rgba(0,0,0,.72) 100%);
}
.project-card__title {
    margin: 0; padding: 0 20px 46px; color: #fff; font-size: 25px; font-weight: 600;
    line-height: 1.25; letter-spacing: -.025em;
}
.project-card__title a { display: block; }
.project-card__title a::after { content: ""; position: absolute; inset: 0; }
.rental-grid .project-card__media { min-height: 0; aspect-ratio: 1 / .72; background: #dfe3df; }
.rental-grid .project-card__media::after { display: none; }
.rental-grid .project-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--mbd-radius); }
.rental-card__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 18px; }
.rental-card__title {
    margin: 0; color: #000; font-family: "Noto Sans KR", "Pretendard", "Apple SD Gothic Neo", sans-serif;
    font-size: 24px; font-weight: 400; line-height: 1.35;
}
.rental-card__stock {
    flex: 0 0 auto; margin-top: 5px; color: #000;
    font-family: "Noto Sans KR", "Pretendard", "Apple SD Gothic Neo", sans-serif;
    font-size: 14px; font-weight: 400; line-height: 1.5;
}

/* 렌탈 목록은 사이트 본문과 같은 Pretendard 체계로 통일 */
.collection-page--rental .collection-page__title,
.collection-page--rental .rental-card__title,
.collection-page--rental .rental-card__stock {
    font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
.collection-page--rental .collection-page__title { font-size: 32px; }
.empty-collection { padding: 50px 0; color: var(--mbd-muted); }

/* Single posts and regular pages */
.entry-shell { width: min(calc(100% - 40px), 1200px); margin: 0 auto; padding: 170px 0 100px; }
.entry-title { margin: 0 0 56px; color: #000; font-size: 48px; font-weight: 600; line-height: 1.22; letter-spacing: -.035em; }
.entry-content { font-size: 18px; }
.entry-content > * { max-width: 1024px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1200px; }
.entry-content img { width: auto; max-width: 100%; margin-inline: auto; border-radius: 0; }
.entry-content figure { margin-top: 0; margin-bottom: 28px; }
.entry-content p { margin-top: 0; margin-bottom: 1.5em; }

/* Contact */
.contact-page { min-height: 100vh; padding: 180px 20px 100px; background: #fff; }
.contact-card {
    position: relative; overflow: hidden; width: min(700px, 100%); margin: 0 auto;
    padding: 60px 40px; border: 1px solid rgba(255,255,255,.7); border-radius: 20px;
    background: linear-gradient(145deg, #f3f5f3, #e3e5e3);
    box-shadow: 0 15px 45px rgba(73,84,73,.12);
}
.contact-card::before {
    content: ""; position: absolute; top: -60px; right: -60px; width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(255,255,255,.8), transparent 70%); pointer-events: none;
}
.contact-title { position: relative; margin: 0 0 40px; text-align: center; color: #3c2f24; font-size: 42px; font-weight: 700; }
.contact-field { margin-bottom: 22px; }
.contact-field label { display: block; margin-bottom: 7px; color: #4b3b2a; font-size: 15px; font-weight: 500; }
.contact-field input, .contact-field textarea {
    display: block; width: 100%; padding: 14px 16px; color: #222; background: #fff;
    border: 1px solid #dadcd8; border-radius: 12px; box-shadow: none; font-size: 15px;
}
.contact-field textarea { min-height: 150px; resize: vertical; }
.contact-submit {
    display: block; width: 200px; margin: 30px auto 0; padding: 14px 30px;
    border: 0; border-radius: 12px; color: #fff; background: var(--mbd-brown);
    font-size: 16px; font-weight: 600; cursor: pointer; transition: transform .2s, background .2s;
}
.contact-submit:hover { background: #7a634c; transform: translateY(-2px); }
.contact-notice { margin: 0 0 24px; padding: 13px 16px; border-radius: 10px; text-align: center; }
.contact-notice--success { color: #185c3f; background: #dff3e9; }
.contact-notice--error { color: #7b2d2d; background: #f8e2e2; }
.contact-honeypot { position: absolute; left: -9999px; }

/* Footer intentionally stays visually silent like the current site. */
.site-footer { min-height: 1px; }

@media (max-width: 1024px) {
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-card__media { min-height: 460px; }
}

@media (max-width: 768px) {
    :root { --mbd-header-height: 103px; }
    body { font-size: 15px; }
    #manbok-header, #manbok-header:hover { min-height: 103px; align-items: flex-start; background: var(--mbd-bg); border: 0; }
    .manbok-header-pc { display: none; }
    .manbok-header-mobile { display: block; }
    .manbok-mobile-top-bar {
        height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 15px;
    }
    .manbok-mobile-menu-toggle { justify-self: start; }
    .manbok-mobile-search-toggle { justify-self: end; }
    .manbok-nav-mobile-secondary { border-top: 1px solid #999; border-bottom: 1px solid #999; }
    .manbok-nav-mobile-secondary ul { display: flex; align-items: center; justify-content: space-between; }
    .manbok-nav-mobile-secondary li { flex: 0 0 auto; }
    .manbok-nav-mobile-secondary a { position: relative; display: block; padding: 10px 4px; color: #555; font-size: 13px; font-weight: 500; white-space: nowrap; }
    .manbok-nav-mobile-secondary .current-menu-item a::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 0; height: 3px; background: var(--mbd-green); }
    .manbok-nav-mobile {
        position: fixed; inset: 103px 0 auto; max-height: calc(100vh - 103px); overflow: auto;
        display: none; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.12);
    }
    #manbok-header.mobile-open .manbok-nav-mobile { display: block; }
    .manbok-nav-mobile a { display: block; padding: 15px 20px; border-bottom: 1px solid #eee; font-size: 16px; }
    .manbok-search-close { top: 18px; right: 18px; }
    .manbok-search-input { font-size: 21px; }

    .page-shell { width: min(calc(100% - 20px), var(--mbd-container)); }
    .collection-page { padding: 138px 0 70px; }
    .collection-page__title, .collection-section__title { font-size: 28px; }
    .collection-page--rental .collection-page__title { font-size: 28px; }
    .collection-page__title { margin-bottom: 28px; }
    .collection-section { padding: 40px 0 58px; }
    .collection-section__head { margin-bottom: 20px; }
    .collection-section__more { font-size: 15px; }
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
    .project-card__media { min-height: 350px; border-radius: 22px; }
    .project-card__title { padding: 0 14px 24px; font-size: 19px; line-height: 1.35; }
    .rental-grid .project-card__media { border-radius: 22px; }
    .rental-grid .project-card__media img { border-radius: 22px; }
    .rental-card__meta { display: block; margin-top: 12px; }
    .rental-card__title { font-size: 18px; }
    .rental-card__stock { margin-top: 4px; font-size: 12px; text-align: right; }

    .entry-shell { width: min(calc(100% - 30px), 1200px); padding: 145px 0 70px; }
    .entry-title { margin-bottom: 34px; font-size: 32px; }
    .entry-content { font-size: 16px; }
    .entry-content figure { margin-bottom: 16px; }
    .contact-page { padding: 143px 15px 60px; }
    .contact-card { padding: 40px 20px; }
    .contact-title { margin-bottom: 30px; font-size: 28px; }
    .contact-submit { width: 100%; }
}

@media (max-width: 390px) {
    .manbok-nav-mobile-secondary a { font-size: 12px; padding-inline: 2px; }
    .project-card__media { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
