/* ============================================================
   TVRC — Trauma Video Review Collaborative
   Redesigned stylesheet (presentation only; no content, link,
   form-field, or script behavior depends on this file).
   ============================================================ */

/* --- Design tokens --- */
:root {
    --navy: #0b2a4a;
    --navy-dark: #071e36;
    --navy-mid: #123a63;
    --accent: #0e7c86;
    --accent-dark: #0a5f66;
    --ink: #22303e;
    --muted: #5a6b7c;
    --bg: #edf1f5;
    --card: #ffffff;
    --line: #d9e1e8;
    --success-color: #1e7d32;
    --error-color: #b3261e;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(11, 42, 74, 0.08), 0 8px 24px rgba(11, 42, 74, 0.07);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.65;
    background-color: var(--bg);
    color: var(--ink);
}

/* --- Top bar / navigation --- */
.topbar {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(7, 30, 54, 0.35);
}

.topbar-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    margin-right: auto;
}

.brand-mark { width: 44px; height: 44px; flex-shrink: 0; }

.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}

.brand-text small {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b9cbdd;
}

.mainnav { display: flex; gap: 4px; flex-wrap: wrap; }

.mainnav a {
    color: #d7e3ef;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 13px;
    border-radius: 7px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mainnav a:hover { background-color: rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; }
.mainnav a.active { background-color: var(--accent); color: #fff; }

/* --- Hero (homepage) --- */
.hero {
    background:
        radial-gradient(900px 340px at 85% -60px, rgba(14, 124, 134, 0.45), rgba(14, 124, 134, 0) 60%),
        linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
    color: #fff;
}

.hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 52px 24px 46px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-logo { width: 118px; height: 118px; flex-shrink: 0; }

.hero h1 {
    color: #fff;
    font-size: 2.35rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.hero .tagline { color: #c9d9e8; font-size: 1.08rem; max-width: 640px; margin: 0; }

/* --- Page title band (sub-pages) --- */
.pagehead {
    background:
        radial-gradient(900px 340px at 85% -60px, rgba(14, 124, 134, 0.45), rgba(14, 124, 134, 0) 60%),
        linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
    color: #fff;
}

.pagehead-inner { max-width: 1080px; margin: 0 auto; padding: 38px 24px 32px; }

.pagehead .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.72rem;
    font-weight: 700;
    color: #8fd0d6;
    margin-bottom: 8px;
}

.pagehead h1 { color: #fff; font-size: 2rem; line-height: 1.2; margin: 0; }
.pagehead h2 { color: #c9d9e8; font-size: 1.25rem; font-weight: 600; border: none; padding: 0; margin: 8px 0 0; }

/* --- Layout --- */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 34px 24px 10px;
}

.card {
    background-color: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px 34px;
    margin-bottom: 26px;
}

section { margin-bottom: 40px; }
.card section:last-child { margin-bottom: 6px; }

/* --- Typography --- */
h1 { color: var(--navy); font-size: 2.1rem; line-height: 1.2; }

h2 {
    color: var(--navy);
    font-size: 1.55rem;
    line-height: 1.25;
    margin-bottom: 16px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--navy);
}

h3 { color: var(--navy); font-size: 1.18rem; margin: 26px 0 10px; }
.card h3:first-child, form h3:first-child { margin-top: 0; }

p { margin-bottom: 15px; }
ul { margin: 0 0 15px 22px; }
li { margin-bottom: 6px; }

a { color: var(--accent-dark); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

.backlink { margin-bottom: 20px; }

/* --- Resource / download list --- */
.resource-list { list-style-type: none; margin: 0 0 6px; }
.resource-list li { margin: 10px 0; }

.resource-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background-color: #fbfcfd;
    color: var(--ink);
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.resource-list a:hover {
    text-decoration: none;
    border-color: var(--accent);
    box-shadow: 0 2px 10px rgba(14, 124, 134, 0.14);
    transform: translateY(-1px);
}

.resource-list a::after {
    content: "\2193";
    margin-left: auto;
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

.resource-list a.no-download::after { content: "\2192"; }

.badge {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    background-color: var(--navy);
    border-radius: 5px;
    padding: 3px 8px;
    min-width: 44px;
    text-align: center;
}

.badge.pdf { background-color: #a33327; }
.badge.zip { background-color: #6b5ca5; }
.badge.csv { background-color: #2e7d46; }
.badge.xlsx { background-color: #1d6f42; }
.badge.page { background-color: var(--accent); }

.icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--navy); }
.note { font-style: italic; font-size: 0.9em; color: var(--muted); }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 600; }

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #c3cedb;
    border-radius: 7px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 124, 134, 0.22);
}

button[type="submit"] {
    display: inline-block;
    background-color: var(--navy);
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 7px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button[type="submit"]:hover { background-color: var(--navy-dark); }
button[type="submit"]:disabled { background-color: #9db2c6; cursor: not-allowed; }

.form-status { margin-top: 15px; padding: 10px 14px; border-radius: 7px; display: none; }

.form-status.success {
    background-color: #e2f2e4;
    color: var(--success-color);
    border: 1px solid #bfe3c4;
    display: block;
}

.form-status.error {
    background-color: #fbe7e5;
    color: var(--error-color);
    border: 1px solid #f3c1bc;
    display: block;
}

/* --- Footer --- */
footer { margin-top: 14px; background-color: var(--navy-dark); color: #b9cbdd; }

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 26px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.footer-inner img { width: 34px; height: 34px; }
.footer-inner p { margin: 0; }
.footer-inner nav { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
.footer-inner a { color: #d7e3ef; font-weight: 600; }
.footer-inner a:hover { color: #fff; }

/* Legacy header image (kept for compatibility) */
.header-image { width: 100%; max-width: 500px; height: auto; border-radius: 8px; margin-bottom: 20px; }

/* --- Responsive --- */
@media (max-width: 720px) {
    .hero-inner { flex-direction: column; align-items: flex-start; padding: 38px 20px 34px; }
    .hero-logo { width: 84px; height: 84px; }
    .hero h1 { font-size: 1.8rem; }
    .topbar-inner, .container, .pagehead-inner, .footer-inner { padding-left: 16px; padding-right: 16px; }
    .card { padding: 22px 20px; }
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.35rem; }
    .brand-text small { display: none; }
}
