/* Citizen Portal — public-facing styles. Self-contained (no Tailwind / KTUI dependency). */

:root {
    --c-bg: #ffffff;
    --c-bg-soft: #f8fafc;
    --c-fg: #0f172a;
    --c-fg-soft: #64748b;
    --c-border: #e2e8f0;
    --c-primary: #1d4ed8;          /* royal blue — mayor's campaign color */
    --c-primary-dark: #1e40af;     /* hover / active */
    --c-primary-soft: #dbeafe;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--c-fg);
    background: var(--c-bg-soft);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.cz-nav {
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid var(--c-border);
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.cz-nav-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 1.5rem; gap: 1rem; }
.cz-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.cz-brand img { width: 42px; height: 42px; }
.cz-brand .title { font-size: 0.9375rem; font-weight: 700; line-height: 1.15; }
.cz-brand .sub { font-size: 0.75rem; color: var(--c-fg-soft); }
.cz-nav-links { display: flex; gap: 1.5rem; align-items: center; }
.cz-nav-links a { color: var(--c-fg-soft); font-weight: 500; font-size: 0.875rem; }
.cz-nav-links a:hover { color: var(--c-fg); text-decoration: none; }
.cz-cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--c-primary);
    color: #fff !important;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: transform .15s, box-shadow .15s;
}
.cz-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgb(30 64 175 / 0.4); text-decoration: none !important; }

.cz-wrap { max-width: 1180px; margin: 0 auto; padding: 2rem 1.5rem; }
.cz-card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 1rem;
    padding: 1.75rem;
}

.cz-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: 4rem;
}
.cz-footer-inner { max-width: 1180px; margin: 0 auto; }
.cz-footer-top { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 768px) { .cz-footer-top { grid-template-columns: 1fr; } }
.cz-footer h4 { font-size: 0.875rem; font-weight: 700; color: #f1f5f9; margin: 0 0 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.cz-footer ul { list-style: none; padding: 0; margin: 0; }
.cz-footer li { margin-bottom: 0.5rem; }
.cz-footer a { color: #cbd5e1; font-size: 0.875rem; }
.cz-footer a:hover { color: #fff; }
.cz-footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.75rem; color: #64748b; }

.cz-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .15s;
    text-decoration: none;
}
.cz-btn-primary { background: var(--c-primary); color: #fff; }
.cz-btn-primary:hover { background: var(--c-primary-dark); text-decoration: none; }
.cz-btn-outline { background: transparent; border-color: var(--c-border); color: var(--c-fg); }
.cz-btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); text-decoration: none; }

.cz-input, .cz-select, .cz-textarea {
    width: 100%; padding: 0.625rem 0.875rem;
    border: 1px solid var(--c-border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: #fff;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.cz-input:focus, .cz-select:focus, .cz-textarea:focus {
    outline: none; border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgb(30 64 175 / 0.12);
}
.cz-label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.375rem; color: var(--c-fg); }
.cz-hint { font-size: 0.75rem; color: var(--c-fg-soft); margin-top: 0.25rem; }

/* ── Account (sign-in, reset, gate pages; header) ────────────────── */
.cz-narrow { max-width: 480px; margin: 0 auto; }
.cz-h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.cz-h2 { font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.cz-card-soft { background: var(--c-bg-soft); font-size: 0.875rem; color: #334155; line-height: 1.6; }
.cz-card-soft p { margin: 0 0 0.6rem; }
.cz-alert { padding: 0.75rem 1rem; border-radius: 0.5rem; margin-bottom: 1rem; font-size: 0.875rem; line-height: 1.55; border: 1px solid; }
.cz-alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.cz-alert-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.cz-alert-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.cz-user { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.875rem; font-weight: 600; color: var(--c-fg); max-width: 14rem; }
.cz-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-inline-form { display: inline; margin: 0; }
.cz-linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 0.875rem; font-weight: 500; color: var(--c-fg-soft); cursor: pointer; }
.cz-linkbtn:hover { color: var(--c-fg); text-decoration: underline; }
@media (max-width: 900px) {
    .cz-nav-inner { flex-wrap: wrap; }
    .cz-nav-links { flex-wrap: wrap; gap: 0.75rem 1.25rem; }
}

/* ── Hero with photo ─────────────────────────────────────────────── */
.cz-hero {
    display: grid; gap: 2.75rem;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding: 2.25rem 0 3rem;
}
@media (max-width: 900px) { .cz-hero { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ── Get the app (home page band and the nav link) ───────────────── */
.cz-app {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    margin: 0 0 3rem; padding: 1.5rem 1.75rem; border-radius: 1rem; color: #fff;
    background: linear-gradient(110deg, #0f172a 0%, #1e3a8a 55%, #1d4ed8 100%);
    box-shadow: 0 18px 40px -18px rgb(30 64 175 / 0.55);
    scroll-margin-top: 6rem;
}
.cz-app-text { display: flex; align-items: center; gap: 1rem; min-width: 0; flex: 1 1 22rem; }
.cz-app-icon { flex: 0 0 3.25rem; height: 3.25rem; border-radius: 0.875rem; display: grid; place-items: center; font-size: 1.5rem;
               background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); }
.cz-app h2 { margin: 0 0 0.25rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.cz-app p { margin: 0; font-size: 0.875rem; color: #cbd5e1; line-height: 1.5; }
.cz-app-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cz-store {
    display: inline-flex; align-items: center; gap: 0.75rem; min-width: 12.5rem;
    padding: 0.625rem 1.125rem; border-radius: 0.75rem; text-decoration: none; line-height: 1.15;
    background: #fff; color: #0f172a; border: 1px solid #fff; transition: transform .15s, box-shadow .15s;
}
.cz-store:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(0,0,0,0.45); text-decoration: none; color: #0f172a; }
.cz-store i { font-size: 1.75rem; }
.cz-store .fa-android { color: #16a34a; }
.cz-store small { display: block; font-size: 0.6875rem; font-weight: 600; color: #475569; text-transform: uppercase; letter-spacing: 0.04em; }
.cz-store strong { display: block; font-size: 1.0625rem; font-weight: 800; }
.cz-store.soon { background: transparent; color: #e2e8f0; border-color: rgba(255,255,255,0.35); cursor: default; }
.cz-store.soon:hover { transform: none; box-shadow: none; color: #e2e8f0; }
.cz-store.soon small { color: #94a3b8; }
.cz-app-note { flex-basis: 100%; font-size: 0.8125rem; color: #e2e8f0; background: rgba(255,255,255,0.08); border-radius: 0.5rem; padding: 0.5rem 0.75rem; }
.cz-nav-app { font-weight: 700; color: var(--c-primary) !important; }
@media (max-width: 600px) { .cz-store { flex: 1 1 100%; } }

.cz-hero-media { position: relative; }
.cz-hero-media > .blob {
    position: absolute; z-index: 0;
    width: 78%; height: 78%; right: -7%; top: -10%;
    background: radial-gradient(circle, var(--c-primary-soft) 0%, transparent 68%);
    filter: blur(6px); pointer-events: none;
}
.cz-hero-media img {
    position: relative; z-index: 1;
    width: 100%; max-height: 430px; object-fit: cover;
    border-radius: 1.25rem; display: block;
    box-shadow: 0 26px 60px -24px rgba(30, 64, 175, 0.5);
}
.cz-hero-media::after {
    content: ''; position: absolute; inset: 0; z-index: 2;
    border-radius: 1.25rem; pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}
.cz-hero-badge {
    position: absolute; z-index: 3; left: 1rem; bottom: 1rem;
    display: flex; align-items: center; gap: 0.625rem;
    padding: 0.5rem 0.85rem 0.5rem 0.5rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border-radius: 0.75rem;
    box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.35);
}
.cz-hero-badge img { width: 38px; height: 38px; }
.cz-hero-badge .t { font-size: 0.78rem; font-weight: 700; color: var(--c-fg); line-height: 1.2; }
.cz-hero-badge .s { font-size: 0.7rem; color: var(--c-fg-soft); }

/* ── Landmarks gallery ───────────────────────────────────────────── */
.cz-gallery {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.cz-landmark {
    position: relative; margin: 0;
    border-radius: 1rem; overflow: hidden;
    aspect-ratio: 3 / 2;
    box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.3);
}
.cz-landmark img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.45s ease;
}
.cz-landmark:hover img { transform: scale(1.06); }
.cz-landmark .cap {
    position: absolute; inset: auto 0 0 0;
    padding: 1.75rem 0.95rem 0.85rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent);
    color: #fff;
}
.cz-landmark .cap .n { font-weight: 700; font-size: 0.9rem; }
.cz-landmark .cap .d { font-size: 0.72rem; opacity: 0.88; }
