/* =========================================================
   style.css — shared by EVERY page.
   Each page links it in <head> with:
       <link rel="stylesheet" href="style.css">
   Page-only styles stay in that page's own <style> tag.
   ========================================================= */

/* Brand colors in one place. Change them here and every page updates. */
:root {
    --green: #7ee96f;
    --green-soft: rgba(126, 233, 111, 0.12);
    --green-dim: rgba(126, 233, 111, 0.35);
    --text-muted: #9aa69c;
    --nav-bg: #121212;       /* the really dark gray side nav */
    --nav-line: #262626;
    --panel: #0b100c;        /* card backgrounds */
    --line: #1e2a20;         /* card borders */
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: black;
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* every icon is a small inline SVG that takes the text color */
.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ---------------------------------------------------------
   FLOATING HEADER BOX (clicking it opens the side nav)
   --------------------------------------------------------- */
.header-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
}

.header-container {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background-color: rgba(0, 0, 0, 0.75);
    border: 2px solid white;
    border-radius: 14px;
    box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-container:hover {
    border-color: var(--green);
    box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.9), 0 0 18px var(--green-dim);
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-box img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.brand-name {
    margin: 0;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   MENU TAB — sticks out from the left edge so people know where the menu is
   --------------------------------------------------------- */
.side-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 10px 16px 8px;
    background-color: var(--nav-bg);
    color: white;
    border: 1px solid var(--nav-line);
    border-left: none;
    border-radius: 0 14px 14px 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: padding 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.side-tab:hover {
    padding-left: 14px;               /* nudges out a little on hover */
    color: var(--green);
    border-color: var(--green-dim);
}

/* "MENU" written sideways */
.side-tab span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 3px;
}

/* ---------------------------------------------------------
   SIDE NAV (slides out from the left)

   How opening/closing works:
   1. A hidden checkbox (#nav-toggle) comes first.
   2. The header, the Menu tab, the X and the dark backdrop are all
      <label for="nav-toggle">, so clicking any of them ticks/unticks it.
   3. ".nav-check:checked ~ .side-nav" slides the nav in while it's ticked.
      ("~" means "a sibling that comes after it".)
   --------------------------------------------------------- */
.nav-check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    max-width: 85vw;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 24px 18px;
    background-color: var(--nav-bg);
    border-right: 1px solid var(--nav-line);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.6);
    transform: translateX(-105%);     /* hidden off the left edge */
    transition: transform 0.35s ease;
}

.nav-check:checked ~ .side-nav {
    transform: translateX(0);         /* slides in */
}

/* hide the Menu tab while the nav is open */
.nav-check:checked ~ .side-tab {
    opacity: 0;
    pointer-events: none;
}

.side-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.side-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    line-height: 1.3;
}

.side-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--nav-line);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-btn:hover {
    border-color: white;
    color: white;
}

/* "Current page" box: icon + page name */
.current-page {
    background-color: #1a1a1a;
    border: 1px solid var(--nav-line);
    border-radius: 14px;
    padding: 14px;
}

.current-page small {
    display: block;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.current-page div {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: bold;
}

.icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--green-soft);
    color: var(--green);
}

/* the page links */
.side-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side-links small {
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    margin: 0 0 6px 4px;
}

.side-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 3px solid transparent;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.side-links a:hover {
    background-color: #1e1e1e;
}

/* the page you're on */
.side-links a.active {
    background-color: var(--green-soft);
    border-left-color: var(--green);
    color: var(--green);
}

.side-footer {
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* dark layer over the page while the nav is open; clicking it closes the nav */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 250;
    background-color: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.nav-check:checked ~ .nav-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* keyboard users: show a ring on the Menu tab when the checkbox is focused */
.nav-check:focus-visible ~ .side-tab {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

/* ---------------------------------------------------------
   SHARED PAGE PIECES
   --------------------------------------------------------- */
section {
    scroll-margin-top: 110px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 70px 20px 10px;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    margin: 0 auto;
    padding: 0 20px;
    max-width: 640px;
    line-height: 1.5;
}

/* CIRCULAR RECTANGLES (PILLS) */
.pill-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 20px 70px;
    flex-wrap: wrap;
}

.pill {
    background-color: black;
    color: white;
    border: 2px solid white;
    border-radius: 50px;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pill:hover {
    background-color: white;
    color: black;
}

.pill.primary {
    border-color: var(--green);
    color: var(--green);
    box-shadow: 0 0 24px var(--green-dim);
}

.pill.primary:hover {
    background-color: var(--green);
    color: black;
}

hr {
    border: 0;
    border-top: 1px solid #333;
    margin: 30px 0;
}

footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0 20px 40px;
}

/* ---------------------------------------------------------
   PHONES (600px wide or less)
   --------------------------------------------------------- */
@media (max-width: 600px) {
    .header-wrapper {
        top: 12px;
    }

    .header-container {
        gap: 10px;
        padding: 10px 14px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-box img {
        width: 34px;
        height: 34px;
    }

    /* smaller Menu tab so it doesn't cover content */
    .side-tab {
        padding: 12px 7px 12px 5px;
        gap: 8px;
    }

    .side-tab .icon {
        width: 16px;
        height: 16px;
    }

    .side-tab span {
        font-size: 0.62rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-top: 50px;
    }

    .pill-container {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
}