/* Self-hosted fonts (no third-party requests, no visitor data to Google) */
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ProSource Consulting Solutions — pscs.ie
   Palette drawn directly from the logo:
   navy #1C1F28 (logo background), gold #D9A93C (mark), ivory for reading surfaces */

:root {
  --navy: #1c1f28;
  --navy-deep: #14161d;
  --navy-line: #2b2f3c;
  --gold: #d9a93c;
  --gold-light: #e8c363;
  --ivory: #f5f3ee;
  --ivory-dim: #ece9e1;
  --ink: #23262f;
  --ink-soft: #5b6070;
  --mist: #a7adbb; /* muted text on navy */
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Signature: dash-flanked eyebrow, echoing "— CONSULTING SOLUTIONS —" in the logo */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.85;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--navy-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  color: var(--ivory);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--gold-light); }
.site-nav a.active { border-bottom-color: var(--gold); color: var(--gold-light); }
.site-nav a:focus-visible,
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy-line);
  color: var(--ivory);
  font: inherit;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 3px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border: 1px solid var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(245, 243, 238, 0.4);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-ghost-dark {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-ghost-dark:hover { border-color: var(--gold); color: var(--ink); background: rgba(217, 169, 60, 0.12); }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  padding-top: 96px;
  padding-bottom: 104px;
  max-width: 900px;
}
/* Ascending peak lines, drawn from the logo mark */
.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -60px;
  width: 560px;
  height: 560px;
  background:
    linear-gradient(115deg, transparent 46%, rgba(217, 169, 60, 0.16) 46.5%, rgba(217, 169, 60, 0.16) 48%, transparent 48.5%),
    linear-gradient(115deg, transparent 56%, rgba(217, 169, 60, 0.10) 56.5%, rgba(217, 169, 60, 0.10) 58%, transparent 58.5%),
    linear-gradient(115deg, transparent 66%, rgba(217, 169, 60, 0.06) 66.5%, rgba(217, 169, 60, 0.06) 68%, transparent 68.5%);
  transform: skewY(-6deg);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  margin: 22px 0 20px;
  color: #fdfcf9;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero p.lede {
  font-size: 19px;
  color: var(--mist);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Page intro (inner pages) ---------- */
.page-intro {
  background: var(--navy);
  color: var(--ivory);
}
.page-intro .wrap { padding-top: 72px; padding-bottom: 64px; max-width: 860px; }
.page-intro h1 { font-size: clamp(30px, 4.5vw, 44px); margin: 20px 0 16px; color: #fdfcf9; }
.page-intro p { color: var(--mist); font-size: 18.5px; max-width: 640px; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-title { font-size: clamp(26px, 3.6vw, 36px); margin: 18px 0 14px; }
.section-lede { color: var(--ink-soft); max-width: 640px; font-size: 18px; }

.section-dark { background: var(--navy-deep); color: var(--ivory); }
.section-dark .section-title { color: #fdfcf9; }
.section-dark .section-lede { color: var(--mist); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 44px;
}
.card {
  background: #fff;
  border: 1px solid var(--ivory-dim);
  border-top: 3px solid var(--gold);
  padding: 30px 28px 28px;
  border-radius: 4px;
}
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 16px; }

/* ---------- How we work ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 44px;
}
.mode {
  border: 1px solid var(--navy-line);
  border-radius: 4px;
  padding: 32px 30px;
  background: rgba(245, 243, 238, 0.03);
}
.mode h3 { color: var(--gold-light); font-size: 22px; margin-bottom: 12px; }
.mode p { color: var(--mist); font-size: 16px; }

/* ---------- Sector experience ---------- */
.sector-block { text-align: center; max-width: 860px; }
.sector-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 18px;
  margin: 40px 0 34px;
}
.sector-flow span {
  font-family: "Fraunces", Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0 22px;
  position: relative;
}
.sector-flow span + span::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: translateY(-50%) rotate(45deg);
}
.section-dark .sector-flow span { color: var(--ivory); }
.sector-strip { background: var(--ivory-dim); }
.sector-strip .sector-flow span { color: var(--ink); }
.sector-note {
  font-style: italic;
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
}
.section-dark .sector-note { color: var(--mist); }
.sector-strip .sector-note { color: var(--ink-soft); }

/* Card hover polish */
.card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(28, 31, 40, 0.10);
}

/* ---------- Prose (about page) ---------- */
.prose { max-width: 700px; }
.prose p { margin-bottom: 22px; font-size: 17.5px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  margin-top: 44px;
  align-items: start;
}
.contact-list { list-style: none; }
.contact-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--ivory-dim);
}
.contact-list .label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.contact-list a {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.contact-list a:hover { color: var(--gold); }

form .field { margin-bottom: 20px; }
form label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  color: var(--ink);
}
form input, form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid #d5d2c9;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}
form input:focus, form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
form button {
  cursor: pointer;
  font-family: inherit;
}

.form-thanks {
  border: 1px solid var(--ivory-dim);
  border-top: 3px solid var(--gold);
  background: #fff;
  border-radius: 4px;
  padding: 40px 36px;
}
.form-thanks h2 {
  font-size: 28px;
  margin: 16px 0 12px;
}
.form-thanks p { color: var(--ink-soft); }
.form-thanks a { color: var(--ink); font-weight: 600; }
.form-error {
  margin-top: 16px;
  color: #8a2f2f;
  font-size: 15px;
}
.form-error a { color: #8a2f2f; font-weight: 600; }
form button:disabled { opacity: 0.6; cursor: default; }

/* ---------- Closing CTA band ---------- */
.cta-band { background: var(--navy); color: var(--ivory); text-align: center; }
.cta-band .wrap { padding: 72px 24px; max-width: 720px; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 36px); color: #fdfcf9; margin: 18px 0 14px; }
.cta-band p { color: var(--mist); margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--mist);
  border-top: 1px solid var(--navy-line);
}
.site-footer .wrap {
  padding: 44px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer img { height: 40px; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--mist); text-decoration: none; font-size: 14.5px; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer .fineprint { font-size: 13.5px; width: 100%; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .card-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 72px; padding-bottom: 84px; }
}
@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    gap: 18px;
  }
  .site-nav.open { display: flex; }
}

/* Centered CTA action row */
.cta-center { justify-content: center; display: flex; gap: 16px; flex-wrap: wrap; }

/* Confidentiality note */
.confidentiality {
  margin-top: 28px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--ivory-dim);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
}
.confidentiality .label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.confidentiality p { font-size: 15.5px; color: var(--ink-soft); }

/* Legal page */
.legal-prose { max-width: 720px; }
.legal-prose h2 { font-size: 26px; margin: 44px 0 14px; }
.legal-prose h3 { font-size: 19px; margin: 28px 0 10px; }
.legal-prose p, .legal-prose li { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 14px; }
.legal-prose ul { padding-left: 22px; margin-bottom: 14px; }
.legal-prose .updated { font-size: 14px; color: var(--ink-soft); font-style: italic; }

.confidentiality-wide { max-width: 760px; margin: 0 auto; }
.confidentiality a { color: var(--ink); font-weight: 600; }
.confidentiality a:hover { color: var(--gold); }
#confidentiality { padding-top: 0; }
