/* Services page — edkursiss.com */

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 16px; margin-top: 32px; }

/* ─── Hero ─────────────────────────────────────────────────── */
.svc-hero { padding: var(--hero-pad) 0 clamp(48px, 6vw, 80px); }
.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr); gap: 40px clamp(32px, 5vw, 72px); align-items: end; }
.svc-hero .lede { margin-top: 22px; }
.svc-index-k { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.svc-index .spec { border-top-color: var(--ink); }
.svc-index a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 4px; text-decoration: none; font-weight: 600; color: var(--ink);
  transition: background-color .2s ease, color .2s ease;
}
.svc-index a:hover { color: var(--accent); background: var(--sheet); }
.svc-index .mono { color: var(--ink-3); }

/* ─── Groups: heading left, priced rows right ──────────────── */
.svc-group { padding: clamp(56px, 7vw, 96px) 0; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); gap: 28px clamp(32px, 5vw, 72px); align-items: start; }
.svc-head { position: sticky; top: 96px; display: grid; gap: 12px; align-content: start; }
.svc-head .h2 { font-size: var(--step-2); }
.svc-head .dim { margin-top: 10px; max-width: 220px; }
.svc-list { border-top-color: var(--ink); }
.svc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, auto) auto;
  gap: 8px clamp(16px, 3vw, 36px); align-items: center; padding: 22px 0;
}
.svc-text h3 { font-size: 1.1875rem; }
.svc-text p { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; margin-top: 3px; max-width: 46ch; }
.svc-price { text-align: right; font-weight: 740; font-size: 1.25rem; font-stretch: 106%; letter-spacing: -0.015em; white-space: nowrap; line-height: 1.2; }
.svc-price .svc-from { font-size: 0.75rem; font-weight: 500; font-stretch: 100%; color: var(--ink-3); letter-spacing: 0.01em; }
.svc-price small { display: block; font: 500 0.75rem/1.3 var(--mono); color: var(--ink-3); letter-spacing: 0; }
.svc-go { white-space: nowrap; font-size: 0.9375rem; min-height: 40px; }
.svc-text h3 a { color: inherit; text-decoration: none; }
.svc-text h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.svc:hover .svc-go svg { transform: translateX(3px); }

/* photos */
.svc-note { color: var(--ink-3) !important; font-size: 0.8125rem !important; margin-top: 6px !important; }
.svc-photo { margin-top: 18px; max-width: 260px; }
.svc-photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.svc-photo--wide img { object-position: 72% 50%; }

/* ─── Calculator ───────────────────────────────────────────── */
/* Their numbers across the top; under them the drawing and the reading of it, side by side. */
.calc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "inputs inputs" "fig output";
  gap: 28px clamp(32px, 5vw, 72px); align-items: stretch;
}
.calc-inputs { grid-area: inputs; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-content: start; }
.calc-fig { grid-area: fig; }
.calc-output { grid-area: output; }
.calc-inputs .field > label { font-size: 0.875rem; line-height: 1.3; min-height: 2.6em; display: flex; align-items: flex-end; }
.calc-inputs input { font-family: var(--mono); font-weight: 500; font-size: 1.0625rem; }
.calc-output { border: 1px solid var(--ink); border-radius: var(--r-lg); background: var(--sheet); padding: 6px 24px 24px; display: grid; align-content: start; }
.calc-output dl { margin: 0; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.calc-row dt { color: var(--ink-2); }
.calc-row dd { margin: 0; font-family: var(--mono); font-weight: 600; font-size: 1.125rem; }
.calc-row dd.big { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -0.02em; }
.calc-payback { display: grid; gap: 6px; padding: 18px 0 22px; }
.calc-payback .mono { color: var(--ink-3); font-size: 0.75rem; }
.calc-payback strong { font-weight: 650; font-size: 1.0625rem; line-height: 1.35; }
.calc-cta { width: 100%; min-width: 0; white-space: normal; text-align: center; line-height: 1.2; padding-top: 10px; padding-bottom: 10px; }
.calc-output > * { min-width: 0; }
.calc-if { padding: 14px 0 0; max-width: 46ch; }
.calc-payback { border-top: 1px solid var(--line); margin-top: 14px; }

/* ─── FIG 6: the visitor's numbers against the list price ─────
   Figure grammar: three pens, hatch = "up to", cobalt = the point,
   the difference is a dimension. Token colours only, so Plan view flips it. */
.calc-fig {
  margin: 0; display: grid; grid-template-rows: 1fr auto; min-width: 0;
  border: var(--pen-1, 1px) solid var(--ink); border-radius: var(--r-lg); background: var(--sheet); overflow: hidden;
}
.calc-fig svg { display: block; width: 100%; max-width: 520px; height: auto; margin: auto; padding: 18px 16px 10px; overflow: visible; }
.calc-fig figcaption {
  display: flex; justify-content: space-between; gap: 12px; padding: 7px 14px;
  border-top: var(--pen-1, 1px) solid var(--ink);
  font: 500 0.6875rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.calc-fig text { font-family: var(--mono); }
.fg-hair { stroke: var(--ink-3); stroke-width: var(--pen-1, 1px); fill: none; }
.fg-obj { stroke: var(--ink); stroke-width: var(--pen-2, 1.5px); fill: none; }
.fg-cut { stroke: var(--ink); stroke-width: var(--pen-3, 2.5px); fill: none; }
.fg-accs { stroke: var(--accent); stroke-width: 2px; fill: none; }
.fg-wedge { opacity: 0.45; }
.fg-dot { fill: var(--ink); stroke: var(--sheet); stroke-width: 2px; }
.fg-dot--acc { fill: var(--accent); }
.fg-v { font-weight: 600; font-size: 13px; fill: var(--ink); }
.fg-l { font-weight: 500; font-size: 12px; fill: var(--ink-2); }
.fg-halo { paint-order: stroke; stroke: var(--sheet); stroke-width: 6px; stroke-linejoin: round; }
/* Ink: the two lines are ruled from zero, then the hatch and the dimension are laid. Numbers stay put. */
.fg-rule { transform-box: fill-box; transform-origin: 0% 100%; vector-effect: non-scaling-stroke; transition: transform var(--t-rule, 700ms) var(--ease-pen, cubic-bezier(0.65, 0, 0.35, 1)); }
.fg-wedge, .fg-gap, .fg-dot { transition: opacity var(--t-set, 240ms) ease var(--t-rule, 700ms); }
html.ink .calc-fig[data-ink]:not(.is-inked) .fg-rule { transform: scale(0); }
html.ink .calc-fig[data-ink]:not(.is-inked) :is(.fg-wedge, .fg-gap, .fg-dot) { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .fg-rule, .fg-wedge, .fg-gap, .fg-dot { transition: none; } }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .svc-hero-grid, .svc-grid { grid-template-columns: 1fr; }
  .svc-head { position: static; }
  .svc-head .dim { max-width: none; }
  .svc-photo { display: none; }
  /* phones: numbers in, the reading of them, then the drawing */
  .calc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "inputs" "output" "fig"; }
  .calc-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .svc { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text price" "go go"; padding: 20px 0 12px; }
  .svc-go { display: inline-flex; align-items: center; min-height: 44px; }
  .svc-text { grid-area: text; } .svc-price { grid-area: price; } .svc-go { grid-area: go; }
  .calc-inputs { grid-template-columns: 1fr; }
  .calc-inputs .field > label { min-height: 0; }
  .calc-output { padding: 4px 18px 20px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
