/*
|--------------------------------------------------------------------------
| Page: ADUA Institutional Header - Design System Variables
| File: assets/css/variables.css
| Company: Ygrace Tech
| Author: Ibrahim Olalekan
|
| Purpose:
| Defines the central design tokens used throughout the ADUA
| Institutional Header interface.
|
| Architecture:
| - Establishes the institutional colour palette.
| - Defines typography, spacing and layout dimensions.
| - Provides reusable borders, shadows and transitions.
| - Supports responsive design across desktop, tablet and mobile.
| - Allows configurable institutional colours through CSS variables.
| - Keeps all header components visually consistent.
| - Avoids imposing an unnecessary stacking context on the page.
| - Scopes baseline styles to the institutional header wrapper.
|
| Version: 1.1.0
| Timestamp: 2026-11-21
|--------------------------------------------------------------------------
*/

:root {

    /* =========================================================
       INSTITUTIONAL COLOURS
    ========================================================= */

    --adua-primary: #123D2D;
    --adua-primary-light: #1B563F;
    --adua-primary-dark: #0B2B20;

    --adua-secondary: #A78945;
    --adua-secondary-light: #C2A568;
    --adua-secondary-dark: #80652F;

    --adua-white: #FFFFFF;
    --adua-black: #111814;

    --adua-background: #F4F6F1;
    --adua-background-soft: #F8F9F6;
    --adua-surface: #FFFFFF;

    --adua-text: #17231D;
    --adua-text-muted: #65736A;
    --adua-text-light: #AAB5AD;

    --adua-border: #E2E8E2;
    --adua-border-dark: #CBD5CD;

    --adua-success: #26734D;
    --adua-warning: #B17B27;
    --adua-danger: #A83B35;


    /* =========================================================
       TYPOGRAPHY
    ========================================================= */

    --adua-font-heading:
        "Georgia",
        "Times New Roman",
        serif;

    --adua-font-body:
        "Inter",
        "Segoe UI",
        Arial,
        sans-serif;

    --adua-font-size-xs: 0.75rem;
    --adua-font-size-sm: 0.875rem;
    --adua-font-size-base: 1rem;
    --adua-font-size-md: 1.0625rem;
    --adua-font-size-lg: 1.25rem;
    --adua-font-size-xl: 1.5rem;
    --adua-font-size-2xl: 2rem;

    --adua-font-weight-normal: 400;
    --adua-font-weight-medium: 500;
    --adua-font-weight-semibold: 600;
    --adua-font-weight-bold: 700;

    --adua-line-height-tight: 1.2;
    --adua-line-height-normal: 1.5;
    --adua-line-height-relaxed: 1.7;


    /* =========================================================
       LAYOUT
    ========================================================= */

    --adua-container-width: 1440px;
    --adua-container-padding: 40px;

    --adua-header-height: 104px;
    --adua-header-height-compact: 76px;

    --adua-utility-height: 38px;

    --adua-mobile-header-height: 78px;

    --adua-z-index-base: 1;
    --adua-z-index-header: 1000;
    --adua-z-index-dropdown: 1100;
    --adua-z-index-overlay: 1200;
    --adua-z-index-drawer: 1300;


    /* =========================================================
       SPACING
    ========================================================= */

    --adua-space-1: 4px;
    --adua-space-2: 8px;
    --adua-space-3: 12px;
    --adua-space-4: 16px;
    --adua-space-5: 20px;
    --adua-space-6: 24px;
    --adua-space-8: 32px;
    --adua-space-10: 40px;
    --adua-space-12: 48px;
    --adua-space-16: 64px;


    /* =========================================================
       BORDERS AND RADII
    ========================================================= */

    --adua-border-width: 1px;

    --adua-radius-sm: 4px;
    --adua-radius-md: 8px;
    --adua-radius-lg: 12px;
    --adua-radius-xl: 18px;
    --adua-radius-full: 999px;


    /* =========================================================
       SHADOWS
    ========================================================= */

    --adua-shadow-soft:
        0 2px 12px rgba(15, 45, 31, 0.05);

    --adua-shadow-header:
        0 4px 22px rgba(15, 45, 31, 0.08);

    --adua-shadow-dropdown:
        0 14px 40px rgba(15, 45, 31, 0.13);

    --adua-shadow-drawer:
        0 0 40px rgba(0, 0, 0, 0.18);


    /* =========================================================
       TRANSITIONS
    ========================================================= */

    --adua-transition-fast: 160ms ease;
    --adua-transition-normal: 280ms ease;
    --adua-transition-slow: 420ms ease;

    --adua-transition-header:
        height 280ms ease,
        padding 280ms ease,
        box-shadow 280ms ease,
        background-color 280ms ease;


    /* =========================================================
       INTERACTION
    ========================================================= */

    --adua-focus-outline:
        3px solid var(--adua-secondary);

    --adua-focus-offset: 3px;

    --adua-link-transition:
        color 160ms ease,
        background-color 160ms ease;


    /* =========================================================
       RESPONSIVE BREAKPOINT REFERENCES
       CSS custom properties cannot be used directly as media
       query breakpoints. Keep matching values in component CSS.
    ========================================================= */

    --adua-breakpoint-mobile: 767px;
    --adua-breakpoint-tablet: 1024px;
    --adua-breakpoint-desktop: 1280px;

}


/* =============================================================
   GLOBAL HEADER BASELINE
============================================================= */

.adua-ih-wrapper,
.adua-ih-wrapper *,
.adua-ih-wrapper *::before,
.adua-ih-wrapper *::after {
    box-sizing: border-box;
}

.adua-ih-wrapper {
    width: 100%;
    position: relative;

    /*
     * Do not assign a high z-index to the entire wrapper.
     * Individual header, dropdown and drawer components manage
     * their own stacking levels.
     */
    z-index: auto;

    color: var(--adua-text);
    font-family: var(--adua-font-body);
    font-size: var(--adua-font-size-base);
    line-height: var(--adua-line-height-normal);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.adua-ih-wrapper button,
.adua-ih-wrapper input,
.adua-ih-wrapper select,
.adua-ih-wrapper textarea {
    font: inherit;
}

.adua-ih-wrapper a {
    color: inherit;
    text-decoration: none;
}

.adua-ih-wrapper button {
    cursor: pointer;
}

.adua-ih-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* =============================================================
   ACCESSIBILITY BASELINE
============================================================= */

.adua-ih-wrapper :focus-visible {
    outline: var(--adua-focus-outline);
    outline-offset: var(--adua-focus-offset);
}

.adua-ih-screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.adua-ih-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 99999;

    padding: 12px 18px;

    color: var(--adua-white) !important;
    background: var(--adua-primary);

    border-radius: var(--adua-radius-sm);
    box-shadow: var(--adua-shadow-soft);

    transition: top var(--adua-transition-fast);
}

.adua-ih-skip-link:focus {
    top: 12px;
}


/* =============================================================
   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;
    }

}
