/* ============================================
   Progress365 — Service detail page styles
   Inherits the visual language of Redesign.html
   ============================================ */

:root {
  --bg: oklch(0.97 0.012 95);
  --bg-2: oklch(0.94 0.018 95);
  --ink: oklch(0.22 0.04 155);
  --ink-2: oklch(0.45 0.03 155);
  --line: oklch(0.88 0.02 105);
  --line-2: oklch(0.92 0.015 100);
  --accent: oklch(0.62 0.13 152);
  --accent-2: oklch(0.78 0.12 152);
  --accent-soft: oklch(0.92 0.04 152);
  --accent-ink: oklch(0.98 0.01 152);
  --warm: oklch(0.78 0.12 65);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r-xs: 8px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* dot grid bg */
.grid-bg {
  position: fixed; inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 80%, transparent 100%);
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 48px; position: relative; z-index: 1; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ===== TOP BAR ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  max-width: 1440px; margin: 0 auto; padding: 0 48px;
}
@media (max-width: 720px) { .topbar-inner { padding: 0 20px; } }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; font-size: 11px;
  letter-spacing: -0.02em;
  position: relative; overflow: hidden;
}
.logo-mark::after {
  content: ""; position: absolute; right: 4px; top: 4px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--warm);
}
.logo em {
  font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent);
}
.nav { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.nav a { position: relative; padding: 4px 0; color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: var(--accent); border-radius: 999px;
}
.top-cta { display: flex; align-items: center; gap: 12px; }
.phone-tag { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
@media (max-width: 900px) { .nav, .phone-tag { display: none; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent;
  transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 oklch(from var(--accent) calc(l - 0.1) c h) inset, 0 6px 18px -6px oklch(from var(--accent) l c h / 0.5); }
.btn-primary:hover { background: oklch(from var(--accent) calc(l - 0.04) c h); color: var(--accent-ink); }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--accent-soft); }

/* ===== Breadcrumbs ===== */
.crumbs {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 28px 0 0;
}
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: 0.5; }
.crumbs .here { color: var(--ink); }

/* ===== Hero ===== */
.svc-hero { padding: 24px 0 64px; }
.svc-hero-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 56px; align-items: center;
}
@media (max-width: 900px) { .svc-hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--accent);
}
.svc-title {
  font-size: clamp(36px, 5.2vw, 72px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0 0 24px;
  text-wrap: balance;
}
.svc-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.svc-lede {
  font-size: 18px; line-height: 1.55; color: var(--ink-2);
  max-width: 56ch; margin: 0 0 32px;
  text-wrap: pretty;
}
.svc-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.svc-hero-photo {
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 4/5;
  background: var(--bg-2);
  position: relative;
}
.svc-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-hero-photo-tag {
  position: absolute; left: 18px; bottom: 18px;
  background: oklch(from var(--bg) l c h / 0.92);
  backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px; border-radius: var(--r-pill);
}

/* alternative hero illustration block (no photo) */
.svc-hero-art {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in oklab, var(--bg-2) 70%, var(--accent-soft)));
  aspect-ratio: 4/5;
  position: relative; overflow: hidden;
  padding: 36px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.svc-hero-art::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(oklch(from var(--accent) l c h / 0.18) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.6;
  pointer-events: none;
}
.svc-hero-art .art-num {
  font-family: var(--mono); font-size: 13px;
  color: var(--ink-2); letter-spacing: 0.08em;
}
.svc-hero-art .art-glyph {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(64px, 12vw, 180px); line-height: 0.9;
  color: var(--accent);
  align-self: flex-end;
  z-index: 1;
}

/* photo variant — image fills the block, scrim keeps text legible */
.svc-hero-art.has-photo {
  background: var(--bg-2);
}
.svc-hero-art.has-photo .art-photo {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.svc-hero-art.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, oklch(from var(--bg) l c h / 0.15) 0%, oklch(from var(--bg) l c h / 0.85) 100%),
    linear-gradient(135deg, oklch(from var(--accent) 0.25 0.12 h / 0.35), transparent 60%);
}
.svc-hero-art.has-photo::after { opacity: 0.35; mix-blend-mode: screen; }
.svc-hero-art.has-photo .art-num,
.svc-hero-art.has-photo .art-glyph {
  position: relative; z-index: 2;
}
.svc-hero-art.has-photo .art-num {
  color: oklch(from var(--ink) l c h / 0.85);
  background: oklch(from var(--bg) l c h / 0.6);
  backdrop-filter: blur(8px);
  padding: 6px 10px; border-radius: 999px;
  align-self: flex-start;
  border: 1px solid oklch(from var(--ink) l c h / 0.1);
}
.svc-hero-art.has-photo .art-glyph {
  color: var(--bg);
  text-shadow: 0 4px 30px oklch(from var(--ink) l c h / 0.45);
}
.svc-hero-art.has-photo .art-glyph em,
.svc-hero-art.has-photo .art-glyph span {
  color: var(--bg);
}

/* ===== Stat strip ===== */
.stat-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  margin: 0 0 80px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-strip .stat-num {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 44px; line-height: 1; color: var(--ink);
  letter-spacing: -0.02em;
}
.stat-strip .stat-label {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-2); margin-top: 10px;
}

/* ===== Sections ===== */
.svc-section { padding: 0 0 96px; }
.svc-section-head {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px;
  margin-bottom: 48px; align-items: end;
}
@media (max-width: 900px) { .svc-section-head { grid-template-columns: 1fr; gap: 24px; } }
.svc-section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.svc-section-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.svc-section-sub { font-size: 16px; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; margin: 0; }

/* feature cards (2x2) */
.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; background: var(--bg);
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: var(--accent); }
.feature-num {
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  letter-spacing: 0.08em;
}
.feature-title {
  font-family: var(--sans); font-weight: 600; font-size: 20px; letter-spacing: -0.01em;
  margin: 0;
}
.feature-text { color: var(--ink-2); font-size: 15px; margin: 0; }

/* feature card highlight (1st card spans full width as accent block) */
.feature.feature-hero {
  grid-column: 1 / -1;
  background: var(--accent); color: var(--accent-ink);
  border-color: transparent;
  padding: 36px;
}
.feature.feature-hero .feature-title { color: var(--accent-ink); font-size: 26px; }
.feature.feature-hero .feature-text { color: oklch(from var(--accent-ink) calc(l) c h / 0.85); font-size: 16px; }
.feature.feature-hero .feature-num { color: oklch(from var(--accent-ink) calc(l) c h / 0.7); }

/* ===== Process timeline ===== */
.timeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative;
}
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .timeline { grid-template-columns: 1fr; } }
.timeline-step {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
}
.timeline-step .step-num {
  position: absolute; top: -16px; left: 24px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; font-size: 13px;
}
.timeline-step h3 {
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.timeline-step p { color: var(--ink-2); font-size: 14px; margin: 0; line-height: 1.5; }

/* ===== Two-column lists ===== */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }
.col-title {
  font-family: var(--sans); font-weight: 600; font-size: 22px;
  letter-spacing: -0.01em; margin: 0 0 24px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between;
}
.col-title .col-tag {
  font-family: var(--mono); font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent);
}
.list { list-style: none; margin: 0; padding: 0; }
.list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
  display: grid; grid-template-columns: 24px 1fr; gap: 14px;
  align-items: baseline;
}
.list li:last-child { border-bottom: 0; }
.list li::before {
  content: "+"; color: var(--accent); font-family: var(--mono); font-weight: 600;
  align-self: start;
}
.list li strong {
  display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; color: var(--ink);
}
.list li span { color: var(--ink-2); font-size: 14px; line-height: 1.5; }

/* ===== Highlight band ===== */
.band {
  background: var(--ink); color: var(--bg);
  border-radius: var(--r-xl);
  padding: 48px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .band { grid-template-columns: 1fr; padding: 36px; } }
.band h3 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.1;
  margin: 0 0 16px;
}
.band h3 em { font-family: var(--serif); font-style: italic; color: var(--accent-2); }
.band p { color: oklch(from var(--bg) calc(l) c h / 0.7); margin: 0; max-width: 50ch; }
.band .band-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.band .band-stat .num {
  font-family: var(--serif); font-style: italic; font-size: 56px; line-height: 1;
  color: var(--accent-2); letter-spacing: -0.02em;
}
.band .band-stat .label {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: oklch(from var(--bg) calc(l) c h / 0.6);
  margin-top: 10px;
}

/* ===== Pricing table ===== */
.pricing-frame {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg); overflow: hidden;
}
.pricing-frame .ph {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  padding: 18px 28px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-2);
}
.pricing-frame .pr {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line-2);
  font-size: 15px;
  align-items: baseline;
}
.pricing-frame .pr:last-child { border-bottom: 0; }
.pricing-frame .pr:nth-child(even) { background: color-mix(in oklab, var(--bg-2) 50%, transparent); }
.pricing-frame .pr .houses { color: var(--ink); }
.pricing-frame .pr .amt {
  font-family: var(--mono); font-weight: 500; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pricing-frame .pr .amt em {
  font-family: var(--mono); font-style: normal; color: var(--ink-2); font-weight: 400; font-size: 12px;
}

/* ===== CTA card ===== */
.cta-card {
  border-radius: var(--r-xl);
  background: var(--accent-soft);
  padding: 56px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
  align-items: center;
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .cta-card { grid-template-columns: 1fr; padding: 36px; } }
.cta-card h3 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.05;
  margin: 0 0 16px;
}
.cta-card h3 em { font-family: var(--serif); font-style: italic; color: var(--accent); }
.cta-card p { margin: 0 0 24px; color: var(--ink-2); max-width: 44ch; }
.cta-card .cta-meta {
  display: flex; flex-direction: column; gap: 14px;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
@media (max-width: 900px) { .cta-card .cta-meta { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; } }
.cta-meta-row { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.cta-meta-row .lbl {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-2); width: 88px;
}
.cta-meta-row a { font-weight: 500; color: var(--ink); }
.cta-meta-row a:hover { color: var(--accent); }

/* ===== Other services ===== */
.other-services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 900px) { .other-services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .other-services { grid-template-columns: 1fr; } }
.other-card {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; display: flex; flex-direction: column;
  justify-content: space-between; gap: 24px; min-height: 160px;
  transition: border-color .2s, background .2s;
  background: var(--bg);
}
.other-card:hover { border-color: var(--accent); background: color-mix(in oklab, var(--accent-soft) 40%, var(--bg)); }
.other-card .num { font-family: var(--mono); font-size: 12px; color: var(--ink-2); letter-spacing: 0.08em; }
.other-card .name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; }
.other-card .arrow {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  align-self: flex-end;
  font-size: 13px; color: var(--ink-2);
  transition: background .2s, border-color .2s, color .2s;
}
.other-card:hover .arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ===== Footer ===== */
footer { background: var(--bg-2); padding: 80px 0 32px; margin-top: 80px; }
.footer-wordmark {
  font-size: clamp(72px, 16vw, 220px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 0.9;
  color: var(--ink);
  margin: 0 0 56px; padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer-wordmark em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand-name { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; margin-bottom: 12px; }
.footer-brand-name em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.footer-brand-desc { color: var(--ink-2); max-width: 36ch; }
.footer-col h4 {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-2); margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 6px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding-top: 24px; border-top: 1px solid var(--line);
}
@media (max-width: 720px) { .footer-bottom { flex-direction: column; gap: 8px; } }
