/* safe174th.com — Shared Styles */

:root {
    --slate-50: #f8fafc; --slate-100: #f1f5f9; --slate-200: #e2e8f0;
    --slate-300: #cbd5e1; --slate-400: #94a3b8; --slate-500: #64748b;
    --slate-600: #475569; --slate-700: #334155; --slate-800: #1e293b;
    --slate-900: #0f172a;
    --red-50: #fef2f2; --red-600: #dc2626; --red-700: #b91c1c;
    --amber-50: #fffbeb; --amber-600: #d97706;
    --green-50: #f0fdf4; --green-600: #16a34a;
    --blue-50: #eff6ff; --blue-600: #2563eb; --blue-700: #1d4ed8;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--slate-800); background: #fff; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.site-nav {
    background: var(--slate-900);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0 24px;
    position: sticky; top: 0; z-index: 100;
}

.nav-inner {
    max-width: 960px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 56px;
}

.nav-brand {
    font-size: 15px; font-weight: 700; color: #fff;
    text-decoration: none; letter-spacing: 0.5px;
}

.nav-links {
    display: flex; gap: 4px; list-style: none; margin: 0; padding: 0;
}

.nav-links a {
    color: var(--slate-400); text-decoration: none;
    font-size: 13px; font-weight: 500;
    padding: 8px 12px; border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff; background: rgba(255,255,255,0.1);
}

.nav-toggle {
    display: none; background: none; border: none;
    color: #fff; cursor: pointer; padding: 8px;
}

/* === LAYOUT === */
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
section { padding: 48px 0; }
section + section { border-top: 1px solid var(--slate-200); }

.section-title {
    font-size: 22px; font-weight: 700; margin: 0 0 6px;
    color: var(--slate-900); letter-spacing: -0.3px;
}

.section-subtitle {
    color: var(--slate-500); font-size: 14px; margin: 0 0 28px;
}

/* === HEADER / HERO === */
.site-header {
    background: var(--slate-900); color: #fff;
    padding: 48px 24px 40px; text-align: center;
}

.site-header h1 {
    margin: 0 0 8px; font-size: clamp(24px, 4vw, 36px);
    font-weight: 800; letter-spacing: -0.5px; line-height: 1.2;
}

.site-header .subtitle {
    color: var(--slate-400); font-size: 15px; margin-bottom: 16px;
}

.site-header .updated {
    display: inline-block; background: rgba(255,255,255,0.1);
    padding: 4px 14px; border-radius: 20px;
    font-size: 13px; color: var(--slate-300);
}

.site-header .intro {
    max-width: 720px; margin: 20px auto 0;
    color: var(--slate-300); font-size: 14px; line-height: 1.7;
}

/* Hero (home page) */
.hero-header {
    padding: 64px 24px 56px;
}

.hero-inner {
    max-width: 780px; margin: 0 auto;
}

.hero-header .hero-location {
    font-size: 13px; color: var(--slate-400);
    letter-spacing: 0.5px; margin-bottom: 20px;
}

.hero-header h1 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800; letter-spacing: -0.5px;
    line-height: 1.15; margin: 0 0 36px;
}

.hero-statement {
    max-width: 680px; margin: 0 auto;
}

.hero-problem {
    font-size: clamp(17px, 2.5vw, 20px);
    color: var(--slate-200); line-height: 1.7;
    margin: 0 0 24px;
}

.hero-stance {
    font-size: clamp(17px, 2.5vw, 20px);
    color: #fff; line-height: 1.7;
    margin: 0;
}

.hero-stance strong {
    color: #fff;
}

.hero-cta {
    display: flex; gap: 16px; justify-content: center;
    flex-wrap: wrap; margin-top: 40px;
}

.hero-header .signature-count {
    margin-top: 16px;
}

/* === STATS === */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px; margin-bottom: 32px;
}

.stat-card {
    background: var(--slate-50); border: 1px solid var(--slate-200);
    border-radius: 10px; padding: 20px 16px; text-align: center;
}

.stat-card .stat-value {
    font-size: 34px; font-weight: 800; line-height: 1.1;
    color: var(--slate-900);
}

.stat-card .stat-label {
    font-size: 12px; color: var(--slate-500); margin-top: 6px;
    text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}

.stat-card.danger { border-color: #fecaca; background: var(--red-50); }
.stat-card.danger .stat-value { color: var(--red-700); }
.stat-card.warn { border-color: #fed7aa; background: var(--amber-50); }
.stat-card.warn .stat-value { color: var(--amber-600); }

/* === CTA BUTTONS === */
.cta-row {
    display: flex; gap: 16px; justify-content: center;
    flex-wrap: wrap; margin: 32px 0;
}

.cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 8px;
    font-size: 15px; font-weight: 700;
    text-decoration: none; cursor: pointer; border: none;
    transition: transform 0.1s, box-shadow 0.15s;
}

.cta-btn:active { transform: scale(0.97); }

.cta-btn-primary {
    background: var(--red-600); color: #fff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.cta-btn-primary:hover {
    background: var(--red-700);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.cta-btn-secondary {
    background: var(--blue-600); color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.cta-btn-secondary:hover {
    background: var(--blue-700);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.signature-count {
    text-align: center; margin: 16px 0;
    font-size: 15px; color: var(--slate-600);
}

.signature-count strong {
    font-size: 20px; color: var(--red-700);
}

/* === CARDS === */
.argument-card {
    background: var(--slate-50); border: 1px solid var(--slate-200);
    border-radius: 10px; padding: 20px 22px;
    border-left: 4px solid var(--red-600);
}

.argument-card h4 {
    margin: 0 0 8px; font-size: 15px; color: var(--slate-900);
}

.argument-card p {
    margin: 0; font-size: 14px; color: var(--slate-600); line-height: 1.65;
}

/* === CALLOUT === */
.callout-box {
    background: var(--amber-50); border: 1px solid #fed7aa;
    border-left: 4px solid var(--amber-600);
    border-radius: 0 10px 10px 0; padding: 20px 22px; margin: 20px 0;
}

.callout-box.danger {
    background: var(--red-50); border-color: #fecaca;
    border-left-color: var(--red-600);
}

.callout-box.info {
    background: var(--blue-50); border-color: #bfdbfe;
    border-left-color: var(--blue-600);
}

.callout-box strong { color: var(--slate-900); }

/* === TIMELINE === */
.timeline { position: relative; padding-left: 28px; }

.timeline::before {
    content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px;
    width: 2px; background: var(--slate-200);
}

.log-entry {
    position: relative; margin-bottom: 28px;
    padding: 18px 22px; background: var(--slate-50);
    border: 1px solid var(--slate-200); border-radius: 10px;
}

.log-entry::before {
    content: ''; position: absolute; left: -24px; top: 24px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--blue-600); border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--slate-200);
}

.log-entry.entry-urgent::before { background: var(--red-600); }
.log-entry.entry-positive::before { background: var(--green-600); }

.log-date {
    font-size: 12px; font-weight: 700; color: var(--slate-400);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}

.log-title {
    font-size: 16px; font-weight: 700; color: var(--slate-900);
    margin-bottom: 8px; line-height: 1.3;
}

.log-body { font-size: 14px; color: var(--slate-600); line-height: 1.65; }
.log-body p { margin: 0 0 8px; }
.log-body p:last-child { margin-bottom: 0; }

/* === TABLE === */
.dev-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 20px 0; }

.dev-table th {
    text-align: left; padding: 10px 14px; background: var(--slate-100);
    font-weight: 600; color: var(--slate-600); border-bottom: 2px solid var(--slate-200);
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
}

.dev-table td {
    padding: 10px 14px; border-bottom: 1px solid var(--slate-100);
    color: var(--slate-700);
}

.dev-table .total-row td {
    font-weight: 700; background: var(--red-50);
    color: var(--red-700); border-top: 2px solid var(--red-600);
}

.dev-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.badge {
    display: inline-block; padding: 2px 8px; border-radius: 12px;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px;
}

.badge-built { background: #dcfce7; color: #15803d; }
.badge-construction { background: #fef9c3; color: #a16207; }
.badge-approved { background: #fed7aa; color: #c2410c; }
.badge-preapp { background: #fecaca; color: #b91c1c; }

/* === FORMS === */
.form-group { margin-bottom: 16px; }

.form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--slate-700); margin-bottom: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--slate-200); border-radius: 8px;
    font-size: 15px; font-family: inherit;
    color: var(--slate-800); background: #fff;
    transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-check {
    display: flex; align-items: flex-start; gap: 8px; margin: 16px 0;
}

.form-check input[type="checkbox"] {
    width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0;
}

.form-check label {
    font-size: 14px; color: var(--slate-600); line-height: 1.5;
}

.form-hint {
    font-size: 12px; color: var(--slate-400); margin-top: 4px;
}

.form-success {
    background: var(--green-50); border: 1px solid #bbf7d0;
    border-radius: 8px; padding: 16px 20px;
    color: var(--green-600); font-weight: 600; text-align: center;
}

.form-error {
    background: var(--red-50); border: 1px solid #fecaca;
    border-radius: 8px; padding: 16px 20px;
    color: var(--red-600); font-weight: 600; text-align: center;
}

/* === FEEDBACK FEED === */
.feedback-card {
    background: var(--slate-50); border: 1px solid var(--slate-200);
    border-radius: 10px; padding: 18px 22px; margin-bottom: 14px;
}

.feedback-meta {
    font-size: 12px; color: var(--slate-400); margin-bottom: 8px;
}

.feedback-content {
    font-size: 14px; color: var(--slate-700); line-height: 1.65;
}

/* === CONTACT GRID === */
.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.contact-card {
    background: var(--slate-50); border: 1px solid var(--slate-200);
    border-radius: 10px; padding: 18px 20px;
}

.contact-card .contact-name { font-weight: 700; color: var(--slate-900); font-size: 15px; }
.contact-card .contact-role { font-size: 13px; color: var(--slate-500); margin-bottom: 8px; }
.contact-card .contact-detail { font-size: 13px; color: var(--slate-600); }
.contact-card a { color: var(--blue-600); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* === MAP === */
#map {
    height: 500px; width: 100%; border-radius: 10px;
    border: 1px solid var(--slate-200);
}

.map-legend {
    display: flex; flex-wrap: wrap; gap: 10px 20px;
    margin-top: 14px; font-size: 12px; color: var(--slate-600);
}

.map-legend-item { display: flex; align-items: center; gap: 6px; }

.map-legend-swatch {
    width: 14px; height: 14px; border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.12); flex-shrink: 0;
}

/* === FOOTER === */
.site-footer {
    background: var(--slate-900); color: var(--slate-400);
    padding: 40px 24px; text-align: center;
    font-size: 13px; line-height: 1.7;
}

.site-footer a { color: var(--slate-300); }

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .site-header { padding: 32px 16px; }
    .hero-header { padding: 40px 16px 36px; }
    .container { padding: 0 16px; }
    section { padding: 32px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    #map { height: 350px; }

    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 56px; left: 0; right: 0;
        background: var(--slate-900); padding: 8px 16px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-toggle { display: block; }

    .cta-row, .hero-cta { flex-direction: column; align-items: stretch; }
    .cta-btn { justify-content: center; }
}

@media print {
    .site-nav, .cta-row { display: none; }
    .site-header { background: #333; }
    #map { height: 300px; }
    section { padding: 24px 0; }
}
