/* ==========================================================================
   Corevia Digital Services — global stylesheet
   Palette: deep teal ink + saffron accent on cool bone paper
   Type: Bricolage Grotesque (display) / IBM Plex Sans (body) / IBM Plex Mono (labels)
   ========================================================================== */

:root {
  --ink: #0B2422;
  --teal: #12514C;
  --teal-deep: #0E3B37;
  --teal-soft: #E3ECE9;
  --amber: #E39B23;
  --amber-soft: #FBEBD0;
  --paper: #F4F4F0;
  --white: #FFFFFF;
  --slate: #56635F;
  --line: #DDE0D9;
  --line-dark: #21514C;

  --max: 1180px;
  --gut: 24px;
  --radius: 4px;
  --radius-lg: 10px;

  --f-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --f-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: 12px 18px; z-index: 999; font-family: var(--f-mono); font-size: 13px;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.55rem, 6.4vw, 4.5rem); }
h2 { font-size: clamp(1.95rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.1rem, 1.9vw, 1.32rem);
  line-height: 1.55;
  color: var(--slate);
  max-width: 46ch;
}

/* the monospaced label system — used for every eyebrow, code and tag */
.label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 18px;
  display: block;
}
.label--dim { color: var(--slate); }
.label--light { color: var(--amber); }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
}
.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--dark { background: var(--teal-deep); color: #E8F0EE; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .lead { color: #B9CCC8; }
.section--white { background: var(--white); }
.section + .section--dark { border-top: none; }

/* the spec-sheet rail: mono label in a narrow gutter, content beside it */
.rail { display: grid; gap: 14px; }
.rail > .label { margin-bottom: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--dark .divider { background: var(--line-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 15px 24px;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--white);
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { background: var(--teal); border-color: var(--teal); text-decoration: none; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn--amber:hover { background: #f0ad3d; border-color: #f0ad3d; color: var(--ink); }
.btn--onDark { background: transparent; border-color: #4E7B76; color: var(--white); }
.btn--onDark:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.arrow-link {
  font-family: var(--f-mono); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 7px;
  border-bottom: 1.5px solid var(--amber); padding-bottom: 3px;
}
.arrow-link:hover { text-decoration: none; gap: 12px; }
.arrow-link span { transition: transform 0.2s var(--ease); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 244, 240, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: var(--radius);
  background: var(--teal-deep); color: var(--amber);
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 1.05rem;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--f-display); font-weight: 700; font-size: 1.06rem;
  letter-spacing: -0.02em; color: var(--ink); line-height: 1.1;
}
.brand-sub {
  font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--slate); display: block;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: var(--f-mono); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.nav a:hover { color: var(--teal); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--teal); border-bottom: 2px solid var(--amber); padding-bottom: 2px; }
.header-cta { display: inline-flex; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--ink);
  border-radius: var(--radius); padding: 9px 12px; cursor: pointer;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink);
}

/* ---------- hero ---------- */
.hero { padding: 86px 0 58px; position: relative; overflow: hidden; }
.hero h1 { max-width: 15ch; margin-bottom: 24px; }
.hero .lead { max-width: 52ch; }
.hero-accent { color: var(--teal); position: relative; white-space: nowrap; }
.hero-accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 0.16em;
  background: var(--amber); opacity: 0.55; z-index: -1;
}

/* signature element: the machine-readout credentials strip */
.spec-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.spec-strip .wrap {
  display: flex; flex-wrap: wrap; gap: 0;
}
.spec-item {
  flex: 1 1 190px;
  padding: 18px 22px 18px 0;
  border-right: 1px solid var(--line);
  margin-right: 22px;
}
.spec-item:last-child { border-right: 0; margin-right: 0; }
.spec-key {
  font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--slate); display: block; margin-bottom: 5px;
}
.spec-val {
  font-family: var(--f-mono); font-size: 0.86rem; font-weight: 600;
  color: var(--ink); letter-spacing: 0.01em; word-break: break-all;
}
.spec-val .dot { color: var(--amber); }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--teal); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 0.96rem; }
.card .label { margin-bottom: 14px; }
.card ul { margin: 14px 0 0; padding-left: 0; list-style: none; }
.card ul li {
  font-size: 0.92rem; color: var(--slate); padding-left: 20px; position: relative;
  margin-bottom: 7px; line-height: 1.5;
}
.card ul li::before {
  content: "→"; position: absolute; left: 0; color: var(--amber); font-weight: 700;
}
.card-foot { margin-top: auto; padding-top: 20px; }

/* tag pills for service phase */
.tag {
  font-family: var(--f-mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 3px;
  background: var(--teal-soft); color: var(--teal);
  display: inline-block;
  align-self: flex-start;
  justify-self: start;
  width: fit-content;
}
.tag--grow { background: var(--amber-soft); color: #8A5A0B; }
.tag--support { background: #E9E7F2; color: #4C4477; }

/* ---------- process (a real sequence, so numbered) ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 74px 1fr; gap: 26px;
  padding: 28px 0; border-top: 1px solid var(--line-dark);
}
.step:last-child { border-bottom: 1px solid var(--line-dark); }
.step::before {
  content: "0" counter(step);
  font-family: var(--f-mono); font-size: 1.5rem; font-weight: 600;
  color: var(--amber); line-height: 1;
}
.step h3 { margin-bottom: 8px; }
.step p { color: #B9CCC8; font-size: 0.98rem; max-width: 62ch; }

/* ---------- stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-num {
  font-family: var(--f-display); font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--ink);
}
.section--dark .stat-num { color: var(--amber); }
.stat-key {
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--slate); margin-top: 9px; display: block;
}
.section--dark .stat-key { color: #A8BFBB; }

/* ---------- work / case cards ---------- */
.case {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.case:hover { border-color: var(--teal); transform: translateY(-3px); }
.case-visual {
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em;
  color: rgba(255,255,255,0.92); text-align: center; padding: 20px;
  background: var(--teal-deep);
}
.case-visual.v2 { background: #1C4A6B; }
.case-visual.v3 { background: #6B3F2A; }
.case-visual.v4 { background: #37456B; }
.case-visual.v5 { background: #2F5A3C; }
.case-visual.v6 { background: #5C2E4C; }
.case-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.case-body p { color: var(--slate); font-size: 0.95rem; }
.case-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.case-meta span {
  font-family: var(--f-mono); font-size: 0.63rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--slate);
  border: 1px solid var(--line); border-radius: 3px; padding: 3px 8px;
}
.case-result {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 0.78rem; color: var(--teal); font-weight: 600;
}

/* ---------- pricing ---------- */
.price-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 26px 32px;
  display: flex; flex-direction: column;
}
.price-card.is-featured { border: 2px solid var(--teal); position: relative; }
.price-flag {
  position: absolute; top: -12px; left: 26px;
  background: var(--amber); color: var(--ink);
  font-family: var(--f-mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 11px; border-radius: 3px;
}
.price-amt {
  font-family: var(--f-display); font-size: 2.35rem; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1; margin: 6px 0 4px;
}
.price-note { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 26px; }
.price-card ul li {
  font-size: 0.93rem; color: var(--slate); padding-left: 22px; position: relative; margin-bottom: 9px;
}
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.price-card .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ---------- testimonials ---------- */
.quote {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 26px;
  display: flex; flex-direction: column;
}
.quote blockquote {
  margin: 0 0 20px; font-size: 1.02rem; line-height: 1.6; color: var(--ink);
}
.quote blockquote::before { content: "“"; color: var(--amber); font-size: 2.4rem; font-family: var(--f-display); line-height: 0; vertical-align: -0.28em; margin-right: 3px; }
.quote-by { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.quote-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 0.9rem;
}
.quote-name { font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.quote-role { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--f-display); font-weight: 600; font-size: 1.06rem;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--f-mono); font-size: 1.4rem; color: var(--amber); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 40px 24px 0; color: var(--slate); font-size: 0.97rem; max-width: 70ch; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--slate);
}
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: 0.98rem; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); width: 100%;
  transition: border-color 0.16s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-family: var(--f-mono); font-size: 0.7rem; color: var(--slate); letter-spacing: 0.04em; margin-top: 14px; }

/* ---------- contact detail list ---------- */
.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.detail-list li:first-child { padding-top: 0; }
.detail-key {
  font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--slate); display: block; margin-bottom: 4px;
}
.detail-val { font-size: 1rem; font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--white); padding: 74px 0; }
.cta-band h2 { color: var(--white); max-width: 16ch; }
.cta-band p { color: #A9BDB9; max-width: 48ch; font-size: 1.08rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-deep); color: #B9CCC8; padding: 62px 0 28px; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
.site-footer h4 {
  font-family: var(--f-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 16px;
}
.site-footer a { color: #DCE7E4; }
.site-footer a:hover { color: var(--white); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: #8FA8A4; }
.footer-legal {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: #8FA8A4;
}
.footer-regs { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px;
  background: #128C7E; color: var(--white);
  padding: 13px 18px; border-radius: 100px;
  font-family: var(--f-mono); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(11, 36, 34, 0.24);
  transition: transform 0.18s var(--ease);
}
.wa-float:hover { text-decoration: none; transform: translateY(-3px); color: var(--white); }
.wa-float svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- article ---------- */
.article { max-width: 720px; margin: 0 auto; }
.article h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.8em; }
.article h3 { margin-top: 1.6em; }
.article ul, .article ol { padding-left: 22px; color: var(--slate); }
.article li { margin-bottom: 9px; }
.article-meta {
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 18px;
}

/* ---------- legal pages ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-top: 2em; }
.legal ul { padding-left: 22px; color: var(--slate); }
.legal li { margin-bottom: 8px; }
.legal p { color: var(--slate); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.d1.is-in { transition-delay: 0.08s; }
.reveal.d2.is-in { transition-delay: 0.16s; }
.reveal.d3.is-in { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gut) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.84rem; }
  .nav a[aria-current="page"] { border-bottom: 1px solid var(--line); color: var(--teal); }
  .nav-toggle { display: inline-block; }
  .header-cta { display: none; }
  .site-header .wrap { position: relative; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 58px 0 44px; }
  .section { padding: 58px 0; }
  .spec-item { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 0; margin-right: 0; }
  .spec-item:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; }
  .wa-float { padding: 12px 15px; font-size: 0; gap: 0; }
  .wa-float svg { width: 21px; height: 21px; }
}
