/*
|--------------------------------------------------------------------------
| Page: ADUA Institutional Header - Brand Styles
| File: assets/css/brand.css
| Company: Ygrace Tech
| Author: Ibrahim Olalekan
|
| Purpose:
| Defines the visual presentation of the ADUA institutional identity,
| including the university logo, institution name and tagline.
|
| Architecture:
| - Establishes a consistent institutional brand layout.
| - Preserves the original university logo proportions.
| - Supports long institution names and taglines.
| - Provides responsive logo and typography sizing.
| - Uses shared design tokens from variables.css.
| - Matches the markup generated by templates/brand.php.
| - Does not replace or modify the official university logo.
|
| Version: 1.1.0
| Timestamp: 2026-11-21
|--------------------------------------------------------------------------
*/

/* =========================================================
   BRAND CONTAINER
========================================================= */

.adua-ih-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    flex: 0 1 auto;
}

.adua-ih-brand-link {
    min-width: 0;
    max-width: 100%;

    display: inline-flex;
    align-items: center;
    gap: var(--adua-space-4);

    color: var(--adua-text-primary);
    text-decoration: none;
}

.adua-ih-brand-link:hover {
    color: var(--adua-primary);
    text-decoration: none;
}

.adua-ih-brand-link:focus-visible {
    outline: 2px solid var(--adua-secondary);
    outline-offset: 5px;
    border-radius: var(--adua-radius-sm);
}

/* =========================================================
   LOGO WRAPPER
========================================================= */

.adua-ih-brand-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

/* =========================================================
   UNIVERSITY LOGO
========================================================= */

.adua-ih-brand-logo {
    width: auto;
    height: 76px;
    max-width: 110px;
    max-height: 76px;

    display: block;
    flex: 0 0 auto;

    object-fit: contain;
    object-position: center;

    transition: var(--adua-transition-normal);
}

.adua-ih-brand-link:hover .adua-ih-brand-logo {
    transform: scale(1.025);
}

/* =========================================================
   BRAND IDENTITY
========================================================= */

.adua-ih-brand-identity {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 5px;
}

/* =========================================================
   INSTITUTION NAME
========================================================= */

.adua-ih-brand-name {
    display: block;
    margin: 0;

    color: var(--adua-primary);
    font-family: var(--adua-font-heading);

    font-size: clamp(18px, 1.65vw, 25px);
    font-weight: var(--adua-font-weight-bold);
    line-height: 1.2;

    letter-spacing: -0.035em;
    text-wrap: balance;
}

/* =========================================================
   INSTITUTION TAGLINE
========================================================= */

.adua-ih-brand-tagline {
    display: block;
    margin: 0;

    color: var(--adua-text-secondary);

    font-family: var(--adua-font-body);
    font-size: var(--adua-font-size-xs);
    font-weight: var(--adua-font-weight-medium);

    line-height: 1.5;
    letter-spacing: 0.045em;
}

/* =========================================================
   BRAND WITHOUT LOGO
========================================================= */

.adua-ih-brand--no-logo .adua-ih-brand-name {
    font-size: clamp(20px, 1.9vw, 28px);
}

/* =========================================================
   COMPACT HEADER
========================================================= */

.adua-ih-header.is-compact .adua-ih-brand-logo {
    height: 58px;
    max-height: 58px;
}

.adua-ih-header.is-compact .adua-ih-brand-name {
    font-size: clamp(17px, 1.45vw, 22px);
}

.adua-ih-header.is-compact .adua-ih-brand-identity {
    gap: 3px;
}

/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 1024px) {

    .adua-ih-brand-link {
        gap: var(--adua-space-3);
    }

    .adua-ih-brand-logo {
        height: 66px;
        max-width: 96px;
        max-height: 66px;
    }

    .adua-ih-brand-name {
        font-size: clamp(17px, 2vw, 22px);
    }

}

/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 767px) {

    .adua-ih-brand {
        flex: 1 1 auto;
        overflow: hidden;
    }

    .adua-ih-brand-link {
        width: 100%;
        gap: var(--adua-space-3);
    }

    .adua-ih-brand-logo {
        height: 54px;
        max-width: 72px;
        max-height: 54px;
    }

    .adua-ih-brand-identity {
        gap: 3px;
    }

    .adua-ih-brand-name {
        font-size: clamp(15px, 4vw, 19px);
        line-height: 1.2;
        letter-spacing: -0.025em;
    }

    .adua-ih-brand-tagline {
        font-size: 10px;
        line-height: 1.35;
        letter-spacing: 0.025em;
    }

}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .adua-ih-brand-link {
        gap: 9px;
    }

    .adua-ih-brand-logo {
        height: 46px;
        max-width: 60px;
        max-height: 46px;
    }

    .adua-ih-brand-name {
        font-size: 14px;
    }

    .adua-ih-brand-tagline {
        font-size: 9px;
    }

}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .adua-ih-brand-logo {
        transition: none;
    }

    .adua-ih-brand-link:hover .adua-ih-brand-logo {
        transform: none;
    }

}
