/********** Base & Variables **********/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden !important;
}

:root {
  /* ===== Core palette — structured, financial-software identity ===== */
  --ink: #101B2D;          /* near-black navy — headings, nav, footer */
  --ink-soft: #1F3A5F;      /* deep steel blue — primary surfaces */
  --paper: #EEF1F6;         /* cool pale background */
  --surface: #FFFFFF;

  --accent: #B8863B;        /* muted gold — ledger / value accent */
  --accent-soft: #EFE1C8;   /* pale gold wash, used sparingly */

  --text: #16202F;
  --muted: #5B6472;
  --on-dark: #DCE4F0;
  --on-dark-muted: #93A2B8;

  --border: #DCE2EA;
  --border-dark: #2A3B54;

  --shadow: rgba(16, 27, 45, 0.10);
  --transition: 0.25s ease;

  /* legacy variable names kept for compatibility with existing markup */
  --primary: var(--ink-soft);
  --primary-light: #6E88A6;
  --primary-lighter: #C9D4E2;
  --primary-dark: var(--ink);
  --secondary: var(--ink);
  --light: var(--paper);
}

/* ===== Dark Mode ===== */
[data-theme="dark"] {
  --ink: #0A1220;
  --paper: #0B1424;
  --surface: #121C30;
  --text: #E7ECF4;
  --muted: #93A2B8;
  --border: var(--border-dark);
  --shadow: rgba(0, 0, 0, 0.45);
  --primary-lighter: #24354E;
}

body {
  background: var(--paper);
  color: var(--text);
  font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  transition: var(--transition);
  overflow-x: hidden !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Almarai', 'Cairo', sans-serif;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--text);
}

p { color: var(--muted); }

.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.fw-medium { font-weight: 600; }
.fw-semi-bold { font-weight: 700; }

/********** Utilities **********/
.back-to-top {
  position: fixed;
  right: 45px;
  bottom: 45px;
  z-index: 99;
  display: none;
}

/********** Spinner **********/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  z-index: 99999;
}

#spinner.show {
  opacity: 1;
  visibility: visible;
}

/********** Buttons **********/
.btn {
  font-family: 'Almarai', 'Cairo', sans-serif;
  font-weight: 700;
  border-radius: 10px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--ink-soft);
  border: 1px solid var(--ink-soft);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn-outline-primary {
  border: 1.5px solid var(--ink-soft);
  color: var(--ink-soft);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--ink-soft);
  color: #fff;
}

.btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

/********** Overlay Image Preview **********/
#contain-img {
  display: none !important;
  z-index: 9999;
  overflow: hidden !important;
}

#contain-img.d-flex {
  display: flex !important;
  flex-direction: column;
}

#scaled-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

@media (max-width: 768px) {
  #scaled-img {
    max-width: 100%;
    max-height: 90vh;
  }
}

/********** Navbar **********/
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  transition: var(--transition);
}

.navbar-nav {
  display: flex !important;
  flex-direction: row-reverse !important;
  gap: 8px;
  align-items: center;
}

.navbar-nav .nav-item { margin-right: 0; }

.nav-title {
  font-family: 'Almarai', 'Cairo', sans-serif;
  color: var(--ink) !important;
  font-weight: 800;
  font-size: 1.3rem;
}

.navbar-brand img {
  border-radius: 6px;
}

.nav-link {
  color: var(--text) !important;
  font-weight: 600;
  padding: 8px 14px !important;
  margin-inline: 2px;
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width var(--transition);
  position: absolute;
  bottom: 2px;
  right: 14px;
  left: 14px;
  width: calc(100% - 28px);
  transform: scaleX(0);
  transform-origin: center;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink-soft) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: 1px solid var(--border);
  border-radius: 8px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%2816,27,45,0.85%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar.sticky-top.scrolled {
  box-shadow: 0 6px 20px var(--shadow);
}

@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    padding: 10px 0 !important;
  }
  .nav-link::after { display: none; }
}

/********** Section Titles **********/
.section-title {
  position: relative;
  display: inline-block;
  font-size: 2rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--muted);
  max-width: 680px;
  line-height: 1.9;
}

@media (max-width: 768px) {
  .section-title { font-size: 1.6rem; }
}

/********** Cards **********/
.card {
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

/********** Hero **********/
.hero-section {
  min-height: 88vh;
  background: var(--paper);
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(31,58,95,0.08), transparent 55%),
    linear-gradient(var(--paper), var(--paper) 70%, transparent);
  pointer-events: none;
}

.hero-section .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  border-radius: 30px;
  font-size: 0.9rem;
  margin-bottom: 22px;
  font-weight: 700;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.hero-title {
  font-size: 2.9rem;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 800;
}

[data-theme="dark"] .hero-title { color: var(--text); }

.hero-title .accent-word {
  color: var(--ink-soft);
}

.hero-desc {
  font-size: 1.08rem;
  line-height: 2;
  margin-top: 20px;
  color: var(--muted);
  max-width: 46ch;
}

.hero-buttons .btn {
  padding: 13px 28px;
  font-size: 0.98rem;
}

.hero-image-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 50px var(--shadow);
}

.hero-image {
  max-width: 100%;
  width: 100%;
  display: block;
}

.hero-image-tag {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-image-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.1rem; }
  .hero-section { text-align: center; padding: 70px 0; min-height: auto; }
  .hero-buttons { justify-content: center; }
  .hero-desc { margin-inline: auto; }
}

/********** Stats strip (ledger style) **********/
.stats-strip {
  background: var(--ink);
  border-top: 1px solid var(--border-dark);
}

.stat-item {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-item:first-child { border-right: none; }

.stat-item::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  margin: 14px auto 0;
}

.stat-number {
  font-family: 'Almarai', 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.7;
  margin: 0;
  max-width: 22ch;
}

.stat-number .accent { color: var(--accent); }

@media (max-width: 767.98px) {
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}

/********** Why us — row list, not identical cards **********/
.why-row {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.why-row:last-child { border-bottom: none; }

.why-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.why-content h5 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.why-content p { margin: 0; }

/********** Projects **********/
.projects-section {
  background: var(--surface);
  position: relative;
}

.project-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--ink-soft);
  border-radius: 4px;
  padding: 34px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
}

.project-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px var(--shadow);
  border-top-color: var(--accent);
}

.project-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 22px;
  transition: var(--transition);
}

.project-box:hover .project-icon {
  background: var(--ink-soft);
  color: #fff;
}

.project-type {
  display: block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
}

[data-theme="dark"] .project-title { color: var(--text); }

.project-desc {
  color: var(--muted);
  line-height: 1.95;
  margin-bottom: 22px;
  font-size: 0.97rem;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.project-features span {
  background: var(--paper);
  color: var(--ink-soft);
  padding: 6px 13px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
}

/********** Project samples (live reference links) **********/
.project-box .project-samples {
  margin-top: auto;
  padding-top: 20px;
}

.samples-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.samples-label::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.samples-list {
  display: flex;
  flex-wrap: wrap;
  /* flex-direction: column; */
  gap: 8px;
}

.sample-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.sample-link .sample-name {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
}

.sample-link .sample-name::before {
  content: '';
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transition: background var(--transition);
}

.sample-link .sample-domain {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  unicode-bidi: plaintext;
}

.sample-link .sample-arrow {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.7rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.sample-link:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  color: #fff;
  transform: translateY(-2px);
}

.sample-link:hover .sample-name::before {
  background: var(--accent-soft);
}

.sample-link:hover .sample-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: translate(-3px, -3px);
}

[data-theme="dark"] .sample-link {
  background: rgba(255,255,255,0.03);
}

/********** CTA band **********/
.cta-band {
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff;
  border-radius: 4px;
}

.cta-band h3 { color: #fff; }
.cta-band p { color: var(--on-dark-muted); }

/********** Footer **********/
.footer-section {
  background: var(--ink);
  color: var(--on-dark);
}

.footer-section h5,
.footer-section h6 {
  color: #fff;
}

.footer-section .nav-title { color: #fff !important; }

.footer-section p {
  color: var(--on-dark-muted);
  line-height: 1.85;
  font-size: .95rem;
}

.footer-section a { color: var(--on-dark); text-decoration: none; }
.footer-section a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  color: var(--on-dark-muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all .25s ease;
}

.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-3px);
}

/********** Inner page header (contact, services, customers) **********/
.page-header {
  background: var(--paper);
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  border-bottom: 1px solid var(--border);
  padding: 64px 0 56px;
  text-align: center;
}

.page-header .section-eyebrow {
  justify-content: center;
}

.page-header .section-title {
  display: block;
}

/********** Contact page **********/
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 30px;
}

.contact-lead-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-lead-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.contact-lead-item h5 {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

[data-theme="dark"] .contact-lead-item h5 { color: var(--accent); }

.contact-lead-item p { margin: 0; color: var(--text); }

.contact-group {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 18px;
}

.contact-group:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 22px;
}

.contact-group h6 {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

[data-theme="dark"] .contact-group h6 { color: var(--text); }

.contact-group .numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-group .numbers a {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.contact-group .numbers a:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  color: #fff;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
}

.map-frame {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  min-height: 380px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: block;
  filter: grayscale(0.15);
}

/********** Services page **********/
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--ink-soft);
  border-radius: 4px;
  padding: 30px 22px;
  height: 100%;
  text-align: center;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px var(--shadow);
  border-top-color: var(--accent);
}

.service-icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 18px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--ink-soft);
  color: #fff;
}

.service-card h5 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--muted);
}

.service-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.service-card:hover .service-more { color: var(--accent); }

/* Modal theming */
.modal-content {
  border: none;
  border-radius: 8px;
}

.modal-header {
  background: var(--ink);
  color: #fff;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.modal-header .btn-close {
  /* filter: invert(1) grayscale(1) brightness(2); */
  display:none;
}

.modal-title {
  font-family: 'Almarai', 'Cairo', sans-serif;
  font-weight: 800;
  color: #fff;
  text-align: center !important;
}

.modal-body p { color: var(--text); }

.modal-body ul.service-modules {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-body ul.service-modules li {
  background: var(--paper);
  color: var(--ink-soft);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
}

/********** Customers / customer cards **********/


.customer-col {
  display: flex;
}

/* Main card */
.customer-card {
  width: 100%;
  height: 100%;
  min-height: 270px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* Gold top line */
.customer-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  /* background: var(--ink-soft); */
  transition: background 0.3s ease;
}

/* Very subtle background decoration */
.customer-card::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  top: -80px;
  left: -70px;
  border-radius: 50%;
  background: var(--ink-soft);
  opacity: 0.035;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.customer-card:hover::before {
  background: var(--accent);
}

.customer-card:hover::after {
  transform: scale(1.6);
  opacity: 0.06;
}

/* Card inner */
.customer-card-inner {
  height: 100%;
  min-height: 270px;
  padding: 24px 22px 20px;

  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Top section */
.customer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

/* Customer number */
.customer-number {
  font-family: 'Almarai', 'Cairo', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);

  letter-spacing: 1px;

  background: var(--paper);
  border: 1px solid var(--border);

  padding: 5px 9px;
  border-radius: 7px;
}

/* Icon */
.customer-icon {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: var(--paper);
  border: 1px solid var(--border);

  color: var(--ink-soft);
  font-size: 1.15rem;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.customer-card:hover .customer-icon {
  background: var(--ink-soft);
  color: #fff;
  transform: scale(1.05);
}

/* Content */
.customer-content {
  flex: 1;
}

/* Customer name */
.customer-name {
  margin: 0 0 9px;

  color: var(--ink);
  font-family: 'Almarai', 'Cairo', sans-serif;

  font-size: 1.05rem;
  font-weight: 800;

  line-height: 1.65;

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

  transition: color 0.25s ease;
}

.customer-card:hover .customer-name {
  color: var(--ink-soft);
}

/* Activity */
.customer-activity {
  margin: 0 0 14px;

  color: var(--muted);

  font-size: 0.86rem;
  line-height: 1.7;

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

/* Location */
.customer-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  max-width: 100%;

  padding: 6px 10px;

  background: var(--paper);
  border: 1px solid var(--border);

  border-radius: 7px;

  color: var(--muted);

  font-size: 0.76rem;
  line-height: 1.5;
}

.customer-location i {
  color: var(--accent);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.customer-location span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Footer */
.customer-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 22px;
  padding-top: 15px;

  border-top: 1px solid var(--border);
}

/* Details text */
.customer-details {
  color: var(--muted);

  font-size: 0.78rem;
  font-weight: 700;

  transition: color 0.25s ease;
}

.customer-card:hover .customer-details {
  color: var(--ink-soft);
}

/* Arrow */
.customer-arrow {
  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--paper);
  border: 1px solid var(--border);

  color: var(--ink-soft);

  font-size: 0.72rem;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease;
}

.customer-card:hover .customer-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: translateX(-4px);
}

/* Customers container */
#departmentAccordion {
  min-height: 140px;
}

/* Empty result */
#noDepartmentsResult {
  font-size: 0.95rem;
}


/********** Modern Customer Search **********/

.search-wrap {
  position: relative;
  max-width: 620px;
}

.search-icon {
  position: absolute;

  top: 50%;
  right: 20px;

  transform: translateY(-50%);

  color: var(--ink-soft);

  font-size: 0.95rem;

  pointer-events: none;

  z-index: 2;
}

.search-input {
  width: 100%;

  min-height: 54px;

  padding: 14px 52px 14px 22px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--surface);
  color: var(--text);

  font-family: inherit;
  font-size: 0.9rem;

  box-shadow: 0 6px 20px rgba(16, 27, 45, 0.04);

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.search-input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.search-input:hover {
  border-color: var(--primary-light);
}

.search-input:focus {
  outline: none;

  border-color: var(--ink-soft);

  box-shadow:
    0 0 0 4px rgba(31, 58, 95, 0.08),
    0 10px 30px rgba(16, 27, 45, 0.07);
}


/********** Responsive **********/

@media (max-width: 1199.98px) {

  .customer-card,
  .customer-card-inner {
    min-height: 260px;
  }

}

@media (max-width: 991.98px) {

  .customer-card,
  .customer-card-inner {
    min-height: 250px;
  }

}

@media (max-width: 575.98px) {

  .customer-card,
  .customer-card-inner {
    min-height: 235px;
  }

  .customer-card-inner {
    padding: 21px 18px 18px;
  }

  .customer-card-top {
    margin-bottom: 20px;
  }

  .customer-icon {
    width: 48px;
    height: 48px;
  }

  .customer-name {
    font-size: 1rem;
  }

  .customer-activity {
    font-size: 0.82rem;
  }

  .customer-card-footer {
    margin-top: 18px;
  }

}


/********** Misc **********/
.row { margin-left: 0; margin-right: 0; }
img, .project-card, .container { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}