/* ═══════════════════════════════════════════
   MYB Services Full – style.css
   Grid cards + click-reveal detail panel
═══════════════════════════════════════════ */

/* ── GRID WRAP ── */
.myb-sf__grid-wrap {
    background: #ffffff;
    padding: 80px 0 48px;
}

.myb-sf__inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 80px;
}

/* Header */
.myb-sf__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 40px;
}

.myb-sf__title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: #917240;
    margin: 0;
    letter-spacing: 1px;
}

.myb-sf__title-line {
    width: 52px;
    height: 2px;
    background: #0b213d;
}

.myb-sf__subtext {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #4E5E6F;
    font-weight: 500;
    margin-top: 20px;
    max-width: 600px;
}
.myb-sf__subtext, .myb-sf__subtext * { color: #4E5E6F !important; text-decoration: none !important; }

/* ── CARDS ── */
.myb-sf__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.myb-sf__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;
    background-color: #0b213d;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: left;
    padding: 0;
    transition: border-color 0.25s, transform 0.2s;
}

.myb-sf__card:hover { transform: translateY(-3px); border-color: rgba(201,169,110,0.6); }
.myb-sf__card.is-active { border-color: #917240; }

.myb-sf__card-overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to bottom, rgba(10,28,55,0.1) 0%, rgba(10,28,55,0.55) 55%, rgba(10,28,55,0.92) 100%);
}

.myb-sf__badge {
    position: absolute; top: 18px; left: 18px; z-index: 2;
    width: 32px; height: 32px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.55);
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; color: #fff;
    transition: background 0.2s, border-color 0.2s;
}
.myb-sf__card.is-active .myb-sf__badge {
    background: #ffffff; border-color: #917240; color: #0b213d;
}

.myb-sf__card-body { position: relative; z-index: 2; padding: 0 20px 24px; }
.myb-sf__card-heading { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 600; color: #fff; margin: 0 0 8px; line-height: 1.3; }
.myb-sf__card-text    { font-family: 'Inter', sans-serif; font-size: 13px; color: rgba(255,255,255,0.75); margin: 0; line-height: 1.6; }

/* ── DETAIL PANELS ── */
.myb-sf__detail {
    display: none;
    padding: 16px;
}
.myb-sf__detail.is-active { display: block;  scroll-margin-top: 80px; }

.myb-sf__detail-row {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 360px;
    max-width: 100%;
}

/* Detail image */
.myb-sf__det-img {
    position: relative;
    overflow: hidden;
    background: #0b213d;
    border-radius: 10px 0 0 10px;
}
.myb-sf__det-img img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.myb-sf__det-img-ph { position: absolute; inset: 0; background: #0b213d; }

/* Detail content */
.myb-sf__det-content {
    padding: 48px 56px 52px 52px;
    display: flex; flex-direction: column; gap: 16px;
        background: #fff
}

.myb-sf__det-number {
    font-family: 'Inter', sans-serif; font-size: 26px; font-weight: 600;
    letter-spacing: 0.18em; color: #917240;
}

.myb-sf__det-heading {
    font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700;
    line-height: 1.3; color: #0b213d; margin: 0; letter-spacing: 1%;;
}

.myb-sf__det-body {
    font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.75; color: #4E5E6F; margin: 0;
}
.myb-sf__det-body, .myb-sf__det-body * { color: #4E5E6F !important; text-decoration: none !important; }

.myb-sf__det-services { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.myb-sf__det-services-label {
    font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: #0b213d; margin: 0;
}
.myb-sf__det-services-grid {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 4px 24px;
}
.myb-sf__det-services-col { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.myb-sf__det-services-col li {
    font-family: 'Inter', sans-serif; font-size: 14px; color: #4E5E6F;
    padding-left: 14px; position: relative; line-height: 1.5;
}
.myb-sf__det-services-col li::before {
    content: ''; position: absolute; left: 0; top: 7px;
    width: 6px; height: 6px; border-radius: 50%; background: #917240;
}

.myb-sf__det-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.myb-sf__det-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; font-family: 'Inter', sans-serif; font-size: 16px;
    font-weight: 500; text-decoration: none; border-radius: 2px;
    transition: background 0.2s, color 0.2s, border-color 0.2s; white-space: nowrap;
}
.myb-sf__det-btn--primary { background: #917240; color: #ffffff; }
.myb-sf__det-btn--primary:hover { color: #ffffff;  background: #c79f54; border-color: #b8944f; }
.myb-sf__det-btn--outline { background: transparent; color: #0b213d; border: 2px solid #0b213d; }
.myb-sf__det-btn--outline:hover { background: #0b213d; color: #fff; }

/* ══════════════════════════════════════════
   TABLET ≤ 1024px
══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .myb-sf__grid-wrap { padding: 64px 0 36px; }
    .myb-sf__inner { padding: 0 40px; }
    .myb-sf__cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .myb-sf__card  { min-height: 320px; }
    .myb-sf__detail-row { grid-template-columns: 240px 1fr; }
    .myb-sf__det-content { padding: 36px 36px 40px; gap: 14px; }
    .myb-sf__det-heading { font-size: 22px; }
    .myb-sf__det-services-grid { grid-template-columns: repeat(2,1fr); }
}

/* ══════════════════════════════════════════
   MOBILE ≤ 768px
══════════════════════════════════════════ */
@media (max-width: 768px) {
    .myb-sf__grid-wrap { padding: 48px 0 28px; }
    .myb-sf__inner { padding: 0 20px; }
    .myb-sf__title { font-size: 28px; }
    .myb-sf__cards { grid-template-columns: 1fr; gap: 10px; }
    .myb-sf__card  { min-height: 220px; }
    .myb-sf__detail-row { grid-template-columns: 1fr; }
    .myb-sf__det-img { height: 220px; position: relative; }
    .myb-sf__det-img img { position: absolute; }
    .myb-sf__det-content { padding: 28px 20px 36px; gap: 12px; }
    .myb-sf__det-heading { font-size: 20px; }
    .myb-sf__det-services-grid { grid-template-columns: repeat(2,1fr); gap: 4px 16px; }
    .myb-sf__det-btns { flex-direction: column; }
    .myb-sf__det-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .myb-sf__inner { padding: 0 16px; }
    .myb-sf__det-img { height: 180px; }
    .myb-sf__det-content { padding: 24px 16px 28px; }
    .myb-sf__det-services-grid { grid-template-columns: 1fr; }
}
