/* ========================================
   SimpliFI Consulting — Design System
   Colours sampled from the live WordPress site
   so the rebuild reads as the same company.
   ======================================== */

:root {
  /* Brand */
  --deep-green:   #0C3C32;
  --deep-green-d: #062A22;
  --deep-green-l: #14503C;
  --ember:        #E3572B;   /* brand orange — large text, rules, dots */
  --ember-ink:    #B8431A;   /* text and buttons on light grounds (AA at 4.5:1) */
  --ember-d:      #9E3815;   /* hover state for ember-ink */
  --leaf:         #C2DF93;
  --slate-teal:   #5A7779;
  --pale:         #F4F8EC;
  --amber:        #FF9D10;

  /* Neutrals — biased green so they read as chosen, not default */
  --white:        #FFFFFF;
  --ink:          #0E1A16;
  --ink-soft:     #2E403A;
  --muted:        #4F6B6D;
  --rule:         #DDE5DD;
  --rule-strong:  #C3D0C6;
  --ground:       #FBFCFA;

  /* Data visualisation only — never for UI chrome */
  --data-1: #14503C;
  --data-2: #E3572B;
  --data-3: #5A7779;
  --data-4: #FF9D10;
  --data-5: #C2DF93;

  /* Type */
  --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body:    'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --text-xs:   0.78rem;
  --text-sm:   0.9rem;
  --text-base: 1.0625rem;
  --text-lg:   1.1875rem;
  --text-xl:   1.4rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;

  /* Layout */
  --container: 1140px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(12, 60, 50, 0.06);
  --shadow-md: 0 4px 16px rgba(12, 60, 50, 0.08);
}

/* ========================================
   Reset & base
   ======================================== */

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

html { scroll-behavior: smooth; }

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

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--f-display);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--deep-green);
}

h1 { font-size: clamp(2.1rem, 5.5vw, var(--text-4xl)); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 4vw, var(--text-3xl)); font-weight: 700; }
h3 { font-size: var(--text-xl); font-weight: 600; }
h4 { font-size: var(--text-lg); font-weight: 600; }

p { max-width: 68ch; }

a { color: var(--deep-green-l); text-underline-offset: 2px; }
a:hover { color: var(--ember-ink); }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link — keyboard users land here first */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--deep-green);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ========================================
   Layout primitives
   ======================================== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--pale { background: var(--pale); }
.section--green { background: var(--deep-green); color: var(--white); }
.section--green h1,
.section--green h2,
.section--green h3 { color: var(--white); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

.stack > * + * { margin-top: 1rem; }

/* Section label — the small uppercase eyebrow above a heading */
.eyebrow {
  display: inline-block;
  font-family: var(--f-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-ink);
  margin-bottom: 0.85rem;
}
/* On dark grounds the eyebrow needs a light colour, not the dark orange */
.section--green .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow { color: var(--leaf); }

.lede {
  font-size: var(--text-lg);
  color: var(--ink-soft);
  max-width: 62ch;
}
.section--green .lede { color: rgba(255, 255, 255, 0.85); }

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-display);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary { background: var(--ember-ink); color: var(--white); }
.btn--primary:hover { background: var(--ember-d); color: var(--white); }

.btn--green { background: var(--deep-green); color: var(--white); }
.btn--green:hover { background: var(--deep-green-d); color: var(--white); }

.btn--ghost { border-color: var(--rule-strong); color: var(--deep-green); background: transparent; }
.btn--ghost:hover { border-color: var(--deep-green); color: var(--deep-green); }

.section--green .btn--ghost { border-color: rgba(255,255,255,0.4); color: var(--white); }
.section--green .btn--ghost:hover { border-color: var(--white); color: var(--white); }

/* ========================================
   Cards
   ======================================== */

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: var(--text-sm); }

/* ========================================
   Site header
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.nav__logo img { height: 2.1rem; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none;
}

/* :not(.btn) so the CTA keeps its own white-on-orange treatment */
.nav__links a:not(.btn) {
  font-family: var(--f-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav__links a:not(.btn):hover,
.nav__links a[aria-current="page"]:not(.btn) { color: var(--ember-ink); }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--deep-green);
}

@media (max-width: 60rem) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { border-top: 1px solid var(--rule); }
  .nav__links a { display: block; padding: 0.9rem 0; }
  .nav__links .btn { margin-top: 1rem; justify-content: center; }
}

/* ========================================
   Site footer
   ======================================== */

.site-footer {
  background: var(--deep-green);
  color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: var(--text-sm);
}

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

.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.site-footer a:hover { color: var(--leaf); }

.site-footer ul { list-style: none; display: grid; gap: 0.55rem; }

.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.footer__logo img { height: 2.2rem; width: auto; margin-bottom: 1rem; }

.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Forms
   ======================================== */

.field { display: grid; gap: 0.4rem; }

.field label {
  font-family: var(--f-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field textarea,
.field select {
  font-family: var(--f-body);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.95rem;
  width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }

.field-error {
  font-size: var(--text-sm);
  color: var(--ember-ink);
}

.form-status {
  font-size: var(--text-sm);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
}
.form-status--ok { background: var(--pale); color: var(--deep-green); }
.form-status--err { background: #FCEDE7; color: var(--ember-ink); }

/* ========================================
   Utilities
   ======================================== */

.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;
}

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

/* ========================================
   Homepage
   ======================================== */

.hero {
  background: linear-gradient(160deg, var(--deep-green) 0%, var(--deep-green-d) 100%);
  color: var(--white);
  padding-block: clamp(4rem, 10vw, 8rem);
}

.hero__inner { max-width: 54rem; }

.hero h1 { color: var(--white); max-width: 20ch; }

.hero .lede {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 1.5rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}
.hero .btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.hero .btn--ghost:hover { border-color: var(--white); }

.hero__credibility {
  margin-top: 2rem;
  font-family: var(--f-display);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf);
}

/* Proof band */

.proof { padding-block: clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--rule); }

.proof__grid {
  list-style: none;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.proof__grid li { display: grid; gap: 0.35rem; align-content: start; }

.proof__figure {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
}
.proof__label { font-size: var(--text-sm); color: var(--muted); max-width: 26ch; }

/* Problem */

.problem { align-items: start; }

.symptoms { list-style: none; display: grid; gap: 0; align-content: start; }
.symptoms li {
  font-family: var(--f-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.95rem 0 0.95rem 1.75rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.symptoms li:first-child { border-top: 1px solid var(--rule); }
.symptoms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--ember);
  border-radius: 50%;
}

/* Solutions */

.section__head { margin-bottom: clamp(2rem, 4vw, 3rem); }

.solution { text-decoration: none; display: grid; align-content: start; gap: 0.6rem; }
.solution:hover { border-color: var(--deep-green-l); box-shadow: var(--shadow-md); }
.solution:hover h3 { color: var(--ember-ink); }

.solution__more {
  font-family: var(--f-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember-ink);
  margin-top: 0.4rem;
}
.solution__more::after { content: " →"; }

/* Approach */

.approach { list-style: none; counter-reset: step; display: grid; gap: 1.5rem; }
.approach li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.3rem 1rem;
}
.approach li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--f-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--leaf);
  padding-top: 0.2rem;
}
.approach h3 { grid-column: 2; font-size: var(--text-lg); }
.approach p { grid-column: 2; color: rgba(255, 255, 255, 0.78); font-size: var(--text-sm); }

/* Case study */

.case { max-width: 46rem; }
.case .lede { margin-block: 1.25rem 2rem; }
.case strong { color: var(--deep-green); font-weight: 600; }

/* OS360 */

.os360 { max-width: 46rem; }
.os360 .btn { margin-top: 0.5rem; }

/* Closing CTA */

.cta-band .lede { margin-block: 1rem 2rem; }

/* ========================================
   Interior pages
   ======================================== */

.page-hero {
  background: linear-gradient(160deg, var(--deep-green) 0%, var(--deep-green-d) 100%);
  color: var(--white);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.page-hero h1 { color: var(--white); max-width: 22ch; }
.page-hero .lede { color: rgba(255, 255, 255, 0.82); margin-top: 1.25rem; }

/* Breadcrumb */

.crumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--f-display);
  font-size: var(--text-xs);
  margin-bottom: 1.5rem;
}
.crumbs a { color: rgba(255, 255, 255, 0.65); text-decoration: none; }
.crumbs a:hover { color: var(--leaf); }
.crumbs li + li::before { content: "/ "; color: rgba(255, 255, 255, 0.35); }
.crumbs [aria-current] { color: var(--white); }

/* Partner attribution — Vue.ai, ALPTech */

.partner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.9rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--f-display);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
}
.partner b { color: var(--leaf); font-weight: 600; }

/* Prose block — running copy on interior pages */

.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }

/* Feature grid — the icon-box content ported from the old pages */

.features { list-style: none; display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.features--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.features--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

.feature {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  padding-top: 1.1rem;
  border-top: 2px solid var(--ember);
}
.feature h3 { font-size: var(--text-lg); }
.feature p { font-size: var(--text-sm); color: var(--ink-soft); }

.section--green .feature { border-top-color: var(--leaf); }
.section--green .feature p { color: rgba(255, 255, 255, 0.78); }

/* Outcomes — the measurable results band */

.outcomes { list-style: none; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.outcomes li { display: grid; gap: 0.3rem; align-content: start; }

.outcome__figure {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
}
.section--green .outcome__figure { color: var(--leaf); }
.outcome__label { font-size: var(--text-sm); color: var(--muted); max-width: 24ch; }
.section--green .outcome__label { color: rgba(255, 255, 255, 0.78); }

/* Case study cards */

.cases { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.case-card { display: grid; gap: 0.5rem; align-content: start; }
.case-card__type {
  font-family: var(--f-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-ink);
}
.case-card p { font-size: var(--text-sm); color: var(--ink-soft); }
.case-card__result {
  font-family: var(--f-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--deep-green);
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
  margin-top: 0.3rem;
}

/* Values — About page */

.values { list-style: none; display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.value { display: grid; gap: 0.5rem; align-content: start; }
.value h3 { font-size: var(--text-lg); }
.value p { font-size: var(--text-sm); color: var(--ink-soft); }

/* Timeline — About page founding story */

.story { max-width: 44rem; }
.story > * + * { margin-top: 1.15rem; }
.story p:first-of-type { font-size: var(--text-lg); color: var(--ink-soft); }

/* Next-step band at the foot of interior pages */

.next-step { background: var(--pale); }
.next-step .container { display: grid; gap: 1.25rem; justify-items: start; }

/* Mission statement — the sole content of its band, so it carries display size */
.mission {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 600;
  line-height: 1.28;
  max-width: 30ch;
}

/* ========================================
   Case studies
   ======================================== */

.findings-head {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.findings-list { list-style: none; display: grid; gap: 0; max-width: 52rem; }
.findings-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.75rem;
  border-bottom: 1px solid var(--rule);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.findings-list li:first-child { border-top: 1px solid var(--rule); }
.findings-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.4rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--ember);
  border-radius: 50%;
}

.result-band {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 2px solid var(--deep-green);
}

/* ========================================
   FAQ
   ======================================== */

.faq { max-width: 48rem; }

.faq__group {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-ink);
  margin: 2.75rem 0 0.25rem;
}
.faq__group:first-child { margin-top: 0; }

.qa { border-bottom: 1px solid var(--rule); }

.qa summary {
  font-family: var(--f-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--deep-green);
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
}
.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 1.65rem;
  width: 0.62rem;
  height: 0.62rem;
  border-right: 2px solid var(--ember);
  border-bottom: 2px solid var(--ember);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.qa[open] summary::after { transform: rotate(-135deg); }

.qa summary:hover { color: var(--ember-ink); }

.qa p {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  padding-bottom: 1.35rem;
  max-width: 62ch;
}

/* ========================================
   Contact
   ======================================== */

.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 52rem) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form h2 { margin-bottom: 1.5rem; }
.contact-form form { display: grid; gap: 1.15rem; }
.contact-form .btn { justify-self: start; }

.form-note { font-size: var(--text-xs); color: var(--muted); }

.contact-aside { display: grid; gap: 1.75rem; align-content: start; }

.contact-block {
  padding-top: 1.1rem;
  border-top: 2px solid var(--deep-green);
}
.contact-block h3 {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.contact-block p { font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.7; }

/* ========================================
   Legal pages
   ======================================== */

.legal { max-width: 44rem; }
.legal > * + * { margin-top: 1rem; }

.legal__updated {
  font-family: var(--f-display);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.legal h2 { font-size: var(--text-xl); margin-top: 2.5rem; }
.legal ul { margin-left: 1.15rem; display: grid; gap: 0.6rem; }
.legal li { max-width: 66ch; }
.legal strong { color: var(--deep-green); font-weight: 600; }

/* 404 feature links */
.feature h3 a { text-decoration: none; color: var(--deep-green); }
.feature h3 a:hover { color: var(--ember-ink); }
