/* Service detail styles — extracted from services.html */
.layout { font-family: var(--sans); color: var(--fg); line-height: 1.6; }
.layout * { box-sizing: border-box; }
.layout a { color: inherit; text-decoration: none; }
.svc-section > p { font-size: 15px; color: var(--fg2); max-width: 760px; line-height: 1.7; margin: 0 0 28px; }
body.dark .svc-card, body.dark .kw-card, body.dark .nav-dropdown { background: oklch(20% 0.015 240); }
::selection { background: var(--teal-dim); }
.has-dropdown > a::after { content: '▾'; font-size: 10px; opacity: 0.7; }
.has-dropdown:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.layout { max-width: 1100px; margin: 0 auto; padding: 48px 5% 80px; }
.svc-section { margin-bottom: 56px; }
.svc-h2 { font-family: var(--mono); font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--fg); }
.svc-h2-lbl { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--teal); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.svc-h2 + p { font-size: 15px; color: var(--fg2); margin-bottom: 28px; max-width: 760px; line-height: 1.75; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.svc-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: all 0.2s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal-dim); }
.svc-card .num { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--teal); margin-bottom: 8px; }
.svc-card h4 { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--fg); margin-bottom: 8px; letter-spacing: -0.01em; }
.svc-card p { font-size: 13px; color: var(--fg2); line-height: 1.65; }
.kr-flow { display: flex; flex-direction: column; gap: 14px; position: relative; }
.kr-flow::before { content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: linear-gradient(to bottom, var(--teal) 0%, var(--teal-dim) 100%); border-radius: 2px; }
.kr-step { display: flex; gap: 20px; align-items: flex-start; position: relative; }
.kr-num { flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; background: var(--teal); color: white; font-family: var(--mono); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; z-index: 2; box-shadow: 0 4px 16px var(--teal-dim); }
.kr-body { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; flex: 1; transition: all 0.2s; }
.kr-body:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--teal-dim); }
.kr-body h4 { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--fg); margin-bottom: 8px; letter-spacing: -0.01em; }
.kr-body p { font-size: 14px; color: var(--fg2); line-height: 1.7; margin-bottom: 12px; }
.kr-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.kr-tools span { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--teal); background: var(--teal-light); padding: 4px 9px; border-radius: 999px; letter-spacing: 0.02em; }
.kw-table { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.kw-header { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; padding: 14px 22px; background: var(--bg2); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--fg2); text-transform: uppercase; letter-spacing: 0.06em; }
.kw-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--border); align-items: center; transition: background 0.15s; }
.kw-row:last-child { border-bottom: none; }
.kw-row:hover { background: var(--bg2); }
.kw-row .kw { font-family: var(--mono); font-size: 13px; color: var(--fg); font-weight: 600; }
.kw-row .vol { font-family: var(--mono); font-size: 13px; color: var(--teal); font-weight: 700; }
.kw-row .diff { font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; display: inline-block; width: fit-content; }
.kw-row .diff.low { background: oklch(92% 0.05 145); color: oklch(40% 0.12 145); }
.kw-row .diff.med { background: var(--amber-light); color: var(--amber); }
.kw-row .diff.high { background: oklch(94% 0.06 25); color: oklch(50% 0.18 25); }
.kw-row .intent { font-family: var(--mono); font-size: 11px; color: var(--fg3); font-weight: 500; }
.deliv-list { display: flex; flex-direction: column; gap: 10px; }
.deliv-item { display: flex; gap: 14px; padding: 16px 20px; background: var(--bg2); border-radius: 10px; border-left: 3px solid var(--teal); }
.deliv-item .chk { color: var(--teal); flex-shrink: 0; font-weight: 700; font-size: 16px; }
.deliv-item .txt { font-size: 14px; color: var(--fg); line-height: 1.6; }
.cta-band { background: var(--fg); color: white; border-radius: 16px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; flex-wrap: wrap; }
.cta-band h3 { font-family: var(--mono); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.cta-band p { color: oklch(75% 0.01 60); font-size: 14px; margin-top: 6px; }
.cta-band .btn { display: inline-flex; align-items: center; height: 48px; padding: 0 26px; text-decoration: none; font-family: var(--sans); font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; background: var(--teal); color: white; border: none; border-radius: 12px; box-shadow: 0 1px 2px oklch(18% 0.02 240 / 0.1), 0 8px 20px -6px oklch(52% 0.14 195 / 0.45); transition: background 0.15s, transform 0.15s, box-shadow 0.15s; }
.cta-band .btn:hover { background: oklch(46% 0.14 195); transform: translateY(-1px); box-shadow: 0 2px 4px oklch(18% 0.02 240 / 0.12), 0 12px 26px -6px oklch(52% 0.14 195 / 0.5); }
.svc-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.pager-link { display: flex; flex-direction: column; gap: 4px; padding: 14px 20px; background: var(--bg2); border-radius: 10px; text-decoration: none; transition: all 0.2s; flex: 1; max-width: 260px; }
.pager-link:hover { background: var(--teal-light); transform: translateY(-2px); }
.pager-link.next { text-align: right; align-items: flex-end; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.related-card { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--teal-dim); }
.related-ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: 11px; background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.related-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.related-info b { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--fg); letter-spacing: -0.01em; }
.related-info small { font-size: 12px; color: var(--fg2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-go { margin-left: auto; flex-shrink: 0; font-family: var(--mono); color: var(--teal); font-weight: 700; transition: transform .15s; }
.related-card:hover .related-go { transform: translateX(3px); }
.pager-link small { font-family: var(--mono); font-size: 10px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.1em; }
.pager-link span { font-family: var(--mono); font-size: 14px; color: var(--teal); font-weight: 600; }
/* HUB GRID */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.hub-card { background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative; overflow: hidden;
  animation: fadeUp 0.5s ease forwards; opacity: 0; }
.hub-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.hub-card:hover::before { transform: scaleX(1); }
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal-dim); }
.hub-card-icon { width: 48px; height: 48px; border-radius: 12px;
  background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 8px; }
.hub-card h3 { font-family: var(--mono); font-size: 16px; font-weight: 700;
  color: var(--fg); letter-spacing: -0.01em; }
.hub-card .short { font-family: var(--mono); font-size: 11px; color: var(--teal);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.hub-card p { font-size: 13px; color: var(--fg2); line-height: 1.7; }
.hub-card .arrow { font-family: var(--mono); font-size: 12px; color: var(--teal);
  font-weight: 700; margin-top: auto; padding-top: 8px; }
/* ─── ESTIMATOR ─────────────────────────────────────────── */
.est-section { scroll-margin-top: 90px; }
/* ─── CONSULTATION MODAL ─────────────────────────────────── */
.consult-overlay { position: fixed; inset: 0; background: oklch(18% 0.02 240 / 0.55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 1000; opacity: 0; transition: opacity .2s; }
.dropdown-caret { display: none; background: transparent; border: none; cursor: pointer; color: var(--fg2); font-size: 20px; padding: 10px 16px; line-height: 1; border-radius: 8px; min-width: 48px; min-height: 44px; align-items: center; justify-content: center; transition: transform 0.25s ease, color 0.2s ease, background 0.2s ease; }
.dropdown-caret:hover { color: var(--teal); background: var(--teal-light); }
/* ═══ Floating glass pill navigation (site-wide, matches index.html) ═══ */
body > nav { top: 12px !important; left: max(14px, 2.2%) !important; right: max(14px, 2.2%) !important;
  background: oklch(98.5% 0.008 60 / 0.72) !important;
  backdrop-filter: blur(20px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
  border: 1px solid oklch(100% 0 0 / 0.65) !important;
  box-shadow: 0 10px 40px oklch(18% 0.02 240 / 0.08), inset 0 1px 0 oklch(100% 0 0 / 0.7) !important;
  border-radius: 999px !important;
  height: 60px !important;
  padding: 0 12px 0 24px !important;
  transition: box-shadow 0.4s, background 0.4s, height 0.3s, top 0.3s !important; }
/* active page dot */
.nav-links > li > a.active:not(.nav-cta) { position: relative; }
/* hamburger → animated ✕ */
.nav-hamburger { width: 42px !important; height: 42px !important;
  align-items: center !important; justify-content: center !important;
  border-radius: 50% !important; gap: 5px !important;
  margin-left: 6px; transition: background 0.2s;
  background: none; border: none; padding: 0 !important; }
/* mobile drawer → floating frosted card */
.nav-links.open { position: fixed !important;
  top: 82px !important; left: max(14px, 2.2%) !important; right: max(14px, 2.2%) !important;
  background: oklch(98.5% 0.008 60 / 0.92) !important;
  backdrop-filter: blur(22px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.6) !important;
  border: 1px solid oklch(100% 0 0 / 0.65) !important;
  border-bottom: 1px solid oklch(100% 0 0 / 0.65) !important;
  border-radius: 22px !important;
  padding: 14px 14px 18px !important;
  box-shadow: 0 24px 60px oklch(18% 0.02 240 / 0.18) !important;
  max-height: calc(100dvh - 96px) !important;
  overflow-y: auto !important;
  animation: navDrawerInV2 0.3s cubic-bezier(0.16,1,0.3,1); }
@media (max-width: 640px) {
  .kr-flow::before { left: 19px; }
  .kr-num { width: 40px; height: 40px; font-size: 12px; border-radius: 10px; }
  .kr-body { padding: 16px 18px; }
}
@media (max-width: 820px) {
  /* Mobile services submenu: accordion toggled by the caret button */
  .kw-header, .kw-row { grid-template-columns: 1.5fr 1fr 1fr; }
  .kw-header .col-intent, .kw-row .intent { display: none; }
  .cta-band { padding: 28px; flex-direction: column; align-items: flex-start; }
}
