/* Componentes modernizados (portados do 21st.dev para JS/CSS puro): Command, Dock, Marquee de marcas e Bento Gallery. */
:root { --ui-blue: #1306A8; --ui-blue-dark: #02304f; --ui-yellow: #FDFF47; --ui-ink: #14202b; --ui-muted: #6b7885; --ui-line: #e3e8ee; }
html[data-proto-modal] { overflow: hidden; }

/* ===== Command palette ===== */
.cmdk-kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border: 1px solid var(--ui-line); border-radius: 4px; background: #fff; color: var(--ui-muted); font: 500 .65rem/1 inherit; }
.cmdk-hint { position: absolute; right: 44px; top: 50%; transform: translateY(-50%); z-index: 2; cursor: pointer; border-bottom-width: 2px; }
#search_widget { position: relative; }
.cmdk-overlay { position: fixed; inset: 0; z-index: 10000; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(2, 20, 36, .6); backdrop-filter: blur(3px); }
.cmdk-overlay.open { display: flex; animation: cmdk-fade .15s ease-out; }
@keyframes cmdk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cmdk-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.cmdk { width: 100%; max-width: 580px; background: #fff; color: var(--ui-ink); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); overflow: hidden; animation: cmdk-pop .18s ease-out; font-family: inherit; }
.cmdk__input-wrap { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--ui-line); }
.cmdk__input-wrap svg { flex: none; color: var(--ui-muted); }
.cmdk__input { flex: 1; height: 54px; border: 0; outline: 0; background: transparent; font-size: 1rem; color: var(--ui-ink); }
.cmdk__input::placeholder { color: #9aa6b2; }
.cmdk__list { max-height: min(56vh, 420px); overflow-y: auto; padding: 6px 8px 8px; }
.cmdk__group-heading { padding: 10px 12px 6px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ui-muted); }
.cmdk__item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: .92rem; color: var(--ui-ink); text-decoration: none; }
.cmdk__item:hover { text-decoration: none; color: var(--ui-ink); }
.cmdk__item[data-selected="true"] { background: #e8f2fa; color: var(--ui-blue); }
.cmdk__item svg { flex: none; opacity: .65; }
.cmdk__item img { flex: none; width: 34px; height: 34px; object-fit: contain; border: 1px solid var(--ui-line); border-radius: 6px; background: #fff; }
.cmdk__item .cmdk__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk__item .cmdk__sub { margin-left: auto; font-size: .72rem; color: var(--ui-muted); white-space: nowrap; }
.cmdk__empty { padding: 28px 12px; text-align: center; color: var(--ui-muted); font-size: .9rem; }
.cmdk__foot { display: flex; gap: 14px; padding: 9px 16px; border-top: 1px solid var(--ui-line); background: #f7f9fb; font-size: .72rem; color: var(--ui-muted); }
.cmdk__foot .cmdk-kbd { margin-right: 4px; }
@media (max-width: 600px) { .cmdk-overlay { padding-top: 6vh; } .cmdk__foot { display: none; } .cmdk-hint { display: none; } }

/* ===== Marquee de marcas ===== */
.brand-marquee { padding: 34px 0 30px; background: #fff; border-top: 1px solid var(--ui-line); border-bottom: 1px solid var(--ui-line); }
.brand-marquee__title { margin: 0 0 18px; text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ui-muted); }
.brand-marquee__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.brand-marquee__track { display: flex; width: max-content; animation: brand-scroll 42s linear infinite; }
.brand-marquee__viewport:hover .brand-marquee__track { animation-play-state: paused; }
.brand-marquee__item { flex: none; display: flex; align-items: center; justify-content: center; width: 190px; height: 76px; padding: 0 22px; }
.brand-marquee__item img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .6; transition: filter .25s, opacity .25s, transform .25s; }
.brand-marquee__item:hover img { filter: none; opacity: 1; transform: scale(1.08); }
@keyframes brand-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .brand-marquee__track { animation: none; } .brand-marquee__viewport { overflow-x: auto; } }

/* ===== Bento Gallery ===== */
.bento { max-width: 1140px; margin: 0 auto; padding: 44px 16px 36px; }
.bento__title { margin: 0; text-align: center; font-size: 1.75rem; font-weight: 700; color: var(--ui-blue); }
.bento__sub { margin: 6px 0 24px; text-align: center; color: var(--ui-muted); font-size: .95rem; }
.bento__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; grid-auto-flow: dense; gap: 12px; }
.bento__slot { position: relative; min-width: 0; min-height: 0; border-radius: 16px; transition: outline-color .15s; outline: 2px dashed transparent; outline-offset: 3px; }
.bento__slot.s-tall { grid-row: span 2; }
.bento__slot.s-wide { grid-column: span 2; }
.bento__slot.s-big { grid-column: span 2; grid-row: span 2; }
.bento__slot.drop { outline-color: var(--ui-blue); }
.bento__card { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid var(--ui-line); box-shadow: 0 1px 3px rgba(0, 0, 0, .06); cursor: grab; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.bento__card:hover { box-shadow: 0 10px 28px rgba(2, 83, 137, .25); transform: translateY(-2px); text-decoration: none; }
.bento__card.dragging { opacity: .45; cursor: grabbing; }
.bento__card img { width: 100%; height: 100%; object-fit: contain; padding: 14px 14px 46px; transition: transform .4s; -webkit-user-drag: none; user-select: none; }
.bento__card:hover img { transform: scale(1.06); }
.bento__slot { --c: var(--ui-blue); --ct: #fff; }
.bento__slot.c-blue { --c: #1306A8; }
.bento__slot.c-orange { --c: #e8742c; }
.bento__slot.c-graphite { --c: #2b3a47; }
.bento__slot.c-teal { --c: #0b8aa8; }
.bento__slot.c-yellow { --c: #FFE600; --ct: #0b2236; }
.bento__slot.c-red { --c: #d6372f; }
.bento__label { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 16px; color: var(--ct); font-weight: 700; font-size: .92rem; background: var(--c); }
.bento__label::after { content: "→"; color: var(--ct); transition: transform .2s; }
.bento__card:hover .bento__label::after { transform: translateX(4px); }
@media (max-width: 767px) { .bento__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } .bento__slot.s-wide, .bento__slot.s-big { grid-column: span 2; } .bento__title { font-size: 1.35rem; } }

/* ===== Botão de orçamento no cabeçalho ===== */
.hdr-cta { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 6px 14px; border-radius: 99px; background: #FDFF47; color: #0b2236 !important; font-weight: 700; font-size: .8rem; line-height: 1.2; text-decoration: none !important; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); transition: transform .15s, box-shadow .2s; }
.hdr-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.hdr-cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* marcas sem logo: nome estilizado */
.brand-wordmark { font-weight: 800; font-size: 1.15rem; letter-spacing: .1em; text-transform: uppercase; color: #8a8fa8; white-space: nowrap; transition: color .25s; }
.brand-marquee__item:hover .brand-wordmark { color: var(--lx-blue, #1306A8); }
.brand-marquee__item img { max-height: 54px; }
