/* =========================================================
   REQUIRED IN YOUR HTML <head>:
   <meta name="color-scheme" content="light dark">
   This tells mobile browsers (including Samsung Internet)
   that the page handles dark mode itself, so they do not
   force-darken it.
   ========================================================= */

/* =========================================================
   THEME VARIABLES
   Light by default, dark when the device is in dark mode.
   color-scheme MUST be declared here so Samsung Internet
   treats the page as dark-aware.
   ========================================================= */

:root {
    color-scheme: light;

    --bg: #ffffff;
    --text: #14213d;
    --muted: #5b6577;
    --line: #e3e7ee;
    --accent: #2563eb;
    --hover: #f1f4f9;
    --nav-h: 64px;
}

html{
    background-color:var(--bg);
}
/* =========================================================
   NAVBAR LIGHT-THEME LOCK
   Keeps the navbar (and its menu, dropdown and mobile
   accordion) in the light theme whatever the device is
   set to. Resets the variables the dark block changes.

   The background-image gradient is a fallback for Samsung
   Internet: its force-dark algorithm inverts solid
   background-color values but usually skips background-image.
   ========================================================= */

.navbar,
.menu,
.dropdown {
    color-scheme: light;
    background-color: var(--bg); !important;
    background-image: linear-gradient(#f8f8f6, #f8f8f6);
    color: #111111;
}


.navbar {
    --accent: #2563eb;
    --hover: #f1f4f9;
    --text: #14213d;
    --muted: #5b6577;
    --line: #e3e7ee;
}

.navbar {
background-color: #FFF !important;
color: #000 !important;
}

/* =========================================================
   GLOBAL RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;

    /* Uses the theme variables so the page is truly dark-aware */
    background-color: var(--bg);
    color: var(--text);
}

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

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}

/* =========================================================
   NAVBAR
   IMPORTANT:
   Navbar is ALWAYS OFF-WHITE with BLACK text.
   It does NOT change with browser dark mode.
   ========================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;

    border-bottom: 1px solid #dddddd;
}

/* =========================================================
   NAVBAR INNER
   ========================================================= */

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;

    height: var(--nav-h);

    display: flex;
    align-items: center;
    gap: 32px;
}

/* =========================================================
   LOGO
   ========================================================= */

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;

    color: #111111;

    white-space: nowrap;
    background-color: #ffffff;
}

.logo span {
    color: var(--accent);
}

/* =========================================================
   MAIN MENU
   ========================================================= */

.menu {
    display: flex;
    align-items: center;
    gap: 4px;

    list-style: none;
    padding: 0;

    height: 100%;

    /* Desktop: menu sits inside the navbar, so stay transparent */
    background-color: transparent;
    background-image: none;
}

.menu > li {
    height: 100%;

    display: flex;
    align-items: center;
}

/* =========================================================
   MENU LINKS / DROPDOWN BUTTONS
   ========================================================= */

.menu-link,
.menu-btn {
    font: inherit;
    font-size: 0.95rem;

    color: #111111;

    background: none;
    border: 0;

    cursor: pointer;

    padding: 8px 14px;

    border-radius: 8px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.menu-link:hover,
.menu-btn:hover,
.menu-btn[aria-expanded="true"] {
    background: #eeeeec;
    color: #000000;
}

/* =========================================================
   DROPDOWN ARROW
   ========================================================= */

.chev {
    width: 10px;
    height: 10px;

    transition: transform 0.2s ease;
}

.menu-btn[aria-expanded="true"] .chev {
    transform: rotate(180deg);
}

/* =========================================================
   NAVIGATION ACTIONS
   ========================================================= */

.nav-actions {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 8px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    font: inherit;
    font-size: 0.95rem;

    padding: 9px 16px;

    border-radius: 8px;

    border: 1px solid transparent;

    cursor: pointer;

    transition:
        background 0.2s ease,
        filter 0.2s ease,
        transform 0.2s ease;
}

/* Ghost button */

.btn-ghost {
    background: none;
    color: #111111;
}

.btn-ghost:hover {
    background: #eeeeec;
}

/* Primary button */

.btn-primary {
    background: var(--accent);
    color: #ffffff;

    font-weight: 600;
}

.btn-primary:hover {
    filter: brightness(1.08);
}

/* =========================================================
   FULL-WIDTH DROPDOWN
   (off-white background and dark text come from the
   NAVBAR LIGHT-THEME LOCK block above)
   ========================================================= */

.dropdown {
    position: absolute;

    left: 0;
    right: 0;

    top: 100%;

    border-bottom: 1px solid #dddddd;

    box-shadow:
        0 18px 30px -18px rgba(10, 20, 40, 0.25);

    opacity: 0;

    visibility: hidden;

    transform: translateY(-6px);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}

/* Open dropdown */

.dropdown.open {
    opacity: 1;

    visibility: visible;

    transform: none;
}

/* =========================================================
   DROPDOWN INNER
   ========================================================= */

.dropdown-inner {
    max-width: 1200px;

    margin: 0 auto;

    padding: 28px 24px 32px;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 32px;
}

/* =========================================================
   DROPDOWN COLUMNS
   ========================================================= */

.col h3 {
    font-size: 0.85rem;

    font-weight: 600;

    color: #666666;

    margin-bottom: 10px;
}

.col a {
    display: block;

    padding: 8px 10px;

    margin: 0 -10px;

    border-radius: 8px;

    color: #111111;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.col a:hover {
    background: #eeeeec;

    color: #000000;
}

.col a strong {
    display: block;

    font-size: 0.95rem;

    font-weight: 600;
}

.col a small {
    color: #666666;

    font-size: 0.85rem;
}

/* =========================================================
   FEATURE BOX INSIDE DROPDOWN
   ========================================================= */

.feature {
    background: #eeeeec;

    border-radius: 12px;

    padding: 20px;
}

.feature p {
    color: #666666;

    font-size: 0.9rem;

    margin: 6px 0 14px;

    line-height: 1.5;
}

/* =========================================================
   MOBILE BURGER BUTTON
   ========================================================= */

.burger {
    display: none;

    margin-left: auto;

    background: none;

    border: 0;

    cursor: pointer;

    padding: 10px;

    border-radius: 8px;

    color: #111111;

    transition: background 0.2s ease;
}

.burger:hover {
    background: #eeeeec;
}

.burger svg {
    display: block;
}

/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 900px) {

    /* Show burger */

    .burger {
        display: block;
    }

    /* Hide desktop action buttons */

    .nav-actions {
        display: none;
    }

    /* Main mobile menu */

    .menu {
        display: none;

        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        height: auto;

        /* Always off-white (solid + gradient fallback for Samsung) */
        background-color: #f8f8f6;
        background-image: linear-gradient(#f8f8f6, #f8f8f6);

        /* Always black text */
        color: #111111;

        border-bottom: 1px solid #dddddd;

        max-height: calc(100dvh - var(--nav-h));

        overflow-y: auto;

        padding: 8px 16px 20px;
    }

    /* Open mobile menu */

    .menu.open {
        display: flex;
    }

    /* Mobile menu items */

    .menu > li {
        height: auto;

        display: block;
    }

    /* Mobile links */

    .menu-link,
    .menu-btn {
        width: 100%;

        justify-content: space-between;

        padding: 14px 10px;

        color: #111111;
    }

    /* Mobile action buttons */

    .menu-actions {
        display: flex !important;

        gap: 8px;

        padding-top: 12px;
    }

    .menu-actions .btn {
        flex: 1;

        text-align: center;
    }

    /* =====================================================
       MOBILE DROPDOWN / ACCORDION
       ===================================================== */

    .dropdown {
        position: static;

        box-shadow: none;

        border: 0;

        opacity: 1;

        visibility: visible;

        transform: none;

        display: none;

        background-color: #f8f8f6;
        background-image: linear-gradient(#f8f8f6, #f8f8f6);

        color: #111111;
    }

    /* Open accordion */

    .dropdown.open {
        display: block;
    }

    /* Dropdown layout on mobile */

    .dropdown-inner {
        grid-template-columns: 1fr;

        gap: 16px;

        padding: 4px 10px 12px;
    }

    /* Mobile dropdown links */

    .col a {
        color: #111111;
    }

    .col a:hover {
        background: #eeeeec;
    }
}

/* =========================================================
   DESKTOP MENU ACTIONS
   ========================================================= */

@media (min-width: 901px) {

    .menu-actions {
        display: none !important;
        
        
    }
}

/* =========================================================
   ACCESSIBILITY
   REDUCE ANIMATION WHEN REQUESTED BY USER'S SYSTEM
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;

        animation: none !important;

        scroll-behavior: auto !important;
    }
}

/* =========================================================
   DEMO / MAIN CONTENT
   Delete this section if it is not needed.
   ========================================================= */

main {
    max-width: 760px;

    margin: 0 auto;

    padding: 48px 24px 120px;

    line-height: 1.7;

    color: var(--muted);
}

main h1 {
    color: var(--text);

    margin-bottom: 16px;

    letter-spacing: -0.02em;
}

main p {
    margin-bottom: 20px;
}

/* =========================================================
   NAVIGATION SUB-HEAD
   ========================================================= */

.nav-sub-head {
    padding: 0 0 5px 0;

    border-width: 2px;

    font-size: 17px !important;

    font-family:
        Cambria,
        Cochin,
        Georgia,
        Times,
        "Times New Roman",
        serif !important;
}

/*.navbar {*/
/*background: #eceff1;*/
/*border-bottom: 1px solid #d0d7de;*/
/*}*/

