﻿
/* ================== VARIABLES ================== */
:root {
    --primary: #0a66c2;
    --primary-hover: #084a91;
    --primary-contrast: #ffffff;
    --bg-light: #ffffff;
    --text-light: #000000;
    --bg-dark: #0f172a;
    --text-dark: #ffffff;
    --card-light: #f9fafb;
    --card-dark: #1e293b;
    --border-light: #dddddd;
    --border-dark: #444444;
    --nav-hover-light: rgba(0, 0, 0, 0.08);
    --nav-hover-dark: rgba(255, 255, 255, 0.15);
    --header-bg-light: rgba(255, 255, 255, 0.95);
    --header-bg-dark: rgba(15, 23, 42, 0.95);
    --focus: #ffbf47;
}

h1::before {
    content: "H1: "; /* Adds the text before the existing H1 content */
    color: black;
    background-color: yellow;
    font-size: 0.8em;
}

h2::before {
    content: "H2: "; /* Adds the text before the existing H1 content */
    color: black;
    background-color: green;
    font-size: 0.7em;
}


.linkbasic {
    /* Reset most inherited/overridden styles */
    all: unset;
    /* Restore expected anchor behavior */
    display: inline;
    visibility: visible;
    cursor: pointer;
    /* Restore default link look */
    color: blue;
    text-decoration: underline;
    /* Explicit resets you asked for */
    border: none;
    outline: none;
}

    .linkbasic:visited {
        color: purple;
    }

    .linkbasic:hover {
        text-decoration: underline;
    }

    .linkbasic:active {
        color: red;
    }

/* ================== DARK MODE TOKENS ================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: var(--bg-dark);
        --text: var(--text-dark);
        --card-bg: var(--card-dark);
        --border: var(--border-dark);
        --nav-hover: var(--nav-hover-dark);
        --header-bg: var(--header-bg-dark);
        --header-border: var(--border-dark);
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: var(--bg-light);
        --text: var(--text-light);
        --card-bg: var(--card-light);
        --border: var(--border-light);
        --nav-hover: var(--nav-hover-light);
        --header-bg: var(--header-bg-light);
        --header-border: var(--border-light);
    }
}

/* ================== BASE ================== */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Light/Dark mode logo swap */
.lightmodeonly {
    display: inline;
}

.darkmodeonly {
    display: none;
}

@media (prefers-color-scheme: dark) {
    .lightmodeonly {
        display: none;
    }

    .darkmodeonly {
        display: inline;
    }
}

/* ================== ACCESSIBILITY ================== */
a:focus,
button:focus {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

a {
    text-decoration: underline;
    color: inherit;
}

.nav-links a {
    text-decoration: none;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: var(--bg-dark);
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: 4px;
    z-index: 10000;
    font-weight: 600;
}

    .skip-link:focus {
        top: 10px;
    }

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ================== LAYOUT ================== */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* ================== HEADER ================== */
header {
    position: sticky;
    top: 0;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--header-border);
    z-index: 1000;
}

/* ================== NAV ================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    width: 160px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

    .nav-links a {
        padding: 8px 12px;
        border-radius: 6px;
        color: var(--text);
        transition: background 0.2s ease;
    }

        .nav-links a:hover,
        .nav-links a:focus {
            background: var(--nav-hover);
        }

/* Mobile menu toggle (hamburger) */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    color: var(--text);
    border: none;
    padding: 8px;
    line-height: 1;
}

    .menu-toggle:hover,
    .menu-toggle:focus {
        background: var(--nav-hover);
        border-radius: 6px;
    }

/* Mobile menu panel */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0 12px;
}

    .mobile-menu a,
    .mobile-menu strong {
        display: block;
        padding: 10px 12px;
        border-radius: 6px;
        color: var(--text);
        text-decoration: none;
    }

        .mobile-menu a:hover,
        .mobile-menu a:focus {
            background: var(--nav-hover);
        }

/* ================== BUTTONS ================== */
button {
    background: var(--primary);
    color: var(--primary-contrast);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}

    button:hover,
    button:focus {
        background: var(--primary-hover);
    }

/* ================== HERO ================== */
.hero {
    padding: 80px 0;
    text-align: center;
}

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

/* ================== CARDS ================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    padding: 20px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
}

/* ================== FOOTER ================== */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

/* ── Site Footer Bar ─────────────────────────────────────── */
.site-footer-bar {
    background-color: #1e2227;
    color: #a0a8b4;
    font-size: 0.875rem;
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding: 3rem 1.5rem 2rem;
    justify-content: space-between;
    align-items: flex-start;
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 220px;
}

.site-footer-tagline {
    margin: 0;
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.5;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.site-footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 120px;
}

.site-footer-heading {
    color: #e5e7eb;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.site-footer-col a {
    color: #a0a8b4;
    text-decoration: none;
    transition: color 0.15s ease;
}

    .site-footer-col a:hover,
    .site-footer-col a:focus {
        color: #ffffff;
        text-decoration: underline;
    }

/* ── Bottom bar ──────────────────────────────────────────── */
.site-footer-bottom {
    border-top: 1px solid #2d3340;
    padding: 1rem 0;
}

.site-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.site-footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

    .site-footer-bottom nav a {
        color: #6b7280;
        text-decoration: none;
        transition: color 0.15s ease;
    }

        .site-footer-bottom nav a:hover,
        .site-footer-bottom nav a:focus {
            color: #d1d5db;
        }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .site-footer-inner {
        flex-direction: column;
    }

    .site-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu.open {
        display: flex;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero {
        padding: 48px 0;
    }
}
