/* ============================================
   13 HOMES — Blog Post Page Styles
   ============================================ */

/* --- Article page wrap --- */
.bp-article {
    background: var(--white);
    padding: 0;
    min-height: 60vh;
}

/* --- Hero --- */
.bp-hero {
    position: relative;
    height: 60vh;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.bp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.78) 100%);
}

.bp-hero-content {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 5;
}

.bp-breadcrumb {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-bottom: 18px;
}

.bp-breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.bp-breadcrumb a:hover { color: var(--accent); }

.bp-category-pill {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.bp-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 22px;
    max-width: 30ch;
}

.bp-meta {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.78);
}

.bp-meta strong { color: #fff; font-weight: 600; }

/* --- Article body --- */
.bp-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    font-family: 'Inter', sans-serif;
    font-size: 1.06rem;
    line-height: 1.78;
    color: var(--text);
    font-weight: 300;
}

.bp-body p {
    margin: 0 0 22px;
}

.bp-body h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
    margin: 48px 0 18px;
    letter-spacing: -0.015em;
}

.bp-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin: 36px 0 14px;
}

.bp-body ul,
.bp-body ol {
    margin: 0 0 22px;
    padding-left: 24px;
}

.bp-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.bp-body ul li::marker { color: var(--accent); }
.bp-body ol li::marker { color: var(--accent); font-weight: 600; }

.bp-body strong { color: var(--primary); font-weight: 600; }

.bp-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.bp-body a:hover { color: var(--accent-hover); }

.bp-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 24px;
    margin: 32px 0;
    font-style: italic;
    font-size: 1.12rem;
    color: var(--text-light);
}

.bp-body img.inline {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.bp-body .bp-cta {
    background: var(--off-white);
    border-left: 3px solid var(--accent);
    padding: 26px 30px;
    border-radius: 6px;
    margin: 40px 0;
}

.bp-body .bp-cta p { margin-bottom: 12px; font-size: 1rem; }
.bp-body .bp-cta .btn { margin-top: 8px; }

/* --- FAQ section --- */
.bp-faq {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.bp-faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.bp-faq-header span {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.bp-faq-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    font-weight: 500;
    color: var(--primary);
    margin: 0;
    letter-spacing: -0.02em;
}

.bp-faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.bp-faq-q {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: color 0.2s ease;
}

.bp-faq-q:hover { color: var(--accent); }

.bp-faq-q-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(201,168,76,0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
    font-size: 0.85rem;
    font-weight: 700;
}

.bp-faq-item.open .bp-faq-q-icon {
    transform: rotate(45deg);
    background: var(--accent);
    color: #fff;
}

.bp-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.22,1,0.36,1);
}

.bp-faq-item.open .bp-faq-a { max-height: 700px; }

.bp-faq-a-inner {
    padding: 0 0 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--text-light);
    font-weight: 300;
    max-width: 68ch;
}

/* --- Disclaimer --- */
.bp-disclaimer {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.bp-disclaimer-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 22px 26px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-light);
}

.bp-disclaimer-box strong { color: var(--primary); }

/* --- Related --- */
.bp-related {
    background: var(--off-white);
    padding: 90px 0 100px;
}

.bp-related h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 500;
    color: var(--primary);
    margin: 0 0 50px;
    letter-spacing: -0.02em;
}

.bp-related h2 em { font-style: italic; color: var(--accent); }

.bp-related-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.bp-related-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
    display: flex;
    flex-direction: column;
}

.bp-related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.1);
}

.bp-related-card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-100);
}

.bp-related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.bp-related-card:hover .bp-related-card-img img { transform: scale(1.05); }

.bp-related-card-body { padding: 22px 22px 24px; }

.bp-related-card-cat {
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.bp-related-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary);
    margin: 0 0 10px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.bp-related-card p {
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

/* --- CTA bottom --- */
.bp-end-cta {
    background: var(--primary);
    color: #fff;
    padding: 90px 0;
    text-align: center;
}

.bp-end-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 500;
    color: #fff;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}

.bp-end-cta h2 em { font-style: italic; color: var(--accent); }

.bp-end-cta p {
    max-width: 540px;
    margin: 0 auto 32px;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    font-weight: 300;
    line-height: 1.7;
}

/* --- Archive page (blog.html updates) --- */
.blog-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.blog-archive-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.22,1,0.36,1);
    display: flex;
    flex-direction: column;
}

.blog-archive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.12);
}

.blog-archive-card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
}

.blog-archive-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.blog-archive-card:hover .blog-archive-card-img img { transform: scale(1.05); }

.blog-archive-card-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255,255,255,0.96);
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
}

.blog-archive-card-body {
    padding: 24px 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-archive-card-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.blog-archive-card h3 {
    font-family: var(--font-heading);
    font-size: 1.22rem;
    font-weight: 500;
    color: var(--primary);
    margin: 0 0 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.blog-archive-card p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 18px;
    font-weight: 300;
}

.blog-archive-card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.blog-archive-card-arrow { color: var(--accent); transition: transform 0.3s ease; }
.blog-archive-card:hover .blog-archive-card-arrow { transform: translateX(4px); }

/* --- Filter strip --- */
.blog-filters {
    max-width: 1100px;
    margin: 0 auto 50px;
    padding: 0 24px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-filter-chip {
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 9px 20px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.blog-filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.blog-filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* --- Pagination --- */
.blog-pagination {
    max-width: 1280px;
    margin: 50px auto 0;
    padding: 0 32px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.blog-pagination button {
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 500;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-pagination button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.blog-pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.blog-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 1024px) {
    .blog-archive-grid, .bp-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .bp-hero { height: 50vh; min-height: 380px; }
    .bp-hero-content { bottom: 36px; }
    .bp-body { padding: 50px 20px 40px; font-size: 1rem; }
    .blog-archive-grid, .bp-related-grid { grid-template-columns: 1fr; }
}
