/* ==========================================================================
   Enitéo — site styles
   Brand tokens live in :root. See /brand/ for the full guidelines.
   ========================================================================== */

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-var.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-italic-var.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-light.woff") format("woff");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-medium.woff") format("woff");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  /* Core palette */
  --ink: #14202b;
  --ink-2: #1f2e3b;
  --paper: #f6f2ea;
  --paper-2: #efe9dd;
  --white: #ffffff;
  --vermilion: #bf3d1c;      /* accent — buttons, marks, links */
  --vermilion-lt: #f07a55;   /* accent on dark backgrounds */
  --pine: #1e5a4c;           /* secondary — success, calm highlights */
  --slate: #56616b;          /* muted text */
  --mist: #e6dfd2;           /* lines, borders */

  /* Type */
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 32, 43, .06), 0 12px 32px -12px rgba(20, 32, 43, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--vermilion); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--vermilion); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
em { font-family: var(--font-display); font-style: italic; font-weight: 500; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius-sm); }

/* ---- The accent tick: our signature motif (the acute accent of "é") ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 18px;
}
.eyebrow::before, .tick-list li::before {
  content: ""; width: 5px; height: 16px; border-radius: 3px;
  background: var(--vermilion); transform: skewX(-28deg); flex: none;
}
.on-dark .eyebrow { color: #aab4bd; }
.on-dark .eyebrow::before, .on-dark .tick-list li::before { background: var(--vermilion-lt); }

.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tick-list li { display: flex; gap: 14px; align-items: baseline; }
.tick-list li::before { height: 13px; width: 4px; transform: skewX(-28deg) translateY(1px); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 1rem/1 var(--font-body);
  padding: 16px 24px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--vermilion); color: var(--white); }
.btn-primary:hover { background: #a93416; }
.btn-ghost { color: var(--ink); border-color: rgba(20, 32, 43, .25); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 242, 234, .88);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--mist); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--vermilion); }
.nav-links .btn { padding: 12px 20px; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--mist);
    padding: 8px var(--gutter) 24px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--mist); }
  .nav-links li:last-child { margin-top: 18px; }
  .nav-links .btn { width: 100%; padding: 16px; }
}

/* ---- Hero ---- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 em { color: var(--vermilion); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #2f3d49; max-width: 34em; margin-bottom: 32px; font-weight: 300; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.journey {
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow);
  padding: 28px; position: relative;
}
.journey-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.journey-head span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); font-weight: 500; }
.journey-head img { width: 34px; height: 34px; }
.journey ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.journey li {
  counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px;
  padding: 16px 0; border-top: 1px solid var(--mist); align-items: start;
}
.journey li::before {
  content: "0" counter(step);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--vermilion);
  padding-top: 1px;
}
.journey strong { display: block; font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
.journey small { color: var(--slate); font-size: .9rem; line-height: 1.45; display: block; }

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

/* Credentials under the hero CTAs */
.creds { list-style: none; margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid var(--mist); display: flex; flex-wrap: wrap; gap: 14px 36px; }
.creds li { display: flex; align-items: center; gap: 12px; font-size: .92rem; line-height: 1.3; color: #2f3d49; }
.creds strong { font-weight: 500; color: var(--ink); display: block; }
.creds svg { width: 38px; height: 38px; flex: none; }
.creds .seal { fill: var(--ink); }
.creds .check { fill: none; stroke: var(--vermilion-lt); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.creds .n { font-family: var(--font-display); font-weight: 600; font-size: 2.3rem; line-height: 1; color: var(--vermilion); }

/* About stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 0; }
.stats div { background: var(--paper); border: 1px solid var(--mist); border-radius: var(--radius-sm); padding: 18px; }
.stats dt { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; line-height: 1.1; color: var(--ink); }
.stats div:first-child dt { font-size: 1.15rem; line-height: 1.25; padding-top: 4px; min-height: 2.1rem; }
.stats dd { margin: 6px 0 0; font-size: .85rem; color: var(--slate); line-height: 1.4; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

/* Language switch */
.lang { display: flex; align-items: center; gap: 2px; font-size: .82rem; font-weight: 500; letter-spacing: .06em; }
.lang a, .lang span { padding: 5px 8px; border-radius: 6px; }
.nav-links .lang a { color: var(--slate); font-size: .82rem; }
.lang span[aria-current] { background: var(--ink); color: var(--paper); }
@media (max-width: 860px) {
  .nav-links li.lang { margin-top: 16px; }
  .nav-links .lang a { display: inline-block !important; border: 0 !important; padding: 8px 12px !important; }
  .nav-links .lang span { padding: 8px 12px; }
}

/* ---- Products strip ---- */
.products { border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); padding: 28px 0; }
.products .container { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.products p { margin: 0; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: .92rem; padding: 7px 14px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--mist); }

/* ---- Sections ---- */
section { scroll-margin-top: 80px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: #3a4752; font-size: 1.08rem; font-weight: 300; }

.on-dark { background: var(--ink); color: var(--paper); }
.on-dark h2, .on-dark h3 { color: var(--paper); }
.on-dark .section-head p, .on-dark p { color: #c9d0d6; }

/* ---- Services ---- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service {
  background: var(--ink-2); border: 1px solid rgba(246, 242, 234, .08);
  border-radius: var(--radius); padding: clamp(26px, 3vw, 38px);
  display: flex; flex-direction: column;
}
.service .num { font-family: var(--font-display); color: var(--vermilion-lt); font-weight: 600; font-size: 1rem; margin-bottom: 26px; }
.service h3 { font-size: 1.65rem; margin-bottom: 10px; }
.service > p { margin-bottom: 22px; }
.service .tick-list { font-size: .95rem; color: #dfe4e8; }
.service .for { margin-top: auto; padding-top: 24px; font-size: .88rem; color: #9aa6b0; }
.service .for strong { color: var(--paper); font-weight: 500; }
@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } }

/* ---- Principles ---- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.principle { border-top: 2px solid var(--ink); padding-top: 24px; }
.principle h3 { font-size: 1.35rem; }
.principle p { color: #3a4752; margin: 0; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* ---- About ---- */
.about { background: var(--paper-2); }
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--ink);
  display: grid; place-items: center; position: relative;
}
.portrait img.symbol { width: 44%; }
.portrait img.photo { width: 100%; height: 100%; object-fit: cover; }
.about blockquote {
  margin: 0 0 24px; font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.35; font-weight: 500; text-wrap: balance;
}
.about p { color: #3a4752; max-width: 38em; }
.about .sig { display: flex; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.about .sig strong { font-weight: 500; }
.about .sig span { color: var(--slate); }
.link-arrow { font-weight: 500; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow:hover { text-decoration: underline; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .portrait { max-width: 260px; } }

/* ---- Contact / lead form ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.next-steps { margin-top: 32px; list-style: none; padding: 0; counter-reset: ns; display: grid; gap: 18px; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 36px 1fr; gap: 12px; color: #c9d0d6; }
.next-steps li::before {
  content: counter(ns); width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--vermilion-lt); color: var(--vermilion-lt);
  display: grid; place-items: center; font-size: .85rem; font-weight: 500;
}
.next-steps strong { color: var(--paper); font-weight: 500; display: block; }

.lead-form {
  background: var(--paper); color: var(--ink); border-radius: 20px;
  padding: clamp(24px, 4vw, 44px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label, .field legend { font-size: .88rem; font-weight: 500; }
.field .opt { color: var(--slate); font-weight: 400; }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--mist); border-radius: var(--radius-sm);
  padding: 13px 14px; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2314202B' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(191, 61, 28, .15);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--vermilion); }

.pills { border: 0; padding: 0; margin: 0 0 18px; }
.pills legend { margin-bottom: 10px; font-size: .88rem; font-weight: 500; padding: 0; }
.pills-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label {
  font-size: .9rem; padding: 9px 15px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--mist); background: var(--white); transition: all .15s ease; user-select: none;
}
.pills label:hover { border-color: var(--slate); }
.pills input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pills input:focus-visible + label { outline: 3px solid var(--vermilion); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--slate); margin: 4px 0 24px; line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--vermilion); flex: none; }
.lead-form .btn { width: 100%; padding: 18px; font-size: 1.02rem; }
.form-note { font-size: .8rem; color: var(--slate); text-align: center; margin: 14px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #9aa6b0; border-top: 1px solid rgba(246, 242, 234, .1); padding: 40px 0; font-size: .9rem; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer img { height: 22px; width: auto; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: #c9d0d6; text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }

/* ---- Simple pages (thank-you, legal, 404) ---- */
.page { padding: clamp(64px, 10vw, 120px) 0; min-height: 60vh; }
.page .container { max-width: 780px; }
.page h2 { font-size: 1.5rem; margin-top: 2em; }
.page p, .page li { color: #2f3d49; }
.todo { background: #fff4d6; border: 1px dashed #c9a227; padding: 1px 6px; border-radius: 4px; font-size: .92em; }
.centered { text-align: center; }
.centered .eyebrow { justify-content: center; }
.big-symbol { width: 84px; margin: 0 auto 28px; }

/* ---- Reveal on scroll (progressive enhancement) ---- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* fixes */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--white); }
.creds .n { min-width: 38px; text-align: center; }

/* About: certification list + name origin */
.cert-list { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--mist); }
.cert-label { font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin: 0 0 12px; }
.cert-list .chips { margin-bottom: 16px; }
.cert-list .chips li { background: var(--paper); font-size: .85rem; padding: 6px 12px; }
.cert-list .chips li:first-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.name-origin { font-size: .92rem; color: var(--slate) !important; }
.name-origin em { color: var(--ink); }

/* Salesforce Partner badge — used unaltered; clear space ≥ 2× cap height of "PARTNER"
   (≈19px at 40px tall, ≈17px at 36px tall). Min width 80px. */
.creds { gap: 22px 28px; align-items: center; }
.creds .partner img { height: 40px; width: auto; min-width: 80px; display: block; }
.foot-brand { display: flex; align-items: center; gap: 32px; }
.site-footer .foot-brand img.partner-foot { height: 36px; width: auto; }
