/* ==========================================================================
   MOSH E-COM SERVICES — PREMIUM EXECUTIVE BRAND DIRECTORY
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Palette */
  --mosh-navy: #0a1628;
  --mosh-navy-mid: #15274a;
  --mosh-red: #e8192c;
  --mosh-red-soft: #ff3344;
  --whatsapp-green: #22c55e;
  --whatsapp-hover: #16a34a;

  /* Light Theme */
  --bg-body: #e8eef8;
  --bg-app: #f5f7fc;
  --bg-card: #ffffff;
  --bg-surface: #ffffff;
  --bg-pill: rgba(10, 22, 40, 0.05);
  --bg-hero-from: #ffffff;
  --bg-hero-to: #f0f4ff;

  /* Borders */
  --border-subtle: rgba(10, 22, 40, 0.08);
  --border-card: rgba(10, 22, 40, 0.07);
  --border-strong: rgba(10, 22, 40, 0.15);
  --border-accent: rgba(232, 25, 44, 0.35);

  /* Typography */
  --text-primary: #0a1628;
  --text-secondary: #4b5c7a;
  --text-tertiary: #8fa0bc;

  /* Badges */
  --badge-red-bg: #fff0f1;
  --badge-red-text: #d00e1c;
  --badge-blue-bg: #eff7ff;
  --badge-blue-text: #1d6fb4;
  --badge-purple-bg: #f5f0ff;
  --badge-purple-text: #7c3aed;
  --badge-green-bg: #f0fdf4;
  --badge-green-text: #15803d;
  --badge-navy-bg: #eef1f8;
  --badge-navy-text: #15274a;

  /* Shadows */
  --shadow-outer: 0 2px 2px rgba(10,22,40,0.03), 0 8px 32px rgba(10,22,40,0.07), 0 40px 80px rgba(10,22,40,0.05);
  --shadow-card: 0 1px 3px rgba(10,22,40,0.04), 0 4px 12px rgba(10,22,40,0.05);
  --shadow-card-hover: 0 4px 8px rgba(10,22,40,0.06), 0 16px 32px rgba(10,22,40,0.1);
  --shadow-save: 0 4px 14px rgba(10,22,40,0.1), 0 1px 3px rgba(10,22,40,0.06);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-app: 36px;
  --radius-full: 9999px;

  --transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-spring: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-body: #060d1c;
  --bg-app: #0d1526;
  --bg-card: #111d35;
  --bg-surface: #111d35;
  --bg-pill: rgba(255,255,255,0.06);
  --bg-hero-from: #111d35;
  --bg-hero-to: #0f1a30;

  --border-subtle: rgba(255,255,255,0.08);
  --border-card: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.15);
  --border-accent: rgba(232,25,44,0.4);

  --text-primary: #edf2ff;
  --text-secondary: #8fa0bc;
  --text-tertiary: #4b5c7a;

  --badge-red-bg: rgba(232,25,44,0.15);
  --badge-red-text: #ff6b78;
  --badge-blue-bg: rgba(29,111,180,0.15);
  --badge-blue-text: #60a5fa;
  --badge-purple-bg: rgba(124,58,237,0.15);
  --badge-purple-text: #a78bfa;
  --badge-green-bg: rgba(21,128,61,0.15);
  --badge-green-text: #4ade80;
  --badge-navy-bg: rgba(21,39,74,0.5);
  --badge-navy-text: #8fa0bc;

  --shadow-outer: 0 8px 32px rgba(0,0,0,0.4), 0 40px 80px rgba(0,0,0,0.3);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-card-hover: 0 8px 28px rgba(0,0,0,0.35);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: 'Montserrat', 'Plus Jakarta Sans', -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 16px 72px;
}

/* ─── Ambient Background ──────────────────────────────────── */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.glow-top-left {
  top: -80px; left: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,160,176,0.55) 0%, transparent 70%);
}

.glow-top-right {
  top: -60px; right: -80px;
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(160,196,255,0.65) 0%, transparent 70%);
}

.glow-bottom-left {
  bottom: -120px; left: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,180,190,0.4) 0%, transparent 70%);
}

.glow-bottom-right {
  bottom: -120px; right: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(170,210,255,0.5) 0%, transparent 70%);
}

/* ─── App Wrapper Card ────────────────────────────────────── */
.app-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: var(--bg-app);
  border-radius: var(--radius-app);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-outer);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ─── Top Navigation ──────────────────────────────────────── */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 26px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.directory-label {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.motto-stack {
  display: flex;
  flex-direction: column;
  text-align: right;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--text-tertiary);
  line-height: 1.3;
  text-transform: uppercase;
}

.btn-icon-soft {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.82rem;
}

.btn-icon-soft:hover {
  background: var(--border-card);
  color: var(--text-primary);
  transform: scale(1.05);
}

/* ─── Hero Section ────────────────────────────────────────── */
.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 36px 26px 30px;
  background: linear-gradient(160deg, var(--bg-hero-from) 0%, var(--bg-hero-to) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle top accent line */
.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mosh-navy) 0%, var(--mosh-red) 55%, var(--mosh-navy) 100%);
}

.brand-brandmark {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.hero-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(10,22,40,0.12));
}

.hero-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-slogan {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--mosh-red);
  text-transform: uppercase;
  opacity: 0.85;
}

.hero-motto {
  font-size: clamp(1.55rem, 5.5vw, 2.05rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  line-height: 1.18;
}

.highlight-red {
  color: var(--mosh-red);
}

/* ─── Hero Actions ────────────────────────────────────────── */
.hero-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-action-pill {
  width: 100%;
  min-height: 66px;
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: var(--transition-spring);
  user-select: none;
  box-sizing: border-box;
}

.pill-left-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-save-contact {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-save);
}

.btn-save-contact:hover {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.pill-icon-box {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--mosh-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(10,22,40,0.2);
}

.pill-text-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 1px;
}

.pill-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  color: inherit;
}

.pill-subtitle {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pill-chevron {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: var(--transition);
}

.btn-save-contact:hover .pill-chevron {
  background: var(--mosh-navy);
  color: #ffffff;
  border-color: var(--mosh-navy);
}

/* ─── Brands Section Controls ─────────────────────────────── */
.controls-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 26px 0;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.red-line-indicator {
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--mosh-red) 0%, rgba(232,25,44,0.3) 100%);
  border-radius: 4px;
}

.section-heading {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.ecosystem-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}

/* Category Filter Pills */
.category-pills {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-pills::-webkit-scrollbar { display: none; }

.pill-btn {
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 34px;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-card);
}

.pill-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.pill-btn.active {
  background: var(--mosh-navy);
  border-color: var(--mosh-navy);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(10,22,40,0.22);
}

/* ─── Brand Cards ─────────────────────────────────────────── */
.brands-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 26px 0;
}

.brand-link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-spring);
  box-shadow: var(--shadow-card);
  min-height: 74px;
  position: relative;
  overflow: hidden;
}

/* Left accent on hover */
.brand-link-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--mosh-red) 0%, rgba(232,25,44,0.3) 100%);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.22s ease;
  border-radius: 0 2px 2px 0;
}

.brand-link-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
}

.brand-link-card:hover::before {
  transform: scaleY(1);
}

.card-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 1;
}

/* Logo / Monogram boxes */
.logo-box {
  width: 50px; height: 50px;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(10,22,40,0.06);
}

.logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.monogram-box {
  width: 50px; height: 50px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--mosh-navy) 0%, var(--mosh-navy-mid) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(10,22,40,0.2);
}

.monogram-letter {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.monogram-sub {
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-top: 2px;
  text-transform: uppercase;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

/* Category Badges */
.category-tag {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
  line-height: 1;
  flex-shrink: 0;
}

.badge-corporate, .badge-ecommerce {
  background: var(--badge-red-bg);
  color: var(--badge-red-text);
}

.badge-logistics {
  background: var(--badge-blue-bg);
  color: var(--badge-blue-text);
}

.badge-lifestyle {
  background: var(--badge-purple-bg);
  color: var(--badge-purple-text);
}

.badge-technology {
  background: var(--badge-green-bg);
  color: var(--badge-green-text);
}

.card-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  letter-spacing: 0.005em;
}

/* Card Chevron */
.card-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-card-chevron {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: var(--transition);
}

.brand-link-card:hover .btn-card-chevron {
  background: var(--mosh-navy);
  color: #ffffff;
  border-color: var(--mosh-navy);
  transform: translateX(1px);
  box-shadow: 0 4px 10px rgba(10,22,40,0.2);
}

/* Empty State */
.empty-box {
  text-align: center;
  padding: 50px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
  display: none;
  color: var(--text-tertiary);
  margin: 0 26px;
}

/* ─── Quick Contact Section ───────────────────────────────── */
.quick-contact-section {
  padding: 24px 26px 0;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quick-contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 10px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-spring);
  box-shadow: var(--shadow-card);
}

.quick-contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
}

.q-icon-circle {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: var(--transition);
}

.whatsapp-circle {
  background: rgba(34,197,94,0.12);
  color: #16a34a;
}

.phone-circle {
  background: rgba(29,111,180,0.1);
  color: #1d6fb4;
}

.email-circle {
  background: rgba(124,58,237,0.1);
  color: #7c3aed;
}

.quick-contact-card:hover .q-icon-circle {
  transform: scale(1.06);
}

.q-card-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 28px 26px 30px;
}

.footer-motto {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.red-line-divider {
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--mosh-red), rgba(232,25,44,0.3));
  border-radius: 3px;
}

.copyright-text {
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

/* ─── Toast ───────────────────────────────────────────────── */
.toast-msg {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  width: calc(100% - 40px);
  max-width: 360px;
  background: var(--mosh-navy);
  color: #ffffff;
  padding: 13px 22px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 10000;
  opacity: 0;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 16px 40px rgba(10,22,40,0.28);
  letter-spacing: 0.01em;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 440px) {
  body { padding: 10px 6px 50px; }

  .app-wrapper { border-radius: 28px; }

  .top-nav { padding: 16px 20px 14px; }

  .hero-card { padding: 28px 20px 24px; }

  .controls-section { padding: 18px 20px 0; }

  .brands-container { padding: 14px 20px 0; }

  .brand-link-card { padding: 11px 13px; }

  .logo-box, .monogram-box { width: 44px; height: 44px; border-radius: 11px; }

  .monogram-letter { font-size: 1.1rem; }

  .quick-contact-section { padding: 20px 20px 0; }

  .footer-bar { padding: 22px 20px 26px; }
}
