/* Kish Laki — Mobile-first app shell */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
  --kl-teal: #40C0C0;
  --kl-teal-dark: #2A9A9A;
  --kl-green: #509070;
  --kl-orange: #FF8040;
  --kl-navy: #102040;
  --kl-cream: #FFF8F0;
  --kl-blue-soft: #E8F4FC;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --shadow-soft: 0 8px 28px -10px rgba(16, 32, 64, 0.12);
  --header-h: 3.5rem;
  --tab-h: 4.25rem;
  --app-max: 480px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background: #e8ecef;
  color: var(--kl-navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.app-shell {
  max-width: var(--app-max);
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16,32,64,0.06);
  position: relative;
  padding-bottom: calc(var(--tab-h) + 0.5rem);
}

.container { width: 92%; margin-inline: auto; }

/* Compact header + small mascot logo */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(16,32,64,0.06);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 0.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.brand-logo {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, var(--kl-blue-soft), #fff);
  border: 1px solid rgba(64,192,192,0.25);
  padding: 0.15rem;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-title { font-weight: 800; font-size: 1rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand-sub { font-size: 0.6rem; color: #94a3b8; margin-top: -1px; }
.header-cta {
  font-size: 0.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--kl-orange);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.nav-desktop, .nav-toggle, .mobile-nav { display: none !important; }

/* Bottom tab bar */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max);
  height: var(--tab-h);
  background: #fff;
  border-top: 1px solid rgba(16,32,64,0.08);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 20px -8px rgba(16,32,64,0.1);
}
.tab-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 0.35rem 0;
  transition: color 0.15s;
}
.tab-bar a i { font-size: 1.2rem; }
.tab-bar a span {
  font-size: 0.58rem;
  max-width: 4.5rem;
  text-align: center;
  line-height: 1.15;
}
.tab-bar a.active { color: var(--kl-teal-dark); }
.tab-bar a.active i { color: var(--kl-teal); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: transform 0.12s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--kl-teal), var(--kl-green));
  color: #fff;
}
.btn-secondary {
  background: #f1f5f9;
  color: var(--kl-navy);
}
.btn-accent { background: var(--kl-orange); color: #fff; }
.btn-block { width: 100%; }

.hero-compact {
  padding: 1.25rem 0 1rem;
  background: linear-gradient(180deg, var(--kl-blue-soft) 0%, #fff 100%);
}
.hero-compact h1 {
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 0.5rem 0 0.5rem;
  font-weight: 800;
}
.hero-compact .lead {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #64748b;
}
.search-box {
  display: flex;
  gap: 0.4rem;
  background: #fff;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-soft);
}
.search-box input {
  flex: 1;
  border: none;
  padding: 0.55rem 0.85rem;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  background: transparent;
}
.search-box .btn { padding: 0.55rem 1rem; font-size: 0.8rem; }

.section { padding: 1.25rem 0; }
.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
}
.section-desc { color: #64748b; margin: 0 0 1rem; font-size: 0.8rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 0.85rem 0.4rem;
  text-align: center;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 12px -6px rgba(16,32,64,0.08);
  transition: transform 0.15s;
}
.service-card:active { transform: scale(0.97); }
.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.45rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.service-card span { font-size: 0.7rem; font-weight: 600; line-height: 1.3; }

.trust-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.trust-row::-webkit-scrollbar { display: none; }
.trust-chip {
  flex: 0 0 auto;
  background: var(--kl-cream);
  border-radius: var(--radius-lg);
  padding: 0.65rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255,128,64,0.15);
}
.trust-chip i { color: var(--kl-teal); margin-left: 0.35rem; }

.promo-banner {
  background: linear-gradient(135deg, var(--kl-orange), #ff9a5c);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 1rem 1.1rem;
  margin-top: 0.5rem;
}
.promo-banner p { margin: 0 0 0.75rem; font-size: 0.85rem; opacity: 0.95; }

.site-footer-mini {
  padding: 1rem 0 0.5rem;
  text-align: center;
  font-size: 0.65rem;
  color: #94a3b8;
}
.site-footer-mini a { color: var(--kl-teal-dark); margin: 0 0.35rem; }

.page-hero {
  padding: 1.25rem 0 0.75rem;
  background: var(--kl-blue-soft);
}
.page-hero h1 { margin: 0; font-size: 1.35rem; font-weight: 800; }

.form-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.15rem;
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-soft);
}
.form-group { margin-bottom: 0.85rem; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #64748b;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  font-family: inherit;
  font-size: 0.9rem;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius-lg);
  margin-bottom: 0.45rem;
  border: 1px solid #e2e8f0;
}
.faq-q {
  width: 100%;
  text-align: right;
  padding: 0.85rem 1rem;
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.faq-a {
  padding: 0 1rem 0.85rem;
  font-size: 0.8rem;
  color: #64748b;
  display: none;
}
.faq-item.open .faq-a { display: block; }

.panel-layout { padding: 1rem 0; }
.profile-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--kl-blue-soft);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--kl-teal);
}
.menu-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
  font-weight: 500;
}

.order-card {
  border-radius: var(--radius-xl);
  border: 1px solid #e2e8f0;
  padding: 1rem;
  margin-bottom: 0.65rem;
  background: #fff;
}
.order-card .badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
}

.wizard-steps {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.wizard-steps span {
  font-size: 0.65rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  font-weight: 600;
}
.wizard-steps span.active { background: var(--kl-teal); color: #fff; }
.wizard-steps span.done { background: var(--kl-green); color: #fff; }
.hidden { display: none !important; }

@media (min-width: 520px) {
  body { background: #d1d9e0; }
}