/* HatchDesk theme: svc-visuals styles. Used by Services/Index. Requires core.css. */

/* ==========================================================================
   Service hero visuals (Views/Shared/_serviceHeroVisual.cshtml)
   ========================================================================== */
/* ---------- service hero visuals (coded, per service) ---------- */
.hd .hd-hv { position: relative; width: 100%; max-width: 580px; margin: 0 auto; padding: 44px 20px 76px; }
.hd .hd-hv .hd-editor { transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); }
.hd .hd-hv .hd-editor:hover { transform: none; }
.hd .hd-hv-url { flex: 1; min-width: 0; margin-left: 12px; padding: 5px 12px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    font-family: var(--hd-mono); font-size: 11px; color: rgba(255, 255, 255, .55); }
.hd .hd-hv-url i { margin-right: 6px; color: #6EE7B7; font-size: 9px; }
.hd .hd-hv-body { position: relative; min-height: 270px; padding: 18px; color: #CBD5E1; font-size: 12px; }

/* primitives */
.hd .hd-sk { display: block; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.hd .hd-sk + .hd-sk { margin-top: 8px; }
.hd .hd-sk-lg { height: 13px; background: rgba(255, 255, 255, .85); }
.hd .hd-sk-lime { background: var(--hd-lime); }
.hd .hd-sk-dim { background: rgba(255, 255, 255, .07); }
.hd .hd-hv-tile { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--svc-c1), var(--svc-c2)); color: #fff; font-size: 13px; }
.hd .hd-hv-tile.lime { background: var(--hd-lime); color: var(--hd-ink); }
.hd .hd-hv-tile.green { background: #10B981; }
.hd .hd-hv-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); font-size: 11px; font-weight: 600; color: #E2E8F0; white-space: nowrap; }
.hd .hd-hv-pill.ok { background: rgba(16, 185, 129, .15); color: #6EE7B7; }
.hd .hd-hv-pill.lime { background: var(--hd-lime); color: var(--hd-ink); }
.hd .hd-hv-bars { display: flex; align-items: flex-end; gap: 5px; height: 56px; }
.hd .hd-hv-bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--svc-c1), var(--svc-c2)); transform-origin: bottom; animation: hd-grow 1.1s var(--hd-ease) both; }
.hd .hd-hv-bars i:nth-child(2) { animation-delay: .1s; } .hd .hd-hv-bars i:nth-child(3) { animation-delay: .2s; } .hd .hd-hv-bars i:nth-child(4) { animation-delay: .3s; }
.hd .hd-hv-bars i:nth-child(5) { animation-delay: .4s; } .hd .hd-hv-bars i:nth-child(6) { animation-delay: .5s; } .hd .hd-hv-bars i:nth-child(7) { animation-delay: .6s; }
.hd .hd-hv-bars i:last-child { background: var(--hd-lime); }

/* floating cards */
.hd .hd-hv-f { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .97); color: var(--hd-ink);
    box-shadow: 0 25px 50px -12px rgba(11, 16, 32, .45); animation: hd-bob 6s ease-in-out infinite; }
.hd .hd-hv-f b { display: block; font-family: var(--hd-display); font-size: 14px; line-height: 1.3; }
.hd .hd-hv-f small { display: block; font-size: 11.5px; color: #64748B; }
.hd .hd-hv-f.a { top: 0; right: -6px; }
.hd .hd-hv-f.b { left: -6px; bottom: 6px; animation-delay: -2s; }
.hd .hd-hv-f.c { right: 4px; bottom: -6px; animation-delay: -4s; }
.hd .hd-hv-f.lime { background: var(--hd-lime); }
.hd .hd-hv-f.lime small { color: rgba(11, 16, 32, .65); }
.hd .hd-hv-ring { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.hd .hd-hv-ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.hd .hd-hv-ring circle { fill: none; stroke-width: 5; }
.hd .hd-hv-ring .bg { stroke: #E2E8F0; }
.hd .hd-hv-ring .fg { stroke: #10B981; stroke-linecap: round; stroke-dasharray: 113; stroke-dashoffset: 113; animation: hd-ring 1.6s .5s var(--hd-ease) forwards; }
.hd .hd-hv-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--hd-display); font-size: 13px; font-weight: 800; color: #059669; }

/* web development: mini website */
.hd .hd-hv-site-nav { display: flex; align-items: center; gap: 10px; }
.hd .hd-hv-site-nav .logo { width: 18px; height: 18px; border-radius: 6px; background: var(--hd-lime); }
.hd .hd-hv-site-nav .hd-sk { width: 34px; margin: 0; }
.hd .hd-hv-site-nav .hd-hv-navbtn { margin-left: auto; width: 54px; height: 20px; border-radius: 99px; background: linear-gradient(135deg, var(--svc-c1), var(--svc-c2)); }
.hd .hd-hv-site-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: center; margin-top: 22px; }
.hd .hd-hv-site-hero .cta { display: inline-block; width: 70px; height: 22px; margin-top: 14px; border-radius: 99px; background: #fff; }
.hd .hd-hv-site-art { display: grid; place-items: center; height: 104px; border-radius: 14px; background: linear-gradient(135deg, var(--svc-c1), var(--svc-c2)); color: rgba(255, 255, 255, .9); font-size: 30px; position: relative; overflow: hidden; }
.hd .hd-hv-site-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%); animation: hd-shine 3.2s ease-in-out infinite; }
.hd .hd-hv-site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.hd .hd-hv-site-cards > div { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
.hd .hd-hv-site-cards > div i { color: var(--hd-cyan); font-size: 13px; }
.hd .hd-hv-site-cards > div .hd-sk { margin-top: 10px; }

/* web design: design canvas */
.hd .hd-hv-canvas { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.hd .hd-hv-layers { display: grid; align-content: start; gap: 6px; }
.hd .hd-hv-layers p { font-family: var(--hd-mono); font-size: 9.5px; letter-spacing: .08em; color: #64748B; text-transform: uppercase; }
.hd .hd-hv-layers span { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 7px; font-size: 10.5px; color: #94A3B8; }
.hd .hd-hv-layers span.on { background: rgba(198, 244, 50, .14); color: var(--hd-lime); }
.hd .hd-hv-board { position: relative; padding: 12px; border-radius: 14px; background: #fff; background-image: radial-gradient(#E2E8F0 1px, transparent 1px); background-size: 12px 12px; }
.hd .hd-hv-board .frame { padding: 12px; border-radius: 10px; background: linear-gradient(135deg, var(--svc-c1), var(--svc-c2)); outline: 2px dashed var(--hd-lime); outline-offset: 3px; }
.hd .hd-hv-board .frame .hd-sk-lg { background: #fff; width: 70%; }
.hd .hd-hv-board .frame .hd-sk { background: rgba(255, 255, 255, .5); }
.hd .hd-hv-board .hd-hv-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.hd .hd-hv-board .hd-hv-row span { height: 46px; border-radius: 8px; background: #F1F5F9; border: 1px solid #E2E8F0; }
.hd .hd-hv-cursor { position: absolute; right: 22px; bottom: 30px; display: flex; align-items: flex-start; gap: 2px; animation: hd-cursor 5s ease-in-out infinite; }
.hd .hd-hv-cursor i { color: #EC4899; font-size: 15px; }
.hd .hd-hv-cursor span { margin-top: 12px; padding: 3px 8px; border-radius: 99px; background: #EC4899; color: #fff; font-size: 10px; font-weight: 700; }
.hd .hd-hv-swatches { display: flex; gap: 6px; }
.hd .hd-hv-swatches i { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(11, 16, 32, .08); }

/* ecommerce: product page */
.hd .hd-hv-shop { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; }
.hd .hd-hv-product { position: relative; display: grid; place-items: center; height: 168px; border-radius: 14px; background: linear-gradient(135deg, var(--svc-c1), var(--svc-c2)); color: #fff; font-size: 52px; }
.hd .hd-hv-product i { filter: drop-shadow(0 12px 18px rgba(11, 16, 32, .35)); animation: hd-bob 5s ease-in-out infinite; }
.hd .hd-hv-product .tag { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 99px; background: var(--hd-ink); color: var(--hd-lime); font-size: 10px; font-weight: 700; }
.hd .hd-hv-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.hd .hd-hv-thumbs span { height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .08); }
.hd .hd-hv-thumbs span:first-child { outline: 2px solid var(--hd-lime); }
.hd .hd-hv-pinfo h5 { margin: 0; font-family: var(--hd-display); font-size: 15px; font-weight: 700; color: #fff; }
.hd .hd-hv-stars { margin-top: 6px; color: #FBBF24; font-size: 10px; }
.hd .hd-hv-stars em { margin-left: 4px; font-style: normal; color: #94A3B8; }
.hd .hd-hv-price { margin-top: 10px; font-family: var(--hd-display); font-size: 22px; font-weight: 800; color: #fff; }
.hd .hd-hv-price s { margin-left: 6px; font-size: 12px; font-weight: 500; color: #64748B; }
.hd .hd-hv-sizes { display: flex; gap: 6px; margin-top: 10px; }
.hd .hd-hv-sizes span { padding: 4px 9px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .15); font-size: 10.5px; }
.hd .hd-hv-sizes span.on { border-color: var(--hd-lime); color: var(--hd-lime); }
.hd .hd-hv-addcart { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 10px; border-radius: 99px; background: var(--hd-lime); color: var(--hd-ink); font-weight: 700; animation: hd-press 4s ease-in-out infinite; }

/* mobile app: phone */
.hd .hd-hv-phone-wrap { position: relative; display: flex; justify-content: center; padding: 8px 0 20px; }
.hd .hd-hv-phone { position: relative; width: 210px; padding: 10px; border-radius: 34px; background: #0B1020; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 40px 80px -20px rgba(11, 16, 32, .7), inset 0 0 0 4px #1E293B;
    transform: perspective(1200px) rotateY(-10deg) rotateX(4deg); transition: transform .8s var(--hd-ease); }
.hd .hd-hv-phone:hover { transform: none; }
.hd .hd-hv-screen { position: relative; overflow: hidden; min-height: 360px; padding: 26px 14px 14px; border-radius: 26px; background: #F5F6FA; color: var(--hd-ink); }
.hd .hd-hv-screen::before { content: ""; position: absolute; top: 8px; left: 50%; width: 64px; height: 16px; border-radius: 99px; background: #0B1020; transform: translateX(-50%); }
.hd .hd-hv-app-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #64748B; }
.hd .hd-hv-app-top b { display: block; font-family: var(--hd-display); font-size: 14px; color: var(--hd-ink); }
.hd .hd-hv-app-top .av { width: 28px; height: 28px; border-radius: 99px; background: linear-gradient(135deg, var(--svc-c1), var(--svc-c2)); }
.hd .hd-hv-app-card { margin-top: 12px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, var(--svc-c1), var(--svc-c2)); color: rgba(255, 255, 255, .8); font-size: 10.5px; }
.hd .hd-hv-app-card b { display: block; margin-top: 2px; font-family: var(--hd-display); font-size: 20px; color: #fff; }
.hd .hd-hv-app-card .hd-hv-bars { height: 34px; margin-top: 8px; }
.hd .hd-hv-app-card .hd-hv-bars i { background: rgba(255, 255, 255, .5); }
.hd .hd-hv-app-card .hd-hv-bars i:last-child { background: var(--hd-lime); }
.hd .hd-hv-app-list { display: grid; gap: 8px; margin-top: 12px; }
.hd .hd-hv-app-list div { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 14px; background: #fff; font-size: 11px; }
.hd .hd-hv-app-list .hd-hv-tile { width: 28px; height: 28px; border-radius: 9px; font-size: 11px; }
.hd .hd-hv-app-list b { display: block; font-size: 11.5px; }
.hd .hd-hv-app-list div > span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd .hd-hv-app-list em { margin-left: auto; font-style: normal; font-weight: 700; color: #059669; }
.hd .hd-hv-app-tabs { display: flex; justify-content: space-around; margin-top: 12px; padding: 9px; border-radius: 16px; background: #fff; color: #94A3B8; font-size: 13px; }
.hd .hd-hv-app-tabs i:first-child { color: var(--svc-c1); }

/* api: request / response */
.hd .hd-hv-req { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-family: var(--hd-mono); font-size: 11.5px; }
.hd .hd-hv-method { padding: 2px 7px; border-radius: 6px; background: #10B981; color: #fff; font-size: 10px; font-weight: 700; }
.hd .hd-hv-method.post { background: #F59E0B; } .hd .hd-hv-method.put { background: var(--hd-indigo); } .hd .hd-hv-method.del { background: #F43F5E; }
.hd .hd-hv-req .ok { margin-left: auto; color: #6EE7B7; }
.hd .hd-hv-json { margin: 12px 0 0; padding: 0; white-space: pre; font-family: var(--hd-mono); font-size: 11.5px; line-height: 1.8; color: #CBD5E1; overflow: hidden; }
.hd .hd-hv-json .k { color: #67E8F9; } .hd .hd-hv-json .s { color: var(--hd-lime); } .hd .hd-hv-json .n { color: #FCD34D; } .hd .hd-hv-json .p { color: #64748B; }
.hd .hd-hv-endpoints { display: grid; gap: 6px; font-family: var(--hd-mono); font-size: 11px; }
.hd .hd-hv-endpoints span { display: flex; align-items: center; gap: 8px; }

/* seo: search results */
.hd .hd-hv-search { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 99px; background: #fff; color: var(--hd-ink); font-size: 12px; }
.hd .hd-hv-search i { color: var(--svc-c1); }
.hd .hd-hv-search em { font-style: normal; }
.hd .hd-hv-search em::after { content: "|"; margin-left: 1px; color: var(--svc-c1); animation: hd-blink 1s steps(1) infinite; }
.hd .hd-hv-results { display: grid; gap: 8px; margin-top: 14px; }
.hd .hd-hv-result { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.hd .hd-hv-result .pos { grid-row: span 3; font-family: var(--hd-display); font-size: 16px; font-weight: 800; color: #475569; }
.hd .hd-hv-result.top { background: rgba(198, 244, 50, .1); box-shadow: inset 0 0 0 1px rgba(198, 244, 50, .45); animation: hd-climb 1.2s .3s var(--hd-ease) both; }
.hd .hd-hv-result.top .pos { color: var(--hd-lime); }
.hd .hd-hv-result .url { font-family: var(--hd-mono); font-size: 10px; color: #6EE7B7; }
.hd .hd-hv-result b { font-size: 12.5px; color: #93C5FD; }
.hd .hd-hv-result.top b { color: #fff; }

/* ai: chat */
.hd .hd-hv-chat { display: grid; gap: 10px; }
.hd .hd-hv-msg { max-width: 82%; padding: 10px 12px; border-radius: 14px; font-size: 12px; line-height: 1.5; }
.hd .hd-hv-msg.me { justify-self: end; border-bottom-right-radius: 4px; background: linear-gradient(135deg, var(--svc-c1), var(--svc-c2)); color: #fff; }
.hd .hd-hv-msg.bot { display: flex; gap: 10px; border-bottom-left-radius: 4px; background: rgba(255, 255, 255, .07); color: #E2E8F0; }
.hd .hd-hv-msg.bot .hd-hv-tile { width: 26px; height: 26px; border-radius: 8px; font-size: 11px; }
.hd .hd-hv-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hd .hd-hv-tools .hd-hv-pill { font-size: 10px; }
.hd .hd-hv-compose { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 8px 8px 12px; border-radius: 99px; background: rgba(255, 255, 255, .06); color: #64748B; font-size: 11.5px; }
.hd .hd-hv-compose span { margin-left: auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 99px; background: var(--hd-lime); color: var(--hd-ink); font-size: 11px; }

/* saas: dashboard */
.hd .hd-hv-dash { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.hd .hd-hv-side { display: grid; align-content: start; gap: 10px; justify-items: center; padding-top: 2px; color: #475569; font-size: 13px; }
.hd .hd-hv-side i:first-child { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--hd-lime); color: var(--hd-ink); font-size: 12px; }
.hd .hd-hv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hd .hd-hv-kpis div { padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); font-size: 10px; color: #94A3B8; }
.hd .hd-hv-kpis b { display: block; margin-top: 2px; font-family: var(--hd-display); font-size: 16px; color: #fff; }
.hd .hd-hv-kpis em { font-style: normal; font-size: 10px; font-weight: 700; color: #6EE7B7; }
.hd .hd-hv-chart { margin-top: 10px; padding: 10px 10px 4px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.hd .hd-hv-chart svg { display: block; width: 100%; height: 96px; }

@keyframes hd-grow { from { transform: scaleY(0); } }
@keyframes hd-ring { to { stroke-dashoffset: 6; } }
@keyframes hd-shine { 0%, 40% { transform: translateX(-100%); } 80%, 100% { transform: translateX(100%); } }
@keyframes hd-cursor { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(-60px, -46px); } 65% { transform: translate(-24px, -80px); } }
@keyframes hd-press { 0%, 80%, 100% { transform: none; } 86% { transform: scale(.95); } }
@keyframes hd-climb { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: none; } }

@media (max-width: 639px) {
    .hd .hd-hv { padding: 52px 8px 64px; }
    .hd .hd-hv-body { min-height: 0; padding: 14px; }
    .hd .hd-hv-f { padding: 10px 12px; gap: 10px; }
    .hd .hd-hv-f b { font-size: 12.5px; }
    .hd .hd-hv-f.a { top: 0; right: 0; } .hd .hd-hv-f.b { left: 0; } .hd .hd-hv-f.c { display: none; }
    .hd .hd-hv-canvas { grid-template-columns: 1fr; } .hd .hd-hv-layers { display: none; }
    .hd .hd-hv-shop { grid-template-columns: 1fr; } .hd .hd-hv-product { height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
    .hd .hd-hv-f, .hd .hd-hv-bars i, .hd .hd-hv-ring .fg, .hd .hd-hv-site-art::after, .hd .hd-hv-cursor, .hd .hd-hv-product i, .hd .hd-hv-addcart, .hd .hd-hv-result.top { animation: none; }
    .hd .hd-hv-ring .fg { stroke-dashoffset: 6; }
}
.hd .hd-hv-f.wide { display: block; width: 200px; }
.hd .hd-hv-f.stack { display: block; }

/* service hero visuals: tablet + phone refinements */
@media (min-width: 640px) and (max-width: 1023px) {
    .hd .hd-hv { padding: 48px 36px 80px; }
}
@media (max-width: 639px) {
    .hd .hd-hv .hd-editor, .hd .hd-hv-phone { transform: none; }
    .hd .hd-hv-url { font-size: 10px; }
    .hd .hd-hv-site-hero { gap: 10px; margin-top: 16px; }
    .hd .hd-hv-site-art { height: 84px; font-size: 24px; }
    .hd .hd-hv-site-cards { gap: 6px; margin-top: 14px; }
    .hd .hd-hv-site-cards > div { padding: 9px; }
    .hd .hd-hv-board .hd-hv-row span { height: 32px; }
    .hd .hd-hv-cursor { right: 12px; bottom: 16px; }
    .hd .hd-hv-json { font-size: 10.5px; line-height: 1.7; }
    .hd .hd-hv-req { font-size: 10.5px; }
    .hd .hd-hv-result b { font-size: 11.5px; }
    .hd .hd-hv-msg { max-width: 90%; font-size: 11.5px; }
    .hd .hd-hv-dash { grid-template-columns: 1fr; }
    .hd .hd-hv-side { display: none; }
    .hd .hd-hv-kpis b { font-size: 14px; }
    .hd .hd-hv-chart svg { height: 72px; }
    .hd .hd-hv-phone { width: 214px; }
    .hd .hd-hv-screen { min-height: 330px; }
    .hd .hd-hv-f .hd-hv-ring, .hd .hd-hv-f .hd-hv-ring svg { width: 38px; height: 38px; }
    .hd .hd-hv-f .hd-hv-tile { width: 30px; height: 30px; font-size: 12px; }
    .hd .hd-hv-f.wide { width: 170px; }
}
@media (max-width: 380px) {
    .hd .hd-hv { padding-left: 0; padding-right: 0; }
    .hd .hd-hv-site-cards > div:last-child { display: none; }
    .hd .hd-hv-site-cards { grid-template-columns: repeat(2, 1fr); }
    .hd .hd-hv-kpis div { padding: 8px; }
    .hd .hd-hv-kpis b { font-size: 13px; }
}
