/* Services page: the SP_Web_1 sheet's services, one section each, with a drawn illustration.
   Loaded after css/site.css, which holds the banner, reveals and footer. */

:root {
  --svs-tint: rgba(79, 90, 58, .1);
  --svs-tint-2: rgba(79, 90, 58, .2);
  --svs-tint-3: rgba(79, 90, 58, .3);
  --svs-grid: rgba(46, 37, 33, .045);
}

/* ---------- One section per service ---------- */
.svs {
  padding: clamp(64px, 8vw, 128px) 0;
  background: var(--paper);
  scroll-margin-top: var(--header-h);
}
.svs--flip { background: var(--plaster); }

.svs-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: center;
}
.svs-art { grid-column: 1 / 8; }
.svs-copy { grid-column: 9 / 13; }
.svs--flip .svs-art { grid-column: 6 / 13; order: 2; }
.svs--flip .svs-copy { grid-column: 1 / 5; order: 1; }

/* The illustration sits on a drawing board: a soft panel with a faint grid */
.svs-art {
  margin: 0;
  padding: clamp(16px, 2.6vw, 40px);
  aspect-ratio: 6 / 5;
  border-radius: 4px;
  background:
    linear-gradient(var(--svs-grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--svs-grid) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--plaster);
}
.svs--flip .svs-art {
  background:
    linear-gradient(var(--svs-grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--svs-grid) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper);
}
.svs-art svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Number, name and description */
.svs-num {
  margin: 0 0 -.12em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(5rem, 9vw, 9.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(79, 90, 58, .55);
  font-variant-numeric: lining-nums;
}
.svs-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.125rem, 2.4vw + 1rem, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.svs-text {
  position: relative;
  margin: clamp(24px, 2.4vw, 34px) 0 0;
  padding-top: clamp(20px, 2vw, 26px);
  max-width: 26rem;
  font-size: clamp(1.0625rem, .3vw + 1rem, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.svs-text::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 56px;
  height: 2px;
  background: var(--olive);
}

/* ---------- Illustration colours ---------- */
.svs-art svg * { fill: none; stroke: none; stroke-linecap: round; stroke-linejoin: round; }
.svs-art .k { stroke: var(--ink); stroke-width: 1.5; }
.svs-art .o { stroke: var(--olive); stroke-width: 1.6; }
.svs-art .g { stroke: var(--stone); stroke-width: .9; opacity: .75; }
.svs-art .s { stroke: var(--stone); stroke-width: 1.1; stroke-dasharray: 5 6; opacity: .8; }
.svs-art .dash { stroke-dasharray: 6 7; }
.svs-art .thick { stroke-width: 2.6; }
.svs-art .bold { stroke-width: 3.2; }
.svs-art .wall { stroke-width: 5; stroke-linecap: square; }
.svs-art .w1 { fill: #fff; }
.svs-art .w2 { fill: #ebe6df; }
.svs-art .w3 { fill: #d8cfc3; }
.svs-art .t { fill: var(--svs-tint); }
.svs-art .t2 { fill: var(--svs-tint-2); }
.svs-art .of { fill: var(--svs-tint-3); }
.svs-art .ink { fill: var(--ink); }
.svs-art .dot { fill: var(--stone); opacity: .55; }
.svs-art .water { fill: rgba(79, 90, 58, .32); }
.svs-art .dotted { stroke: var(--olive); stroke-width: 6; }
.svs-art .pipe-o { stroke: var(--ink); stroke-width: 10; }
.svs-art .pipe-i { stroke: #fff; stroke-width: 6.5; }
.svs-art .drain { stroke: var(--olive); stroke-width: 6; stroke-dasharray: 14 9; stroke-linecap: butt; opacity: .8; }

/* The drawing wipes in from the left as the section arrives */
.js .svs-art svg {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.8s var(--ease-out) .2s;
}
.svs-art.is-in svg { clip-path: inset(0 0 0 0); }

@media (hover: hover) {
  .svs-art svg { transition: clip-path 1.8s var(--ease-out) .2s, transform .9s var(--ease-out); }
  .svs-art:hover svg { transform: scale(1.025); }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 960px) {

  .svs-art,
  .svs-copy,
  .svs--flip .svs-art,
  .svs--flip .svs-copy { grid-column: 1 / -1; order: 0; }
  .svs-copy { margin-top: clamp(28px, 5vw, 44px); }
  .svs-num { font-size: clamp(4rem, 16vw, 6rem); }
}

@media (max-width: 560px) {
  .svs-art { aspect-ratio: 1 / 1; padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .svs-art svg { clip-path: none; transition: none; }
  .svs-art:hover svg { transform: none; }
}

/* ---------- Introduction and the two practice areas (from the 26 Nov feedback) ----------
   A short statement, then Architecture and Interior design: a photograph beside the copy, the second
   one mirrored, each with a ruled list of what is included. The sheet's services follow below. */
.svc-intro { padding-bottom: 0; }
.svc-intro .section-head { margin-bottom: 0; }

.svc-area {
  padding: clamp(64px, 8vw, 120px) 0;
  scroll-margin-top: var(--header-h);
}
.svc-area--flip { background: var(--plaster); }
.svc-area-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: center;
}
.svc-area-media {
  grid-column: 1 / 6;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--plaster);
}
.svc-area-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-area-copy { grid-column: 7 / 13; }
.svc-area--flip .svc-area-media { grid-column: 8 / 13; order: 2; }
.svc-area--flip .svc-area-copy { grid-column: 1 / 7; order: 1; }

.svc-area-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 3.4vw + .6rem, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.svc-area-lead {
  margin: clamp(18px, 2vw, 26px) 0 0;
  max-width: 32rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, .6vw + 1rem, 1.5rem);
  line-height: 1.4;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.svc-area-label {
  margin: clamp(32px, 3.4vw, 44px) 0 0;
  font: 500 0.6875rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}
.svc-incl {
  margin: 12px 0 0;
  padding: 0;
  max-width: 32rem;
  list-style: none;
  border-top: 1px solid var(--line);
}
.svc-incl-item {
  position: relative;
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}
/* A small olive tick before each line */
.svc-incl-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 11px;
  height: 6px;
  border-left: 1.5px solid var(--olive);
  border-bottom: 1.5px solid var(--olive);
  transform: rotate(-45deg);
}
.svc-area-link { margin-top: clamp(28px, 3vw, 40px); }

@media (max-width: 960px) {
  .svc-area-media,
  .svc-area-copy,
  .svc-area--flip .svc-area-media,
  .svc-area--flip .svc-area-copy { grid-column: 1 / -1; order: 0; }
  .svc-area-media { aspect-ratio: 4 / 3; }
  .svc-area-copy { margin-top: clamp(28px, 5vw, 44px); }
}

/* ---------- Ways to work with us: three cards (26 Nov feedback) ----------
   The full service card leads in olive; the other two are outlined. Each lists the stages it covers as tags,
   with what it suits on a rule at the foot, so the three line up. */
.svc-options { background: var(--paper); }
.svc-options-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.svc-option {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 2.6vw, 40px);
  border: 1px solid var(--line);
  background: var(--paper);
}
.svc-option--lead { background: var(--olive); border-color: var(--olive); color: #fff; }
.svc-option-label {
  margin: 0;
  font: 500 0.6875rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}
.svc-option-title {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.2vw + 1.1rem, 2.375rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.svc-option-text {
  margin: 16px 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.svc-option-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.svc-option-stages li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.svc-option-best {
  margin-top: auto;
  padding-top: clamp(28px, 3vw, 40px);
}
.svc-option-best-label {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font: 500 0.6875rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}
.svc-option-best-text { margin: 8px 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--ink); }

.svc-option--lead .svc-option-label,
.svc-option--lead .svc-option-best-label { color: rgba(255, 255, 255, .7); }
.svc-option--lead .svc-option-text { color: rgba(255, 255, 255, .86); }
.svc-option--lead .svc-option-best-text { color: #fff; }
.svc-option--lead .svc-option-stages li { border-color: rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .92); }
.svc-option--lead .svc-option-best-label { border-top-color: rgba(255, 255, 255, .25); }
.svc-options .section-intro a { color: var(--olive); text-underline-offset: 3px; }

@media (max-width: 960px) {
  .svc-options-list { grid-template-columns: minmax(0, 1fr); }
}
