/* ============================================================
   KOLVIS — shared design system (referenced by every page)
============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --bone: #F8F5EE;
  --bone-2: #F1EDE2;
  --bone-3: #E6E0D0;
  --bone-4: #D9D2BF;

  --ink: #0A0B0C;
  --ink-2: #1C1E21;
  --ink-3: #43464B;
  --muted: #6D6B65;
  --muted-2: #9B9790;

  --rule: rgba(10,11,12,0.08);
  --rule-2: rgba(10,11,12,0.14);
  --rule-3: rgba(10,11,12,0.22);

  --dark: #0A0B0C;
  --dark-2: #111214;
  --dark-3: #181A1D;
  --dark-4: #22252A;
  --dark-rule: rgba(255,255,255,0.08);
  --dark-rule-2: rgba(255,255,255,0.14);
  --dark-text: #EDEAE3;
  --dark-muted: #8F8D86;

  --accent: #D4552B;
  --accent-2: #E87150;
  --accent-3: #A63D15;
  --accent-soft: #F6E2D6;
  --accent-glow: rgba(212,85,43,0.14);

  --green: #2E9E5C;
  --blue: #3B82C4;

  --f-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.58;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--bone); }
.dark-section ::selection { background: var(--accent); color: var(--dark-text); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); position: relative; }
.dark-section { background: var(--dark); color: var(--dark-text); }

/* ---------- NAV (shared) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,245,238,0.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-weight: 800;
  font-size: 21px; letter-spacing: -0.03em;
  color: var(--ink);
}
.brand-mark { width: 28px; height: 28px; position: relative; flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; }
.nav-links {
  display: flex; align-items: center; gap: 36px;
  font-size: 14px; font-weight: 500; color: var(--ink-3);
}
.nav-links a { transition: color 0.2s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--ink); color: var(--bone);
  border-radius: 10px;
  font-size: 13.5px; font-weight: 500;
  transition: all 0.25s var(--ease);
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav-cta svg { transition: transform 0.25s var(--ease); }
.nav-cta:hover svg { transform: translateX(2px); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bone);
  padding: 14px 22px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500;
  transition: all 0.2s var(--ease);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 6px 16px -4px rgba(212,85,43,0.35); }
.btn-primary svg { transition: transform 0.25s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1.5px solid var(--rule-3); color: var(--ink);
  border-radius: 10px;
  font-size: 14.5px; font-weight: 500;
  background: rgba(255,255,255,0.3);
  transition: all 0.2s var(--ease);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--bone-2); }

.btn-accent {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: var(--bone);
  padding: 14px 24px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500;
  transition: all 0.2s var(--ease);
}
.btn-accent:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 8px 20px -4px rgba(212,85,43,0.35); }
.btn-accent svg { transition: transform 0.25s var(--ease); }
.btn-accent:hover svg { transform: translateX(3px); }

.btn-ghost-dark {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border: 1.5px solid var(--dark-rule-2); color: var(--dark-text);
  border-radius: 10px;
  font-size: 14.5px; font-weight: 500;
  transition: all 0.2s var(--ease);
}
.btn-ghost-dark:hover { border-color: var(--accent); color: var(--accent); }

.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 500;
  color: var(--accent);
  transition: gap 0.25s var(--ease);
}
.btn-link:hover { gap: 10px; }
.btn-link:hover svg { transform: translateX(0); }

/* ---------- SECTION PRIMITIVES ---------- */
section.block { padding: clamp(90px, 12vw, 140px) 0; }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; font-weight: 500;
}
.section-label::before { content: ""; width: 22px; height: 1px; background: var(--accent); }

.section-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: -0.04em;
  margin: 0 0 24px; max-width: 22ch;
}
.section-title.center {
  font-size: clamp(48px, 6.8vw, 92px);
  max-width: 26ch; margin-left: auto; margin-right: auto; text-align: center;
  line-height: 1;
}
.dark-section .section-title { color: var(--dark-text); }

.section-lede {
  font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-3);
  line-height: 1.6; max-width: 58ch; margin: 0;
}
.section-lede.center { margin: 0 auto; text-align: center; }
.dark-section .section-lede { color: var(--dark-muted); }
.section-head-center { text-align: center; max-width: 1040px; margin: 0 auto clamp(60px, 8vw, 84px); }

/* ---------- CATEGORY CHIP ---------- */
.chip {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent-soft);
  color: var(--accent-3);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.chip.dark { background: var(--accent-glow); color: var(--accent-2); }
.chip.green { background: rgba(46,158,92,0.12); color: var(--green); }
.chip.blue { background: rgba(59,130,196,0.14); color: var(--blue); }
.chip.neutral { background: var(--bone-3); color: var(--ink-3); }

/* ---------- SERVICE CARD (real image backgrounds) ---------- */
.service-card-img {
  background: var(--bone);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s var(--ease);
  display: flex; flex-direction: column;
  height: 100%;
}
.service-card-img:hover {
  transform: translateY(-4px);
  border-color: var(--rule-3);
  box-shadow: 0 16px 40px -16px rgba(10,11,12,0.18);
}
.sc-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink);
}
.sc-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card-img:hover .sc-image img { transform: scale(1.06); }
.sc-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,12,0.15) 0%, rgba(10,11,12,0.35) 100%);
  pointer-events: none;
}
.sc-chip {
  position: absolute; top: 16px; left: 16px;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sc-chip .chip {
  background: rgba(212,85,43,0.92);
  color: #FFFFFF;
  font-weight: 600;
  padding: 7px 14px;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.sc-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.sc-body h3 {
  font-family: var(--f-display); font-weight: 700;
  font-size: 19px; letter-spacing: -0.02em;
  margin: 0 0 10px; color: var(--ink);
}
.sc-body p {
  font-size: 14px; color: var(--ink-3); line-height: 1.58;
  margin: 0 0 18px;
  flex: 1;
}
.sc-benefits {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.sc-benefits li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--muted);
  line-height: 1.5;
}
.sc-benefits li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 8px;
}
.sc-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.sc-footer .btn-link { color: var(--ink); font-weight: 600; }
.sc-footer .btn-link:hover { color: var(--accent); }

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.02em;
  color: var(--muted);
}
.breadcrumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.breadcrumbs li { display: flex; align-items: center; gap: 10px; }
.breadcrumbs li:not(:last-child)::after {
  content: "→"; color: var(--muted-2); font-size: 11px;
}
.breadcrumbs a { color: var(--muted); transition: color 0.2s var(--ease); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs li:last-child { color: var(--ink); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--dark); color: var(--dark-text);
  padding: 60px 0 32px;
  border-top: 1px solid var(--dark-rule);
}
.foot-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 44px; margin-bottom: 56px;
}
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px) { .foot-top { grid-template-columns: 1fr; gap: 28px; } }
.foot-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-weight: 800;
  font-size: 21px; letter-spacing: -0.03em;
  margin-bottom: 14px; color: var(--dark-text);
}
.foot-tag { color: var(--dark-muted); font-size: 13.5px; max-width: 32ch; line-height: 1.58; }
.foot-col h5 {
  font-family: var(--f-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin: 0 0 18px; font-weight: 600;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.foot-col a, .foot-col li { font-size: 13.5px; color: var(--dark-text); transition: color 0.2s var(--ease); }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-rule-2);
  font-family: var(--f-mono);
  font-size: 11.5px; color: var(--dark-muted);
  flex-wrap: wrap; letter-spacing: 0.02em;
}
.foot-bottom .op { color: var(--green); display: inline-flex; gap: 8px; align-items: center; }
.foot-bottom .op::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); animation: blink 2s ease-in-out infinite;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
