/**
 * Role: Global Mobile-First BrandCard CSS tokens, header, navigation, buttons, and footer styles.
 * SRP: Only changes when global BrandCard colors, typography, or shared layout shell styles change.
 * DRY References: INNE - Innerconfidence-brandcard-v002.pdf tokens reused across MasterLayout and all Domain stylesheets.
 */

:root {
    /* Primary BrandCard Colors */
    --color-tiber: #003238;
    --color-blue-bayoux: #2E5D6F;
    --color-tahiti-gold: #F0821A;
    --color-red-orange: #E63024;

    /* Secondary BrandCard Colors */
    --color-jaffa: #F1863F;
    --color-bali-hai: #82A1AF;
    --color-heath: #561014;
    --color-mystic: #E6ECEF;
    --color-energy-yellow: #FFE161;

    /* Neutrals & Surfaces */
    --color-white: #FFFFFF;
    --color-peach-tint: #FBDAC2;
    --color-ink: #003238;
    --color-muted: #2E5D6F;

    /* Typography */
    --font-display: 'Barlow Condensed', 'Oswald', Arial, sans-serif;
    --font-body: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout & Radii */
    --container-max: 1120px;
    --radius-sm: 4px;
    --radius-md: 8px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-ink);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Mobile-First Header & Drawer Navigation */
.site-header {
    background-color: var(--color-white);
    border-bottom: 3px solid var(--color-mystic);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
}

.brand-logo-svg {
    width: 155px;
    height: auto;
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background-color: var(--color-mystic);
    border: 2px solid var(--color-tiber);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-toggle:focus-visible {
    outline: 3px solid var(--color-tahiti-gold);
    outline-offset: 2px;
}

.nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2.5px;
    background-color: var(--color-tiber);
    border-radius: 2px;
}

/* Collapsed by default on mobile; expands vertically when toggled */
.site-nav {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    margin-top: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-mystic);
}

.site-nav.site-nav--open {
    display: flex;
}

.nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0.55rem 0.9rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-tiber);
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    background-color: var(--color-mystic);
}

.nav-link--active {
    background-color: var(--color-tiber);
    color: var(--color-white);
}

.nav-link--active:hover,
.nav-link--active:focus-visible {
    background-color: var(--color-blue-bayoux);
}

/* Shared Brand Components */
.brand-pill {
    position: relative;
    display: inline-block;
    background-color: var(--color-tiber);
    color: var(--color-white);
    padding: 0.08em 0.36em;
    margin: 0;
    line-height: 1.05;
}

/* Keep pointer compact so multi-line display quotes never collide with text below */
.brand-pill::after {
    content: '';
    position: absolute;
    left: 0.28em;
    bottom: -0.17em;
    width: 0;
    height: 0;
    border-left: 0.18em solid transparent;
    border-right: 0.18em solid transparent;
    border-top: 0.19em solid var(--color-tiber);
}

.brand-pill--gold {
    background-color: var(--color-tahiti-gold);
    color: var(--color-tiber);
}

.brand-pill--gold::after {
    border-top-color: var(--color-tahiti-gold);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:focus-visible {
    outline: 3px solid var(--color-energy-yellow);
    outline-offset: 2px;
}

.btn--primary {
    background-color: var(--color-tahiti-gold);
    color: var(--color-tiber);
}

.btn--primary:hover {
    background-color: var(--color-jaffa);
    transform: translateY(-1px);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-tiber);
    border-color: var(--color-tiber);
}

.btn--outline:hover {
    background-color: var(--color-tiber);
    color: var(--color-white);
}

.btn--outline-light {
    background-color: rgba(0, 50, 56, 0.45);
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn--outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-tiber);
}

/* Error / 404 */
.not-found {
    padding: 4rem 0;
    text-align: center;
}

.not-found__title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.not-found__text {
    max-width: 34rem;
    margin: 0 auto 1.5rem;
    color: var(--color-muted);
}

/* Footer */
.site-footer {
    background-color: var(--color-tiber);
    color: var(--color-mystic);
    padding: 2.25rem 0 1.75rem;
    border-top: 6px solid var(--color-tahiti-gold);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand {
    max-width: 28rem;
}

.footer-tagline {
    margin: 0.65rem 0 0;
    font-size: 0.95rem;
    color: var(--color-bali-hai);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.social-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--color-tahiti-gold);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.social-tile:hover {
    background-color: var(--color-jaffa);
    transform: translateY(-1px);
}

.footer-bottom {
    border-top: 1px solid var(--color-blue-bayoux);
    padding-top: 1rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-bali-hai);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
}

/* Tablet & Desktop Enhancements */
@media (min-width: 768px) {
    .header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }

    .header-bar {
        width: auto;
    }

    .brand-logo-svg {
        width: 195px;
    }

    .nav-toggle {
        display: none;
    }

    .site-nav,
    .site-nav.site-nav--open {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: auto;
        gap: 0.5rem;
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

    .nav-link {
        width: auto;
        min-height: 44px;
        padding: 0.45rem 0.9rem;
        font-size: 1.05rem;
    }

    .footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
