/* Shared styles for the public-facing pages (index, directory, VTC apply, status) */
:root {
    --green: #58ba4c;
    --green-dark: #3f9a35;
    --green-deep: #1f5a18;
    --green-tint: #eaf7e7;
    --blue: #2f80ed;
    --blue-tint: #e8f1fd;
    --amber: #f2a93b;
    --amber-tint: #fff4e0;
    --red: #d64545;
    --red-tint: #fdecec;
    --ink: #14261a;
    --ink-2: #3d4d43;
    --muted: #6b7a70;
    --line: #e3e9e4;
    --surface: #ffffff;
    --bg: #f6f8f6;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(20,38,26,.06), 0 1px 3px rgba(20,38,26,.08);
    --shadow-md: 0 8px 24px rgba(20,38,26,.10);
    --shadow-lg: 0 20px 50px rgba(20,38,26,.16);
    --font-head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--green-dark); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--green); border-radius: 2px; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.section-lead { font-size: 17px; color: var(--muted); max-width: 640px; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin: 0 auto; }
.section-head.center .eyebrow::before { display: none; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 24px; border-radius: 12px;
    font-family: var(--font-head); font-weight: 700; font-size: 15px;
    text-decoration: none; border: 2px solid transparent; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(88,186,76,.35); }
.btn-primary:hover { background: var(--green-dark); }
.btn-white { background: #fff; color: var(--green-deep); box-shadow: var(--shadow-md); }
.btn-white:hover { background: #f2faf1; }
.btn-outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-outline-light:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.btn-outline { background: transparent; color: var(--green-deep); border-color: var(--green); }
.btn-outline:hover { background: var(--green-tint); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--green-tint); color: var(--green-deep); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(47,128,237,.3); }
.btn-blue:hover { background: #1f6dd6; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* Navbar */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.navbar-inner {
    max-width: 1200px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 16px; font-weight: 800; color: var(--ink); }
.brand-text span { font-size: 12px; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
    border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2);
    transition: background .18s, color .18s;
}
.nav-links a:hover { background: var(--green-tint); color: var(--green-deep); }
.nav-links a.active { color: var(--green-deep); font-weight: 600; }
.nav-links .btn { margin-left: 8px; min-height: 44px; padding: 10px 20px; }
.nav-toggle {
    display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
    background: #fff; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }

/* Sub-page hero */
.page-hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(14,52,22,.94) 0%, rgba(20,80,30,.84) 55%, rgba(20,80,30,.55) 100%); }
.page-hero-inner { max-width: 1200px; margin: 0 auto; padding: 72px 24px 88px; }
.page-hero-inner.narrow { max-width: 860px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 18px; list-style: none; }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.45); }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.page-hero p { font-size: clamp(16px, 1.5vw, 19px); color: rgba(255,255,255,.88); max-width: 640px; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Cards & forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 14px; color: var(--ink); }
.field label .req { color: var(--red); margin-left: 2px; }
.field label .opt { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 6px; }
.field .hint { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid #d5ded7; border-radius: 12px;
    font: inherit; font-size: 15px; color: var(--ink); background: #fff;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(88,186,76,.18);
}
.field select:disabled, .field input:disabled { background: #f3f6f3; color: var(--muted); cursor: not-allowed; }
.field input[type="file"] { padding: 10px; border-style: dashed; background: #fafcfa; cursor: pointer; min-height: 0; }
.field input[type="file"]::file-selector-button {
    margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--green-tint); color: var(--green-deep);
    font: inherit; font-weight: 600; cursor: pointer;
}
.field input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--green); }
.check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; font-size: 15px; border: 1px solid transparent; }
.alert svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.alert-info { background: var(--blue-tint); color: #1a4f9c; border-color: #cfe0fb; }
.alert-error { background: var(--red-tint); color: #8f2a2a; border-color: #f5c9c9; }
.alert-success { background: var(--green-tint); color: var(--green-deep); border-color: #cfe6ca; }
.alert-warn { background: var(--amber-tint); color: #7a4d00; border-color: #f7dfae; }

.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.chip-ecde { background: var(--green-tint); color: var(--green-deep); }
.chip-vtc { background: var(--blue-tint); color: #1a5fb8; }

/* Footer */
.footer { background: #0f2214; color: rgba(255,255,255,.8); padding: 64px 0 28px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .brand-text strong, .footer h4 { color: #fff; }
.footer h4 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer p { font-size: 14px; max-width: 320px; margin-top: 14px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: rgba(255,255,255,.8); text-decoration: none; font-size: 15px; transition: color .18s; }
.footer a:hover { color: #b9f0a8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.55); }

/* Motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Responsive */
@media (max-width: 1080px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .section { padding: 72px 0; } .page-hero-inner { padding: 56px 24px 72px; } }
@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; background: #fff; padding: 12px 16px 16px;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); gap: 4px;
    }
    .nav-links.open { display: flex; }
    .nav-links .btn { margin: 8px 0 0; width: 100%; }
    .nav-toggle { display: inline-flex; }
    .brand-text span { display: none; }
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .container, .container-narrow { padding: 0 16px; }
}
