/* ==========================================================================
   Convera Solutions — design system
   Three-colour scheme, sampled directly from the company logo:
     1. Logo Navy  #000E2B  structure, type, dark sections (the logo's canvas)
     2. Brand Teal #16D3BD  the accent — the logo's gradient, teal to blue
     3. Cloud      #F2F5F7  surfaces and section separation
   Everything else is white or a tint/shade of those three.

   Accessibility note: the logo teal is built for dark backgrounds (10.1:1 on
   navy). On white it only reaches 1.9:1, so interactive elements on light
   surfaces use --teal (4.84:1 with white text, WCAG AA) and the logo colours
   are reserved for accents on dark, gradients and graphics.
   ========================================================================== */

:root {
  /* --- the three brand colours --- */
  --ink: #000e2b;
  --teal: #0a7f7c;
  --cloud: #f2f5f7;

  /* --- the logo gradient, for accents on dark surfaces and graphics --- */
  --brand-teal: #16d3bd;
  --brand-cyan: #0fc0de;
  --brand-blue: #10a4f3;

  /* --- tints and shades derived from the three --- */
  --ink-deep: #00081a;
  --ink-mid: #17314c;
  --ink-soft: #46617a;
  --ink-faint: #8397ab;
  --teal-dark: #06615f;
  --teal-deep: #044e4c;
  --teal-tint: #e6f6f4;
  --line: #dde4e8;
  --line-strong: #c6d1d8;
  --white: #ffffff;

  /* --- type --- */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;

  /* --- scale --- */
  --shell: 1180px;
  --radius: 4px;
  --radius-lg: 8px;
  --gap: 24px;
  --section-y: clamp(64px, 8vw, 112px);

  --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(13, 27, 42, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(13, 27, 42, 0.28);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------------------------- reset */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-mid);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
h4 { font-size: 1rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-dark); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--teal-deep); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: 0.4em; }

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

/* Visually hidden but announced by screen readers. */
.sr-only {
  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: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------------------------------------------------------------- layout */

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-y) 0; }
.section--tight { padding: clamp(44px, 5vw, 68px) 0; }
.section--cloud { background: var(--cloud); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, 0.76); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: var(--white); }
.section--line { border-top: 1px solid var(--line); }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.stack > * + * { margin-top: 12px; }

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

/* ------------------------------------------------------------- typography */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-dark);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; display: block;
  background: linear-gradient(90deg, var(--teal), var(--brand-blue));
}
.section--ink .eyebrow { color: var(--brand-teal); }
.section--ink .eyebrow::before { background: linear-gradient(90deg, var(--brand-teal), var(--brand-blue)); }

.lead { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--ink-soft); max-width: 62ch; }
.section--ink .lead { color: rgba(255, 255, 255, 0.72); }
.section-head { max-width: 66ch; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.02em; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border: 1px solid transparent; border-radius: var(--radius);
  font-size: 0.94rem; font-weight: 600; letter-spacing: 0.01em;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }

.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-mid); color: var(--white); }

.btn-outline { border-color: var(--line-strong); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); background: var(--cloud); }

.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.32); }
.btn-ghost:hover { color: var(--ink); background: var(--white); border-color: var(--white); }

.btn-sm { padding: 9px 16px; font-size: 0.86rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.link-arrow::after { content: "→"; transition: transform 0.18s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* -------------------------------------------------------------------- tags */

.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--cloud); border: 1px solid var(--line);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.tag--teal { background: var(--teal-tint); border-color: rgba(10, 127, 124, 0.28); color: var(--teal-deep); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.section--ink .tag { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.8); }

/* ------------------------------------------------------------------ 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(--line);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }

/* The logo tile. The company logo is a square lockup (mark above wordmark); the
   mark itself sits at 376,246 470x470 within the 1254px artwork, so we scale the
   image to 1254/470 = 2.668x the tile and offset it to show only the mark.
   Ratios are expressed against --tile so one rule covers every size. */
.brand-mark {
  --tile: 32px;
  width: var(--tile); height: var(--tile);
  border-radius: var(--radius);
  background: var(--ink);
  overflow: hidden; flex: none; display: block;
}
.brand-mark img {
  display: block; border: 0;
  max-width: none;   /* must escape the global img { max-width: 100% } */
  width: calc(var(--tile) * 2.668); height: calc(var(--tile) * 2.668);
  margin: calc(var(--tile) * -0.523) 0 0 calc(var(--tile) * -0.8);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-text span {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint);
}

.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li { margin: 0; position: relative; }
.nav a, .nav .nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 12px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 550; color: var(--ink-mid);
  background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav .nav-trigger:hover { background: var(--cloud); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--teal-dark); background: var(--teal-tint); }
.nav-trigger svg { width: 11px; height: 11px; transition: transform 0.2s var(--ease); }
.nav .has-menu[data-open="true"] .nav-trigger svg { transform: rotate(180deg); }

.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-6px);
  width: min(660px, 78vw); padding: 14px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transition: all 0.18s var(--ease);
}
.has-menu[data-open="true"] .nav-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-menu li { margin: 0; }
.nav-menu a {
  display: block; padding: 9px 12px; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 550;
}
.nav-menu a small { display: block; font-weight: 400; font-size: 0.76rem; color: var(--ink-faint); margin-top: 2px; }
.nav-menu .menu-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.nav-menu .menu-all a { color: var(--teal-dark); font-weight: 650; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink-mid); cursor: pointer; transition: all 0.18s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }

.burger { display: none; width: 38px; height: 38px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 50%; width: 17px; height: 1.5px; background: var(--ink);
  transform: translateX(-50%); transition: all 0.2s var(--ease); content: "";
}
.burger span { top: 50%; margin-top: -0.75px; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

.search-panel { border-top: 1px solid var(--line); background: var(--white); }
.search-panel form { display: flex; gap: 10px; padding: 16px 0; }
.search-panel input { flex: 1; }

@media (max-width: 1040px) {
  .nav {
    position: fixed; inset: 72px 0 auto; margin: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - 72px); overflow-y: auto;
    padding: 12px 24px 28px;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a, .nav .nav-trigger { width: 100%; justify-content: space-between; padding: 13px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-menu {
    position: static; transform: none; width: 100%; box-shadow: none; border: 0;
    grid-template-columns: 1fr; padding: 4px 0 8px 14px;
    opacity: 1; visibility: visible; display: none;
  }
  .has-menu[data-open="true"] .nav-menu { display: grid; transform: none; }
  .burger { display: block; }
  .header-actions .btn { display: none; }
}

/* -------------------------------------------------------------------- hero */

.hero { position: relative; background: var(--ink); color: rgba(255, 255, 255, 0.78); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(680px 340px at 88% -8%, rgba(22, 211, 189, 0.26), transparent 70%),
    radial-gradient(560px 340px at 96% 40%, rgba(16, 164, 243, 0.18), transparent 72%),
    radial-gradient(520px 320px at 4% 108%, rgba(16, 164, 243, 0.12), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 78%);
}
.hero > .shell { position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero-home { padding: clamp(72px, 9vw, 128px) 0 clamp(64px, 7vw, 96px); }
.hero-page { padding: clamp(56px, 6.5vw, 92px) 0 clamp(48px, 5.5vw, 72px); }
.hero-copy { max-width: 60ch; }
.hero p { color: rgba(255, 255, 255, 0.74); font-size: clamp(1.02rem, 1.7vw, 1.18rem); }

.hero-panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.hero-panel h3 { font-size: 1rem; margin-bottom: 16px; }
.hero-checklist { list-style: none; padding: 0; margin: 0; }
.hero-checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; margin-bottom: 12px; }
.hero-checklist li:last-child { margin-bottom: 0; }
.hero-checklist svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--brand-teal); }

.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.breadcrumb li::after { content: "/"; margin-left: 8px; opacity: 0.45; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: rgba(255, 255, 255, 0.78); }
.breadcrumb a:hover { color: var(--white); }

/* ------------------------------------------------------------------- cards */

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  display: flex; flex-direction: column;
}
a.card { color: inherit; }
a.card:hover, .card--hover:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.93rem; color: var(--ink-soft); }
.card .card-foot { margin-top: auto; padding-top: 18px; }

.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--teal-tint); color: var(--teal-deep);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card-icon svg { width: 21px; height: 21px; }

.card--ink { background: var(--ink); border-color: var(--ink-mid); color: rgba(255,255,255,0.74); }
.card--ink h3 { color: var(--white); }
.card--ink p { color: rgba(255, 255, 255, 0.7); }
.card--ink .card-icon { background: rgba(22, 211, 189, 0.14); color: var(--brand-teal); }
.section--ink .check-list svg, .section--ink .footer-contact svg { color: var(--brand-teal); }

.service-card .card-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.card-foot.post-meta { display: flex; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--white); padding: 26px 22px; }
.stat b { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.02em; }
.section--ink .stats { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.14); }
.section--ink .stat { background: var(--ink); }
.section--ink .stat b { color: var(--white); }
.section--ink .stat span { color: rgba(255,255,255,0.6); }

/* process */
.process { counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.process-step { background: var(--white); padding: 26px 24px; }
.process-step .num { font-family: var(--mono); font-size: 0.78rem; color: var(--teal-dark); font-weight: 700; letter-spacing: 0.08em; }
.process-step h3 { font-size: 1.05rem; margin: 10px 0 8px; }
.process-step p { font-size: 0.89rem; color: var(--ink-soft); margin: 0; }

/* checklist */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 12px; font-size: 0.95rem; }
.check-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--teal); }

/* testimonial */
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 20px; font-size: 1rem; color: var(--ink-mid); }
.quote blockquote::before { content: "“"; display: block; font-size: 2.6rem; line-height: 0.6; color: var(--teal); margin-bottom: 12px; font-family: Georgia, serif; }
.quote footer { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; flex: none; }
.quote cite { font-style: normal; font-weight: 650; color: var(--ink); font-size: 0.92rem; display: block; }
.quote .role { font-size: 0.8rem; color: var(--ink-faint); }
.stars { color: var(--teal); font-size: 0.8rem; letter-spacing: 0.14em; margin-bottom: 12px; }

/* logo / marquee strip */
.logo-strip { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: center; justify-content: center; }
.logo-strip span { font-size: 0.98rem; font-weight: 650; letter-spacing: 0.02em; color: var(--ink-faint); }

/* --------------------------------------------------------------- accordion */

.accordion { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.accordion-item + .accordion-item { border-top: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 1rem; font-weight: 600; color: var(--ink);
}
.accordion-trigger:hover { background: var(--cloud); }
.accordion-trigger .plus { position: relative; width: 14px; height: 14px; flex: none; }
.accordion-trigger .plus::before, .accordion-trigger .plus::after {
  content: ""; position: absolute; background: var(--teal); transition: transform 0.2s var(--ease);
}
.accordion-trigger .plus::before { top: 6px; left: 0; width: 14px; height: 2px; }
.accordion-trigger .plus::after { left: 6px; top: 0; width: 2px; height: 14px; }
.accordion-trigger[aria-expanded="true"] .plus::after { transform: rotate(90deg); }
.accordion-panel { padding: 0 24px 22px; color: var(--ink-soft); font-size: 0.95rem; max-width: 78ch; }
.accordion-panel[hidden] { display: none; }

/* ------------------------------------------------------------------- forms */

.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.83rem; font-weight: 650; color: var(--ink); letter-spacing: 0.01em; }
.field label .req { color: var(--teal-dark); }
.field .hint { font-size: 0.78rem; color: var(--ink-faint); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="search"], select, textarea {
  width: 100%; padding: 12px 14px;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 0.94rem; color: var(--ink);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
textarea { resize: vertical; min-height: 132px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%234a5f70' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 11px; padding-right: 38px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10, 127, 124, 0.18); }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }

.field[data-invalid="true"] input, .field[data-invalid="true"] textarea, .field[data-invalid="true"] select { border-color: #c0392b; }
.field-error { font-size: 0.79rem; color: #c0392b; font-weight: 550; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 0.8rem; color: var(--ink-faint); }
.checkbox-row, .field label.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; font-weight: 400; color: var(--ink-soft); }
.checkbox-row input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--teal); flex: none; }

.alert { padding: 14px 16px; border-radius: var(--radius); font-size: 0.9rem; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.alert--ok { background: var(--teal-tint); border-color: rgba(10,127,124,0.35); color: var(--teal-deep); }
.alert--error { background: #fdf0ee; border-color: #e8bcb4; color: #a03224; }
.alert--info { background: var(--cloud); border-color: var(--line); color: var(--ink-soft); }
.alert[hidden] { display: none; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); }

.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input { flex: 1 1 200px; }
/* Stacked variant: flex-basis must not become a height in a column. */
.newsletter-form--stack { flex-direction: column; }
.newsletter-form--stack input, .newsletter-form--stack .btn { flex: 0 0 auto; width: 100%; }

/* -------------------------------------------------------------- filter bar */

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 28px; }
.chip {
  padding: 8px 15px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--white); font-size: 0.85rem; font-weight: 550; color: var(--ink-soft); cursor: pointer;
  transition: all 0.16s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filters .spacer { flex: 1 1 auto; }
.filters input[type="search"] { max-width: 260px; }

/* --------------------------------------------------------------- article */

.prose { max-width: 70ch; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { margin-top: 1.8em; }
.prose p { font-size: 1.02rem; color: var(--ink-mid); }
.prose > p:first-of-type { font-size: 1.1rem; color: var(--ink-soft); }
.prose ul li { font-size: 1rem; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--teal); color: var(--ink-soft); font-size: 1.05rem; }

.post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 0.83rem; color: var(--ink-faint); }
.post-meta .dot::before { content: "•"; margin-right: 14px; opacity: 0.5; }

.side-panel { background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.side-panel h3 { font-size: 0.95rem; }
.side-panel ul { list-style: none; padding: 0; margin: 0; }
.side-panel li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.side-panel li:last-child { border-bottom: 0; }
.side-nav { position: sticky; top: 92px; }

/* Full logo lockup, shown at size (About page). */
.logo-panel {
  margin: 0 0 20px; max-width: 320px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--ink); line-height: 0;
}
.logo-panel img { width: 100%; height: auto; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 42%; color: var(--ink-faint); font-weight: 550; }
.spec-table td { color: var(--ink); font-weight: 550; }

/* ------------------------------------------------------------------- cta */

.cta-band { background: var(--ink); color: rgba(255,255,255,0.75); border-radius: var(--radius-lg); padding: clamp(32px, 4vw, 52px); display: grid; grid-template-columns: minmax(0, 1.6fr) auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(520px 260px at 92% 0%, rgba(22,211,189,0.26), transparent 70%),
    radial-gradient(460px 240px at 100% 90%, rgba(16,164,243,0.18), transparent 72%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.72); margin: 0; max-width: 58ch; }
@media (max-width: 780px) { .cta-band { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--ink-deep); color: rgba(255,255,255,0.62); padding: clamp(52px, 6vw, 76px) 0 0; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px 32px; padding-bottom: 44px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 { color: var(--white); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,0.62); }
.site-footer a:hover { color: var(--white); }
.site-footer .brand { color: var(--white); margin-bottom: 16px; }
.site-footer .brand:hover { color: var(--white); }
.site-footer .brand-text span { color: rgba(255,255,255,0.45); }
.footer-about p { max-width: 34ch; margin-bottom: 18px; }

.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--brand-teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0 26px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.45);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom li { margin: 0; }

/* ------------------------------------------------------------------- misc */

.empty-state { padding: 48px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--ink-soft); }
.skeleton { border-radius: var(--radius-lg); background: var(--cloud); min-height: 180px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-md);
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top svg { width: 16px; height: 16px; }

.map-embed { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--cloud); min-height: 260px; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-soft); }

/* ------------------------------------------------------------------- admin */

.admin-body { background: var(--cloud); }
.admin-shell { max-width: 1320px; margin: 0 auto; padding: 24px; }
.admin-top { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-login { max-width: 400px; margin: 8vh auto; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 26px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.kpi b { display: block; font-size: 1.9rem; color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.kpi span { font-size: 0.78rem; color: var(--ink-faint); letter-spacing: 0.04em; text-transform: uppercase; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs button { padding: 11px 16px; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--teal); }

.table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.87rem; min-width: 820px; }
table.data th { text-align: left; padding: 13px 16px; background: var(--cloud); border-bottom: 1px solid var(--line); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); white-space: nowrap; }
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(242,245,247,0.6); }
table.data .msg { max-width: 340px; color: var(--ink-soft); }
table.data select { padding: 6px 28px 6px 10px; font-size: 0.8rem; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.badge--new { background: var(--teal-tint); color: var(--teal-deep); }
.badge--in-progress { background: #fff4e0; color: #8a5a10; }
.badge--won { background: #e6f4ea; color: #1c6b36; }
.badge--closed, .badge--rejected { background: var(--cloud); color: var(--ink-soft); }
.badge--spam { background: #fdf0ee; color: #a03224; }
.badge--screening, .badge--interview, .badge--offer { background: var(--teal-tint); color: var(--teal-deep); }

.bar-list { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 1fr 46px; gap: 12px; align-items: center; font-size: 0.85rem; }
.bar-track { height: 8px; background: var(--cloud); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--brand-blue)); }
.bar-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 5px; color: var(--ink-soft); }

.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

@media print {
  .site-header, .site-footer, .to-top, .btn { display: none !important; }
  body { color: #000; }
}

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