/*
|--------------------------------------------------------------------------
| Page: ADUA Institutional Header - Responsive Styles
| File: assets/css/responsive.css
| Company: Ygrace Tech
| Author: Ibrahim Olalekan
|
| Purpose:
| Coordinates the responsive layout of the ADUA institutional header
| across desktop, tablet and mobile screen sizes.
|
| Architecture:
| - Coordinates header, brand and navigation breakpoints.
| - Prevents horizontal overflow on smaller screens.
| - Adjusts institutional logo and typography dimensions.
| - Coordinates desktop and mobile navigation visibility.
| - Preserves the desktop institutional appearance.
| - Keeps the mobile navigation overlay full-screen.
| - Uses shared design tokens from variables.css.
| - Remains compatible with the mobile navigation template and controller.
|
| Version: 1.1.0
| Timestamp: 2026-11-21
|--------------------------------------------------------------------------
*/

/* =========================================================
   RESPONSIVE BASELINE
========================================================= */

.adua-ih-wrapper,
.adua-ih-wrapper * {
    box-sizing: border-box;
}

.adua-ih-wrapper {
    width: 100%;
    max-width: 100%;
}

.adua-ih-wrapper img {
    max-width: 100%;
    height: auto;
}

.adua-ih-container {
    width: 100%;
    max-width: var(--adua-container-width);
    margin-right: auto;
    margin-left: auto;
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1441px) {

    .adua-ih-container {
        padding-right: 48px;
        padding-left: 48px;
    }

    .adua-ih-main-header {
        min-height: 112px;
    }

    .adua-ih-brand-logo {
        height: 82px;
    }

}


/* =========================================================
   STANDARD DESKTOP
========================================================= */

@media (min-width: 1025px) {

    .adua-ih-main-header > .adua-ih-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: clamp(18px, 2vw, 34px);
    }

    .adua-ih-brand {
        flex: 0 1 auto;
        min-width: 0;
    }

    .adua-ih-desktop-navigation {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
    }

    .adua-ih-mobile-toggle,
    .adua-ih-mobile-navigation {
        display: none !important;
    }

}


/* =========================================================
   SMALL DESKTOP AND TABLET LANDSCAPE
========================================================= */

@media (min-width: 1025px) and (max-width: 1280px) {

    .adua-ih-container {
        padding-right: 24px;
        padding-left: 24px;
    }

    .adua-ih-main-header > .adua-ih-container {
        gap: 18px;
    }

    .adua-ih-brand-logo {
        height: 64px;
        max-width: 88px;
    }

    .adua-ih-institution-name {
        font-size: 19px;
    }

    .adua-ih-institution-tagline {
        font-size: 10px;
    }

    .adua-ih-desktop-navigation .adua-ih-menu {
        gap: 14px;
    }

    .adua-ih-desktop-navigation .adua-ih-menu > li > a {
        font-size: 12px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

    .adua-ih-container {
        padding-right: 28px;
        padding-left: 28px;
    }

    .adua-ih-main-header {
        min-height: 88px;
    }

    .adua-ih-main-header > .adua-ih-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }

    .adua-ih-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .adua-ih-brand-logo {
        height: 62px;
        max-width: 82px;
    }

    .adua-ih-institution-name {
        font-size: 20px;
    }

    .adua-ih-mobile-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        width: 48px;
        height: 48px;
    }

    .adua-ih-desktop-navigation {
        display: none !important;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .adua-ih-container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .adua-ih-main-header {
        min-height: 76px;
    }

    .adua-ih-main-header > .adua-ih-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .adua-ih-brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 58px);
    }

    .adua-ih-desktop-navigation {
        display: none !important;
    }

    .adua-ih-mobile-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
    }

    .adua-ih-header-actions {
        display: none;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .adua-ih-container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .adua-ih-main-header {
        min-height: 70px;
    }

    .adua-ih-brand {
        max-width: calc(100% - 52px);
    }

    .adua-ih-brand-logo {
        height: 42px;
        max-width: 52px;
    }

    .adua-ih-institution-name {
        font-size: 13px;
    }

    .adua-ih-institution-tagline {
        font-size: 8px;
    }

    .adua-ih-mobile-toggle {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

}


/* =========================================================
   LANDSCAPE MOBILE
========================================================= */

@media (max-width: 767px) and (orientation: landscape) {

    /*
     * Keep the navigation container full-screen so that
     * the overlay covers the complete viewport.
     */
    .adua-ih-mobile-navigation {
        width: 100%;
        height: 100vh;
        height: 100dvh;
    }

    /*
     * Adjust only the drawer width in landscape mode.
     */
    .adua-ih-mobile-drawer {
        width: min(380px, 75vw);
    }

    .adua-ih-mobile-drawer-header {
        min-height: 62px;
    }

}


/* =========================================================
   HIGH ZOOM AND NARROW VIEWPORTS
========================================================= */

@media (max-width: 320px) {

    .adua-ih-brand-tagline,
    .adua-ih-institution-tagline {
        display: none;
    }

    .adua-ih-mobile-toggle-label {
        display: none;
    }

}


/* =========================================================
   PRINT
========================================================= */

@media print {

    .adua-ih-wrapper {
        display: none !important;
    }

}


/* =========================================================
   ACCESSIBILITY: REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .adua-ih-wrapper *,
    .adua-ih-wrapper *::before,
    .adua-ih-wrapper *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}
