/* ═══════════════════════════════════════════════════
   Single Service — single-service.css
   Dedicated page for one service (/services/{slug}/).
   Shares the brand tokens + type system used by the
   Services landing (services.css).
═══════════════════════════════════════════════════ */

.svc-main {
  background: var(--dovetail-white);
}

.svc-eyebrow {
  display: inline-block;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dovetail-accent);
}

/* ═══════════════════════════════════════════════════
   Hero
═══════════════════════════════════════════════════ */
.svc-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* anchor content to the bottom */
  height: 72vh;
  min-height: 72vh;
  background: var(--dovetail-dark);
  padding: 92px 0 104px;
  overflow: hidden;
  isolation: isolate;
}

.svc-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.svc-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--dovetail-dark) 50%, transparent) 0%, var(--dovetail-dark) 100%);
  z-index: -1;
}

.svc-hero-inner {
  padding-inline: max(40px, calc((100vw - 1400px) / 2 + 40px));
}

/* ── Breadcrumb ── */
.svc-breadcrumb {
  margin-bottom: 24px;
}
.svc-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: color-mix(in oklch, var(--dovetail-white) 45%, transparent);
}
.svc-breadcrumb li { display: flex; align-items: center; }
.svc-breadcrumb li:not(:last-child)::after {
  content: '/';
  margin: 0 8px;
  opacity: 0.3;
  font-size: 10px;
}
.svc-breadcrumb a {
  color: color-mix(in oklch, var(--dovetail-white) 45%, transparent);
  text-decoration: none;
  transition: color 0.2s ease;
}
.svc-breadcrumb a:hover { color: var(--dovetail-accent); }
.svc-breadcrumb [aria-current="page"] {
  color: color-mix(in oklch, var(--dovetail-white) 70%, transparent);
}

/* ── Hero heading ── */
.svc-hero-h1 {
  margin: 0;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(40px, 6.5vw, 92px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--dovetail-white);
  text-wrap: balance;
}

.svc-hero-sub {
  margin: 24px 0 0;
  max-width: 620px;
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 400;
  line-height: 1.5;
  color: color-mix(in oklch, var(--dovetail-white) 78%, transparent);
  text-wrap: pretty;
}

/* ═══════════════════════════════════════════════════
   Body — prose + "What's included" aside
═══════════════════════════════════════════════════ */
.svc-body {
  padding: 88px 0 96px;
  background: var(--dovetail-white);
}

.svc-body-inner {
  padding-inline: max(40px, calc((100vw - 1400px) / 2 + 40px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 64px;
  align-items: start;
}

.svc-prose {
  font-family: "Roboto", sans-serif;
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 300;
  line-height: 1.85;
  color: var(--dovetail-taupe-700);
  max-width: 80ch;
}
.svc-prose > :first-child { margin-top: 0; }
.svc-prose p { margin: 0 0 1.3em; text-wrap: pretty; }
.svc-prose h2,
.svc-prose h3 {
  font-family: "Cal Sans", sans-serif;
  font-weight: 600;
  color: var(--dovetail-dark);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 1.8em 0 0.6em;
}
.svc-prose h2 { font-size: clamp(24px, 2.6vw, 34px); }
.svc-prose h3 { font-size: clamp(20px, 2vw, 26px); }
.svc-prose a { color: var(--dovetail-dark); text-decoration: underline; text-underline-offset: 3px; }
.svc-prose a:hover { color: var(--dovetail-accent); }
.svc-prose ul,
.svc-prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.svc-prose li { margin-bottom: 0.5em; }
.svc-prose img { max-width: 100%; height: auto; }

/* ── "What's included" card ── */
.svc-included {
  position: sticky;
  top: 110px;
  background: var(--dovetail-bg);
  border: 1px solid rgba(31, 30, 27, 0.08);
  padding: 32px 30px 30px;
}

.svc-included-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  background: var(--dovetail-white);
  color: var(--dovetail-accent);
  border: 1px solid rgba(31, 30, 27, 0.08);
}
.svc-included-icon svg { width: 24px; height: 24px; }

.svc-included-title {
  margin: 0 0 18px;
  font-family: "Cal Sans", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--dovetail-dark);
  letter-spacing: -0.01em;
}

.svc-included-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.svc-included-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(31, 30, 27, 0.07);
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dovetail-dark);
}
.svc-included-list li:last-child { border-bottom: 0; }
.svc-check { flex: 0 0 auto; margin-top: 2px; color: var(--dovetail-accent); }

.svc-included-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  background: var(--dovetail-dark);
  color: var(--dovetail-white);
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.svc-included-cta:hover { background: var(--dovetail-accent); color: var(--dovetail-dark); }

/* ═══════════════════════════════════════════════════
   FAQs
═══════════════════════════════════════════════════ */
.svc-faqs {
  padding: 88px 0 96px;
  background: var(--dovetail-bg);
}
.svc-faqs-inner {
  padding-inline: max(40px, calc((100vw - 1400px) / 2 + 40px));
}
.svc-faqs-head { margin-bottom: 40px; }
.svc-faqs-title {
  margin: 14px 0 0;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 600;
  color: var(--dovetail-dark);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.svc-faq-list {
  max-width: 860px;
  border-top: 1px solid rgba(31, 30, 27, 0.12);
}
.svc-faq {
  border-bottom: 1px solid rgba(31, 30, 27, 0.12);
}
.svc-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: "Roboto", sans-serif;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 500;
  color: var(--dovetail-dark);
}
.svc-faq-q::-webkit-details-marker { display: none; }
.svc-faq-chevron {
  flex: 0 0 auto;
  color: var(--dovetail-accent);
  transition: transform 0.25s ease;
}
.svc-faq[open] .svc-faq-chevron { transform: rotate(180deg); }
.svc-faq-a {
  padding: 0 0 26px;
  max-width: 72ch;
}
.svc-faq-a p {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--dovetail-taupe-700);
  text-wrap: pretty;
}

/* ═══════════════════════════════════════════════════
   Related projects
═══════════════════════════════════════════════════ */
.svc-projects {
  padding: 88px 0 96px;
  background: var(--dovetail-white);
}
.svc-projects-inner {
  padding-inline: max(40px, calc((100vw - 1400px) / 2 + 40px));
}
.svc-projects-head { margin-bottom: 40px; }
.svc-projects-title {
  margin: 14px 0 0;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 600;
  color: var(--dovetail-dark);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.svc-proj-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.svc-proj-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.svc-proj-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--dovetail-bg);
}
.svc-proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.svc-proj-card a:hover .svc-proj-img img { transform: scale(1.04); }
.svc-proj-name {
  margin: 16px 0 4px;
  font-family: "Cal Sans", sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--dovetail-dark);
  letter-spacing: -0.01em;
}
.svc-proj-meta {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  color: var(--dovetail-taupe-700);
}

/* CTA banner: shared partial parts/cta-banner.php, styled in components.css */

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .svc-proj-img img,
  .svc-faq-chevron,
  .svc-included-cta,
  .svc-breadcrumb a { transition: none; }
}

/* ═══════════════════════════════════════════════════
   Responsive
═══════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .svc-hero { padding: 72px 0 84px; }
  .svc-body { padding: 72px 0 80px; }
  .svc-body-inner { grid-template-columns: 1fr; gap: 44px; }
  .svc-included { position: static; }
  .svc-proj-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .svc-hero { height: 72vh; min-height: 72vh; padding: 56px 0 64px; }
  .svc-hero-inner,
  .svc-body-inner,
  .svc-faqs-inner,
  .svc-projects-inner { padding-inline: 24px; }
  .svc-body { padding: 56px 0 64px; }
  .svc-faqs,
  .svc-projects { padding: 64px 0 72px; }
  .svc-proj-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   Scroll reveal — fade + rise (matches the home page)
   .svc-reveal      → fade + translateY
   .svc-reveal-fade → fade only (safe for the sticky aside —
                      a transform would break position: sticky)
   .svc-visible is added by single-service.js
═══════════════════════════════════════════════════ */
.svc-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity   0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-reveal.svc-visible {
  opacity: 1;
  transform: translateY(0);
}

.svc-reveal-fade {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-reveal-fade.svc-visible { opacity: 1; }

/* Honour reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .svc-reveal,
  .svc-reveal-fade {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
