/* HubEntryPoint.pro — Structured Resource Portal (car repair) */

:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #1a2330;
  --muted: #4a5568;
  --accent: #2c5282;
  --accent-hover: #2b6cb0;
  --border: #d4dce6;
  --divider: #e2e8f0;
  --radius: 6px;
  --font: "Georgia", "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 42rem;
  --max-wide: 52rem;
}

*,
*::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: 800px 600px;
  background-attachment: fixed;
}

/* Layout */
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

main {
  flex: 1;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-top: 0;
}

h2 {
  font-size: 1.35rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 1rem;
}

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

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

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.small-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* HEADER */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

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

.site-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
}

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

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

.nav-toggle {
  display: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  color: var(--text);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

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

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

/* Hero */
.hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--divider);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.25rem 0 1rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

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

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

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

.btn--secondary:hover {
  border-color: var(--accent);
}

.trust-note {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 36rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--divider);
}

/* Sections */
.section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--divider);
}

.section:last-of-type {
  border-bottom: none;
}

.section--contact {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  max-width: var(--max-wide);
}

/* Help list */
.help-list {
  margin: 0;
  padding-left: 1.25rem;
}

.help-list li {
  margin-bottom: 0.35rem;
}

/* Pathways: two-column where useful */
.pathways-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .pathways-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pathways-grid .pathway-block:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
  }
}

.pathway-block {
  padding: 1rem 0;
  border-top: 1px solid var(--divider);
}

.pathway-block:first-child {
  border-top: none;
  padding-top: 0;
}

@media (min-width: 720px) {
  .pathway-block {
    border-top: none;
    padding-top: 0;
  }

  .pathways-grid .pathway-block {
    border-left: 1px solid var(--divider);
    padding-left: 1.25rem;
  }

  .pathways-grid .pathway-block:first-child {
    border-left: none;
    padding-left: 0;
  }
}

/* Process: main + rail */
.process-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 680px) {
  .process-layout {
    grid-template-columns: 1fr minmax(12rem, 14rem);
    align-items: start;
  }
}

.rail {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

/* Selected notes: emphasized + stack */
.notes-featured {
  padding: 1.25rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.notes-featured h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

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

.note-teaser:last-child {
  border-bottom: none;
}

.note-teaser h3 {
  font-size: 1rem;
  margin-top: 0;
}

/* Archive: structured list */
.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--divider);
}

.archive-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--divider);
}

.archive-list a {
  font-family: var(--font-sans);
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
}

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

.archive-list .meta-line {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
  font-weight: normal;
}

/* Forms */
.form-grid label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 1rem;
}

.form-grid textarea {
  min-height: 7rem;
  resize: vertical;
}

.contact-details {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--divider);
  font-size: 0.95rem;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  margin-top: auto;
  padding: 2rem 1.25rem;
}

.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

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

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.footer-nav li {
  margin-bottom: 0.35rem;
}

.footer-contact {
  font-size: 0.9rem;
}

/* Article pages */
.article-header {
  margin-bottom: 1.5rem;
}

.breadcrumb {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.article-body h2 {
  font-size: 1.2rem;
}

.related-block {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider);
}

.related-block ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* Legal narrow */
.legal .container {
  max-width: 38rem;
}

.legal h2 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
}

/* Thank you */
.thankyou-lede {
  font-size: 1.05rem;
}

.page-intro {
  margin-bottom: 1.5rem;
}

/* Mobile nav */
@media (max-width: 719px) {
  .nav-toggle {
    display: block;
  }

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

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

  .site-nav ul {
    flex-direction: column;
    gap: 0.65rem;
    padding-top: 0.75rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}
