/* =============================================================================
   Alkhaldi Group — Portal styles
   Light-mode only. Minimal grid layout. Tokens, base, components, a11y.
   ----------------------------------------------------------------------------
   Section index:
     1. Tokens
     2. Base typography
     3. Logo mark
     4. Company tiles
     5. Visit pill button
     6. Forms
     7. Animations
     8. Accessibility helpers
============================================================================= */


/* 1. TOKENS =============================================================== */
:root {
  --ink-900: #0a0a0a;
  --ink-800: #1c1c1c;
  --ink-700: #2a2a2a;
  --ink-600: #404040;
  --ink-500: #6b6b6b;
  --ink-400: #94a3b8;
  --ink-300: #c4c4c4;
  --ink-200: #ececec;
  --ink-100: #f5f5f5;
  --ink-50:  #fafafa;
  --white:   #ffffff;
}


/* 2. BASE TYPOGRAPHY ====================================================== */
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink-800);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
.arabic { font-family: 'Noto Naskh Arabic', serif; }
.ink-700 { color: var(--ink-700); }
.ink-500 { color: var(--ink-500); }
.ink-300 { color: var(--ink-300); }
.hairline { border-color: var(--ink-200); }


/* 3. LOGO MARK ============================================================ */
.logo-mark {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  flex: 0 0 38px;
  color: var(--ink-900);
}
.logo-mark svg {
  width: 100%; height: 100%; display: block;
  transition: transform 400ms cubic-bezier(.2,.7,.2,1);
}
a.logo:hover .logo-mark svg { transform: rotate(15deg); }


/* 4. COMPANY TILES ======================================================== */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 5 / 4;
  padding: 36px 32px;
  border: 1px solid var(--ink-200);
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  transition:
    transform 350ms cubic-bezier(.2,.7,.2,1),
    border-color 350ms ease,
    box-shadow 350ms ease;
}
.tile:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow:
    0 24px 60px -20px rgb(0 0 0 / 0.10),
    0 6px 20px -10px rgb(0 0 0 / 0.06);
}
.tile .swatch {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 350ms ease;
  z-index: 0;
}
.tile:hover .swatch { opacity: 1; }
.tile > * { position: relative; z-index: 1; }

/* Per-company accent: pastel wash on hover + colored eyebrow dot */
.tile-fkp .swatch { background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 75%); }
.tile-wt  .swatch { background: linear-gradient(135deg, #cffafe 0%, #ffffff 75%); }
.tile-iec .swatch { background: linear-gradient(135deg, #dcfce7 0%, #ffffff 75%); }
.tile-dab .swatch { background: linear-gradient(135deg, #fef3c7 0%, #ffffff 75%); }

.tile-fkp .dot { background: #0284c7; } /* sky-600 */
.tile-wt  .dot { background: #06b6d4; } /* cyan-500 */
.tile-iec .dot { background: #10b981; } /* emerald-500 */
.tile-dab .dot { background: #d97706; } /* amber-600 */


/* 5. VISIT PILL BUTTON ==================================================== */
.visit-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.65rem 1.15rem 0.65rem 1.25rem;
  background: var(--ink-900);
  color: var(--white);
  border-radius: 9999px;
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.005em;
  min-height: 38px;
  border: 0;
  cursor: pointer;
  transition:
    gap 220ms ease,
    background 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}
.visit-btn svg { transition: transform 220ms ease; }
.tile:hover .visit-btn {
  gap: 0.8rem;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px rgb(0 0 0 / 0.30);
}
.tile:hover .visit-btn svg { transform: translateX(2px); }
.tile-fkp:hover .visit-btn { background: #0369a1; } /* sky-700 */
.tile-wt:hover  .visit-btn { background: #0e7490; } /* cyan-700 */
.tile-iec:hover .visit-btn { background: #047857; } /* emerald-700 */
.tile-dab:hover .visit-btn { background: #b45309; } /* amber-700 */


/* 6. FORMS ================================================================ */
.field {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--ink-900);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.field:focus {
  outline: none;
  border-color: var(--ink-900);
  box-shadow: 0 0 0 3px rgb(0 0 0 / 0.06);
}
.field::placeholder { color: var(--ink-400); }


/* 7. ANIMATIONS =========================================================== */
.fade-up {
  opacity: 0; transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.fade-up.in { opacity: 1; transform: translateY(0); }


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

.skip-link {
  position: absolute;
  top: -48px; left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--ink-900);
  color: var(--white);
  font-weight: 600; font-size: 14px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.18);
  transition: top 150ms ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: -4px;
}

*:focus-visible {
  outline: 2px solid var(--ink-900);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
