/* Gulthis — base styles (no Tailwind CDN) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --cl-bg: #f7f6f4;
  --cl-surface: #ffffff;
  --cl-ink: #1a1a1a;
  --cl-muted: #5c5c5c;
  --cl-border: rgba(26, 26, 26, 0.1);
  --cl-shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 1px 3px rgba(26, 26, 26, 0.05);
  --cl-shadow-hover: 0 10px 28px rgba(26, 26, 26, 0.08);
  --cl-radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cl-bg);
  color: var(--cl-ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Minimal utilities formerly provided by the Tailwind CDN */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.gap-1 {
  gap: 0.25rem;
}

.h-5 {
  height: 1.25rem;
}

.w-5 {
  width: 1.25rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 80;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 1rem;
}

.cl-card {
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius);
  box-shadow: var(--cl-shadow);
}

.cl-card-hover {
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cl-card-hover:hover {
  border-color: #d1d5db;
  box-shadow: var(--cl-shadow-hover);
  transform: translateY(-1px);
}

.cl-input {
  width: 100%;
  border: 1px solid var(--cl-border);
  background: #fff;
  color: var(--cl-ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cl-input:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(17, 24, 39, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 61;
  height: 100%;
  width: min(22rem, 92vw);
  background: #fff;
  box-shadow: 8px 0 32px rgba(17, 24, 39, 0.12);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.drawer-panel.is-open {
  transform: translateX(0);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(17, 24, 39, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
  }
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  width: min(32rem, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--cl-border);
  border-radius: 20px 20px 12px 12px;
  box-shadow: 0 24px 64px rgba(17, 24, 39, 0.18);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

@media (min-width: 640px) {
  .modal-panel {
    border-radius: 20px;
  }
}

.modal-overlay.is-open .modal-panel {
  transform: translateY(0);
}

body.modal-open {
  overflow: hidden;
}

.name-ar {
  font-family: "IBM Plex Sans Arabic", "Plus Jakarta Sans", sans-serif;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid;
  padding: 0.125rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
}

/* Active is the default state — never show the badge in the UI. */
.status-badge--active {
  display: none !important;
}

.status-badge--deleted {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #4b5563;
}

.status-badge--law {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.status-badge--resolution {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.status-badge--sold {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  box-shadow: var(--cl-shadow-hover);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Company profile (single-page structure) */
.profile-section-title {
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111827;
}

.profile-prose {
  max-width: 42rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #4b5563;
}

.profile-nav-link {
  display: block;
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  color: #4b5563;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.profile-nav-link:hover {
  background: #f3f4f6;
  color: #111827;
}

.profile-nav-link.is-active {
  background: #f3f4f6;
  color: #111827;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cl-card-hover,
  .drawer-overlay,
  .drawer-panel,
  .modal-overlay,
  .modal-panel,
  .toast {
    transition: none;
  }
}
