/* IllegalSigns.ca — Ontario Sign Bylaw Reference */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Serif:wght@400;500&display=swap');

:root {
    --slate: #2d4059;
    --slate-light: #3d5a80;
    --red: #c0392b;
    --red-light: #e74c3c;
    --gray-bg: #f4f5f7;
    --gray-border: #dde1e6;
    --gray-mid: #697077;
    --text: #21272a;
    --text-light: #697077;
    --white: #fff;
}

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

body {
    font-family: 'IBM Plex Serif', Georgia, serif;
    color: var(--text);
    background: var(--gray-bg);
    line-height: 1.75;
    font-size: 0.98rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--slate);
    line-height: 1.3;
    font-weight: 600;
}

a { color: var(--slate-light); text-decoration: none; }
a:hover { color: var(--slate); text-decoration: underline; }

.container { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Header ── */
.site-header {
    background: var(--slate);
    border-bottom: 3px solid var(--red);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    color: #fff;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.85rem 0;
    text-decoration: none;
}
.brand span { color: var(--red-light); }
.brand:hover { color: #eee; text-decoration: none; }
.nav { display: flex; }
.nav a {
    color: rgba(255,255,255,0.7);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.85rem 0.7rem;
    text-decoration: none;
    transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; padding: 0.85rem; }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav { display: none; flex-direction: column; width: 100%; position: absolute; top: 100%; left: 0; background: var(--slate); z-index: 99; }
    .nav.open { display: flex; }
    .site-header .container { flex-wrap: wrap; position: relative; }
}

/* ── Hero ── */
.hero {
    background: var(--slate);
    color: #fff;
    padding: 3.5rem 0;
    border-bottom: 3px solid var(--red);
}
.hero h1 { color: #fff; font-size: 2rem; margin-bottom: 0.5rem; font-weight: 700; }
.hero p { opacity: 0.85; font-size: 1.05rem; max-width: 640px; }
@media (min-width: 768px) { .hero h1 { font-size: 2.4rem; } }

/* ── Sections ── */
.section { padding: 3rem 0; }
.section-alt { padding: 3rem 0; background: var(--white); border-top: 1px solid var(--gray-border); border-bottom: 1px solid var(--gray-border); }
.section-title { font-size: 1.3rem; margin-bottom: 0.3rem; }
.section-sub { color: var(--text-light); margin-bottom: 1.5rem; font-size: 0.92rem; }

/* ── Card grid ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 4px;
    padding: 1.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--text);
    display: block;
}
.card:hover { border-color: var(--slate-light); box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-decoration: none; }
.card-label {
    display: inline-block;
    padding: 0.1em 0.4em;
    background: var(--slate);
    color: #fff;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
    margin-bottom: 0.4rem;
}
.card-label.warn { background: var(--red); }
.card h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* Image cards */
.card-img { border-radius: 4px 4px 0 0; margin: -1.25rem -1.25rem 1rem; }
.card-img img { width: 100%; height: 180px; object-fit: cover; border-radius: 4px 4px 0 0; }

/* ── Article ── */
.article-header { padding: 2.5rem 0 0.5rem; }
.article-header h1 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.article-meta {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.78rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}
.article-content { padding-bottom: 3rem; }
.article-content p { margin-bottom: 1.2rem; }
.article-content h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--slate);
}
.article-content h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.article-content ul, .article-content ol { margin: 0 0 1.25rem 1.5rem; }
.article-content li { margin-bottom: 0.3rem; }
.article-content img { max-width: 100%; border-radius: 3px; margin: 1.25rem 0; }
.article-content blockquote {
    border-left: 3px solid var(--slate);
    padding: 0.6rem 1rem;
    margin: 1.25rem 0;
    background: var(--white);
    color: var(--text-light);
    font-style: italic;
}

/* Boxes */
.info-box {
    background: #eef2f7;
    border: 1px solid #c4cdd6;
    border-left: 4px solid var(--slate);
    padding: 1rem 1.25rem;
    border-radius: 3px;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}
.warn-box {
    background: #fef5f3;
    border: 1px solid #f0c4bc;
    border-left: 4px solid var(--red);
    padding: 1rem 1.25rem;
    border-radius: 3px;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}
.warn-box strong { color: var(--red); }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.9rem; }
th {
    background: var(--slate);
    color: #fff;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.55rem 0.75rem;
    text-align: left;
}
td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--gray-border); }
tr:nth-child(even) { background: var(--white); }

/* Related */
.related {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-border);
}
.related h3 { font-size: 0.9rem; margin-bottom: 0.5rem; }
.related ul { list-style: none; padding: 0; }
.related li { padding: 0.25rem 0; font-size: 0.9rem; }

/* ── Footer ── */
.site-footer {
    background: var(--slate);
    color: rgba(255,255,255,0.5);
    padding: 2.5rem 0 1.5rem;
    font-size: 0.85rem;
    border-top: 3px solid var(--red);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { color: #fff; font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; font-size: 0.95rem; display: block; margin-bottom: 0.5rem; text-decoration: none; }
.footer-brand span { color: var(--red-light); }
.site-footer h4 { color: rgba(255,255,255,0.7); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255,255,255,0.4); display: block; padding: 0.15rem 0; text-decoration: none; font-size: 0.82rem; }
.site-footer a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1rem; text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.25); }
