/* =========================================================
   TAXKONNECT
   Global Site Design System
   ========================================================= */

/* ---------- Design Tokens ---------- */

:root {
    --tk-blue: #0875c1;
    --tk-blue-dark: #075a96;
    --tk-blue-soft: #eaf6ff;

    --tk-green: #20a447;
    --tk-green-dark: #168139;
    --tk-green-soft: #eaf8ee;

    --tk-gold: #f2a900;
    --tk-gold-dark: #b97800;
    --tk-gold-soft: #fff4d6;

    --tk-ink: #0c2942;
    --tk-text: #34485c;
    --tk-muted: #6d7f90;

    --tk-background: #f6f9fc;
    --tk-surface: #ffffff;
    --tk-border: #e2eaf1;

    --tk-shell: 1180px;

    --tk-radius-sm: 10px;
    --tk-radius-md: 16px;
    --tk-radius-lg: 24px;

    --tk-shadow-sm: 0 6px 18px rgba(16, 34, 53, 0.06);
    --tk-shadow-md: 0 14px 35px rgba(16, 34, 53, 0.10);
    --tk-shadow-lg: 0 24px 60px rgba(16, 34, 53, 0.14);
}


/* ---------- Reset ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 0;
    background: var(--tk-surface);
    color: var(--tk-text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* ---------- Global Layout ---------- */

.site-shell {
    width: min(calc(100% - 48px), var(--tk-shell));
    margin-inline: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--tk-border);
    box-shadow: 0 4px 18px rgba(12, 41, 66, 0.055);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 28px;
}

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

.brand img {
    width: 178px;
    height: auto;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.primary-nav a {
    position: relative;
    color: var(--tk-text);
    font-size: 14px;
    font-weight: 650;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    color: var(--tk-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-login {
    color: var(--tk-ink);
    font-size: 14px;
    font-weight: 700;
}

.header-login:hover,
.header-login:focus-visible {
    color: var(--tk-blue);
}


/* ---------- Buttons ---------- */

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--tk-blue);
    color: #fff;
    box-shadow: 0 9px 22px rgba(11, 103, 178, 0.20);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--tk-blue-dark);
}

.button-secondary {
    background: #fff;
    color: var(--tk-ink);
    border-color: var(--tk-border);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: #bfd3e5;
    box-shadow: var(--tk-shadow-sm);
}

.button-small {
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
}


/* ---------- Mobile Menu Button ---------- */

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    margin-left: auto;
    border: 1px solid var(--tk-border);
    border-radius: 10px;
    background: #fff;
    color: var(--tk-ink);
    cursor: pointer;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(11, 103, 178, 0.22);
    outline-offset: 3px;
}


/* =========================================================
   RESPONSIVE GLOBAL SHELL
   ========================================================= */

@media (max-width: 1000px) {

    .primary-nav {
        gap: 20px;
    }

    .primary-nav a {
        font-size: 13px;
    }
}


@media (max-width: 900px) {

    .site-shell {
        width: min(calc(100% - 36px), var(--tk-shell));
    }

    .header-inner {
        min-height: 72px;
    }

    .brand img {
        width: 158px;
    }

    .mobile-menu-toggle {
        display: grid;
        place-items: center;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        margin: 0;
        padding: 12px 18px 18px;

        background: #fff;
        border-top: 1px solid var(--tk-border);
        border-bottom: 1px solid var(--tk-border);
        box-shadow: var(--tk-shadow-md);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav a {
        padding: 13px 4px;
        border-bottom: 1px solid #edf2f6;
        font-size: 15px;
    }

    .primary-nav a:last-child {
        border-bottom: 0;
    }

    .header-login {
        display: none;
    }

    .header-actions .button-small {
        min-height: 40px;
        padding: 9px 15px;
    }
}


@media (max-width: 600px) {

    .site-shell {
        width: min(calc(100% - 28px), var(--tk-shell));
    }

    .brand img {
        width: 150px;
    }

    .header-actions .button-small {
        display: none;
    }
}


@media (max-width: 380px) {

    .site-shell {
        width: min(calc(100% - 22px), var(--tk-shell));
    }

    .brand img {
        width: 142px;
    }
}

/* =========================================================
   TAXKONNECT GLOBAL COMPACT FOOTER
   ========================================================= */

.lean-footer {
    background: #0c2033;
    color: rgba(255, 255, 255, 0.72);
}

.lean-footer-inner {
    min-height: 94px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: center;
    gap: 32px;
}

.lean-footer-brand span {
    color: #fff;
    font-size: 14px;
    font-weight: 750;
}

.lean-footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
}

.lean-footer-links a {
    font-size: 12px;
    font-weight: 650;
    transition: color 0.2s ease;
}

.lean-footer-links a:hover,
.lean-footer-links a:focus-visible {
    color: #fff;
}

.lean-copyright {
    white-space: nowrap;
    font-size: 12px;
}

@media (max-width: 900px) {
    .lean-footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 15px;
        padding-top: 27px;
        padding-bottom: 27px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .lean-footer-links {
        gap: 9px 17px;
    }
}

/* Shared hamburger icon lines */
.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 3px 0;
    border-radius: 5px;
    background: var(--tk-ink);
}
