/**
 * IndiaDental Brand Page — Premium-only styles
 * Loaded only on single dental_clinic pages.
 * Uses existing theme CSS variables (--id-primary, etc.)
 */

/* ─── Hero Banner ─── */
.bp-hero {
    position: relative;
    height: 260px;
    background-size: cover;
    background-position: center;
    background-color: #334155;
}
.bp-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.45));
}

/* ─── Identity Bar (below hero) ─── */
.bp-identity {
    background: var(--id-white, #fff);
    border-bottom: 1px solid var(--id-border, #e5e7eb);
    padding: 20px 0;
}
.bp-identity-inner {
    display: flex;
    align-items: center;
    gap: 18px;
}
.bp-logo {
    flex-shrink: 0;
    margin-top: -50px;
}
.bp-logo img {
    width: 90px; height: 90px;
    border-radius: 14px;
    border: 3px solid #fff;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.bp-name {
    font-size: 24px; font-weight: 700;
    margin: 0 0 2px; line-height: 1.2;
}
.bp-tagline {
    font-size: 14px;
    color: var(--id-text-sec, #6b7280);
    margin: 0 0 8px;
}
.bp-badges {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 6px;
}
.bp-badge {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 10px; border-radius: 4px;
    font-size: 12px; font-weight: 600;
}
.bp-badge svg { width: 14px; height: 14px; }
.bp-badge-green  { background: #dcfce7; color: #16a34a; }
.bp-badge-red    { background: #fee2e2; color: #dc2626; }
.bp-badge-purple { background: #f3e8ff; color: #7c3aed; }
.bp-badge-outline { background: transparent; border: 1px solid var(--id-border, #e5e7eb); color: var(--id-text-sec, #6b7280); }
.bp-meta {
    font-size: 13px;
    color: var(--id-text-sec, #6b7280);
}
.bp-meta span + span::before { content: " · "; }
.bp-meta .id-clinic-rating { margin-left: 0; }

/* ─── CTA Bar ─── */
.bp-cta-bar {
    background: var(--id-white, #fff);
    border-bottom: 1px solid var(--id-border, #e5e7eb);
    padding: 10px 0;
}
.bp-cta-buttons {
    display: flex; gap: 10px; flex-wrap: wrap;
}
.bp-cta-buttons .id-btn { flex: 0 0 auto; }

/* ─── Tabs ─── */
.bp-tabs-nav {
    background: var(--id-white, #fff);
    border-bottom: 1px solid var(--id-border, #e5e7eb);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    position: sticky; top: 0; z-index: 50;
}
.bp-tabs-nav .container { display: flex; }
.bp-tab {
    padding: 12px 18px;
    font-size: 14px; font-weight: 500;
    color: var(--id-text-sec, #6b7280);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}
.bp-tab:hover, .bp-tab.active {
    color: var(--id-primary, #2563eb);
    border-bottom-color: var(--id-primary, #2563eb);
}

/* ─── Content Grid ─── */
.bp-content-area { background: var(--id-bg, #f9fafb); }
.bp-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    padding-top: 24px; padding-bottom: 40px;
    align-items: start;
}

/* ─── Tags ─── */
.bp-tags-section { margin-top: 18px; }
.bp-tags-section h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.bp-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-tag {
    padding: 4px 12px;
    background: #eff6ff; color: var(--id-primary, #2563eb);
    border-radius: 20px; font-size: 12px; font-weight: 500;
}
.bp-tag-green { background: #f0fdf4; color: #16a34a; }

/* ═══ SERVICE CARDS — 2-column grid ═══ */
.bp-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.bp-service-card {
    border: 1px solid var(--id-border, #e5e7eb);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}
.bp-service-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.bp-svc-img img {
    width: 100%; height: 180px;
    object-fit: cover; display: block;
}
.bp-svc-body {
    padding: 14px 16px;
}
.bp-svc-body h3 {
    font-size: 16px; font-weight: 700;
    margin: 0 0 6px;
}
.bp-svc-body p {
    font-size: 13px;
    color: var(--id-text-sec, #6b7280);
    margin: 0 0 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bp-svc-btns {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.bp-btn-sm {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 7px 14px; border-radius: 6px;
    font-size: 12px; font-weight: 600;
    text-decoration: none; transition: background 0.2s;
}
.bp-btn-sm svg { width: 14px; height: 14px; }
.bp-btn-wa {
    background: #25d366; color: #fff;
}
.bp-btn-wa:hover { background: #1ebe5a; color: #fff; }
.bp-btn-view {
    background: transparent;
    border: 1px solid var(--id-border, #e5e7eb);
    color: var(--id-text, #1e293b);
}
.bp-btn-view:hover {
    border-color: var(--id-primary, #2563eb);
    color: var(--id-primary, #2563eb);
}

/* ─── Trust Grid ─── */
.bp-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.bp-trust-card {
    text-align: center;
    padding: 16px 10px;
    border: 1px solid var(--id-border, #e5e7eb);
    border-radius: 10px;
}
.bp-trust-icon { font-size: 22px; margin-bottom: 6px; }
.bp-trust-card strong { display: block; font-size: 13px; margin-bottom: 2px; }
.bp-trust-card span { font-size: 11px; color: var(--id-text-sec, #6b7280); }

/* ─── Gallery Grid ─── */
.bp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}
.bp-gallery-grid img {
    width: 100%; height: 130px;
    object-fit: cover; border-radius: 6px;
}

/* ─── FAQs ─── */
.bp-faq {
    border: 1px solid var(--id-border, #e5e7eb);
    border-radius: 8px;
    margin-bottom: 6px;
}
.bp-faq summary {
    padding: 12px 16px;
    font-size: 14px; font-weight: 500;
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.bp-faq summary::-webkit-details-marker { display: none; }
.bp-faq summary span { font-size: 18px; color: var(--id-text-sec, #6b7280); }
.bp-faq[open] summary span { transform: rotate(45deg); display: inline-block; }
.bp-faq-body {
    padding: 0 16px 12px;
    font-size: 14px;
    color: var(--id-text-sec, #6b7280);
    line-height: 1.6;
}
.bp-faq-body p { margin: 0; }

/* ─── Share Buttons ─── */
.bp-share-btn {
    flex: 1; text-align: center;
    padding: 8px 10px;
    border: 1px solid var(--id-border, #e5e7eb);
    border-radius: 6px;
    font-size: 12px;
    color: var(--id-text, #1e293b);
    text-decoration: none;
}
.bp-share-btn:hover {
    border-color: var(--id-primary, #2563eb);
    color: var(--id-primary, #2563eb);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .bp-grid { grid-template-columns: 1fr; }
    .bp-identity-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
    .bp-logo { margin-top: -40px; }
    .bp-logo img { width: 70px; height: 70px; }
    .bp-name { font-size: 20px; }
    .bp-cta-buttons { flex-direction: column; }
    .bp-cta-buttons .id-btn { width: 100%; text-align: center; justify-content: center; }
    .bp-services-grid { grid-template-columns: 1fr; }
    .bp-svc-img img { height: 160px; }
    .bp-trust-grid { grid-template-columns: 1fr 1fr; }
    .bp-gallery-grid { grid-template-columns: 1fr 1fr; }
    .bp-hero { height: 180px; }
    .bp-tab { padding: 10px 12px; font-size: 13px; }
    /* Bottom-fixed CTA on mobile */
    .bp-cta-bar {
        position: fixed; bottom: 0; left: 0; right: 0;
        z-index: 999;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    }
    .bp-content-area .bp-grid { padding-bottom: 90px; }
}
