/* HubQPL.pro — Structured Resource Portal */

:root {
  --bg: #f7f6f2;
  --text: #1e2420;
  --text-muted: #4a554e;
  --accent: #4a6b52;
  --accent-hover: #3d5844;
  --border: #d4d9d0;
  --surface: #ffffff;
  --max: 720px;
  --max-wide: 960px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --space: 1.25rem;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("../images/site-bg.svg");
  background-repeat: repeat;
  background-size: 1200px auto;
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  font-weight: 600;
  text-align: left;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

h2:first-child,
.section-block > h2:first-of-type {
  border-top: none;
  margin-top: 0;
}

h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  text-align: left;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  text-align: left;
}

li {
  margin-bottom: 0.35rem;
}

/* Layout */

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.container--wide {
  max-width: var(--max-wide);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(247, 246, 242, 0.92);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.85rem var(--space);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--accent);
}

/* Main */

main {
  padding: 2rem 0 3rem;
}

.section-block {
  margin-bottom: 3rem;
}

.section-block--wide {
  max-width: var(--max-wide);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space);
}

/* Hero */

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 1rem;
}

.trust-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 38em;
  margin-top: 0.5rem;
  padding-left: 0;
  border-left: 2px solid var(--border);
  padding-left: 0.85rem;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  font-family: inherit;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--accent);
}

.btn--secondary:hover {
  background: rgba(74, 107, 82, 0.08);
  color: var(--accent-hover);
}

/* Two-column rhythm */

.split-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2rem;
  align-items: start;
}

.rail-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}

/* Pathways */

.pathway-group {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pathway-group:last-child {
  border-bottom: none;
}

.pathway-intro {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.pathway-links {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.pathway-links li {
  margin-bottom: 0.25rem;
}

/* Pricing */

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.pricing-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
}

.pricing-item:last-child {
  border-bottom: none;
}

.pricing-name {
  font-weight: 600;
  margin: 0;
}

.pricing-price {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  text-align: left;
}

.pricing-desc {
  grid-column: 1 / -1;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}

.pricing-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1rem 0 1.5rem;
}

/* Process list */

.process-points {
  list-style: none;
  padding: 0;
}

.process-points li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.process-points li:last-child {
  border-bottom: none;
}

/* Selected articles */

.featured-article {
  padding: 1.25rem 0 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
}

.featured-article h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.article-teaser {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.article-teaser h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.article-teaser p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* Archive */

.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 1;
}

@media (min-width: 640px) {
  .archive-list {
    columns: 2;
    column-gap: 2rem;
  }
}

.archive-list li {
  break-inside: avoid;
  padding: 0.4rem 0;
  margin-bottom: 0.15rem;
}

/* Forms */

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  text-align: left;
}

.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 32rem;
  padding: 0.55rem 0.65rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.contact-details {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-details p {
  margin-bottom: 0.35rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  margin-top: 1rem;
  background: rgba(247, 246, 242, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--space);
  text-align: left;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Article pages */

.article-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-size: 1.15rem;
  border-top: none;
  margin-top: 2rem;
}

.article-body p {
  text-align: left;
}

.related-articles {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.related-articles ul {
  list-style: none;
  padding: 0;
}

.related-articles li {
  margin-bottom: 0.5rem;
}

/* Thank you / legal */

.page-narrow {
  max-width: 640px;
}

.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}

.policy-section {
  margin-bottom: 2rem;
}

/* Utility */

.text-muted {
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    width: 100%;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.5rem 0 0.25rem;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .pricing-item {
    grid-template-columns: 1fr;
  }

  .pricing-price {
    margin-top: 0.15rem;
  }
}
