h1 {
    font-size: 25px;
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 15px;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
}

header h1 a {font-size: 35px; }


/* NAV styles ------------------------------------------- */

/* Hide the checkbox toggle input */
#menu_toggle {
    display: none;
}

.menu_label {
    display: block;
}

/* Base styles for animation */
.menu_icon .top,
.menu_icon .middle,
.menu_icon .bottom {
    transition: transform 1s ease, opacity 1s ease;
    transform-origin: center;
}

/* When menu is toggled (checked) */
.menu_icon line {
    stroke: white;
    stroke-width: 1;
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform-origin: 70px 50%;
}

/* Menu open: arrow shape */
#menu_toggle:checked~.menu_label .top {
    transform: rotate(45deg);
}

#menu_toggle:checked~.menu_label .middle {
}

#menu_toggle:checked~.menu_label .bottom {
    transform: rotate(-45deg);
}

/* Toggle button position */
/* This is the icon itself */
.menu_label {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 1001;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

#menu_toggle:checked+.menu_label {
    position: fixed;

}

/* Optional: SVG sizing inside label */
.menu_icon {
    width: 100%;
    height: 100%;
}

/* Slide-out menu panel (hidden by default) */
.menu_panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100dvh;
    background-color: #202124;
    color: white;
    padding: 100px 0 0 40px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.4);
    transition: right 0.3s ease;
    z-index: 1000;
}

/* Show panel when menu is toggled */
#menu_toggle:checked~.menu_panel {
    right: 0;
}

/* Optional: Menu list styling */
.menu_panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu_panel li {
    display: block;
    margin-bottom: 30px;
    font-size: 30px;
}

.menu_panel a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.menu_panel a:hover {
    color: #ddd;
}

/* Dark overlay */
#menu_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8); /* darkness level */
  z-index: 999; /* Must be below .menu_panel (z-index: 1000) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Show overlay when menu is open */
#menu_toggle:checked ~ #menu_overlay {
  opacity: 1;
  pointer-events: all;
}

/* Ensure menu panel is on top of the overlay */
.menu_panel {
  z-index: 1000;
}


/* FOOTER styles -------------------------------------------- */

footer #footer-container {
    position: relative;
    color: #fff;
    padding: 20px;
    margin: 80px auto 20px auto;
    width: 100%;
    gap: 0px;
}

footer #newsletter {
    justify-self: left;
}

footer #terms_of_use {
    justify-self: left;
}

body.homepage {

    div#terrain {
        position: absolute;
        width: 100vw;
        height: 100vh;
    }

    header {
        height: 80px;
    }

    div#banner {
        min-height: calc(100vh - 70px);
        /* Make it fill screen if content is short */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    main {

        margin: auto;
        padding: 20px;
        line-height: 1.5em;

        p.intro {

            font-size: 25px;
            letter-spacing: -1px;
            line-height: 1.4em;

            strong {
                font-weight: bold;
            }
        }
    }

    footer {
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #hp_banner_headline {

        position: absolute;
        top: 50%;
        left: 10px;
        margin: auto;
        transform: translateY(-70%);
        font-size: clamp(40px, 55px, 90px);
        font-kerning: normal;
        letter-spacing: -2px;
        word-spacing: 2px;
        line-height: 80%;
        text-rendering: optimizeLegibility;
        color: #fff;
        text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.9);
        /* Subtle shadow */
    }

}

body.standard,
body.article {

    header {
        height: 80px;
        margin: auto;
    }

    main {

        margin: auto;
        padding: 20px;

        div#milestones {
            display: none;
        }

        p.intro {

            font-size: 40px;
            letter-spacing: -2px;

            strong {
                font-weight: bold;
            }
        }

        aside {
            display: block;
            font-size: 20px;
            padding: 30px;
            border-left: 5px solid #fff;
            line-height: 1.2em;
            font-weight: 400;
        }

        aside.right {
            float: none;
        }

        svg#five_stages {
            width: 100%;
            height: 160px;
        }

        .svg-label {
            font-size: 45px;
            fill: white;
            font-family: sans-serif;
        }

        .svg-label {
            transform: rotate(-45deg);
        }

        .label-ad-hoc {
            transform-origin: 50px 150px;
        }

        .label-foundational {
            transform-origin: 250px 150px;
        }

        .label-developing {
            transform-origin: 450px 150px;
        }

        .label-advanced {
            transform-origin: 650px 150px;
        }

        .label-transformational {
            transform-origin: 850px 150px;
        }

    }

    footer {
        margin: auto;
        padding: 0px;
        color: #fff;
    }

}

div.callout {
    border-left: 5px solid #eee;
    border-right: 5px solid none;
    padding-left: 20px;
}

div.callout a.cta {
    background: #eee;
    color: #000;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    display: block;
    margin: auto;
    max-width: 200px;
}

.bigandbold {

    font-size: 16px;
    letter-spacing: 0px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.bigandbold svg {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}



#formContainer {
    right: 10px;
    bottom: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

form {

    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

form label {
    min-width: 60px;
    grid-column: 1;
    text-align: left;
}

form input {
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 100%;
    color: #fff;
}

form select {

    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;

    option {
        color: #000;
    }

}

form textarea {
    padding: 10px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 100%;
    height: 160px;
    border: none;
    /* grid-column: 2; */
    overflow-y: visible;
    color: #fff;
}

form .checkbox-label {
    max-width: 140px;
}

form button {
    margin-top: 30px;
    grid-column: 2;
    width: 50%;
    justify-self: end;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #222423;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, .1) 0 2px 4px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-family: "Akzidenz Grotesk BQ Medium", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    outline: 0;
    padding: 10px 25px;
    text-align: center;
    transform: translateY(0);
    transition: transform 150ms, box-shadow 150ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

form button:hover {
    box-shadow: rgba(0, 0, 0, .15) 0 3px 9px 0;
    transform: translateY(-2px);
}

form .checkbox-container {
    display: grid;
    grid-template-columns: 1fr;
}

form .checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

form .checkbox-item input {
    width: 20px;
}

/*article index */
.grid-container {
    display: grid;
    grid-template-columns: repeat(1);
    grid-template-rows: auto auto auto;
    /* Three rows */
    gap: 10px;
    width: auto;
}

/* COLUMNS ---------------------------------------------------*/

.columns {
    column-gap: 20px;
    padding: 1rem 0;
}

.two-columns {
    column-count: 1;
}

.three-columns {
    column-count: 1;
}

.faq-section {
    break-inside: avoid;
}

/* GRID ---------------------------------------------------*/

.grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

.two-by-one {
    grid-template-columns: 1fr;
}

.three-by-one {
    grid-template-columns: 1fr;
    /* Creates 3 equal columns */
}

.four-by-one {
    grid-template-columns: repeat(4fr);
    /* Creates 3 equal columns */
}


div.article,
div.feature-article {
    padding: 0px;
    text-align: left;
    background: #222;

}

div.article_description {
    margin-top: 20px;
}

div.article_tags {
    font-style: italic;
    margin-top: 20px;
}

.chart {
    width: 100%;
    height: 300px;
}

.narrow {
    width: 80%;
}

.med {
    width: 60%;
}

.wide {
    width: 40%;
}

/* CONTACT FORM --------------------------------------- */

form#contactForm {

    width: 100%;
}

form#contactForm label {
    min-width: 200px;
    grid-column: 1;
    text-align: left;

}

form#contactForm textarea,
form#contactForm button {
    grid-column: span 2;
}

form#contactForm input:not([type="checkbox"]) {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
}

form#contactForm textarea {
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 100%;
    height: 140px;
    border: none;
    grid-column: 2;
    color: #fff;
}

form#contactForm .checkbox-label {
    min-width: 240px;
}

form#contactForm button {
    margin-top: 30px;
    grid-column: 2;
    width: 50%;
    justify-self: end;
    background-color: #585e5a;
    border: 1px solid #222423;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, .1) 0 2px 4px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-family: "Akzidenz Grotesk BQ Medium", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    outline: 0;
    padding: 10px 25px;
    text-align: center;
    transform: translateY(0);
    transition: transform 150ms, box-shadow 150ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

form#contactForm button:hover {
    box-shadow: rgba(0, 0, 0, .15) 0 3px 9px 0;
    transform: translateY(-2px);
}