/* Services grid, additional-services quote builder and the AI assistant dock (markup/ids from the live site). */

/* ---------- services ---------- */
.svc-grid { display: grid; gap: 12px; }
.svc { position: relative; padding: 22px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); transition: border-color 0.3s, background-color 0.3s, transform 0.5s var(--ease); }
.svc:hover { border-color: var(--line-2); background: var(--glass-2); transform: translateY(-3px); }
.svc h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.12; margin-top: 16px; }
.svc p { margin-top: 8px; color: var(--muted); font-size: 0.94rem; }
.svc .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(21, 88, 201, 0.16); border: 1px solid rgba(126, 166, 255, 0.28); }
.svc .ic svg { width: 20px; height: 20px; fill: none; stroke: var(--cobalt-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-lead { display: flex; flex-direction: column; gap: 4px; padding: 28px 24px; background: radial-gradient(120% 120% at 0% 0%, rgba(212, 255, 36, 0.14), transparent 55%), linear-gradient(160deg, rgba(21, 88, 201, 0.32), rgba(21, 88, 201, 0.05)); border-color: rgba(212, 255, 36, 0.28); }
.svc-lead .mono { color: var(--lime); }
.svc-lead h3 { font-size: 2.4rem; margin-top: 10px; }
.svc-lead p { color: var(--ink-soft); font-size: 1rem; max-width: 40ch; }
.svc-lead .btn { margin-top: 18px; align-self: flex-start; }
.svc-foot { margin-top: 22px; color: var(--muted); font-size: 0.93rem; }
.svc-foot a { color: var(--lime); }

/* ---------- quote builder ---------- */
.calc { display: grid; gap: 18px; align-items: start; }
.calc-main { display: grid; gap: 14px; }
.qstep { margin: 0; padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass); min-width: 0; }
.qstep legend, .qstep summary { display: flex; align-items: center; gap: 12px; padding: 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; float: left; width: 100%; margin-bottom: 16px; }
.qstep summary { float: none; margin: 0; cursor: pointer; list-style: none; }
.qstep summary::-webkit-details-marker { display: none; }
.qstep summary .optional { font-family: var(--sans); font-size: 0.85rem; color: var(--dim); }
.qstep.more[open] summary { margin-bottom: 16px; }
.qstep .n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; background: var(--lime); color: var(--on-lime); }
.qstep > *:not(legend) { clear: both; }
.g-country { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.g-svc { display: grid; gap: 8px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.face { display: block; height: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.35); transition: border-color 0.2s, background-color 0.2s, transform 0.25s var(--ease); }
.opt:hover .face { border-color: rgba(214, 186, 132, 0.32); }
.opt input:checked + .face { border-color: var(--lime); background: rgba(212, 255, 36, 0.08); }
.opt input:focus-visible + .face { outline: 2px solid var(--lime); outline-offset: 2px; }
.opt:active .face { transform: scale(0.985); }
.face .t { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 500; font-size: 0.94rem; }
.face .cc { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.face .s { display: block; margin-top: 4px; font-size: 0.84rem; color: var(--muted); line-height: 1.4; }
.g-country .face .s { font-family: var(--mono); font-size: 11px; }
.face .p { display: block; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--lime); }
.face .p:empty { display: none; }
.face .tick { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: background-color 0.2s, border-color 0.2s; }
.face .tick svg { width: 12px; height: 12px; color: var(--on-lime); opacity: 0; transition: opacity 0.2s; }
.opt input:checked + .face .tick { background: var(--lime); border-color: var(--lime); }
.opt input:checked + .face .tick svg { opacity: 1; }
.row-sel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.row-sel .input { width: auto; min-width: 220px; min-height: 44px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips-row .chip, .c-chips .chip { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 0.83rem; transition: border-color 0.2s, color 0.2s, background-color 0.2s; }
.chips-row .chip:hover, .c-chips .chip:hover { border-color: var(--lime); color: var(--lime); }
.chips-row .chip[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
#s-niche, #s-req { display: grid; gap: 6px; margin-top: 8px; }
#s-req { margin-top: 16px; }
.match { font-size: 0.88rem; color: var(--muted); min-height: 0; }
.match b { color: var(--lime); font-weight: 500; }
.found { font-size: 0.9rem; }
.f-h { margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.f-list { margin-top: 8px; display: grid; gap: 6px; }
.f-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(214, 186, 132, 0.04); }
.f-list li span:last-child, .f-tot b { color: var(--lime); font-family: var(--mono); font-size: 0.85rem; }
.f-tot { margin-top: 8px; display: flex; justify-content: space-between; }
.f-none { color: var(--muted); margin-top: 8px; }
.f-act { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.f-act .btn { min-height: 40px; font-size: 0.86rem; }
.nudge { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(126, 166, 255, 0.45); background: rgba(21, 88, 201, 0.1); font-size: 0.88rem; color: var(--ink-soft); gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.nudge.on { display: flex; }
.link { background: none; border: 0; padding: 0; color: var(--lime); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.quote { position: relative; padding: 22px 20px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(21, 88, 201, 0.2), rgba(214, 186, 132, 0.02) 50%); box-shadow: inset 0 1px 0 rgba(214, 186, 132, 0.07); }
.quote .meta { font-size: 0.84rem; color: var(--muted); margin-top: -4px; }
.q-h { margin-top: 16px; color: var(--dim) !important; }
.q-list { margin-top: 6px; display: grid; gap: 2px; font-size: 0.9rem; }
.q-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.q-list li span:last-child { font-family: var(--mono); font-size: 0.84rem; white-space: nowrap; }
.q-list li.empty { color: var(--dim); border-bottom: 0; }
.q-list li.save { color: var(--lime); }
.q-total { margin-top: 18px; padding: 16px; border-radius: 16px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); }
.q-total .n { font-family: var(--serif); font-size: 2.6rem; line-height: 1.05; margin-top: 4px; font-variant-numeric: tabular-nums; }
.q-total .sub { font-size: 0.84rem; color: var(--muted); }
.flash { animation: flash 0.6s var(--ease); }
@keyframes flash { 0% { color: var(--lime); transform: scale(1.04); } 100% { color: inherit; transform: none; } }
.q-form { display: grid; gap: 8px; margin-top: 14px; }
.q-form .input { min-height: 46px; }
.q-wa { width: 100%; margin-top: 12px; padding-right: 22px; }
.q-wa svg { width: 18px; height: 18px; }
.btn.is-off { opacity: 0.5; }
.q-book { width: 100%; margin-top: 8px; }
.q-hint { font-size: 0.84rem; color: var(--muted); margin-top: 8px; }
.q-hint:empty { display: none; }
.q-note { margin-top: 14px; font-size: 0.78rem; color: var(--dim); line-height: 1.5; }
.mbar { display: none; }
.toast { position: fixed; left: 50%; bottom: 84px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-weight: 600; font-size: 0.9rem; transition: opacity 0.3s, transform 0.4s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- assistant dock ---------- */
.chat-fab { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 8px; border-radius: 999px; background: rgba(14, 17, 26, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-2); color: var(--ink-strong); cursor: pointer; font-weight: 500; font-size: 0.9rem; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.9); transition: transform 0.35s var(--ease), border-color 0.2s, opacity 0.25s; }
.chat-fab:hover { border-color: rgba(212, 255, 36, 0.55); transform: translateY(-2px); }
.chat-fab .fab-lbl { display: none; padding-right: 10px; }
.chat-fab[aria-expanded="true"] { opacity: 0; pointer-events: none; }
.as-orb { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--lime-2), var(--lime) 45%, #8fb800 100%); flex: none; }
.as-orb svg { width: 16px; height: 16px; color: var(--on-lime); }
.js .chat-fab .as-orb::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(212, 255, 36, 0.6); animation: ring 2.4s var(--ease) 2s 3; }
@keyframes ring { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.chat { position: fixed; z-index: 90; inset: auto 8px 8px 8px; height: min(80dvh, 640px); display: flex; flex-direction: column; border-radius: 22px; border: 1px solid var(--line-2); background: rgba(10, 12, 19, 0.95); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95); overflow: hidden; transform-origin: bottom right; animation: chatIn 0.42s var(--ease); }
.chat[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
.c-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); }
.c-orb { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.c-orb i { width: 3px; height: 10px; border-radius: 3px; background: var(--on-lime); transition: height 0.2s; }
.chat.speaking .c-orb i { animation: eq 0.8s ease-in-out infinite; }
.chat.speaking .c-orb i:nth-child(2) { animation-delay: 0.15s; } .chat.speaking .c-orb i:nth-child(3) { animation-delay: 0.3s; }
.chat.listening .c-orb { box-shadow: 0 0 0 0 rgba(212, 255, 36, 0.6); animation: listen 1.2s ease-out infinite; }
@keyframes eq { 0%, 100% { height: 6px; } 50% { height: 18px; } }
@keyframes listen { to { box-shadow: 0 0 0 12px rgba(212, 255, 36, 0); } }
.c-id { display: grid; min-width: 0; }
.c-id b { font-weight: 600; font-size: 0.96rem; }
.c-id span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-ctl { margin-left: auto; display: flex; gap: 6px; }
.c-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink-strong); cursor: pointer; display: grid; place-items: center; font-size: 1.3rem; line-height: 1; transition: background-color 0.2s, border-color 0.2s; }
.c-x:hover { background: var(--glass-2); }
.c-x svg { width: 17px; height: 17px; }
.c-x[aria-pressed="true"] { border-color: var(--lime); color: var(--lime); }
.c-t { font-size: 0.9rem; }
.c-tabs { display: flex; gap: 4px; padding: 8px 12px 0; }
.c-tab { flex: 1; min-height: 38px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-weight: 500; font-size: 0.88rem; }
.c-tab[aria-selected="true"] { background: var(--glass-2); color: var(--ink-strong); border-color: var(--line); }
.c-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.c-pane[hidden] { display: none; }
.c-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.m { max-width: 88%; padding: 11px 14px; border-radius: 16px; line-height: 1.5; font-size: 0.92rem; animation: msgIn 0.35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.m.bot { align-self: flex-start; background: rgba(214, 186, 132, 0.06); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.m.me { align-self: flex-end; background: var(--lime); color: var(--on-lime); border-bottom-right-radius: 5px; font-weight: 500; }
.m a { color: var(--lime); font-weight: 600; }
.m ul { margin: 6px 0 0; padding-left: 16px; list-style: disc; }
.m li { margin: 2px 0; }
.m .btn { min-height: 38px; font-size: 0.84rem; margin-top: 8px; }
.c-status { padding: 0 14px; font-family: var(--mono); font-size: 11px; color: var(--lime); min-height: 0; }
.c-status:empty { display: none; }
.c-chips { display: flex; gap: 6px; overflow-x: auto; padding: 6px 14px 4px; scrollbar-width: none; }
.c-chips::-webkit-scrollbar { display: none; }
.c-chips .chip { flex: none; white-space: nowrap; }
.c-help { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 4px 14px 6px; font-size: 0.8rem; color: var(--dim); }
.c-help a { color: var(--ink-strong); }
.c-in { display: flex; gap: 8px; align-items: center; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.c-in input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.35); color: var(--ink-strong); }
.c-in input:focus { outline: none; border-color: var(--lime); }
.c-in .mic { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(212, 255, 36, 0.5); background: rgba(212, 255, 36, 0.08); color: var(--lime); cursor: pointer; font-weight: 600; font-size: 0.86rem; transition: background-color 0.2s, color 0.2s; }
.c-in .mic svg, .c-send svg { width: 17px; height: 17px; }
.c-in .mic:hover { background: rgba(212, 255, 36, 0.16); }
.c-in .mic.on { background: var(--lime); color: var(--on-lime); animation: listen 1.2s ease-out infinite; box-shadow: 0 0 0 0 rgba(212, 255, 36, 0.6); }
.c-send { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--lime); color: var(--on-lime); cursor: pointer; display: grid; place-items: center; }
.c-book { padding: 16px; overflow-y: auto; display: grid; gap: 10px; }
.c-book h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.c-book p { color: var(--muted); font-size: 0.9rem; }
.c-book form { display: grid; gap: 8px; }
.c-book .input { min-height: 46px; }
.c-book textarea.input { min-height: 80px; }
#bf-done { color: var(--lime); font-weight: 500; }
#bf-done a { color: var(--ink-strong); }
.c-err { color: var(--danger) !important; }
.c-priv { font-size: 0.8rem !important; color: var(--dim) !important; }
.c-priv a { color: var(--ink-strong); }

@media (min-width: 640px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-lead { grid-column: 1 / -1; }
  .g-country { grid-template-columns: repeat(3, 1fr); }
  .g-svc { grid-template-columns: repeat(2, 1fr); }
  .chat-fab .fab-lbl { display: inline; }
  .chat { inset: auto 20px 20px auto; width: 410px; height: min(660px, calc(100dvh - 40px)); }
}
@media (min-width: 960px) {
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .svc-lead { grid-column: span 2; grid-row: span 2; justify-content: flex-end; padding: 32px; }
  .svc-lead h3 { font-size: 3.2rem; }
  .calc { grid-template-columns: 1fr 380px; gap: 24px; }
  #summary { position: sticky; top: 90px; }
  .g-country { grid-template-columns: repeat(5, 1fr); }
  .qstep { padding: 24px; }
}
@media (max-width: 959px) {
  .mbar { position: fixed; left: 8px; right: 84px; bottom: 12px; z-index: 70; display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chat.speaking .c-orb i, .chat.listening .c-orb, .c-in .mic.on { animation: none !important; }
}

/* icon sits beside the heading, not stacked in a tile above it */
.svc:not(.svc-lead) { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.svc:not(.svc-lead) .ic { width: auto; height: auto; background: none; border: 0; border-radius: 0; }
.svc:not(.svc-lead) .ic svg { width: 22px; height: 22px; }
.svc:not(.svc-lead) h3 { margin-top: 0; }
.svc:not(.svc-lead) p { grid-column: 1 / -1; margin-top: 10px; }
