/* LocAllied website: shared look for the inner pages (search, profile, services, request, business).
   Same tokens as the home page. */
:root {
  --night: #0F1430;
  --deep: #161C33;
  --card: #1F2745;
  --card2: #263055;
  --line: #2C3556;
  --gold: #E9B44C;
  --gold-soft: rgba(233, 180, 76, 0.14);
  --ink: #F2F4FA;
  --mist: #A3ACC6;
  --dim: #7C86A3;
  --green: #3CCB6B;
  --red: #FF9B8A;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--mist); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(15, 20, 48, 0.86); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.top .logo img { height: 28px; width: auto; }
.top nav { display: flex; align-items: center; gap: 24px; }
.top nav a { color: var(--mist); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
.top .menu { display: none; background: none; border: 0; color: var(--ink); padding: 8px; margin-right: -8px; cursor: pointer; }
.top .menu svg { width: 24px; height: 24px; }
@media (max-width: 760px) {
  .top .menu { display: block; }
  .top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--night); border-bottom: 1px solid var(--line); padding: 6px 16px 14px; }
  .top nav.open { display: flex; }
  .top nav a { padding: 13px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .top nav a:last-child { border-bottom: 0; }
}

/* ---------- Header search: type anything, in any language ---------- */
.hsearch { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 4px 4px 4px 14px; }
.hsearch:focus-within { border-color: var(--gold); background: rgba(255, 255, 255, 0.12); }
.hsearch svg { width: 18px; height: 18px; color: var(--mist); flex: none; }
.hsearch input { background: transparent; border: 0; outline: none; color: var(--ink); font: 500 15px/1.2 var(--body); width: 300px; min-width: 0; padding: 8px 0; }
.hsearch input::placeholder { color: var(--mist); }
.hsearch button { border: 0; cursor: pointer; background: var(--gold); color: var(--night); font: 700 14px/1 var(--body); padding: 11px 16px; border-radius: 999px; white-space: nowrap; }
.hsearch button:hover { background: #F2C468; }
@media (max-width: 900px) {
  .top .wrap { flex-wrap: wrap; }
  .hsearch { order: 3; width: 100%; }
  .hsearch input { width: auto; flex: 1; }
}

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--mist); font-size: 14px; margin-top: 72px; }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
footer img { height: 24px; width: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--mist); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .note { margin-top: 16px; }
footer .note span { display: block; max-width: 62em; }

/* ---------- Buttons, chips, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1 var(--body); border: 0; cursor: pointer; text-decoration: none;
  color: var(--night); background: var(--gold); padding: 14px 22px; border-radius: 999px; min-height: 48px; }
.btn:hover { background: #F2C468; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.ghost { background: var(--card); color: var(--ink); }
.btn.ghost:hover { background: var(--card2); }
.btn svg { width: 18px; height: 18px; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--body); color: var(--mist); background: var(--card); border: 1px solid transparent;
  padding: 10px 14px; border-radius: 999px; cursor: pointer; text-decoration: none; min-height: 38px; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"], .chip.on { color: var(--gold); background: var(--gold-soft); border-color: rgba(233, 180, 76, 0.35); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
label.field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--mist); }
.input { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; color: var(--ink); font-size: 16px; min-height: 48px; }
.input:focus { outline: none; border-color: var(--gold); }
textarea.input { min-height: 110px; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A3ACC6' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
.msg { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.msg.err { background: rgba(255, 155, 138, 0.12); color: var(--red); }
.msg.ok { background: rgba(60, 203, 107, 0.12); color: var(--green); }

/* ---------- The sentence search, compact (inner pages) ---------- */
.ask-bar { padding: 28px 0 20px; }
.ask-bar form:not(.searchbox) { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.sentence { font: 700 clamp(22px, 2.6vw, 30px)/1.5 var(--display); letter-spacing: -0.02em; margin: 0; flex: 1 1 560px; }
.slot { display: inline-block; white-space: nowrap; }
.slot input, .slot select { font: inherit; letter-spacing: inherit; color: var(--gold); background: transparent; border: 0; border-bottom: 2px solid rgba(233, 180, 76, 0.5);
  padding: 0 2px; margin: 0 2px; border-radius: 0; appearance: none; -webkit-appearance: none; outline: none; caret-color: var(--gold); max-width: 100%; }
.slot input::-webkit-calendar-picker-indicator { display: none !important; }
.slot input::placeholder { color: rgba(233, 180, 76, 0.5); }
.slot input:focus, .slot select:focus { border-bottom-color: var(--gold); background: var(--gold-soft); }
.slot select { cursor: pointer; padding-right: 18px; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: right 6px bottom 0.55em, right 0 bottom 0.55em; background-size: 6px 6px; background-repeat: no-repeat; }
.slot select option { color: #111; font: 16px var(--body); }
@media (max-width: 560px) {
  .sentence { font-size: 22px; background: var(--deep); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; }
  .ask-bar .btn { width: 100%; }
}

/* ---------- Avatar, badges ---------- */
.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--gold); font: 800 17px/1 var(--display); }
.ok-mark { color: var(--green); font-weight: 800; }
.tag { display: inline-block; font: 700 12px/1 var(--body); color: var(--night); background: var(--gold); padding: 4px 8px; border-radius: 6px; vertical-align: 2px; }

/* ---------- Bottom sheet / dialog ---------- */
dialog { border: 0; padding: 0; background: var(--deep); color: var(--ink); border-radius: 20px; width: min(520px, 100% - 24px); max-height: 86vh; }
dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
dialog .dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 6px; }
dialog .dlg-body { padding: 8px 20px 22px; overflow: auto; }
dialog .x { background: var(--card); border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--mist); font-size: 18px; }
.rows { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 14px; overflow: hidden; }
.rows li { display: flex; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); align-items: flex-start; }
.rows li:first-child { border-top: 0; }
.rows .ic { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--gold); }
.rows small { display: block; color: var(--mist); font-size: 14px; margin-top: 2px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* ---------- The search box: one bar with three clear fields ---------- */
.searchbox { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 0.8fr) auto; align-items: stretch; background: #F7F8FC; color: #14193A;
  border-radius: 22px; padding: 8px; box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.7); max-width: 980px; }
.sb-field { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 18px; min-width: 0; cursor: text; border-radius: 16px; position: relative; }
.sb-field + .sb-field::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: #DCE0EB; }
.sb-field:focus-within { background: #fff; box-shadow: inset 0 0 0 2px var(--gold); }
.sb-field:focus-within::before, .sb-field:focus-within + .sb-field::before { display: none; }
.sb-field > span { font: 700 13px/1.2 var(--body); color: #14193A; letter-spacing: 0; }
.sb-field input, .sb-field select { border: 0; background: transparent; font: 500 17px/1.3 var(--body); color: #14193A; padding: 4px 0; margin: 0; outline: none; width: 100%;
  appearance: none; -webkit-appearance: none; min-height: 28px; }
.sb-field input::placeholder { color: #737B93; }
.sb-field input::-webkit-calendar-picker-indicator { display: none !important; }
.sb-field select { cursor: pointer; padding-right: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314193A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 2px center; }
.sb-field select option { color: #111; }
.sb-go { border: 0; background: var(--gold); color: #14193A; font: 700 17px/1 var(--body); border-radius: 16px; padding: 0 26px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; min-height: 60px; }
.sb-go:hover { background: #F2C468; }
.sb-go svg { width: 20px; height: 20px; }
.sb-hint { color: var(--mist); font-size: 15px; margin-top: 14px; }
.sb-hint b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .searchbox { grid-template-columns: 1fr 1fr; padding: 6px; border-radius: 20px; }
  .sb-what { grid-column: span 2; }
  .sb-field { padding: 10px 14px; }
  .sb-field + .sb-field::before { left: 14px; right: 14px; top: 0; bottom: auto; width: auto; height: 1px; }
  .sb-zip::after { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: #DCE0EB; }
  .sb-zip::before { left: 0 !important; right: 14px !important; }
  .sb-go { grid-column: span 2; margin-top: 4px; min-height: 54px; }
}
