/* ── Profile layout ── */
.prof-layout {
  max-width: var(--max); margin: 0 auto;
  padding: 0 20px 48px;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 24px; align-items: start;
}
.prof-main { min-width: 0; }

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: .76rem; color: var(--muted); margin-bottom: 0;
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  padding: 18px 0 0;
}
.breadcrumb a { color: var(--muted); cursor: pointer; transition: color .14s; }
.breadcrumb a:hover { color: var(--accent); }

/* ── Profile header banner ── */
.prof-hdr {
  background: var(--navy); border-radius: var(--r);
  overflow: hidden; margin-bottom: 16px; position: relative;
  animation: fadeUp var(--t-slow) var(--ease-out);
  box-shadow: 0 8px 32px rgba(11,21,37,.18), 0 2px 8px rgba(11,21,37,.1);
}
.prof-hdr-geo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: .6; }
.prof-hdr-inner {
  padding: 32px 28px 0; display: flex; gap: 20px;
  align-items: flex-end; position: relative; z-index: 1;
}
.prof-logo {
  width: 84px; height: 84px; border-radius: 14px;
  background: rgba(255,255,255,.97);
  border: 2.5px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; flex-shrink: 0;
  box-shadow: 0 6px 24px rgba(0,0,0,.28), 0 1px 4px rgba(0,0,0,.15);
  transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base);
  overflow: hidden;
}
.prof-hdr-text { padding-bottom: 22px; flex: 1; min-width: 0; }
.prof-name {
  font-size: 1.75rem; font-weight: 800; letter-spacing: -.045em;
  margin-bottom: 8px; color: #fff; line-height: 1.05;
}
.prof-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.prof-loc {
  font-size: .8rem; color: rgba(255,255,255,.55);
  display: flex; align-items: center; gap: 4px;
}

/* ── Signals strip ── */
.prof-signals {
  display: flex; gap: 0; border-top: 1px solid rgba(255,255,255,.09);
  position: relative; z-index: 1;
}
.sig-item {
  flex: 1; padding: 16px 18px; border-right: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; gap: 3px;
}
.sig-item:last-child { border-right: none; }
.sig-val {
  font-size: 1rem; font-weight: 700; color: #fff;
  font-family: var(--font-display); letter-spacing: -.02em;
}
.sig-val.green { color: #34d399; }
.sig-lbl {
  font-size: .67rem; color: rgba(255,255,255,.38);
  text-transform: uppercase; letter-spacing: .07em;
  font-family: var(--font-display);
}

/* ── Section cards ── */
.prof-sec {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px 26px; margin-bottom: 14px;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.prof-sec:hover { box-shadow: 0 4px 20px rgba(11,21,37,.07); }
.prof-sec-title,
.prof-sec h3 {
  font-size: .69rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
}
.about-txt { font-size: .9rem; color: var(--body); line-height: 1.85; }

/* ── Services grid ── */
.svc-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.svc-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--rsm); padding: 12px 14px 12px 16px;
  cursor: default; position: relative; overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base),
              transform var(--t-base) var(--ease-out), background var(--t-base);
}
.svc-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); border-radius: 3px 0 0 3px;
  transform: scaleY(0); transform-origin: center;
  transition: transform var(--t-base) var(--ease-out);
}
.svc-item:hover {
  border-color: rgba(249,115,22,.3);
  box-shadow: 0 3px 14px rgba(249,115,22,.1);
  transform: translateY(-2px);
  background: var(--accent-l);
}
.svc-item:hover::before { transform: scaleY(1); }
.svc-name { font-size: .84rem; font-weight: 600; margin-bottom: 3px; color: var(--navy); }
.svc-detail {
  font-size: .72rem; color: var(--muted);
  display: flex; align-items: center; gap: 5px;
}
.svc-detail::before {
  content: ''; display: inline-block; width: 7px; height: 7px;
  background: var(--green); border-radius: 50%; flex-shrink: 0;
}

/* ── Equipment list ── */
.equip-list { display: flex; flex-direction: column; gap: 6px; }
.equip-row {
  display: flex; align-items: center; gap: 14px; padding: 11px 14px;
  background: var(--bg-alt); border-radius: var(--rsm); border: 1px solid var(--border);
  transition: background var(--t-base), border-color var(--t-base), transform var(--t-base) var(--ease-out);
  cursor: default;
}
.equip-row:hover {
  background: #fff; border-color: var(--border-d);
  transform: translateX(2px); box-shadow: var(--shadow);
}
.equip-ico {
  font-size: 1.1rem; flex-shrink: 0; width: 32px; height: 32px;
  background: rgba(249,115,22,.08); border: 1px solid rgba(249,115,22,.15);
  border-radius: var(--rxs); display: flex; align-items: center; justify-content: center;
}
.equip-name { font-size: .85rem; font-weight: 600; color: var(--navy); }
.equip-spec { font-size: .73rem; color: var(--muted); margin-top: 1px; }

/* ── Portfolio grid ── */
.port-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.port-item {
  aspect-ratio: 1; border-radius: var(--rsm);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; border: 1px solid rgba(255,255,255,.12); cursor: pointer;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
  position: relative; overflow: hidden;
}
.port-item:hover { transform: scale(1.04); box-shadow: 0 8px 28px rgba(11,21,37,.3); }
.port-hover {
  position: absolute; inset: 0; background: rgba(11,21,37,.78);
  display: flex; align-items: flex-end; padding: 10px;
  opacity: 0; transition: opacity var(--t-base);
}
.port-item:hover .port-hover,
.port-item:focus-visible .port-hover,
.port-item.show-cap .port-hover { opacity: 1; }
.port-cap { font-size: .69rem; color: #fff; font-weight: 500; line-height: 1.4; }

/* ── Reviews ── */
.reviews-list { display: flex; flex-direction: column; gap: 10px; }
.rev-item {
  padding: 16px; background: var(--bg-alt);
  border-radius: var(--rsm); border: 1px solid var(--border);
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.rev-item:hover { box-shadow: var(--shadow); border-color: var(--border-d); }
.rev-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.rev-name { font-size: .87rem; font-weight: 700; color: var(--navy); }
.rev-date { font-size: .73rem; color: var(--muted); padding-top: 1px; }
.rev-stars { font-size: .79rem; margin-bottom: 6px; color: var(--accent); }
.rev-txt { font-size: .84rem; color: var(--body); line-height: 1.7; }
.mfr-reply {
  margin-top: 10px; padding: 10px 13px; background: var(--accent-l);
  border-left: 3px solid var(--accent); border-radius: 0 var(--rxs) var(--rxs) 0;
  font-size: .8rem; color: var(--body);
}
.reply-lbl {
  font-size: .67rem; font-weight: 700; color: var(--accent); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: .07em; font-family: var(--font-display);
}

/* ── Sidebar ── */
.prof-sidebar { position: sticky; top: 76px; padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.contact-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); padding: 22px;
  box-shadow: 0 2px 12px rgba(11,21,37,.05);
}
.contact-card-title {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); margin-bottom: 10px;
  font-family: var(--font-display);
}
.contact-card > p { font-size: .82rem; color: var(--muted); margin-bottom: 16px; line-height: 1.65; }
.gated-box {
  text-align: center; padding: 20px 16px; background: var(--bg-alt);
  border: 1.5px dashed var(--border-d); border-radius: var(--rsm); margin-bottom: 14px;
}
.gated-box .lock { margin-bottom: 10px; color: var(--muted); }
.gated-box p { font-size: .8rem; color: var(--muted); margin: 0 0 14px; line-height: 1.55; }
.contact-revealed {
  padding: 14px; background: var(--bg-alt);
  border-radius: var(--rsm); margin-bottom: 12px;
  border: 1px solid var(--border);
}
.c-item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .83rem; }
.c-item:last-child { margin-bottom: 0; }
.c-lbl { color: var(--muted); font-size: .72rem; width: 44px; flex-shrink: 0; font-weight: 500; }
.c-val { color: var(--navy); font-weight: 600; }

/* ── Spec card ── */
.spec-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px;
  box-shadow: 0 2px 12px rgba(11,21,37,.05);
}
.spec-card-title {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); margin-bottom: 14px;
  font-family: var(--font-display); padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
}
.spec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .82rem;
}
.spec-row:last-child { border-bottom: none; padding-bottom: 0; }
.spec-k { color: var(--muted); font-size: .8rem; }
.spec-v { font-weight: 700; color: var(--navy); }

/* ── Empty states ── */
.prof-empty-state {
  display: block; font-size: .81rem; color: var(--muted);
  font-style: italic; padding: 4px 0;
}

/* ── Profile header actions (edit btn / save bar) ── */
.prof-hdr-actions {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  display: flex; gap: 8px; align-items: center;
}
.prof-edit-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: .76rem; font-weight: 600; border-radius: 7px;
  padding: 6px 12px; cursor: pointer; backdrop-filter: blur(4px);
  transition: background var(--t-base), border-color var(--t-base);
  font-family: var(--font-display); letter-spacing: .01em;
}
.prof-edit-btn:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.5); }
.prof-edit-bar { display: flex; gap: 8px; align-items: center; }

/* ── Logo upload overlay ── */
.prof-logo-wrap { position: relative; overflow: hidden; cursor: default; }
.prof-logo-upload-hint {
  position: absolute; inset: 0; background: rgba(13,24,41,.65);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; opacity: 0; transition: opacity var(--t-base);
  border-radius: 8px; color: #fff; font-size: .64rem; font-weight: 600;
  font-family: var(--font-display); letter-spacing: .04em; text-transform: uppercase;
  pointer-events: none;
}
.prof-edit-mode .prof-logo-wrap { cursor: pointer; }
.prof-edit-mode .prof-logo-wrap:hover .prof-logo-upload-hint { opacity: 1; }

/* ── Edit mode global ── */
.prof-edit-mode .prof-sec { border-color: var(--accent); border-width: 1.5px; }

/* ── Editable inputs ── */
.prof-edit-input {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 6px; padding: 5px 9px;
  font-size: inherit; font-family: inherit; outline: none;
  transition: border-color var(--t-base), background var(--t-base);
}
.prof-edit-input:focus { border-color: var(--accent); background: rgba(255,255,255,.18); }
.prof-name-input { font-size: 1.2rem; font-weight: 700; width: 100%; max-width: 360px; }
.prof-loc-input  { font-size: .8rem; width: 180px; }

.prof-edit-textarea {
  width: 100%; box-sizing: border-box;
  border: 1.5px solid var(--border-d); border-radius: var(--rxs);
  padding: 10px 13px; font-size: .88rem; font-family: inherit;
  color: var(--navy); line-height: 1.8; resize: vertical;
  outline: none; background: var(--bg-alt);
  transition: border-color var(--t-base);
}
.prof-edit-textarea:focus { border-color: var(--accent); }

.prof-edit-select {
  flex: 1; border: 1.5px solid var(--border-d); border-radius: var(--rxs);
  padding: 7px 10px; font-size: .82rem; font-family: inherit;
  color: var(--navy); background: var(--bg-alt); outline: none;
  transition: border-color var(--t-base);
}
.prof-edit-select:focus { border-color: var(--accent); }

/* ── Service tag editor ── */
.svc-edit-wrap { display: flex; flex-direction: column; gap: 10px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 7px; min-height: 32px; }
.svc-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent-l); border: 1px solid var(--accent);
  border-radius: 20px; padding: 4px 10px 4px 12px;
  font-size: .8rem; font-weight: 500; color: var(--navy);
}
.svc-tag-rm {
  background: none; border: none; cursor: pointer; padding: 0;
  color: var(--muted); font-size: 1rem; line-height: 1;
  display: flex; align-items: center; transition: color var(--t-base);
}
.svc-tag-rm:hover { color: #ef4444; }
.svc-add-row { display: flex; gap: 8px; align-items: center; }

/* ── Equipment editor ── */
.equip-edit-row {
  display: flex; gap: 8px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.equip-edit-row .prof-edit-input {
  background: var(--bg-alt); border: 1.5px solid var(--border-d);
  color: var(--navy); border-radius: var(--rxs);
}
.equip-edit-row .prof-edit-input:focus { border-color: var(--accent); }
.equip-ico-input   { width: 44px; text-align: center; flex-shrink: 0; }
.equip-name-input  { flex: 1; }
.equip-spec-input  { flex: 1; }
.equip-rm-btn {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  background: var(--bg-alt); border: 1px solid var(--border-d);
  color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
}
.equip-rm-btn:hover { background: #fee2e2; border-color: #ef4444; color: #ef4444; }

/* ── Spec editor ── */
.spec-edit-row {
  display: flex; gap: 8px; align-items: center; padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.spec-k-input { flex: 1; }
.spec-v-input { flex: 1; }
.spec-edit-row .prof-edit-input {
  background: var(--bg-alt); border: 1.5px solid var(--border-d);
  color: var(--navy); border-radius: var(--rxs); font-size: .8rem;
}
.spec-edit-row .prof-edit-input:focus { border-color: var(--accent); }

/* ── Responsive profile ── */
@media (max-width: 960px) {
  .prof-layout { grid-template-columns: 1fr; padding: 16px; }
  .prof-sidebar { position: static; }
  .svc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .prof-layout { padding: 0 12px 32px; }
  .prof-hdr-inner { padding: 20px 16px 0; gap: 12px; }
  .prof-logo { width: 54px; height: 54px; font-size: 1.4rem; }
  .prof-name { font-size: 1.15rem; }
  .prof-signals { flex-wrap: wrap; }
  .sig-item { flex: 1 1 calc(50% - 1px); border-bottom: 1px solid rgba(255,255,255,.06); }
  .port-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
}
