/* DekSites shared styles
   Used by: /index.html (optional), /services/[name]/index.html
   Keep this in sync with the inline styles in /index.html. If you ever
   move the homepage to use this file, delete the <style> block in
   index.html and add: <link rel="stylesheet" href="/styles.css" />
*/

:root {
  --bg: #F4F2EC;
  --bg-2: #ECEAE2;
  --ink: #14130F;
  --ink-2: #2A2823;
  --muted: #7A766B;
  --muted-2: #A8A498;
  --line: #D9D5C8;
  --line-2: #C7C2B2;
  --accent: #C2533A;
  --accent-soft: #E8C9BF;
  --card: #FBFAF6;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.mono { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.section { padding: 96px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
@media (max-width: 720px) { .section { padding: 64px 0; } }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.eyebrow .num {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.eyebrow .ttl {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow .line { flex: 1; height: 1px; background: var(--line); }

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 500; }
h1 { font-size: clamp(40px, 6.5vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.05; letter-spacing: -0.025em; }
h3 { font-size: 22px; line-height: 1.2; }
p  { margin: 0; line-height: 1.6; color: var(--ink-2); }

/* Header */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: ""; position: absolute;
  inset: 4px;
  border-radius: 3px;
  border: 1.5px solid var(--bg);
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--ink-2);
  transition: color .15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 14px;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--ink); color: var(--bg) !important; }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* Service page hero */
.svc-hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
}
.svc-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  opacity: .5;
  pointer-events: none;
}
.svc-hero .wrap { position: relative; }
.crumbs {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.crumbs a { color: var(--muted); transition: color .15s; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { padding: 0 8px; color: var(--line-2); }
.svc-hero h1 { max-width: 24ch; }
.svc-hero h1 em {
  font-style: normal;
  color: var(--accent);
  font-weight: 400;
}
.svc-hero .sub {
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}
.svc-hero .ctas {
  margin-top: 32px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* Quick facts row */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 56px;
}
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
}
.fact {
  background: var(--card);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 4px;
}
.fact .k {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fact .v {
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Content body */
.content {
  max-width: 760px;
  margin: 0 auto;
}
.content h2 { margin-top: 56px; margin-bottom: 20px; }
.content h2:first-child { margin-top: 0; }
.content h3 { margin-top: 36px; margin-bottom: 12px; }
.content p { font-size: 17px; margin-bottom: 16px; }
.content ul, .content ol {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  padding-left: 0;
  margin: 16px 0 24px;
  list-style: none;
}
.content ul li, .content ol li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.content ul li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
}
.content ol { counter-reset: step; }
.content ol li {
  counter-increment: step;
}
.content ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  top: 4px;
}
.content strong { color: var(--ink); font-weight: 600; }
.content a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  transition: color .15s;
}
.content a:hover { color: var(--accent); }

/* "Who this is for" callout */
.audience {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 32px 28px;
  margin: 48px 0;
}
.audience h3 {
  font-size: 20px;
  margin: 0 0 16px;
}
.audience ul {
  margin: 0;
  list-style: none;
  padding: 0;
}
.audience li {
  font-size: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  display: flex; align-items: baseline; gap: 12px;
}
.audience li:last-child { border-bottom: 0; }
.audience li::before {
  content: "→";
  color: var(--accent);
  font-family: 'Geist Mono', monospace;
  flex-shrink: 0;
}

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin: 24px 0 32px;
}
.step {
  background: var(--card);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: start;
}
.step .n {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.step h4 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 600px) {
  .step { grid-template-columns: 1fr; gap: 4px; padding: 20px 22px; }
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  background: var(--card);
  transition: background .2s;
}
.faq-item:hover { background: #fff; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: 'Geist Mono', monospace;
  font-size: 20px;
  color: var(--accent);
  transition: transform .25s ease;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 28px 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 70ch;
}
@media (max-width: 600px) {
  .faq-item summary { padding: 20px 22px; font-size: 16px; }
  .faq-item .faq-body { padding: 0 22px 20px; }
}

/* Related services */
.related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 32px;
}
@media (max-width: 720px) {
  .related { grid-template-columns: 1fr; }
}
.related a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s, transform .15s;
}
.related a:hover { border-color: var(--ink-2); transform: translateY(-2px); }
.related .tag {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.related h3 {
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.related p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* CTA section */
.cta {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0;
  border-top: 1px solid var(--ink);
}
.cta h2 { color: var(--bg); }
.cta p {
  color: #BDB9AD;
  font-size: 17px;
  margin: 16px 0 28px;
  max-width: 50ch;
}
.cta .btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cta .btn:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cta .btn.ghost {
  background: transparent;
  color: var(--bg);
  border-color: var(--muted);
}
.cta .btn.ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cta .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
footer.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.foot-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.foot-inner a:hover { color: var(--ink); }
.foot-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.foot-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--muted);
  transition: color .15s ease, background .15s ease;
}
.foot-social:hover {
  color: var(--accent);
  background: var(--card);
}
.foot-social svg {
  width: 18px;
  height: 18px;
  display: block;
}
@media (max-width: 600px) {
  .foot-inner { flex-direction: column; gap: 10px; }
  .foot-links { flex-wrap: wrap; justify-content: center; }
}

/* Fade in */
.fade-up {
  opacity: 0; transform: translateY(12px);
  animation: fadeUp .8s ease forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
