/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; color: #1a1a1a; line-height: 1.6; }
a { color: #005ea5; }
img { max-width: 100%; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Header ── */
.site-header { background: #005ea5; color: white; padding: 1rem 0; }
.site-header .container { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.site-logo { color: white; text-decoration: none; display: flex; align-items: baseline; gap: 0.5rem; }
.logo-hay { font-size: 1.8rem; font-weight: 700; }
.logo-sub { font-size: 0.9rem; opacity: 0.85; }
.site-header nav ul { list-style: none; display: flex; gap: 1.5rem; }
.site-header nav a { color: white; text-decoration: none; font-weight: 500; }
.site-header nav a:hover { text-decoration: underline; }

/* ── Hero ── */
.hero { background: #e8f0fa; padding: 4rem 0; }
.hero h1 { font-size: 2.4rem; margin-bottom: 0.75rem; }
.hero p { font-size: 1.2rem; margin-bottom: 1.5rem; color: #444; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Buttons ── */
.btn { display: inline-block; padding: 0.6rem 1.4rem; border-radius: 4px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; font-size: 1rem; }
.btn-primary { background: #005ea5; color: white; }
.btn-primary:hover { background: #004a87; }
.btn-secondary { background: white; color: #005ea5; border: 2px solid #005ea5; }
.btn-secondary:hover { background: #e8f0fa; }
.btn-sm { font-size: 0.85rem; padding: 0.35rem 0.9rem; }

/* ── District & Category grids ── */
.districts, .featured-categories { padding: 3rem 0; }
.districts h2, .featured-categories h2 { margin-bottom: 1.5rem; font-size: 1.5rem; }
.district-grid, .category-grid { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.district-grid a, .category-grid a { display: inline-block; padding: 0.5rem 1rem; background: #f0f4f8; border-radius: 20px; text-decoration: none; color: #005ea5; font-size: 0.95rem; }
.district-grid a:hover, .category-grid a:hover { background: #005ea5; color: white; }

/* ── Directory / filters ── */
.page-header { background: #f0f4f8; padding: 2.5rem 0; margin-bottom: 2rem; }
.page-header h1 { font-size: 2rem; }
.directory { padding-bottom: 4rem; }
.filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin-bottom: 1.5rem; }
.filters label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; font-weight: 600; }
.filters select { padding: 0.45rem 0.75rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; min-width: 180px; }
.results-count { color: #555; font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ── Cards ── */
.card-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: white; border: 1px solid #dde3ea; border-radius: 6px; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card h3 { font-size: 1.05rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.tag { display: inline-block; font-size: 0.78rem; background: #e8f0fa; color: #005ea5; padding: 0.2rem 0.6rem; border-radius: 12px; }
.tag--category { background: #fef3e2; color: #8a5a00; }

/* ── Footer ── */
.site-footer { background: #1a1a1a; color: #ccc; padding: 2rem 0; margin-top: 4rem; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; align-items: center; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: #ccc; font-size: 0.9rem; }

/* ── Prose ── */
.prose-section { padding: 3rem 0; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.prose h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.prose p, .prose li { margin-bottom: 0.75rem; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose .lead { font-size: 1.15rem; color: #333; margin-bottom: 1.5rem; }

/* ── Two-col layout ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* ── Contact form ── */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  padding: 0.5rem 0.75rem; border: 1px solid #ccc; border-radius: 4px;
  font-size: 1rem; font-family: inherit; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid #005ea5; outline-offset: 1px; border-color: #005ea5;
}

/* ── Blog ── */
.blog-list { list-style: none; display: flex; flex-direction: column; gap: 2.5rem; }
.blog-item time { font-size: 0.85rem; color: #666; }
.blog-item h2 { font-size: 1.3rem; margin: 0.25rem 0 0.5rem; }
.blog-item h2 a { text-decoration: none; }
.blog-item h2 a:hover { text-decoration: underline; }
.blog-item .read-more { font-size: 0.9rem; font-weight: 600; }
.post-header time { font-size: 0.85rem; color: #666; }
.post-header h1 { font-size: 2rem; margin: 0.35rem 0 0; }
.post-author { color: #555; font-size: 0.9rem; margin-top: 0.4rem; }

/* ── Resource list ── */
.resource-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.resource-list li { display: flex; align-items: center; gap: 0.75rem; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.7rem; }
  .site-header .container { flex-direction: column; align-items: flex-start; }
}
