/* Shared layer for every page — loaded after styles.css.
 * Tokens, display type, the bottom dock, the full-screen menu and the footer
 * restyle. Home-only sections live in home.css.
 */
:root {
    --bg: #F7F6F4;
    --ink: #111111;
    --accent: #FF3130;
    /* Brand red is 3.7:1 on white, so small red text uses this (5.8:1). */
    --accent-text: #C62020;
    --peach: #FFB9AF;
    --muted: #4B5563;
    --font-display: 'Anton', 'Impact', sans-serif;
}

.display {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.92;
    letter-spacing: 0.005em;
}

/* The dock is fixed over the bottom of the page; keep the last content clear.
   The room goes inside the footer (every page ends with it) so the area the
   dock sits on stays dark, rather than a pale strip under the footer. */
.footer-bottom {
    padding-bottom: 104px;
}

body.menu-open {
    overflow: hidden;
}

/* --- Dock --- */
.dock {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 28px;
    height: 60px;
    padding: 0 8px 0 20px;
    background: var(--ink);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

.dock-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.dock-burger,
.dock-burger::before,
.dock-burger::after {
    display: block;
    width: 16px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

.dock-burger {
    position: relative;
}

.dock-burger::before,
.dock-burger::after {
    content: '';
    position: absolute;
    left: 0;
}

.dock-burger::before { top: -5px; }
.dock-burger::after { top: 5px; }

.dock-logo {
    flex-shrink: 0;
}

/* styles.css sets img { max-width: 100% }, which collapses the logo to 0px
   inside the flex dock on phones. */
.dock-logo img {
    display: block;
    width: auto;
    max-width: none;
    height: 34px;
}

.dock-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--accent-text);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
}

.dock-cta:hover {
    background: #A51A1A;
}

.dock a:focus-visible,
.dock button:focus-visible,
.menu-overlay a:focus-visible,
.menu-overlay button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 8px;
}

@media (max-width: 480px) {
    .dock {
        gap: 14px;
        height: 56px;
        padding: 0 6px 0 16px;
        font-size: 0.8125rem;
    }

    .dock-logo img { height: 28px; }
    .dock-cta { height: 42px; padding: 0 14px; }
}

/* --- Full-screen menu --- */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 8vw;
    background: var(--ink);
    overflow-y: auto;
}

.menu-overlay[hidden] {
    display: none;
}

.menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: none;
    color: #fff;
    font: 600 0.875rem 'Poppins', sans-serif;
    cursor: pointer;
}

.menu-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-links a {
    display: inline-block;
    padding: 4px 0;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.05;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.menu-links a:hover {
    color: var(--accent);
}

/* --- Subpage heroes --- */
/* styles.css pads these 116px at the top to clear the old fixed 72px navbar,
   which the bottom dock replaced. */
.awards-page-hero {
    padding-top: 64px;
}

/* --- Footer restyle --- */
.footer {
    background: var(--ink);
    color: #fff;
}

.footer h4 {
    color: #fff;
}

.footer a {
    color: var(--peach);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

@media (prefers-reduced-motion: reduce) {
    .dock-cta,
    .menu-links a {
        transition: none;
    }
}


/* Evaluator tones (carried over from the video-refresh branch). */
:root {
    --ivory: #FBF8F1;
    --sage: #8A9A7B;
    --sage-dark: #5F6E52;
}

/* --- Culture Architecture Evaluator (hr-calculators.html) --- */
.ce {
    padding: 72px 0;
}

.ce-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas:
        "intro intro"
        "form result";
    gap: 32px 48px;
    background: var(--ivory);
    border: 1px solid #EFE9DC;
    border-radius: 28px;
    padding: 48px;
}

.ce-intro { grid-area: intro; max-width: 680px; }
.ce-intro h2 { margin-bottom: 12px; }
.ce-intro p:last-child { color: var(--gray-600); }
.ce-form { grid-area: form; }

.ce-result {
    grid-area: result;
    align-self: start;
    position: sticky;
    top: 96px;
    background: var(--white);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.06);
}

.ce-q {
    border: 0;
    margin: 0 0 28px;
    padding: 0;
}

.ce-q legend {
    display: grid;
    grid-template-columns: 32px 1fr;
    column-gap: 12px;
    padding: 0;
    margin-bottom: 12px;
}

.ce-q-num {
    grid-row: span 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ce-q-area {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sage-dark);
}

.ce-q-text {
    color: var(--gray-900);
    font-weight: 600;
    line-height: 1.5;
}

.ce-scale {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding-left: 44px;
}

.ce-opt {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    border: 1.5px solid #E7E0D1;
    border-radius: 14px;
    background: var(--white);
    cursor: pointer;
    text-align: center;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.ce-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ce-opt-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--gray-900);
    line-height: 1;
}

.ce-opt-label {
    font-size: 0.6875rem;
    line-height: 1.25;
    color: var(--gray-600);
}

.ce-opt:hover { border-color: var(--peach); transform: translateY(-1px); }

.ce-opt:has(input:focus-visible) {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

/* #C62020, not brand red: white 11px text on it needs 4.5:1. */
.ce-opt:has(input:checked) {
    border-color: #C62020;
    background: #C62020;
}

.ce-opt:has(input:checked) .ce-opt-num,
.ce-opt:has(input:checked) .ce-opt-label {
    color: var(--white);
}

.ce-progress {
    color: var(--gray-600);
    font-weight: 600;
    margin: 0;
}

.ce-result-head {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.ce-score {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
    color: var(--red);
    white-space: nowrap;
}

.ce-score-num { font-size: 3.5rem; }
.ce-score-of { font-size: 1rem; color: var(--gray-600); margin-left: 2px; }
.ce-result-title { font-size: 1.125rem; margin-bottom: 4px; }
.ce-summary { margin: 0; font-size: 0.9375rem; color: var(--gray-600); line-height: 1.5; }

.ce-bars,
.ce-tips {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ce-bar { margin-bottom: 14px; }

.ce-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 6px;
}

.ce-bar-area { font-weight: 600; color: var(--gray-900); }

.ce-bar-band {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ce-bar-track {
    height: 10px;
    border-radius: 999px;
    background: #F1ECE2;
    overflow: hidden;
}

.ce-bar-fill {
    height: 100%;
    border-radius: inherit;
    transition: width 0.6s ease;
}

.ce-bar-gap .ce-bar-fill { background: var(--red); }
/* Band words are 12px, so they need 4.5:1 on white: #C62020 is 5.8:1 and
   #A34E40 is 5.6:1. Brand red (3.7:1) stays on the bar itself. */
.ce-bar-gap .ce-bar-band { color: #C62020; }
.ce-bar-building .ce-bar-fill { background: var(--peach); }
.ce-bar-building .ce-bar-band { color: #A34E40; }
.ce-bar-strong .ce-bar-fill { background: var(--sage); }
.ce-bar-strong .ce-bar-band { color: var(--sage-dark); }

.ce-tips-title {
    font-size: 1rem;
    margin: 24px 0 10px;
}

.ce-tips li {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--gray-600);
    padding: 10px 0 10px 14px;
    border-left: 3px solid var(--sage);
    margin-bottom: 10px;
}

.ce-tips strong { color: var(--gray-900); }

.ce-cta {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ce-cta p { margin: 0; font-weight: 600; color: var(--gray-900); }

@media (max-width: 960px) {
    .ce-inner {
        grid-template-columns: 1fr;
        grid-template-areas: "intro" "form" "result";
        padding: 32px 24px;
    }

    .ce-result { position: static; }
}

@media (max-width: 480px) {
    .ce { padding: 48px 0; }
    .ce-inner { padding: 24px 16px; border-radius: 20px; }
    .ce-scale { padding-left: 0; gap: 6px; }
    /* Visually hidden, not display:none, so screen readers still hear
       "Strongly disagree" rather than just "1". */
    .ce-opt-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .ce-opt { padding: 12px 0; }
    .ce-result { padding: 22px 18px; }
    .ce-result-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .ce-q:first-of-type .ce-scale::after {
        content: "1 = strongly disagree, 5 = strongly agree";
        grid-column: 1 / -1;
        font-size: 0.75rem;
        color: var(--gray-600);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ce-opt,
    .ce-bar-fill {
        transition: none;
    }

    .ce-opt:hover { transform: none; }

}

/* New look: display font for the evaluator heading. */
.ce-intro h2 {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.95;
    font-size: clamp(2.5rem, 5vw, 4rem);
}

/* --- Dotted wave (dots.js) --- */
/* The canvas fills its section behind the content. */
.dots {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.dots canvas {
    display: block;
}

.contact:has(> .dots),
.calc-cta:has(> .dots),
.c-next:has(> .dots),
.h-about:has(> .dots) {
    position: relative;
    overflow: hidden;
}

.contact > .dots ~ *,
.calc-cta > .dots ~ *,
.c-next > .dots ~ *,
.h-about > .dots ~ * {
    position: relative;
    z-index: 1;
}
