/* ===========================================================
   Andijonbiznes.uz — Design tokens
   Navy + gold, klassik-professional biznes katalog
   =========================================================== */

:root {
  --navy-900: #0B1B33;
  --navy-800: #122A4D;
  --navy-700: #1B3A66;
  --gold-500: #C9A24B;
  --gold-400: #DAB968;
  --gold-100: #F3E6C4;
  --paper: #F7F4EC;
  --paper-dim: #EFEADD;
  --ink: #1C2230;
  --ink-muted: #5B6170;
  --line: #E3DECE;
  --white: #FFFFFF;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-card: 0 1px 2px rgba(11, 27, 51, 0.06), 0 8px 24px rgba(11, 27, 51, 0.05);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light only;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy-900);
  margin: 0;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-gold:hover { background: var(--gold-400); }
.btn-large { padding: 16px 34px; font-size: 16px; }

/* ===========================================================
   Header
   =========================================================== */
.site-header {
  background: var(--navy-900);
  border-bottom: 1px solid rgba(201, 162, 75, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--gold-500);
  color: var(--navy-900);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
}
.logo-text {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.2px;
}
.logo-dot { color: var(--gold-400); }

.main-nav {
  display: flex;
  gap: 30px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--gold-400); }

.btn-header { flex-shrink: 0; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  padding: 76px 0 64px;
  position: relative;
}
.hero-inner { position: relative; }
.hero-eyebrow {
  color: var(--gold-400);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  margin: 0 0 14px;
}
.hero-title {
  font-size: 46px;
  line-height: 1.15;
  color: var(--white);
  max-width: 620px;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  max-width: 560px;
  margin: 22px 0 0;
}

.search-panel {
  margin-top: 38px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.search-field { display: flex; flex-direction: column; gap: 6px; }
.search-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}
.search-field input,
.search-field select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
}
.search-field input:focus,
.search-field select:focus {
  outline: 2px solid var(--gold-500);
  outline-offset: 1px;
}
.search-submit { height: 44px; }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--gold-400);
  font-weight: 600;
}
.hero-stat-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin-top: 2px;
}

/* ===========================================================
   Sections
   =========================================================== */
.section { padding: 68px 0; }
.section--tinted { background: var(--paper-dim); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--ink-muted); margin: 0; font-size: 15px; }

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.category-card {
  background: var(--white);
  border-left: 3px solid var(--gold-500);
  border-radius: 2px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(11, 27, 51, 0.08), 0 14px 30px rgba(11, 27, 51, 0.09);
}
.category-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-900);
}
.category-count { color: var(--ink-muted); font-size: 14px; }
.category-card--all {
  background: var(--navy-900);
  border-left-color: var(--gold-500);
  justify-content: center;
}
.category-card--all .category-name { color: var(--white); }
.category-card--all .category-count { color: var(--gold-400); font-size: 20px; }

/* Business cards */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.business-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.business-photo {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--paper-dim);
}
.business-body { padding: 20px; }
.business-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.business-top h3 {
  font-size: 18px;
  font-family: var(--serif);
}
.verified-badge {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.business-cat {
  color: var(--gold-500);
  font-size: 13px;
  font-weight: 600;
  margin: 8px 0 10px;
}
.business-desc {
  color: var(--ink-muted);
  font-size: 14.5px;
  margin: 0;
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}
.empty-state p {
  color: var(--ink-muted);
  font-size: 15px;
  margin: 0 0 16px;
}
.empty-state:last-child { margin: 0; }
.business-grid:empty { display: none; }
.recent-list:empty { display: none; border: none; }

/* Recent list — hairline list, not cards, to distinguish from business-grid */
.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.recent-item h4 {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--navy-900);
  margin: 0 0 4px;
}
.recent-item p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}
.recent-date {
  color: var(--ink-muted);
  font-size: 13px;
  flex-shrink: 0;
  margin-left: 20px;
}

/* CTA */
.cta {
  background: var(--navy-900);
  padding: 56px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta h2 { color: var(--white); font-size: 28px; }
.cta p {
  color: rgba(255, 255, 255, 0.68);
  margin: 10px 0 0;
  max-width: 460px;
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  background: var(--navy-800);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-col--brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-top: 14px;
  max-width: 240px;
}
.footer-col--brand .logo-text { font-size: 19px; }
.footer-col h5 {
  color: var(--gold-400);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.5px;
  padding: 5px 0;
}
.footer-col a:hover { color: var(--gold-400); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}
.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
  .main-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 20px;
    justify-content: flex-start;
    padding: 0 0 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; }
  .header-inner { flex-wrap: wrap; row-gap: 12px; }
  .btn-header { order: 1; margin-left: auto; }
  .main-nav { order: 2; width: 100%; }
  .hero-title { font-size: 34px; }
  .search-panel { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .business-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .category-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
