/* Salon Featured Blog — Base Structural Styles
   Design/colors controlled entirely via Elementor controls.
   This file only handles layout structure and responsiveness.
   ------------------------------------------------------------------ */

/* ── Reset ─────────────────────────────────────────────────────────── */
.sfb-wrap *,
.sfb-wrap *::before,
.sfb-wrap *::after { box-sizing: border-box; }

.sfb-wrap a { text-decoration: none; }

.sfb-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Placeholder (no featured image) ───────────────────────────────── */
.sfb-no-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: #d9d0cc;
}

/* ── Featured Post ──────────────────────────────────────────────────── */
.sfb-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #e8e0dc;
    margin-bottom: 48px;
}

.sfb-featured-img-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.sfb-featured-img-wrap img {
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.sfb-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 44px;
    gap: 14px;
}

.sfb-featured-title { margin: 0; }
.sfb-featured-title a { color: inherit; }
.sfb-featured-excerpt { margin: 0; }

/* ── Button ─────────────────────────────────────────────────────────── */
.sfb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 9px 18px;
    border: 1px solid;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* ── Grid ───────────────────────────────────────────────────────────── */
.sfb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
    transition: opacity 0.25s ease;
}

.sfb-grid.sfb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sfb-grid.sfb-cols-4 { grid-template-columns: repeat(4, 1fr); }

.sfb-grid.sfb-loading {
    opacity: 0.4;
    pointer-events: none;
}

.sfb-grid-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sfb-grid-img-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.sfb-grid-img-wrap img {
    transition: transform 0.4s ease, opacity 0.3s ease;
}

/* Zoom — only applied when Elementor control enables it */
.sfb-grid.sfb-zoom .sfb-grid-card:hover .sfb-grid-img-wrap img,
.sfb-featured.sfb-zoom .sfb-featured-img-wrap:hover img {
    transform: scale(var(--sfb-zoom-scale, 1.04));
}

/* Opacity — only applied when Elementor control enables it */
.sfb-grid.sfb-fade .sfb-grid-card:hover .sfb-grid-img-wrap img,
.sfb-featured.sfb-fade .sfb-featured-img-wrap:hover img {
    opacity: var(--sfb-fade-opacity, 0.85);
}

.sfb-grid-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sfb-grid-title { margin: 0; }
.sfb-grid-title a { color: inherit; }
.sfb-grid-excerpt { margin: 0; }

.sfb-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    padding: 40px 0;
}

/* ── Pagination ─────────────────────────────────────────────────────── */
.sfb-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

.sfb-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid #d9d0cc;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sfb-page-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ── Divider between featured and grid ──────────────────────────────── */
.sfb-divider {
    border: none;
    border-top: 1px solid #e8e0dc;
    margin: 0 0 40px 0;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .sfb-grid.sfb-cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .sfb-featured { grid-template-columns: 1fr; }
    .sfb-featured-img-wrap { aspect-ratio: 16 / 9; }
    .sfb-featured-content { padding: 28px 24px; }
    .sfb-grid,
    .sfb-grid.sfb-cols-2,
    .sfb-grid.sfb-cols-3,
    .sfb-grid.sfb-cols-4 { grid-template-columns: 1fr; }
}
