/* NBS.MA — final unified visual refinement based on the supplied reference */
:root {
  color-scheme: light;
  --nbs-blue: #0866f5;
  --nbs-blue-hover: #0757d4;
  --nbs-blue-soft: #eaf2ff;
  --nbs-navy: #0d2142;
  --nbs-ink: #13233d;
  --nbs-muted: #536782;
  --nbs-paper: #f4f7fc;
  --nbs-surface: #ffffff;
  --nbs-line: #e2eaf5;
  --nbs-green: #16845b;
  --ink: var(--nbs-ink);
  --ink-soft: var(--nbs-muted);
  --muted: #71819a;
  --paper: var(--nbs-paper);
  --white: #fff;
  --surface: #fff;
  --background: var(--nbs-paper);
  --line: var(--nbs-line);
  --accent: var(--nbs-blue);
  --gold: var(--nbs-blue);
  --gold-dark: var(--nbs-blue-hover);
  --green: var(--nbs-green);
  --sidebar: var(--nbs-navy);
  --dark: var(--nbs-navy);
  --radius: 14px;
  --shadow: 0 12px 36px rgba(13, 33, 66, .07);
}
html { scroll-behavior: smooth; }
body { color: var(--nbs-ink); background: var(--nbs-paper); font-size: 15px; line-height: 1.65; }
body:lang(fr), body:lang(en) { font-family: "DM Sans", "IBM Plex Sans Arabic", sans-serif; }
body:lang(ar) { font-family: "IBM Plex Sans Arabic", "DM Sans", sans-serif; }
a { text-decoration-thickness: .06em; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid rgba(8,102,245,.35) !important; outline-offset: 2px; }

/* Public header */
.site-header, .salon-page .site-header {
  min-height: 76px; height: auto; background: rgba(255,255,255,.98) !important;
  color: var(--nbs-navy) !important; border-bottom: 1px solid var(--nbs-line) !important;
  box-shadow: 0 2px 14px rgba(13,33,66,.035); backdrop-filter: blur(12px);
}
.site-header .brand { gap: 10px; font-size: 22px; color: var(--nbs-navy) !important; }
.site-header .brand-name { color: var(--nbs-navy) !important; line-height: 1.15; }
.site-header .brand-mark, .site-header .brand-icon { background: var(--nbs-blue) !important; color: #fff !important; border-color: var(--nbs-blue) !important; }
.site-header .main-nav { gap: clamp(16px, 2vw, 30px); font-size: 13px; }
.site-header .main-nav a, .site-header .header-actions { color: var(--nbs-muted) !important; }
.site-header .main-nav a:hover, .site-header .main-nav a[aria-current="page"] { color: var(--nbs-blue) !important; }
.language-picker { background: #f1f4f9; color: #42536d; }
.language-picker a { min-width: 36px; min-height: 36px; font-size: 13px; }
.language-picker a[aria-current="true"] { color: var(--nbs-blue); }
.header-cta, .header-cta:hover { background: var(--nbs-blue) !important; border-color: var(--nbs-blue) !important; color: #fff !important; border-radius: 10px; font-size: 13px; min-height: 44px; }

/* Hero — deliberate hierarchy and readable copy */
.hero { background: #fff !important; color: var(--nbs-navy) !important; }
.hero h1 { color: var(--nbs-navy) !important; font-size: clamp(46px, 5vw, 68px) !important; line-height: 1.12 !important; letter-spacing: -.045em; font-weight: 700; }
.hero h1 span, .hero-title, .hero-kicker, .hero .eyebrow { color: var(--nbs-blue) !important; }
.hero-description { max-width: 560px; color: var(--nbs-muted) !important; font-size: 16px !important; line-height: 1.8 !important; }
.eyebrow { font-size: 12px !important; letter-spacing: .025em; }
.search-panel { border: 1px solid var(--nbs-line) !important; border-radius: 14px !important; background: #fff !important; box-shadow: 0 14px 34px rgba(13,33,66,.08) !important; }
.search-field { min-height: 48px; }
.search-field input, .search-field select { font-size: 13px !important; color: var(--nbs-ink) !important; }
.search-field input::placeholder { color: #71819a !important; opacity: 1; }
.field-icon { color: var(--nbs-blue) !important; }
.button, .button-dark, .button-gold, .search-button, .nearby-search-button,
.primary, .action, .primary-button, .header-cta, .action-finish {
  min-height: 44px; border-radius: 9px !important; background: var(--nbs-blue) !important;
  border-color: var(--nbs-blue) !important; color: #fff !important; font-size: 14px !important;
  font-weight: 600; box-shadow: 0 5px 14px rgba(8,102,245,.13);
}
.button:hover, .primary:hover, .action:hover, .primary-button:hover, .header-cta:hover,
.search-button:hover, .nearby-search-button:hover, .action-finish:hover { background: var(--nbs-blue-hover) !important; }
.button:not(.primary):not(.button-dark):not(.button-gold) { background: #fff !important; color: var(--nbs-navy) !important; border-color: var(--nbs-line) !important; box-shadow: none; }
.button-dark { background: var(--nbs-navy) !important; border-color: var(--nbs-navy) !important; }
.nearby-search-button { grid-column: span 2; }
.location-search-status, .hero-proof p, .hero-bottom { font-size: 12px !important; }
.hero-proof strong { font-size: 13px !important; }
.floating-rating strong { font-size: 15px; }
.floating-rating small, .floating-booking small { font-size: 11px; }
.floating-booking strong { font-size: 13px; }

/* Sections and cards */
.category-section, .city-section { background: #fff !important; }
.category-section-heading h2, .city-section h2 { color: var(--nbs-navy); font-size: 25px !important; line-height: 1.3; }
.category-section-heading .eyebrow, .section-kicker, .section-label { font-size: 12px !important; }
.category-card { min-height: 88px; border: 1px solid var(--nbs-line) !important; border-radius: 12px !important; background: #fff !important; }
.category-card strong, .category-card h3 { color: var(--nbs-navy); font-size: 14px !important; }
.category-card small, .category-card p { color: var(--nbs-muted); font-size: 12px !important; line-height: 1.5; }
.category-icon, .booking-icon, .service-placeholder, .metric-icon { background: var(--nbs-blue-soft) !important; color: var(--nbs-blue) !important; }
.category-card:hover, .category-card.is-selected, .provider-card:hover, .salon-card:hover {
  border-color: #b8d1ff !important; box-shadow: 0 14px 32px rgba(8,102,245,.10) !important; transform: translateY(-2px);
}
.provider-section, .providers-section, .featured-section { background: #f3f6fc !important; }
.provider-card, .salon-card { overflow: hidden; border: 1px solid var(--nbs-line) !important; border-radius: 14px !important; background: #fff !important; box-shadow: var(--shadow) !important; }
.provider-card h3, .salon-card h3, .provider-card .card-title { color: var(--nbs-navy); font-size: 16px !important; line-height: 1.4; }
.provider-card p, .salon-card p, .provider-card .card-description { color: var(--nbs-muted); font-size: 13px !important; line-height: 1.55; }
.provider-card small, .salon-card small, .provider-card .meta, .salon-card .meta { font-size: 11px !important; }
.provider-card .price, .salon-card .price, .rating { color: var(--nbs-navy); font-size: 13px !important; }
.text-link, .card-heading a, .workspace-table a, .pagination a { color: var(--nbs-blue) !important; }

/* How it works and footer */
.how-section { background: #0d2142 !important; color: #fff !important; }
.how-intro h2 { color: #fff; font-size: clamp(30px, 3vw, 40px) !important; line-height: 1.35; }
.how-intro h2 span { color: #4b91ff !important; }
.how-intro > p:last-child { color: #c2cee0; font-size: 14px !important; }
.step-card { border-color: rgba(255,255,255,.15) !important; border-radius: 13px !important; background: rgba(255,255,255,.045) !important; }
.step-card h3 { color: #fff; font-size: 15px !important; line-height: 1.5; }
.step-card p { color: #c2cee0 !important; font-size: 12px !important; line-height: 1.65; }
.step-icon { background: rgba(8,102,245,.18) !important; color: #72aaff !important; }
.site-footer, .public-footer { background: #091a35 !important; color: #fff !important; }
.footer-inner p, .footer-note, .footer-contact { color: #c0cce0 !important; font-size: 12px !important; }
.footer-brand { color: #fff !important; font-size: 20px !important; }

/* Workspace shells — shared for platform admin, salon owner and barber */
.workspace-sidebar, .sidebar { background: var(--nbs-navy) !important; color: #fff !important; }
.workspace-main, .main { background: var(--nbs-paper) !important; color: var(--nbs-ink); }
.workspace-header h1, .page-header h1 { color: var(--nbs-navy) !important; font-size: clamp(25px, 2.2vw, 32px) !important; line-height: 1.3; }
.workspace-header p, .page-header p, .header-kicker { color: var(--nbs-muted); font-size: 13px !important; }
.workspace-brand strong, .mobile-brand { color: #fff; }
.workspace-brand small { color: #c2cee0 !important; font-size: 11px !important; }
.workspace-nav a, .side-nav a { color: #e5edfa !important; border-radius: 9px; font-size: 13px !important; }
.workspace-nav strong { font-size: 13px !important; }
.workspace-nav small { color: #b8c9e3 !important; font-size: 11px !important; }
.workspace-nav a:hover, .workspace-nav a.active, .side-nav a:hover, .side-nav a.active { background: rgba(255,255,255,.14) !important; color: #fff !important; }
.side-label { color: #a9bfdf !important; font-size: 11px !important; }
.workspace-user strong { font-size: 13px !important; }
.workspace-user small { font-size: 11px !important; }
.panel, .workspace-card, .metric-card, .metric, .workspace-panel {
  border: 1px solid var(--nbs-line) !important; border-radius: 14px !important;
  background: #fff !important; box-shadow: var(--shadow) !important;
}
.panel-heading h2, .card-heading h2, .workspace-card h2 { color: var(--nbs-navy); font-size: 18px !important; line-height: 1.4; }
.panel-heading p, .card-heading p, .workspace-card p { color: var(--nbs-muted); font-size: 13px; }
.metric > span:first-child, .metric-card > span:first-child { color: var(--nbs-muted); font-size: 13px !important; }
.metric strong, .metric-card strong { color: var(--nbs-navy); font-size: 26px !important; }
.workspace-table { font-size: 13px !important; }
.workspace-table th { color: #667993 !important; font-size: 12px !important; }
.workspace-table td { color: var(--nbs-ink); font-size: 13px !important; }
.form label, .form-panel label, .admin-filter-form label, .unpaid-row label { color: var(--nbs-muted) !important; font-size: 13px !important; }
.form input, .form select, .form textarea, input:not([type=checkbox]):not([type=radio]), select, textarea {
  border-color: var(--nbs-line) !important; border-radius: 9px !important; color: var(--nbs-ink);
  font-size: 14px;
}
.form input::placeholder, input::placeholder, textarea::placeholder { color: #8291a7; opacity: 1; }
.badge, .active-badge, .status-badge, .admin-status { border-radius: 999px; font-size: 11px !important; }
.alert.success { border-color: #c9eadb !important; background: #effaf5 !important; color: #16734f !important; }
.alert.error { border-color: #f1d2d2 !important; background: #fff5f5 !important; color: #a43d3d !important; }
.pagination a, .pagination span[aria-current] span { min-width: 38px; min-height: 38px; }

/* Keep controls usable and prevent tiny type on touch screens */
@media (max-width: 1000px) {
  .hero-inner { gap: 34px; }
  .hero-description { font-size: 15px !important; }
}
@media (max-width: 820px) {
  .site-header { min-height: 66px; }
  .site-header .main-nav { font-size: 13px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 42px; }
  .hero h1 { font-size: clamp(40px, 8vw, 56px) !important; }
  .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .workspace-main, .main { padding-inline: 18px; }
  .workspace-nav a, .side-nav a { min-height: 44px; }
  .form input, .form select, .form textarea, input, select, textarea { font-size: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .container { width: min(100% - 32px, 1160px); }
  .site-header .brand { font-size: 18px; }
  .site-header .main-nav { display: none; }
  .hero { min-height: auto; }
  .hero-inner { padding-block: 32px 28px; }
  .hero h1 { font-size: clamp(36px, 10vw, 46px) !important; line-height: 1.13 !important; }
  .hero-description { font-size: 15px !important; line-height: 1.7 !important; }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-query-field, .service-field { grid-column: span 2; }
  .category-section-heading h2, .city-section h2 { font-size: 22px !important; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .provider-card h3, .salon-card h3 { font-size: 15px !important; }
  .how-section { padding-block: 48px; }
  .how-inner { grid-template-columns: 1fr; gap: 24px; }
  .steps-grid { grid-template-columns: 1fr; }
  .workspace-header h1, .page-header h1 { font-size: 24px !important; }
  .panel, .workspace-card, .metric-card { border-radius: 12px !important; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

body:lang(ar) h1,
body:lang(ar) h2,
body:lang(ar) h3 {
  font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif;
  letter-spacing: 0;
}

.city-links-section {
  border-block: 1px solid var(--nbs-line);
  background: #f7f9fd;
}
.city-links-heading h2,
.directory-intro h2 {
  color: var(--nbs-navy);
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.4;
}
.directory-intro {
  border-color: var(--nbs-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(13, 33, 66, .04);
}
.directory-breadcrumbs,
.directory-intro > p {
  color: var(--nbs-muted);
  font-size: 13px;
  line-height: 1.7;
}

.salon-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.salon-image {
  height: auto;
  aspect-ratio: 3 / 2;
}
.salon-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.salon-card-meta {
  margin-top: auto;
}
.card-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid var(--nbs-line);
  border-radius: 9px;
  color: var(--nbs-blue);
  font-size: 13px;
  font-weight: 600;
}
.card-action:hover {
  border-color: #b8d1ff;
  background: var(--nbs-blue-soft);
}

.panel-heading h2,
.card-heading h2,
.card-heading h3,
.workspace-card h2 {
  color: var(--nbs-navy);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}
.metric-card[href] {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.metric-card[href]:hover {
  transform: translateY(-2px);
  border-color: #b8d1ff !important;
  box-shadow: 0 14px 30px rgba(8, 102, 245, .1) !important;
}
.table-wrap {
  border: 1px solid var(--nbs-line);
  border-radius: 10px;
}
.workspace-table tr:hover td {
  background: #f7f9fd;
}
.management-form input:not([type=checkbox]),
.management-form select,
.management-form textarea,
.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea,
.admin-filter-form input,
.admin-filter-form select {
  min-height: 44px;
  border-color: var(--nbs-line) !important;
  border-radius: 9px;
  font-size: 14px;
}
.management-form > label,
.form-pair label,
.admin-filter-form label,
.admin-form-grid label {
  color: var(--nbs-muted);
  font-size: 13px;
  line-height: 1.5;
}
.primary-button,
.outline-button,
.table-actions button,
.admin-actions button {
  min-height: 40px;
  border-radius: 9px;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

@media (max-width: 700px) {
  .nearby-search-button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .salon-card-body {
    padding: 15px;
  }
  .salon-card-title {
    align-items: flex-start;
  }
  .workspace-header,
  .page-header {
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .category-grid {
    gap: 8px;
  }
  .category-card {
    gap: 8px;
    padding: 10px;
  }
  .category-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .salon-card-title {
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .hero-inner { min-height: 0 !important; padding-block: 22px 15px !important; }
  .hero h1 { font-size: clamp(32px, 9.5vw, 43px) !important; line-height: 1.22 !important; }
  .hero-description { margin-bottom: 13px; font-size: 12px !important; line-height: 1.6 !important; }
  .search-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 8px; }
  .search-query-field, .service-field { grid-column: 1 / -1; min-height: 39px; }
  .search-field input, .search-field select { height: 38px; font-size: 12px !important; }
  .city-field, .category-field, .distance-field { display: none; }
  .search-button, .nearby-search-button { grid-column: span 1 !important; min-height: 40px; }
  .nearby-search-button { width: auto !important; }
  .category-section-heading h2, .home-section-heading h2 { font-size: 18px !important; }
  .category-card { min-height: 65px !important; }
  .category-card strong { font-size: 11px !important; }
  .salon-card-title h3 { font-size: 14px !important; }
  .steps-grid { display: flex; }
  .public-mobile-menu nav {
    top: calc(100% + 6px);
    z-index: 30;
    inset-inline: auto 0;
    width: min(320px, calc(100vw - 48px));
    box-sizing: border-box;
    max-height: calc(100vh - 82px);
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 0 0 12px 12px;
  }
  .public-mobile-menu nav a { min-width: 0; overflow-wrap: anywhere; }
}
