/*
============================================================
LISMAH SHARED SITE STYLES
============================================================

Used by:

- public pages
- tools
- calculators
- Idea Registry
- privacy page
- error pages
- future Lismah pages

Tool-specific styling belongs in:

    static/css/tools.css
============================================================
*/


/* =========================================================
   DESIGN TOKENS
========================================================= */

:root {
    --brand: #0f3d4c;
    --brand-soft: #44646d;
    --page: #dff3f7;
    --surface: rgba( 255, 255, 255, 0.84 );
    --surface-solid: #ffffff;
    --text: #1f3d47;
    --text-soft: #44646d;
    --border: rgba( 15, 61, 76, 0.14 );
    --border-strong: rgba( 15, 61, 76, 0.24 );
    --shadow: 0 18px 45px rgba( 15, 61, 76, 0.12 );
    --shadow-large: 0 25px 70px rgba( 15, 61, 76, 0.18 );
    --radius-small: 10px;
    --radius-medium: 16px;
    --radius-large: 24px;
    --page-width: 1160px;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--page);
    color: var(--text);
    line-height: 1.6;
}


img {
    display: block;
    max-width: 100%;
}


a {
    color: var(--brand);
}


    a:hover {
        text-decoration: underline;
    }


button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--surface-solid);
    color: var(--brand);
    border-radius: var(--radius-small);
}


    .skip-link:focus {
        top: 20px;
    }


/* =========================================================
   SHARED CONTAINER
========================================================= */

.container {
    width: min( 100% - 48px, var(--page-width) );
    margin-inline: auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
}


.site-nav {
    background: rgba( 255, 255, 255, 0.92 );
    border-bottom: 1px solid rgba( 186, 230, 253, 0.65 );
    backdrop-filter: blur( 12px );
}


.nav-inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}


.site-logo {
    color: var(--brand);
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-decoration: none;
}


    .site-logo:hover {
        text-decoration: none;
    }


.desktop-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}


    .desktop-nav a {
        color: var(--brand-soft);
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.16em;
        text-decoration: none;
        text-transform: uppercase;
    }


        .desktop-nav a:hover {
            color: var(--brand);
        }


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

.menu-button {
    display: none;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--brand);
    cursor: pointer;
    font-size: 1.8rem;
}


.mobile-nav {
    border-top: 1px solid var(--border);
    background: rgba( 255, 255, 255, 0.97 );
}


    .mobile-nav[hidden] {
        display: none;
    }


    .mobile-nav .container {
        padding-block: 10px 20px;
    }


    .mobile-nav a {
        display: block;
        padding: 11px 0;
        color: var(--brand-soft);
        font-size: 0.82rem;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-decoration: none;
        text-transform: uppercase;
    }


/* =========================================================
   GENERAL PAGE LAYOUT
========================================================= */

.site-main {
    width: min( 100% - 48px, 960px );
    margin-inline: auto;
    padding: 64px 0 90px;
}


.page-header {
    margin-bottom: 40px;
}


.page-eyebrow {
    margin: 0 0 10px;
    color: var(--brand-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}


h1,
h2,
h3 {
    color: var(--brand);
    line-height: 1.15;
}


h1 {
    margin: 0 0 18px;
    font-size: clamp( 2.5rem, 7vw, 4rem );
    letter-spacing: -0.04em;
}


h2 {
    margin: 0 0 14px;
    font-size: clamp( 1.6rem, 4vw, 2.3rem );
}


h3 {
    margin: 0 0 10px;
}


p {
    margin-top: 0;
}


.lead {
    max-width: 720px;
    color: var(--text-soft);
    font-size: 1.1rem;
    line-height: 1.75;
}


/* =========================================================
   SECTIONS
========================================================= */

.content-section {
    margin: 30px 0;
}


.section-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid rgba( 255, 255, 255, 0.78 );
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
}


    .button:hover {
        text-decoration: none;
    }


.button-primary {
    background: var(--brand);
    color: #ffffff;
    box-shadow: var(--shadow);
}


.button-secondary {
    background: rgba( 255, 255, 255, 0.7 );
    border-color: var(--border-strong);
    color: var(--brand);
}


/* =========================================================
   FORMS
========================================================= */

.form-field {
    margin-bottom: 20px;
}


label {
    display: block;
    margin-bottom: 7px;
    color: var(--brand);
    font-size: 0.9rem;
    font-weight: 800;
}


input,
textarea,
select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba( 15, 61, 76, 0.22 );
    border-radius: 12px;
    outline: none;
    background: rgba( 255, 255, 255, 0.94 );
    color: var(--text);
}


    input:focus,
    textarea:focus,
    select:focus {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba( 15, 61, 76, 0.11 );
    }


textarea {
    resize: vertical;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: rgba( 255, 255, 255, 0.8 );
    border-top: 1px solid rgba( 186, 230, 253, 0.65 );
}


.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    align-items: center;
    gap: 30px;
    padding: 34px 0;
}


.footer-logo {
    color: var(--brand);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-decoration: none;
}


.footer-description {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 0.82rem;
}


.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}


    .footer-links a {
        color: var(--brand-soft);
        font-size: 0.75rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-decoration: none;
        text-transform: uppercase;
    }


.footer-copyright {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.78rem;
    text-align: right;
}


/* =========================================================
   COOKIE CONSENT BANNER

   The markup comes from _cookie_consent.html.
========================================================= */

#cookie-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    left: 24px;
    z-index: 200;
    width: min( calc(100% - 48px), 720px );
    margin-inline: auto;
    padding: 22px;
    background: var(--surface-solid);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba( 15, 61, 76, 0.24 );
}


    #cookie-consent[hidden] {
        display: none;
    }


    #cookie-consent h2 {
        margin: 0 0 8px;
        font-size: 1.25rem;
    }


    #cookie-consent p {
        margin: 0 0 14px;
        color: var(--text-soft);
    }


    #cookie-consent button {
        margin: 0 8px 8px 0;
        padding: 10px 15px;
        border: 1px solid var(--border-strong);
        border-radius: 10px;
        cursor: pointer;
        font-weight: 800;
    }


#cookie-accept {
    background: var(--brand);
    color: #ffffff;
}


#cookie-reject {
    background: var(--surface-solid);
    color: var(--brand);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media ( max-width: 800px ) {

    .container {
        width: min( 100% - 30px, var(--page-width) );
    }


    .desktop-nav {
        display: none;
    }


    .menu-button {
        display: block;
    }


    .site-main {
        width: min( 100% - 30px, 960px );
        padding: 42px 0 70px;
    }


    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }


    .footer-links {
        justify-content: center;
    }


    .footer-copyright {
        text-align: center;
    }


    #cookie-consent {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
    }
}
