/*
  GoSPSV.ie — stylesheet
  Mobile-first, no build step, no external font/CSS dependencies.
*/

/* -------------------------------------------------- */
/* Design tokens                                       */
/* -------------------------------------------------- */
:root {
  /* Brand colours, sampled from the supplied GoSPSV logo */
  --navy-900: #0d2038;
  --navy-800: #122c4c;
  --navy-700: #17335c;
  --navy-600: #1f4272;
  --blue-500: #0b7fb8;
  --green-700: #1f7a2a;
  --green-600: #2a9636;
  --green-500: #34ab3f;
  --green-100: #e7f5e9;
  --blue-100: #e6f3fa;

  --white: #ffffff;
  --ink: #16233a;
  --ink-muted: #4a5568;
  --border: #dfe6ee;
  --surface: #ffffff;
  --surface-alt: #f4f8fb;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(13, 32, 56, 0.08);
  --shadow-md: 0 8px 24px rgba(13, 32, 56, 0.10);
  --shadow-lg: 0 18px 40px rgba(13, 32, 56, 0.16);

  --container: 1140px;
  --gutter: 1.25rem;

  --focus-ring: 3px solid #ffb300;
  --focus-offset: 2px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--navy-700);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--blue-500);
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--navy-800);
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  max-width: 65ch;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

small {
  font-size: 0.875rem;
}

::selection {
  background: var(--green-500);
  color: var(--white);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Consistent, visible focus states everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: 4px;
}

/* -------------------------------------------------- */
/* Layout helpers                                      */
/* -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  padding: 3.25rem 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  padding: 0.3em 0.75em;
  border-radius: 999px;
  margin-bottom: 0.9em;
}

.bg-alt {
  background: var(--surface-alt);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -6rem;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75em 1.25em;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* -------------------------------------------------- */
/* Buttons                                             */
/* -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  min-height: 48px;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--green-700);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--navy-700);
}

.btn-outline:hover {
  background: var(--navy-700);
  color: var(--white);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  padding: 0.7em 1.3em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

.status-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  flex: none;
}

/* -------------------------------------------------- */
/* Header / nav                                        */
/* -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand img {
  height: 34px;
  width: auto;
}

.brand:hover img {
  opacity: 0.92;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--surface-alt);
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

.site-header.is-open .nav-toggle__icon {
  background: transparent;
}

.site-header.is-open .nav-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.primary-nav {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--white);
  padding: 1.5rem var(--gutter) 2rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.site-header.is-open .primary-nav {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.primary-nav__list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.primary-nav__list a {
  display: block;
  padding: 0.85em 0.25em;
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.primary-nav__list a:hover {
  color: var(--green-700);
}

.primary-nav__cta {
  display: flex;
}

.primary-nav__cta .btn {
  width: 100%;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    inset: auto;
    background: transparent;
    padding: 0;
    overflow: visible;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }

  .primary-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    margin: 0;
  }

  .primary-nav__list a {
    padding: 0.4em 0.1em;
    border-bottom: none;
  }

  .primary-nav__list a::after {
    content: "";
    display: block;
    height: 2px;
    background: var(--green-600);
    width: 0;
    transition: width 0.15s ease;
  }

  .primary-nav__list a:hover::after {
    width: 100%;
  }

  .primary-nav__cta .btn {
    width: auto;
  }
}

/* -------------------------------------------------- */
/* Hero                                                */
/* -------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 48%, var(--green-700) 100%);
  color: var(--white);
  overflow: hidden;
  padding-block: 3.5rem 3rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.05) 0,
    rgba(255, 255, 255, 0.05) 2px,
    transparent 2px,
    transparent 90px
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.45em 0.95em;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin-bottom: 0.5em;
}

.hero__lede {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__visual img {
  width: min(280px, 62vw);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

.hero__note {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 46ch;
}

@media (min-width: 900px) {
  .hero {
    padding-block: 5rem;
  }

  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* -------------------------------------------------- */
/* Feature / study-area cards                          */
/* -------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid--5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  height: 100%;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--green-700);
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4em;
}

.card p {
  color: var(--ink-muted);
  font-size: 0.96rem;
  margin-bottom: 0;
}

/* -------------------------------------------------- */
/* How it works — step list                            */
/* -------------------------------------------------- */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem 1.5rem;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35em;
}

.step p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* -------------------------------------------------- */
/* App preview mockups (illustrative, not real screens)*/
/* -------------------------------------------------- */
.preview-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  max-width: 22rem;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    align-items: start;
  }
}

.phone-mockup {
  margin: 0;
  text-align: center;
}

.phone-mockup svg {
  width: 100%;
  height: auto;
  max-width: 220px;
  filter: drop-shadow(0 14px 28px rgba(13, 32, 56, 0.16));
}

.phone-mockup figcaption {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--navy-800);
  font-size: 0.95rem;
}

/* -------------------------------------------------- */
/* Dublin-first section                                */
/* -------------------------------------------------- */
.dublin {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
}

.dublin__inner {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: end;
}

.dublin h2 {
  color: var(--white);
}

.dublin p {
  color: rgba(255, 255, 255, 0.85);
}

.dublin .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.dublin__skyline {
  width: 100%;
  height: auto;
  display: block;
  color: var(--green-600);
}

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

/* -------------------------------------------------- */
/* App availability / final CTA                        */
/* -------------------------------------------------- */
.cta-final {
  background: linear-gradient(135deg, var(--green-700), var(--navy-800));
  color: var(--white);
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  margin-inline: var(--gutter);
}

.cta-final h2 {
  color: var(--white);
}

.cta-final p {
  color: rgba(255, 255, 255, 0.9);
  margin-inline: auto;
}

.cta-final__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.independence-note {
  max-width: 60ch;
  margin: 1.75rem auto 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

/* -------------------------------------------------- */
/* FAQ                                                 */
/* -------------------------------------------------- */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 0.25rem 1.25rem;
}

.faq-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.75rem 1rem 0;
  font-weight: 700;
  color: var(--navy-800);
  position: relative;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--green-700);
}

.faq-item[open] > summary::after {
  content: "\2212";
}

.faq-item p {
  color: var(--ink-muted);
  padding-bottom: 1.1rem;
  margin-bottom: 0;
}

/* -------------------------------------------------- */
/* Footer                                              */
/* -------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 3rem 2rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

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

.footer__brand img {
  height: 30px;
  width: auto;
  margin-bottom: 0.9rem;
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  max-width: 32ch;
}

.site-footer h2 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__note {
  max-width: 70ch;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1rem;
}

/* -------------------------------------------------- */
/* Legal pages (privacy / terms)                       */
/* -------------------------------------------------- */
.legal-hero {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding-block: 2.75rem;
}

.legal-hero h1 {
  margin-bottom: 0.4em;
}

.legal-hero p {
  color: var(--ink-muted);
  margin-bottom: 0;
}

.draft-notice {
  background: #fff7e6;
  border: 1px solid #f2cf7c;
  color: #6b4c00;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-block: 1.75rem;
  font-size: 0.95rem;
}

.draft-notice strong {
  display: block;
  margin-bottom: 0.2em;
}

.legal-content {
  max-width: 70ch;
  padding-block: 2.5rem 4rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--ink-muted);
}

.legal-content .placeholder {
  background: var(--blue-100);
  border: 1px dashed #7fb8d6;
  padding: 0.1em 0.5em;
  border-radius: 6px;
  color: var(--navy-700);
  font-style: normal;
  font-weight: 600;
}

.legal-toc {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.legal-toc h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.legal-toc ul {
  columns: 2;
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .legal-toc ul {
    columns: 1;
  }
}

/* -------------------------------------------------- */
/* 404 page                                            */
/* -------------------------------------------------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 4rem;
}

.error-page__code {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--green-600);
  margin-bottom: 0.1em;
}

/* -------------------------------------------------- */
/* Utility spacing                                     */
/* -------------------------------------------------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
