/* =========================================================
   LiftHub Ireland — main stylesheet
   Mobile-first, accessible, designed for elderly readers
   and adult children researching on phones.
   ========================================================= */

:root {
  --c-bg: #fbfaf6;
  --c-surface: #ffffff;
  --c-ink: #1a2433;
  --c-ink-soft: #4a5568;
  --c-muted: #5a6478;
  --c-line: #e2e6ec;
  --c-brand: #1f3a5f;
  --c-brand-deep: #0f2747;
  --c-accent: #c47832;
  --c-accent-deep: #a25e1f;
  --c-success: #2f7d4a;
  --c-info-bg: #eef4fb;
  --c-warn-bg: #fdf3e2;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 39, 71, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 39, 71, 0.08);
  --max-w: 1100px;
  --max-w-prose: 720px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

/* Skip link for screen readers / keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-brand);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

a {
  color: var(--c-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover, a:focus { color: var(--c-accent-deep); }

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--c-ink);
  line-height: 1.25;
  margin: 0 0 var(--space-2);
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin-top: var(--space-4); }
h3 { font-size: 1.25rem; margin-top: var(--space-3); }
p { margin: 0 0 var(--space-2); }

/* ========== layout ========== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.prose { max-width: var(--max-w-prose); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.4rem; }

/* ========== header / nav ========== */
.site-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: var(--space-2);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--c-brand-deep);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--c-brand);
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 700;
}
.brand-logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: 200px;
}
@media (max-width: 480px) {
  .brand-logo {
    height: 32px;
  }
}
.nav-links {
  display: none;
  gap: 1.4rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--c-ink);
  font-weight: 500;
  font-size: 0.98rem;
}
.nav-links a:hover { color: var(--c-brand); }
.nav-cta {
  display: inline-block;
  background: var(--c-accent);
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: var(--r-sm);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-cta:hover { background: var(--c-accent-deep); }

@media (min-width: 800px) {
  .nav-links { display: flex; }
}

/* mobile menu */
.menu-toggle {
  background: none;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  cursor: pointer;
}
@media (min-width: 800px) { .menu-toggle { display: none; } }

/* ========== hero ========== */
.hero {
  background: linear-gradient(135deg, #f4ede0 0%, #fbfaf6 100%);
  padding: var(--space-5) 0 var(--space-5);
  border-bottom: 1px solid var(--c-line);
}
.hero h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 2.9rem);
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--c-ink-soft);
  max-width: 660px;
  margin-bottom: var(--space-3);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--c-brand);
  color: #fff;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: var(--shadow-md);
}
.hero-cta:hover { background: var(--c-brand-deep); color: #fff; }

/* dual-path quote buttons in hero */
.hero-paths {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: var(--space-4) 0 var(--space-3);
  max-width: 760px;
}
@media (min-width: 700px) {
  .hero-paths { grid-template-columns: 1fr 1fr; }
}
.hero-path-btn {
  display: block;
  background: #ffffff;
  border: 2px solid var(--c-brand);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.hero-path-btn:hover {
  background: var(--c-brand);
  color: #ffffff;
  transform: translateY(-2px);
}
.hero-path-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  color: var(--c-accent-deep);
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.hero-path-title {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--c-brand-deep);
  margin-bottom: 0.4rem;
}
.hero-path-detail {
  display: block;
  font-size: 0.95rem;
  color: var(--c-ink-soft);
}
.hero-path-btn:hover .hero-path-eyebrow { color: #fbe8c4; }
.hero-path-btn:hover .hero-path-title { color: #ffffff; }
.hero-path-btn:hover .hero-path-detail { color: #d8dfeb; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  margin-top: var(--space-3);
  font-size: 0.95rem;
  color: var(--c-ink-soft);
  font-weight: 500;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-trust-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-success);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ========== sections ========== */
section { padding: var(--space-5) 0; }
section.tight { padding: var(--space-4) 0; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--c-accent-deep);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ========== cards / grids ========== */
.grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }
.card a { font-weight: 600; }

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

/* ========== callouts ========== */
.callout {
  border-left: 4px solid var(--c-accent);
  background: var(--c-warn-bg);
  padding: var(--space-2) var(--space-3);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: var(--space-3) 0;
}
.callout--info {
  border-left-color: var(--c-brand);
  background: var(--c-info-bg);
}
.callout strong { color: var(--c-brand-deep); }

/* ========== quick facts box ========== */
.quick-facts {
  background: var(--c-info-bg);
  border: 1px solid #d0dcef;
  border-radius: var(--r-md);
  padding: var(--space-3);
  margin: var(--space-3) 0;
}
.quick-facts h2 {
  margin-top: 0;
  font-size: 1.15rem;
  font-family: -apple-system, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-brand-deep);
}
.quick-facts ul { margin: 0; padding-left: 1.2rem; }
.quick-facts li { margin-bottom: 0.4rem; }

/* ========== tables ========== */
.table-wrap { overflow-x: auto; margin: var(--space-3) 0; }
table {
  border-collapse: collapse;
  width: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}
th {
  background: var(--c-info-bg);
  font-weight: 600;
  color: var(--c-brand-deep);
  font-size: 0.95rem;
}
tbody tr:last-child td { border-bottom: none; }

/* ========== TOC ========== */
.toc {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--space-2) var(--space-3);
  margin: var(--space-3) 0;
}
.toc h2 { font-size: 1rem; margin: 0 0 0.5rem; font-family: inherit; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-muted); }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin: 0.25rem 0; }

/* ========== FAQ ========== */
.faq details {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--c-brand-deep);
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.4rem;
  color: var(--c-accent);
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details > *:not(summary) { margin-top: 0.75rem; }
.faq summary::-webkit-details-marker { display: none; }

/* ========== form ========== */
.form-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-md);
  max-width: 560px;
}
.form-row { margin-bottom: 1.1rem; }
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--c-ink);
}
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid #c4ccd6;
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--c-ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--c-brand);
  outline-offset: 1px;
  border-color: var(--c-brand);
}
.form-help { font-size: 0.9rem; color: var(--c-muted); margin-top: 0.3rem; }
.checkbox-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.8rem 0;
}
.checkbox-row input { width: auto; margin-top: 0.25rem; }
button[type="submit"] {
  background: var(--c-accent);
  color: #fff;
  border: none;
  padding: 0.95rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--r-md);
  cursor: pointer;
  width: 100%;
}
button[type="submit"]:hover { background: var(--c-accent-deep); }

/* ========== breadcrumbs ========== */
.crumbs {
  font-size: 0.9rem;
  color: var(--c-muted);
  padding: var(--space-2) 0 0;
}
.crumbs a { color: var(--c-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-brand); text-decoration: underline; }
.crumbs span { color: var(--c-ink); }

/* ========== footer ========== */
.site-footer {
  background: var(--c-brand-deep);
  color: #cdd6e3;
  padding: var(--space-5) 0 var(--space-3);
  margin-top: var(--space-5);
}
.site-footer h4 { color: #fff; font-family: inherit; font-size: 1rem; margin-top: 0; }
.site-footer a { color: #e8eef7; }
.footer-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand p { color: #aebbcd; font-size: 0.95rem; max-width: 28em; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.4rem; }
.footer-bottom {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid #2a4970;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #98a5ba;
}

/* ========== utilities ========== */
.text-muted { color: var(--c-muted); }
.text-small { font-size: 0.92rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-3 { margin-bottom: var(--space-3); }
.button-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: var(--space-3); }
.btn-secondary {
  display: inline-block;
  border: 2px solid var(--c-brand);
  color: var(--c-brand);
  background: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: 600;
}
.btn-secondary:hover { background: var(--c-brand); color: #fff; }

/* mobile menu open state */
@media (max-width: 799px) {
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
  }
}

/* ========== calculator ========== */
.calc {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 0 auto;
}
.calc-progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: var(--space-3);
}
.calc-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--c-line);
  border-radius: 3px;
  overflow: hidden;
}
.calc-progress-bar.active { background: var(--c-accent); }
.calc-progress-bar.done { background: var(--c-brand); }
.calc-step { display: none; }
.calc-step.active { display: block; }
.calc-step h2 { margin-top: 0; font-size: 1.4rem; }
.calc-options {
  display: grid;
  gap: 0.6rem;
  margin: var(--space-2) 0;
}
.calc-option {
  display: block;
  padding: 1rem 1.2rem;
  border: 2px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
  transition: all 0.15s ease;
}
.calc-option:hover { border-color: var(--c-brand); background: var(--c-info-bg); }
.calc-option.selected { border-color: var(--c-brand); background: var(--c-info-bg); }
.calc-option-title { display: block; font-weight: 600; color: var(--c-ink); }
.calc-option-desc { display: block; font-size: 0.92rem; color: var(--c-muted); margin-top: 0.25rem; }
.calc-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: var(--space-3);
}
.calc-back {
  background: none;
  border: 1px solid var(--c-line);
  padding: 0.7rem 1.2rem;
  border-radius: var(--r-md);
  cursor: pointer;
  font: inherit;
  color: var(--c-muted);
}
.calc-next {
  background: var(--c-brand);
  color: #fff;
  border: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-md);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.calc-next:disabled { opacity: 0.4; cursor: not-allowed; }
.calc-result {
  background: linear-gradient(135deg, #eef4fb 0%, #f5e7d3 100%);
  border-radius: var(--r-lg);
  padding: var(--space-3);
  margin: var(--space-3) 0;
  border: 1px solid #cdd6e3;
}
.calc-result-mid {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--c-brand-deep);
  font-family: Georgia, serif;
  line-height: 1.1;
}
.calc-result-range { color: var(--c-muted); font-size: 1.05rem; margin-top: 0.25rem; }
.calc-result-detail { margin-top: 1rem; }
.calc-result-detail dt { font-weight: 600; color: var(--c-ink); margin-top: 0.6rem; }
.calc-result-detail dd { margin: 0.2rem 0 0 0; color: var(--c-ink-soft); }
.calc-grant {
  background: #d8e8d8;
  border-left: 4px solid var(--c-success);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: var(--space-3) 0;
}
.calc-grant strong { color: var(--c-success); }
.calc-disclaimer {
  font-size: 0.88rem;
  color: var(--c-muted);
  margin-top: var(--space-3);
  padding: 1rem;
  background: var(--c-bg);
  border-radius: var(--r-md);
  border-left: 3px solid var(--c-muted);
}
.calc-input {
  font-size: 1.05rem;
  padding: 0.8rem 1rem;
  width: 100%;
  max-widt