/* 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; }

/* ── 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; } }

.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; }
