/* ========================================
   BRAND.CSS - header logo lockup (premium)
   Layout:  [ circle logo ] | Dr. Name
                             DEGREES
   ======================================== */

.header-brand {
    flex-shrink: 0;
    min-width: 0;
}

.header-brand .brand-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(12px, 1.2vw, 18px);
    padding: 6px 8px 6px 0;
    line-height: 1;
    color: var(--color-text);
    border-radius: var(--radius-lg);
    -webkit-tap-highlight-color: transparent;
    min-width: 0;
}

/* ---- circle logo (left) ---- */
.header-brand .brand-logo {
    display: block;
    height: 60px;
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    object-fit: contain;
    filter: saturate(1.08) contrast(1.04);
    transition: height var(--transition-base), transform .6s cubic-bezier(.22, 1, .36, 1), filter .4s ease;
    will-change: transform;
}

.header-brand .brand-link:hover .brand-logo,
.header-brand .brand-link:focus-visible .brand-logo {
    transform: translateY(-2px) scale(1.04);
    filter: saturate(1.15) contrast(1.06) drop-shadow(0 8px 14px rgba(47, 93, 90, .22));
}

.header-brand .brand-link:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 4px;
}

/* ---- vertical divider ---- */
.header-brand .brand-divider {
    display: block;
    flex: 0 0 1px;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(27, 31, 35, .30), transparent);
    transition: height var(--transition-base);
}

/* ---- name (top) + degrees (below) ---- */
.header-brand .brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.header-brand .brand-name {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(18px, 1.5vw, 22px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: var(--tracking-tight);
    color: var(--color-ink);
    white-space: normal;
    overflow-wrap: anywhere;
    transition: color var(--transition-base), font-size var(--transition-base);
}

.header-brand .brand-credentials {
    display: block;
    max-width: 24em;
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-teal);
    text-wrap: balance;
    transition: color var(--transition-base);
}

.header-brand .brand-link:hover .brand-name {
    color: var(--color-teal);
}

/* ---- laptop / chhoti desktop (981px - 1240px): nav ke liye jagah ---- */
@media (min-width: 981px) and (max-width: 1240px) {
    .header-inner {
        gap: var(--space-4);
    }

    .header-brand .brand-logo {
        height: 52px;
    }

    .site-header.compact .header-brand .brand-logo {
        height: 46px;
    }

    .header-brand .brand-name {
        font-size: 17px;
    }

    /* Degrees yahan chhupi hain taaki menu ek line me fit ho.
       Dikhani ho to ye niche wala rule delete kar do. */
    .header-brand .brand-credentials {
        display: none;
    }

    .nav-link {
        padding: 0 10px;
        font-size: 13.5px;
    }

    .nav-link::after {
        left: 10px;
        right: 10px;
    }

    .header-cta .btn-call {
        padding: var(--space-3) var(--space-4);
    }

    .header-cta .btn-call span {
        display: none;
    }
}

/* ---- scroll ke baad (compact header) ---- */
.site-header.compact .header-brand .brand-logo {
    height: 50px;
}

.site-header.compact .header-brand .brand-divider {
    height: 32px;
}

.site-header.compact .header-brand .brand-name {
    font-size: clamp(17px, 1.3vw, 20px);
}

/* ---- tablet / mobile ---- */
@media (max-width: 980px) {
    .header-brand {
        flex: 1 1 0;
        min-width: 0;
    }

    .header-brand .brand-link {
        gap: 10px;
    }

    .header-brand .brand-logo {
        height: 50px;
    }

    .site-header.compact .header-brand .brand-logo {
        height: 44px;
    }

    .header-brand .brand-divider {
        height: 36px;
    }

    .site-header.compact .header-brand .brand-divider {
        height: 30px;
    }

    .header-brand .brand-text {
        gap: 4px;
    }

    .header-brand .brand-name {
        font-size: 16px;
    }

    .header-brand .brand-credentials {
        font-size: 9px;
        letter-spacing: .06em;
        line-height: 1.4;
        max-width: none;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 400px) {
    .header-brand .brand-link {
        gap: 8px;
    }

    .header-brand .brand-logo {
        height: 44px;
    }

    .site-header.compact .header-brand .brand-logo {
        height: 40px;
    }

    .header-brand .brand-divider {
        height: 32px;
    }

    .header-brand .brand-name {
        font-size: 14.5px;
    }

    .header-brand .brand-credentials {
        font-size: 8.5px;
        letter-spacing: .04em;
    }
}

@media (max-width: 340px) {
    .header-brand .brand-logo {
        height: 38px;
    }

    .header-brand .brand-name {
        font-size: 13.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-brand .brand-logo,
    .header-brand .brand-divider,
    .header-brand .brand-name {
        transition: none;
    }

    .header-brand .brand-link:hover .brand-logo {
        transform: none;
    }
}