/* ---------- Wordmark (text logo) ---------- */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #212529;
  line-height: 1;
}
.wordmark__k {
  color: #005a80;
  font-size: 1.5rem;
  font-weight: 700;
}
.wordmark__rest {
  color: #212529;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.wordmark__sub {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 500;
  color: #6c757d;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
  width: 100%;
}
.wordmark--inverse .wordmark__k { color: #ffc107; }
.wordmark--inverse .wordmark__rest { color: #ffffff; }

/* ---------- Tabs ---------- */
#tabs {
  position: relative;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
}
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6c757d;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.tab:hover { color: #212529; }
.tab[aria-selected="true"] {
  color: #005a80;
  border-bottom-color: #005a80;
}
.tab--cta {
  margin-left: auto;
  color: #005a80;
  font-weight: 600;
}
.tab--cta[aria-selected="true"] {
  background: #005a80;
  color: #ffffff;
  border-bottom-color: transparent;
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  margin: 0.5rem 0 0.5rem auto;
  align-self: center;
}
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  background: #e6f0f5;
  color: #005a80;
  border-radius: 999px;
}

/* ---------- Panels ---------- */
.panel { animation: fadeIn .25s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px);} to {opacity:1; transform:none;} }

/* ---------- Timeline ---------- */
.timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.125rem;
  top: 1.75rem;
  bottom: -0.25rem;
  width: 2px;
  background: #dee2e6;
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  position: absolute;
  left: -1.625rem;
  top: 0.25rem;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 999px;
  background: #dee2e6;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #dee2e6;
}
.timeline-item--done .timeline-dot { background: #198754; box-shadow: 0 0 0 1px #198754; }
.timeline-item--current .timeline-dot {
  background: #ffc107;
  box-shadow: 0 0 0 1px #ffc107, 0 0 0 6px rgba(255,193,7,.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 1px #ffc107, 0 0 0 6px rgba(255,193,7,.18); }
  50%      { box-shadow: 0 0 0 1px #ffc107, 0 0 0 10px rgba(255,193,7,0); }
}
.timeline-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 2px rgba(33,37,41,.04);
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.timeline-card:hover { box-shadow: 0 8px 24px rgba(33,37,41,.08); border-color: #ced4da; }
.timeline-item--current .timeline-card { border-color: #ffc107; background: #fffbf0; }
.timeline-item--done .timeline-card .milestone-pct { color: #198754; }
.timeline-bar {
  height: 6px;
  background: #e9ecef;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.timeline-bar > span {
  display: block;
  height: 100%;
  background: #198754;
  border-radius: 999px;
  transition: width .7s ease;
}
.timeline-item--current .timeline-bar > span { background: linear-gradient(90deg, #ffc107, #f59e0b); }

/* ---------- Form ---------- */
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 0.375rem;
}
.form-input {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  color: #212529;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-input:focus {
  outline: none;
  border-color: #005a80;
  box-shadow: 0 0 0 4px rgba(0,90,128,.12);
}
textarea.form-input { resize: vertical; min-height: 7rem; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: #005a80;
  border: 1px solid #005a80;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
  box-shadow: 0 1px 2px rgba(0,90,128,.25);
}
.btn-primary:hover { background: #004666; border-color: #004666; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(0,90,128,.25); }

/* ---------- Photo filter chip ---------- */
.chip {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #495057;
  background: transparent;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.chip:hover { background: #f1f3f5; }
.chip--active { background: #212529; color: #fff; }
.chip--active:hover { background: #212529; }

/* ---------- Photo card ---------- */
.photo-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #f1f3f5;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid #dee2e6;
}
.photo-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(33,37,41,.12); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo-card:hover img { transform: scale(1.04); }
.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33,37,41,0) 50%, rgba(33,37,41,.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: #fff;
}
.photo-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,.95);
  color: #212529;
  border-radius: 999px;
}

/* ---------- Document row ---------- */
.doc-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  align-items: center;
  transition: background .15s ease;
}
.doc-row:hover { background: #f8f9fa; }
@media (min-width: 640px) {
  .doc-row { grid-template-columns: 7fr 2fr 2fr 1fr; gap: 1rem; }
}
.doc-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: #e6f0f5;
  color: #005a80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: none;
}
.doc-icon--pdf  { background: #f8d7da; color: #b02a37; }
.doc-icon--doc  { background: #cfe2ff; color: #084298; }
.doc-icon--xls  { background: #d1e7dd; color: #0f5132; }
.doc-icon--img  { background: #fff3cd; color: #664d03; }

/* ---------- Payment row ---------- */
.pay-row {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pay-row:hover { box-shadow: 0 4px 12px rgba(33,37,41,.05); }
.pay-row--next { border-color: #ffc107; background: #fffdf5; }
.pay-row--done { border-color: #a3cfbb; }
.pay-pct {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #212529;
}
.pay-pct--done { color: #198754; }
.pay-pct--next { color: #b8860b; }

/* ---------- Misc ---------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- Print-friendliness for sales deck ---------- */
@media print {
  header, nav[aria-label="Portal sections"], footer, .tab--cta { display: none; }
  .panel { display: block !important; opacity: 1 !important; }
  body { background: #fff; }
}
